Skip to content

Commit aec15ec

Browse files
Merge pull request #647 from recurly/v3-v2021-02-25-1684878505
Generated Latest Changes for v2021-02-25 (External Products & References)
2 parents 84b636a + 78bd35a commit aec15ec

File tree

3 files changed

+516
-0
lines changed

3 files changed

+516
-0
lines changed

openapi/api.yaml

Lines changed: 291 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,7 @@ x-tagGroups:
206206
- external_invoices
207207
- external_products
208208
- external_accounts
209+
- external_product_references
209210
- name: Products and Promotions
210211
tags:
211212
- item
@@ -360,6 +361,10 @@ tags:
360361
description: A product from an external resource that is not managed by the Recurly
361362
platform and instead is managed by third-party platforms like Apple App Store
362363
and Google Play Store.
364+
- name: external_product_references
365+
x-displayName: External Product Reference
366+
description: Associates an external product to a corresponding resource on an external
367+
platform like the Apple App Store or Google Play Store.
363368
- name: gift_cards
364369
x-displayName: Gift Cards
365370
description: Add gift card purchases to your checkout and allow gift card recipients
@@ -7745,6 +7750,43 @@ paths:
77457750
schema:
77467751
"$ref": "#/components/schemas/Error"
77477752
x-code-samples: []
7753+
post:
7754+
tags:
7755+
- external_products
7756+
operationId: create_external_product
7757+
summary: Create an external product
7758+
requestBody:
7759+
content:
7760+
application/json:
7761+
schema:
7762+
"$ref": "#/components/schemas/ExternalProductCreate"
7763+
required: true
7764+
responses:
7765+
'201':
7766+
description: Returns the external product
7767+
content:
7768+
application/json:
7769+
schema:
7770+
"$ref": "#/components/schemas/ExternalProduct"
7771+
'400':
7772+
description: Bad request; perhaps missing or invalid parameters.
7773+
content:
7774+
application/json:
7775+
schema:
7776+
"$ref": "#/components/schemas/Error"
7777+
'404':
7778+
description: External product cannot be created for the specified reason.
7779+
content:
7780+
application/json:
7781+
schema:
7782+
"$ref": "#/components/schemas/Error"
7783+
default:
7784+
description: Unexpected error.
7785+
content:
7786+
application/json:
7787+
schema:
7788+
"$ref": "#/components/schemas/Error"
7789+
x-code-samples: []
77487790
"/external_products/{external_product_id}":
77497791
parameters:
77507792
- "$ref": "#/components/parameters/external_product_id"
@@ -7773,6 +7815,181 @@ paths:
77737815
schema:
77747816
"$ref": "#/components/schemas/Error"
77757817
x-code-samples: []
7818+
put:
7819+
tags:
7820+
- external_products
7821+
operationId: update_external_product
7822+
summary: Update an external product
7823+
requestBody:
7824+
content:
7825+
application/json:
7826+
schema:
7827+
"$ref": "#/components/schemas/ExternalProductUpdate"
7828+
required: true
7829+
responses:
7830+
'200':
7831+
description: Settings for an external product.
7832+
content:
7833+
application/json:
7834+
schema:
7835+
"$ref": "#/components/schemas/ExternalProduct"
7836+
'404':
7837+
description: Bad request; perhaps missing or invalid parameters.
7838+
content:
7839+
application/json:
7840+
schema:
7841+
"$ref": "#/components/schemas/Error"
7842+
default:
7843+
description: Unexpected error.
7844+
content:
7845+
application/json:
7846+
schema:
7847+
"$ref": "#/components/schemas/Error"
7848+
x-code-samples: []
7849+
delete:
7850+
tags:
7851+
- external_products
7852+
operationId: deactivate_external_products
7853+
summary: Deactivate an external product
7854+
description: Deactivate an external product.
7855+
responses:
7856+
'200':
7857+
description: Deactivated external product.
7858+
content:
7859+
application/json:
7860+
schema:
7861+
"$ref": "#/components/schemas/ExternalProduct"
7862+
'404':
7863+
description: Bad request; perhaps missing or invalid parameters.
7864+
content:
7865+
application/json:
7866+
schema:
7867+
"$ref": "#/components/schemas/Error"
7868+
default:
7869+
description: Unexpected error.
7870+
content:
7871+
application/json:
7872+
schema:
7873+
"$ref": "#/components/schemas/Error"
7874+
x-code-samples: []
7875+
"/external_products/{external_product_id}/external_product_references":
7876+
parameters:
7877+
- "$ref": "#/components/parameters/external_product_id"
7878+
get:
7879+
tags:
7880+
- external_product_references
7881+
operationId: list_external_product_external_product_references
7882+
summary: List the external product references for an external product
7883+
description: See the [Pagination Guide](/developers/guides/pagination.html)
7884+
to learn how to use pagination in the API and Client Libraries.
7885+
parameters:
7886+
- "$ref": "#/components/parameters/sort_dates"
7887+
responses:
7888+
'200':
7889+
description: A list of the the external product references for an external
7890+
product.
7891+
content:
7892+
application/json:
7893+
schema:
7894+
"$ref": "#/components/schemas/ExternalProductReferenceCollection"
7895+
'404':
7896+
description: Incorrect site or external product ID.
7897+
content:
7898+
application/json:
7899+
schema:
7900+
"$ref": "#/components/schemas/Error"
7901+
default:
7902+
description: Unexpected error.
7903+
content:
7904+
application/json:
7905+
schema:
7906+
"$ref": "#/components/schemas/Error"
7907+
x-code-samples: []
7908+
post:
7909+
tags:
7910+
- external_product_references
7911+
operationId: create_external_product_external_product_reference
7912+
summary: Create an external product reference on an external product
7913+
requestBody:
7914+
content:
7915+
application/json:
7916+
schema:
7917+
"$ref": "#/components/schemas/ExternalProductReferenceCreate"
7918+
required: true
7919+
responses:
7920+
'201':
7921+
description: Details for the external product reference.
7922+
content:
7923+
application/json:
7924+
schema:
7925+
"$ref": "#/components/schemas/ExternalProductReferenceMini"
7926+
'404':
7927+
description: Incorrect site.
7928+
content:
7929+
application/json:
7930+
schema:
7931+
"$ref": "#/components/schemas/Error"
7932+
default:
7933+
description: Unexpected error.
7934+
content:
7935+
application/json:
7936+
schema:
7937+
"$ref": "#/components/schemas/Error"
7938+
x-code-samples: []
7939+
"/external_products/{external_product_id}/external_product_references/{external_product_reference_id}":
7940+
parameters:
7941+
- "$ref": "#/components/parameters/external_product_id"
7942+
- "$ref": "#/components/parameters/external_product_reference_id"
7943+
get:
7944+
tags:
7945+
- external_product_references
7946+
operationId: get_external_product_external_product_reference
7947+
summary: Fetch an external product reference
7948+
responses:
7949+
'200':
7950+
description: Details for an external product reference.
7951+
content:
7952+
application/json:
7953+
schema:
7954+
"$ref": "#/components/schemas/ExternalProductReferenceMini"
7955+
'404':
7956+
description: Incorrect site or external product ID.
7957+
content:
7958+
application/json:
7959+
schema:
7960+
"$ref": "#/components/schemas/Error"
7961+
default:
7962+
description: Unexpected error.
7963+
content:
7964+
application/json:
7965+
schema:
7966+
"$ref": "#/components/schemas/Error"
7967+
x-code-samples: []
7968+
delete:
7969+
tags:
7970+
- external_product_references
7971+
operationId: deactivate_external_product_external_product_reference
7972+
summary: Deactivate an external product reference
7973+
responses:
7974+
'200':
7975+
description: Details for an external product reference.
7976+
content:
7977+
application/json:
7978+
schema:
7979+
"$ref": "#/components/schemas/ExternalProductReferenceMini"
7980+
'404':
7981+
description: Incorrect site or external product reference ID.
7982+
content:
7983+
application/json:
7984+
schema:
7985+
"$ref": "#/components/schemas/Error"
7986+
default:
7987+
description: Unexpected error.
7988+
content:
7989+
application/json:
7990+
schema:
7991+
"$ref": "#/components/schemas/Error"
7992+
x-code-samples: []
77767993
"/external_subscriptions":
77777994
get:
77787995
tags:
@@ -16014,6 +16231,13 @@ components:
1601416231
required: true
1601516232
schema:
1601616233
type: string
16234+
external_product_reference_id:
16235+
name: external_product_reference_id
16236+
in: path
16237+
description: External product reference ID, e.g. `d39iun2fw1v4`.
16238+
required: true
16239+
schema:
16240+
type: string
1601716241
external_subscription_id:
1601816242
name: external_subscription_id
1601916243
in: path
@@ -23220,6 +23444,73 @@ components:
2322023444
type: array
2322123445
items:
2322223446
"$ref": "#/components/schemas/ExternalProduct"
23447+
ExternalProductCreate:
23448+
type: object
23449+
properties:
23450+
name:
23451+
type: string
23452+
description: External product name.
23453+
plan_id:
23454+
type: string
23455+
description: Recurly plan UUID.
23456+
external_product_references:
23457+
type: array
23458+
title: External Product References
23459+
description: List of external product references of the external product.
23460+
items:
23461+
"$ref": "#/components/schemas/ExternalProductReferenceBase"
23462+
required:
23463+
- name
23464+
ExternalProductUpdate:
23465+
type: object
23466+
properties:
23467+
plan_id:
23468+
type: string
23469+
description: Recurly plan UUID.
23470+
required:
23471+
- plan_id
23472+
ExternalProductReferenceBase:
23473+
type: object
23474+
properties:
23475+
reference_code:
23476+
type: string
23477+
description: A code which associates the external product to a corresponding
23478+
object or resource in an external platform like the Apple App Store or
23479+
Google Play Store.
23480+
maxLength: 255
23481+
external_connection_type:
23482+
"$ref": "#/components/schemas/ExternalProductReferenceConnectionTypeEnum"
23483+
ExternalProductReferenceCollection:
23484+
type: object
23485+
properties:
23486+
object:
23487+
type: string
23488+
title: Object type
23489+
description: Will always be List.
23490+
has_more:
23491+
type: boolean
23492+
description: Indicates there are more results on subsequent pages.
23493+
next:
23494+
type: string
23495+
description: Path to subsequent page of results.
23496+
data:
23497+
type: array
23498+
items:
23499+
"$ref": "#/components/schemas/ExternalProductReferenceMini"
23500+
ExternalProductReferenceCreate:
23501+
allOf:
23502+
- "$ref": "#/components/schemas/ExternalProductReferenceBase"
23503+
required:
23504+
- reference_code
23505+
- external_connection_type
23506+
ExternalProductReferenceUpdate:
23507+
allOf:
23508+
- "$ref": "#/components/schemas/ExternalProductReferenceBase"
23509+
ExternalProductReferenceConnectionTypeEnum:
23510+
type: string
23511+
enum:
23512+
- apple_app_store
23513+
- google_play_store
2322323514
ExternalAccountList:
2322423515
type: object
2322523516
properties:

0 commit comments

Comments
 (0)