Skip to content

Commit

Permalink
changes from main branch of transpiler
Browse files Browse the repository at this point in the history
  • Loading branch information
sbansla committed Sep 12, 2024
1 parent 1bc6d31 commit 4788cef
Show file tree
Hide file tree
Showing 2 changed files with 259 additions and 0 deletions.
154 changes: 154 additions & 0 deletions spec/json/twilio_marketplace_v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -2364,6 +2364,160 @@
"x-twilio": {
"defaultOutputProperties": [],
"pathType": "instance"
},
"post": {
"description": "Submit a request to bill for referrals from Marketplace.",
"tags": [
"MarketplaceReferralRecords"
],
"responses": {
"201": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/marketplace.v1.referral_records"
},
"examples": {
"create": {
"value": {
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"sid": "XLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"net_revenue": 1023.42,
"filename": "myfile",
"documentation_link": "https://somelink.com",
"date_created": "2024-07-31T18:51:03Z",
"date_updated": "2024-07-31T18:51:03Z",
"url": "https://marketplace.twilio.com/v1/ReferralRecords/XLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
}
}
}
}
},
"headers": {
"Access-Control-Allow-Origin": {
"description": "Specify the origin(s) allowed to access the resource",
"schema": {
"type": "string"
},
"example": "*"
},
"Access-Control-Allow-Methods": {
"description": "Specify the HTTP methods allowed when accessing the resource",
"schema": {
"type": "string"
},
"example": "POST, OPTIONS"
},
"Access-Control-Allow-Headers": {
"description": "Specify the headers allowed when accessing the resource",
"schema": {
"type": "string"
},
"example": "Content-Type, Authorization"
},
"Access-Control-Allow-Credentials": {
"description": "Indicates whether the browser should include credentials",
"schema": {
"type": "boolean"
}
},
"Access-Control-Expose-Headers": {
"description": "Headers exposed to the client",
"schema": {
"type": "string",
"example": "X-Custom-Header1, X-Custom-Header2"
}
}
},
"description": "ACCEPTED"
},
"400": {
"content": {
"application/json": {
"schema": {
"type": "object",
"x-jvm-type": "com.twilio.rest.TwilioServiceErrorResponse"
}
}
},
"headers": {
"Access-Control-Allow-Origin": {
"description": "Specify the origin(s) allowed to access the resource",
"schema": {
"type": "string"
},
"example": "*"
},
"Access-Control-Allow-Methods": {
"description": "Specify the HTTP methods allowed when accessing the resource",
"schema": {
"type": "string"
},
"example": "POST, OPTIONS"
},
"Access-Control-Allow-Headers": {
"description": "Specify the headers allowed when accessing the resource",
"schema": {
"type": "string"
},
"example": "Content-Type, Authorization"
},
"Access-Control-Allow-Credentials": {
"description": "Indicates whether the browser should include credentials",
"schema": {
"type": "boolean"
}
},
"Access-Control-Expose-Headers": {
"description": "Headers exposed to the client",
"schema": {
"type": "string",
"example": "X-Custom-Header1, X-Custom-Header2"
}
}
},
"description": "BAD_REQUEST"
}
},
"security": [
{
"accountSid_authToken": []
}
],
"operationId": "CreateReferralRecord",
"requestBody": {
"required": true,
"content": {
"multipart/form-data": {
"schema": {
"type": "object",
"properties": {
"net_revenue": {
"type": "number",
"description": "A positive float value indicating the total revenue generated, to bill against."
},
"documentation": {
"type": "string",
"format": "binary",
"description": "Itemized invoice for the revenue generated."
}
},
"required": [
"net_revenue",
"documentation"
]
},
"examples": {
"create": {
"value": {
"net_revenue": 1023.42,
"documentation": "filename"
}
}
}
}
}
}
}
},
"/v1/ReferralRecords/{ReferralRecordSid}": {
Expand Down
105 changes: 105 additions & 0 deletions spec/yaml/twilio_marketplace_v1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1673,6 +1673,111 @@ paths:
x-twilio:
defaultOutputProperties: []
pathType: instance
post:
description: Submit a request to bill for referrals from Marketplace.
tags:
- MarketplaceReferralRecords
responses:
'201':
content:
application/json:
schema:
$ref: '#/components/schemas/marketplace.v1.referral_records'
examples:
create:
value:
account_sid: ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
sid: XLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
net_revenue: 1023.42
filename: myfile
documentation_link: https://somelink.com
date_created: '2024-07-31T18:51:03Z'
date_updated: '2024-07-31T18:51:03Z'
url: https://marketplace.twilio.com/v1/ReferralRecords/XLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
headers:
Access-Control-Allow-Origin:
description: Specify the origin(s) allowed to access the resource
schema:
type: string
example: '*'
Access-Control-Allow-Methods:
description: Specify the HTTP methods allowed when accessing the resource
schema:
type: string
example: POST, OPTIONS
Access-Control-Allow-Headers:
description: Specify the headers allowed when accessing the resource
schema:
type: string
example: Content-Type, Authorization
Access-Control-Allow-Credentials:
description: Indicates whether the browser should include credentials
schema:
type: boolean
Access-Control-Expose-Headers:
description: Headers exposed to the client
schema:
type: string
example: X-Custom-Header1, X-Custom-Header2
description: ACCEPTED
'400':
content:
application/json:
schema:
type: object
x-jvm-type: com.twilio.rest.TwilioServiceErrorResponse
headers:
Access-Control-Allow-Origin:
description: Specify the origin(s) allowed to access the resource
schema:
type: string
example: '*'
Access-Control-Allow-Methods:
description: Specify the HTTP methods allowed when accessing the resource
schema:
type: string
example: POST, OPTIONS
Access-Control-Allow-Headers:
description: Specify the headers allowed when accessing the resource
schema:
type: string
example: Content-Type, Authorization
Access-Control-Allow-Credentials:
description: Indicates whether the browser should include credentials
schema:
type: boolean
Access-Control-Expose-Headers:
description: Headers exposed to the client
schema:
type: string
example: X-Custom-Header1, X-Custom-Header2
description: BAD_REQUEST
security:
- accountSid_authToken: []
operationId: CreateReferralRecord
requestBody:
required: true
content:
multipart/form-data:
schema:
type: object
properties:
net_revenue:
type: number
description: A positive float value indicating the total revenue
generated, to bill against.
documentation:
type: string
format: binary
description: Itemized invoice for the revenue generated.
required:
- net_revenue
- documentation
examples:
create:
value:
net_revenue: 1023.42
documentation: filename
/v1/ReferralRecords/{ReferralRecordSid}:
servers:
- url: https://marketplace.twilio.com
Expand Down

0 comments on commit 4788cef

Please sign in to comment.