Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 47 additions & 0 deletions openapi/api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35526,6 +35526,12 @@ components:
description: If there are pending credits on the account that will be invoiced
during the subscription creation, these will be used as the Customer Notes
on the credit invoice.
vat_reverse_charge_notes:
type: string
title: VAT reverse charge notes
description: This will default to the VAT reverse charge notes text specified
on the Invoice Settings. Specify custom notes to add or override VAT reverse
charge notes. Custom notes will stay with a subscription on all renewals.
po_number:
type: string
title: Purchase order number
Expand Down Expand Up @@ -35699,6 +35705,21 @@ components:
"$ref": "#/components/schemas/SubscriptionRampInterval"
credit_application_policy:
"$ref": "#/components/schemas/CreditApplicationPolicy"
terms_and_conditions:
type: string
title: Terms and conditions
description: Specify custom notes to add or override Terms and Conditions.
Custom notes will stay with a subscription on all renewals.
customer_notes:
type: string
title: Customer notes
description: Specify custom notes to add or override Customer Notes. Custom
notes will stay with a subscription on all renewals.
vat_reverse_charge_notes:
type: string
title: VAT reverse charge notes
description: Specify custom notes to add or override VAT reverse charge
notes. Custom notes will stay with a subscription on all renewals.
bulk:
type: boolean
description: Optional field to be used only when needing to bypass the 60
Expand Down Expand Up @@ -35755,6 +35776,11 @@ components:
title: Customer notes
description: Specify custom notes to add or override Customer Notes. Custom
notes will stay with a subscription on all renewals.
vat_reverse_charge_notes:
type: string
title: VAT reverse charge notes
description: Specify custom notes to add or override VAT reverse charge
notes. Custom notes will stay with a subscription on all renewals.
po_number:
type: string
title: Purchase order number
Expand Down Expand Up @@ -37407,6 +37433,23 @@ components:
format: date-time
description: Last updated at
readOnly: true
ExternalProductMini:
type: object
title: External product mini details
description: Just the important parts.
properties:
id:
type: string
title: External product ID
readOnly: true
object:
type: string
title: Object type
readOnly: true
name:
type: string
title: Name
description: The merchant-facing name of the external product.
ExternalProductReferenceMini:
type: object
title: External Product Reference details
Expand Down Expand Up @@ -37469,6 +37512,10 @@ components:
"$ref": "#/components/schemas/AccountMini"
external_product_reference:
"$ref": "#/components/schemas/ExternalProductReferenceMini"
external_product:
"$ref": "#/components/schemas/ExternalProductMini"
plan:
"$ref": "#/components/schemas/PlanMini"
external_payment_phases:
type: array
title: External payment phases
Expand Down
25 changes: 25 additions & 0 deletions recurly/resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -1421,6 +1421,8 @@ class ExternalSubscription(Resource):
The id of the subscription in the external systems., I.e. Apple App Store or Google Play Store.
external_payment_phases : :obj:`list` of :obj:`ExternalPaymentPhase`
The phases of the external subscription payment lifecycle.
external_product : ExternalProductMini
Just the important parts.
external_product_reference : ExternalProductReferenceMini
External Product Reference details
id : str
Expand All @@ -1433,6 +1435,8 @@ class ExternalSubscription(Resource):
When a new billing event occurred on the external subscription in conjunction with a recent billing period, reactivation or upgrade/downgrade.
object : str
Object type
plan : PlanMini
Just the important parts.
quantity : int
An indication of the quantity of a subscribed item's quantity.
state : str
Expand All @@ -1459,12 +1463,14 @@ class ExternalSubscription(Resource):
"expires_at": datetime,
"external_id": str,
"external_payment_phases": ["ExternalPaymentPhase"],
"external_product": "ExternalProductMini",
"external_product_reference": "ExternalProductReferenceMini",
"id": str,
"imported": bool,
"in_grace_period": bool,
"last_purchased": datetime,
"object": str,
"plan": "PlanMini",
"quantity": int,
"state": str,
"test": bool,
Expand Down Expand Up @@ -1503,6 +1509,25 @@ class ExternalProductReferenceMini(Resource):
}


class ExternalProductMini(Resource):
"""
Attributes
----------
id : str
External product ID
name : str
The merchant-facing name of the external product.
object : str
Object type
"""

schema = {
"id": str,
"name": str,
"object": str,
}


class ExternalPaymentPhase(Resource):
"""
Attributes
Expand Down
Loading