Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generated Latest Changes for v2021-02-25 #630

Merged
merged 1 commit into from
Feb 22, 2023
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
36 changes: 13 additions & 23 deletions openapi/api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -228,8 +228,8 @@ tags:
x-displayName: Site
- name: custom_field_definition
x-displayName: Custom Field Definition
description: Describes the fields that can use used as custom fields on accounts
or subscriptions.
description: Describes the fields that can be used as custom fields on accounts,
items, line-items (one time charges), plans, or subscriptions.
- name: item
x-displayName: Item
description: |-
Expand Down Expand Up @@ -18211,6 +18211,7 @@ components:
- `read_only` - Users with the Customers role will be able to view this field's data via the admin UI, but
editing will only be available via the API.
- `write` - Users with the Customers role will be able to view and edit this field's data via the admin UI.
- `set_only` - Users with the Customers role will be able to set this field's data via the admin console.
"$ref": "#/components/schemas/UserAccessEnum"
display_name:
type: string
Expand Down Expand Up @@ -22846,10 +22847,13 @@ components:
title: Object type
account:
"$ref": "#/components/schemas/AccountMini"
external_resource:
"$ref": "#/components/schemas/ExternalResourceMini"
external_product_reference:
"$ref": "#/components/schemas/ExternalProductReferenceMini"
external_id:
type: string
title: External Id
description: The id of the subscription in the external systems., I.e. Apple
App Store or Google Play Store.
last_purchased:
type: string
format: date-time
Expand All @@ -22872,6 +22876,10 @@ components:
description: An indication of the quantity of a subscribed item's quantity.
default: 1
minimum: 0
state:
type: string
description: External subscriptions can be active, canceled, expired, or
future.
activated_at:
type: string
format: date-time
Expand Down Expand Up @@ -22910,25 +22918,6 @@ components:
type: array
items:
"$ref": "#/components/schemas/ExternalSubscription"
ExternalResourceMini:
type: object
title: External Resource mini details
properties:
id:
type: string
title: External resource ID
description: System-generated unique identifier for an external resource
ID, e.g. `e28zov4fw0v2`.
object:
type: string
title: Object type
external_object_reference:
type: string
title: External Object Reference
description: Identifier or URL reference where the resource is canonically
available in the external platform.
maxLength: 255
readOnly: true
CustomerPermission:
type: object
properties:
Expand Down Expand Up @@ -23673,6 +23662,7 @@ components:
- api_only
- read_only
- write
- set_only
PricingModelTypeEnum:
type: string
enum:
Expand Down
29 changes: 7 additions & 22 deletions recurly/resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -2194,6 +2194,7 @@ class CustomFieldDefinition(Resource):
- `read_only` - Users with the Customers role will be able to view this field's data via the admin UI, but
editing will only be available via the API.
- `write` - Users with the Customers role will be able to view and edit this field's data via the admin UI.
- `set_only` - Users with the Customers role will be able to set this field's data via the admin console.
"""

schema = {
Expand Down Expand Up @@ -2405,10 +2406,10 @@ class ExternalSubscription(Resource):
When the external subscription was created in Recurly.
expires_at : datetime
When the external subscription expires in the external platform.
external_id : str
The id of the subscription in the external systems., I.e. Apple App Store or Google Play Store.
external_product_reference : ExternalProductReferenceMini
External Product Reference details
external_resource : ExternalResourceMini
External Resource mini details
id : str
System-generated unique identifier for an external subscription ID, e.g. `e28zov4fw0v2`.
last_purchased : datetime
Expand All @@ -2417,6 +2418,8 @@ class ExternalSubscription(Resource):
Object type
quantity : int
An indication of the quantity of a subscribed item's quantity.
state : str
External subscriptions can be active, canceled, expired, or future.
updated_at : datetime
When the external subscription was updated in Recurly.
"""
Expand All @@ -2428,35 +2431,17 @@ class ExternalSubscription(Resource):
"auto_renew": bool,
"created_at": datetime,
"expires_at": datetime,
"external_id": str,
"external_product_reference": "ExternalProductReferenceMini",
"external_resource": "ExternalResourceMini",
"id": str,
"last_purchased": datetime,
"object": str,
"quantity": int,
"state": str,
"updated_at": datetime,
}


class ExternalResourceMini(Resource):
"""
Attributes
----------
external_object_reference : str
Identifier or URL reference where the resource is canonically available in the external platform.
id : str
System-generated unique identifier for an external resource ID, e.g. `e28zov4fw0v2`.
object : str
Object type
"""

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


class BinaryFile(Resource):
"""
Attributes
Expand Down