Skip to content

Commit 21c5b3b

Browse files
Merge pull request #637 from recurly/v3-v2021-02-25-1681256205
Generated Latest Changes for v2021-02-25 (External Accounts)
2 parents f10ddfa + 776d9fe commit 21c5b3b

File tree

3 files changed

+459
-0
lines changed

3 files changed

+459
-0
lines changed

openapi/api.yaml

Lines changed: 289 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,7 @@ x-tagGroups:
202202
- external_subscriptions
203203
- external_invoices
204204
- external_products
205+
- external_accounts
205206
- gift_cards
206207
- name: Products and Promotions
207208
tags:
@@ -361,6 +362,11 @@ tags:
361362
x-displayName: Gift Cards
362363
description: Add gift card purchases to your checkout and allow gift card recipients
363364
to redeem the gift card for credit towards any of your products.
365+
- name: external_accounts
366+
x-displayName: External Accounts
367+
description: An account from an external resource that is not managed by the Recurly
368+
platform and instead is managed by third-party platforms like Apple App Store
369+
and Google Play Store.
364370
paths:
365371
"/sites":
366372
get:
@@ -3250,6 +3256,208 @@ paths:
32503256
:= err.(*recurly.Error); ok {\n\t\tfmt.Printf(\"Failed to retrieve next
32513257
page: %v\", e)\n\t\tbreak\n\t}\n\tfor i, creditPayment := range creditPayments.Data()
32523258
{\n\t\tfmt.Printf(\"Account Credit Payment %3d: %s\\n\",\n\t\t\ti,\n\t\t\tcreditPayment.Id,\n\t\t)\n\t}\n}"
3259+
"/accounts/{account_id}/external_accounts":
3260+
parameters:
3261+
- "$ref": "#/components/parameters/account_id"
3262+
get:
3263+
tags:
3264+
- external_accounts
3265+
operationId: list_account_external_account
3266+
summary: List external accounts for an account
3267+
responses:
3268+
'200':
3269+
description: A list of external accounts on an account.
3270+
content:
3271+
application/json:
3272+
schema:
3273+
"$ref": "#/components/schemas/ExternalAccountList"
3274+
'404':
3275+
description: Incorrect account or external_account ID.
3276+
content:
3277+
application/json:
3278+
schema:
3279+
"$ref": "#/components/schemas/Error"
3280+
'406':
3281+
description: Unavailable API version
3282+
content:
3283+
application/json:
3284+
schema:
3285+
"$ref": "#/components/schemas/Error"
3286+
'422':
3287+
description: Feature not enabled on site
3288+
content:
3289+
application/json:
3290+
schema:
3291+
"$ref": "#/components/schemas/Error"
3292+
default:
3293+
description: Unexpected error.
3294+
content:
3295+
application/json:
3296+
schema:
3297+
"$ref": "#/components/schemas/Error"
3298+
x-code-samples: []
3299+
post:
3300+
tags:
3301+
- external_accounts
3302+
operationId: create_account_external_account
3303+
summary: Create an external account
3304+
requestBody:
3305+
content:
3306+
application/json:
3307+
schema:
3308+
"$ref": "#/components/schemas/ExternalAccountCreate"
3309+
responses:
3310+
'200':
3311+
description: A representation of the created external_account.
3312+
content:
3313+
application/json:
3314+
schema:
3315+
"$ref": "#/components/schemas/ExternalAccount"
3316+
'404':
3317+
description: Incorrect account or external_account ID.
3318+
content:
3319+
application/json:
3320+
schema:
3321+
"$ref": "#/components/schemas/Error"
3322+
'406':
3323+
description: Unavailable API version
3324+
content:
3325+
application/json:
3326+
schema:
3327+
"$ref": "#/components/schemas/Error"
3328+
'422':
3329+
description: Feature not enabled on site
3330+
content:
3331+
application/json:
3332+
schema:
3333+
"$ref": "#/components/schemas/Error"
3334+
default:
3335+
description: Unexpected error.
3336+
content:
3337+
application/json:
3338+
schema:
3339+
"$ref": "#/components/schemas/Error"
3340+
x-code-samples: []
3341+
"/accounts/{account_id}/external_accounts/{external_account_id}":
3342+
parameters:
3343+
- "$ref": "#/components/parameters/account_id"
3344+
- "$ref": "#/components/parameters/external_account_id"
3345+
get:
3346+
tags:
3347+
- external_accounts
3348+
operationId: get_account_external_account
3349+
summary: Get an external account for an account
3350+
responses:
3351+
'200':
3352+
description: A external account on an account.
3353+
content:
3354+
application/json:
3355+
schema:
3356+
"$ref": "#/components/schemas/ExternalAccount"
3357+
'404':
3358+
description: Incorrect account or external_account ID.
3359+
content:
3360+
application/json:
3361+
schema:
3362+
"$ref": "#/components/schemas/Error"
3363+
'406':
3364+
description: Unavailable API version
3365+
content:
3366+
application/json:
3367+
schema:
3368+
"$ref": "#/components/schemas/Error"
3369+
'422':
3370+
description: Feature not enabled on site
3371+
content:
3372+
application/json:
3373+
schema:
3374+
"$ref": "#/components/schemas/Error"
3375+
default:
3376+
description: Unexpected error.
3377+
content:
3378+
application/json:
3379+
schema:
3380+
"$ref": "#/components/schemas/Error"
3381+
x-code-samples: []
3382+
put:
3383+
tags:
3384+
- external_accounts
3385+
operationId: update_account_external_account
3386+
summary: Update an external account
3387+
requestBody:
3388+
content:
3389+
application/json:
3390+
schema:
3391+
"$ref": "#/components/schemas/ExternalAccountUpdate"
3392+
responses:
3393+
'200':
3394+
description: A representation of the updated external_account.
3395+
content:
3396+
application/json:
3397+
schema:
3398+
"$ref": "#/components/schemas/ExternalAccount"
3399+
'404':
3400+
description: Incorrect account or external_account ID.
3401+
content:
3402+
application/json:
3403+
schema:
3404+
"$ref": "#/components/schemas/Error"
3405+
'406':
3406+
description: Unavailable API version
3407+
content:
3408+
application/json:
3409+
schema:
3410+
"$ref": "#/components/schemas/Error"
3411+
'422':
3412+
description: Feature not enabled on site
3413+
content:
3414+
application/json:
3415+
schema:
3416+
"$ref": "#/components/schemas/Error"
3417+
default:
3418+
description: Unexpected error.
3419+
content:
3420+
application/json:
3421+
schema:
3422+
"$ref": "#/components/schemas/Error"
3423+
x-code-samples: []
3424+
delete:
3425+
tags:
3426+
- external_accounts
3427+
operationId: delete_account_external_account
3428+
summary: Delete an external account for an account
3429+
responses:
3430+
'200':
3431+
description: Successful Delete
3432+
content:
3433+
application/json:
3434+
schema:
3435+
"$ref": "#/components/schemas/ExternalAccount"
3436+
'404':
3437+
description: External Account not found
3438+
content:
3439+
application/json:
3440+
schema:
3441+
"$ref": "#/components/schemas/Error"
3442+
'406':
3443+
description: Unavailable API version
3444+
content:
3445+
application/json:
3446+
schema:
3447+
"$ref": "#/components/schemas/Error"
3448+
'422':
3449+
description: Feature not enabled on site
3450+
content:
3451+
application/json:
3452+
schema:
3453+
"$ref": "#/components/schemas/Error"
3454+
default:
3455+
description: Unexpected error.
3456+
content:
3457+
application/json:
3458+
schema:
3459+
"$ref": "#/components/schemas/Error"
3460+
x-code-samples: []
32533461
"/accounts/{account_id}/external_invoices":
32543462
parameters:
32553463
- "$ref": "#/components/parameters/account_id"
@@ -15783,6 +15991,13 @@ components:
1578315991
required: true
1578415992
schema:
1578515993
type: string
15994+
external_account_id:
15995+
name: external_account_id
15996+
in: path
15997+
description: External account ID, e.g. `s28zov4fw0cb`.
15998+
required: true
15999+
schema:
16000+
type: string
1578616001
external_invoice_id:
1578716002
name: external_invoice_id
1578816003
in: path
@@ -16566,6 +16781,11 @@ components:
1656616781
maxLength: 50
1656716782
acquisition:
1656816783
"$ref": "#/components/schemas/AccountAcquisitionUpdate"
16784+
external_accounts:
16785+
type: array
16786+
title: External Accounts
16787+
items:
16788+
"$ref": "#/components/schemas/ExternalAccountCreate"
1656916789
shipping_addresses:
1657016790
type: array
1657116791
items:
@@ -16763,6 +16983,11 @@ components:
1676316983
merchant has an integration for the Vertex tax provider, this optional
1676416984
value will be sent in any tax calculation requests for the account.
1676516985
maxLength: 30
16986+
external_accounts:
16987+
type: array
16988+
description: The external accounts belonging to this account
16989+
items:
16990+
"$ref": "#/components/schemas/ExternalAccount"
1676616991
parent_account_id:
1676716992
type: string
1676816993
maxLength: 13
@@ -22951,6 +23176,70 @@ components:
2295123176
type: array
2295223177
items:
2295323178
"$ref": "#/components/schemas/ExternalProduct"
23179+
ExternalAccountList:
23180+
type: object
23181+
properties:
23182+
object:
23183+
type: string
23184+
title: Object type
23185+
description: Will always be List.
23186+
has_more:
23187+
type: boolean
23188+
description: Indicates there are more results on subsequent pages.
23189+
next:
23190+
type: string
23191+
description: Path to subsequent page of results.
23192+
data:
23193+
type: array
23194+
items:
23195+
"$ref": "#/components/schemas/ExternalAccount"
23196+
ExternalAccountCreate:
23197+
type: object
23198+
properties:
23199+
external_account_code:
23200+
type: string
23201+
description: Represents the account code for the external account.
23202+
external_connection_type:
23203+
type: string
23204+
description: Represents the connection type. `AppleAppStore` or `GooglePlayStore`
23205+
required:
23206+
- external_account_code
23207+
- external_connection_type
23208+
ExternalAccountUpdate:
23209+
type: object
23210+
properties:
23211+
external_account_code:
23212+
type: string
23213+
description: Represents the account code for the external account.
23214+
external_connection_type:
23215+
type: string
23216+
description: Represents the connection type. `AppleAppStore` or `GooglePlayStore`
23217+
ExternalAccount:
23218+
type: object
23219+
title: External Account
23220+
properties:
23221+
object:
23222+
type: string
23223+
default: external_account
23224+
id:
23225+
type: string
23226+
description: UUID of the external_account .
23227+
external_account_code:
23228+
type: string
23229+
description: Represents the account code for the external account.
23230+
external_connection_type:
23231+
type: string
23232+
description: Represents the connection type. `AppleAppStore` or `GooglePlayStore`
23233+
created_at:
23234+
type: string
23235+
format: date-time
23236+
description: Created at
23237+
readOnly: true
23238+
updated_at:
23239+
type: string
23240+
format: date-time
23241+
description: Last updated at
23242+
readOnly: true
2295423243
ExternalProductReferenceMini:
2295523244
type: object
2295623245
title: External Product Reference details

0 commit comments

Comments
 (0)