Skip to content

Commit bfc187f

Browse files
Merge pull request #744 from recurly/v3-v2021-02-25-26175519407
Generated Latest Changes for v2021-02-25
2 parents 2e46f48 + f479fac commit bfc187f

2 files changed

Lines changed: 77 additions & 28 deletions

File tree

openapi/api.yaml

Lines changed: 62 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -200,14 +200,12 @@ x-tagGroups:
200200
- usage
201201
- automated_exports
202202
- gift_cards
203-
- name: App Management
203+
- name: Invoices and Payments
204204
tags:
205-
- external_subscriptions
206-
- external_invoices
207-
- external_products
208-
- external_accounts
209-
- external_product_references
210-
- external_payment_phases
205+
- invoice
206+
- line_item
207+
- credit_payment
208+
- transaction
211209
- name: Products and Promotions
212210
tags:
213211
- item
@@ -218,12 +216,6 @@ x-tagGroups:
218216
- coupon_redemption
219217
- unique_coupon_code
220218
- price_segment
221-
- name: Invoices and Payments
222-
tags:
223-
- invoice
224-
- line_item
225-
- credit_payment
226-
- transaction
227219
- name: Configuration
228220
tags:
229221
- site
@@ -233,6 +225,14 @@ x-tagGroups:
233225
- business_entities
234226
- general_ledger_account
235227
- performance_obligations
228+
- name: App Management
229+
tags:
230+
- external_subscriptions
231+
- external_invoices
232+
- external_products
233+
- external_accounts
234+
- external_product_references
235+
- external_payment_phases
236236
tags:
237237
- name: site
238238
x-displayName: Site
@@ -9245,7 +9245,6 @@ paths:
92459245
description: Apply credit payment to the outstanding balance on an existing
92469246
charge invoice from an account’s available balance from existing credit invoices.
92479247
parameters:
9248-
- "$ref": "#/components/parameters/site_id"
92499248
- "$ref": "#/components/parameters/invoice_id"
92509249
responses:
92519250
'200':
@@ -18621,7 +18620,7 @@ components:
1862118620
type: string
1862218621
maxLength: 20
1862318622
description: Code that represents a geographic entity (location or object).
18624-
Only returned for Sling Vertex Integration
18623+
Only returned when Vertex or Avalara for Communications is enabled.
1862518624
AddressWithName:
1862618625
allOf:
1862718626
- "$ref": "#/components/schemas/Address"
@@ -19642,12 +19641,14 @@ components:
1964219641
title: Temporal amount
1964319642
description: If `duration` is "temporal" than `temporal_amount` is an integer
1964419643
which is multiplied by `temporal_unit` to define the duration that the
19645-
coupon will be applied to invoices for.
19644+
coupon will be applied to invoices for. When `temporal_unit` is "billing_period",
19645+
this is the number of complete billing cycles.
1964619646
temporal_unit:
1964719647
title: Temporal unit
1964819648
description: If `duration` is "temporal" than `temporal_unit` is multiplied
1964919649
by `temporal_amount` to define the duration that the coupon will be applied
19650-
to invoices for.
19650+
to invoices for. Use "billing_period" to apply the coupon for a fixed
19651+
number of billing cycles. Requires `redemption_resource=subscription`.
1965119652
"$ref": "#/components/schemas/TemporalUnitEnum"
1965219653
free_trial_unit:
1965319654
title: Free trial unit
@@ -19833,12 +19834,14 @@ components:
1983319834
title: Temporal amount
1983419835
description: If `duration` is "temporal" than `temporal_amount` is an
1983519836
integer which is multiplied by `temporal_unit` to define the duration
19836-
that the coupon will be applied to invoices for.
19837+
that the coupon will be applied to invoices for. When `temporal_unit`
19838+
is "billing_period", this is the number of complete billing cycles.
1983719839
temporal_unit:
1983819840
title: Temporal unit
1983919841
description: If `duration` is "temporal" than `temporal_unit` is multiplied
1984019842
by `temporal_amount` to define the duration that the coupon will be
19841-
applied to invoices for.
19843+
applied to invoices for. Use "billing_period" to apply the coupon for
19844+
a fixed number of billing cycles. Requires `redemption_resource=subscription`.
1984219845
"$ref": "#/components/schemas/TemporalUnitEnum"
1984319846
coupon_type:
1984419847
title: Coupon type
@@ -20195,6 +20198,19 @@ components:
2019520198
description: Any values that resemble a credit card number or security code
2019620199
(CVV/CVC) will be rejected.
2019720200
maxLength: 255
20201+
source_record_type:
20202+
type: string
20203+
title: Source record type
20204+
description: The type of record this custom field was automatically copied
20205+
from. Only present when the field was copied from another record.
20206+
readOnly: true
20207+
"$ref": "#/components/schemas/SourceRecordTypeEnum"
20208+
source_record_id:
20209+
type: string
20210+
title: Source record ID
20211+
description: The UUID of the record this custom field was automatically
20212+
copied from. Only present when the field was copied from another record.
20213+
readOnly: true
2019820214
required:
2019920215
- name
2020020216
- value
@@ -20206,6 +20222,15 @@ components:
2020620222
remove a field send the name with a null or empty value.
2020720223
items:
2020820224
"$ref": "#/components/schemas/CustomField"
20225+
InvoiceCustomFields:
20226+
type: array
20227+
title: Custom fields
20228+
description: A list of custom fields that were on the account at the time of
20229+
invoice creation and were marked to be displayed on invoices. Read-only; cannot
20230+
be set directly on the invoice.
20231+
readOnly: true
20232+
items:
20233+
"$ref": "#/components/schemas/CustomField"
2020920234
CustomFieldDefinition:
2021020235
type: object
2021120236
title: Custom field definition
@@ -21084,6 +21109,8 @@ components:
2108421109
title: Business Entity ID
2108521110
description: Unique ID to identify the business entity assigned to the invoice.
2108621111
Available when the `Multiple Business Entities` feature is enabled.
21112+
custom_fields:
21113+
"$ref": "#/components/schemas/InvoiceCustomFields"
2108721114
InvoiceCreate:
2108821115
type: object
2108921116
properties:
@@ -22735,7 +22762,7 @@ components:
2273522762
type: string
2273622763
maxLength: 20
2273722764
description: Code that represents a geographic entity (location or object).
22738-
Only returned for Sling Vertex Integration
22765+
Only returned when Vertex or Avalara for Communications is enabled.
2273922766
created_at:
2274022767
type: string
2274122768
title: Created at
@@ -22823,7 +22850,7 @@ components:
2282322850
type: string
2282422851
maxLength: 20
2282522852
description: Code that represents a geographic entity (location or object).
22826-
Only returned for Sling Vertex Integration
22853+
Only returned when Vertex or Avalara for Communications is enabled.
2282722854
country:
2282822855
type: string
2282922856
maxLength: 50
@@ -23154,7 +23181,7 @@ components:
2315423181
type: string
2315523182
maxLength: 20
2315623183
description: Code that represents a geographic entity (location or object).
23157-
Only returned for Sling Vertex Integration
23184+
Only returned when Vertex or Avalara for Communications is enabled.
2315823185
Site:
2315923186
type: object
2316023187
properties:
@@ -27196,11 +27223,16 @@ components:
2719627223
- temporal
2719727224
TemporalUnitEnum:
2719827225
type: string
27226+
description: The temporal unit for the coupon's duration. Used with temporal_amount
27227+
to define how long the coupon applies. When temporal_unit is billing_period,
27228+
the coupon applies for temporal_amount complete billing cycles rather than
27229+
a fixed calendar duration. billing_period requires redemption_resource=subscription.
2719927230
enum:
2720027231
- day
2720127232
- month
2720227233
- week
2720327234
- year
27235+
- billing_period
2720427236
FreeTrialUnitEnum:
2720527237
type: string
2720627238
enum:
@@ -28104,3 +28136,11 @@ components:
2810428136
enum:
2810528137
- customer
2810628138
- merchant
28139+
SourceRecordTypeEnum:
28140+
type: string
28141+
description: The type of record a custom field was automatically copied from.
28142+
enum:
28143+
- account
28144+
- plan
28145+
- product
28146+
- subscription

recurly/resources.py

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ class Address(Resource):
5656
country : str
5757
Country, 2-letter ISO 3166-1 alpha-2 code.
5858
geo_code : str
59-
Code that represents a geographic entity (location or object). Only returned for Sling Vertex Integration
59+
Code that represents a geographic entity (location or object). Only returned when Vertex or Avalara for Communications is enabled.
6060
phone : str
6161
Phone number
6262
postal_code : str
@@ -251,7 +251,7 @@ class ShippingAddress(Resource):
251251
email : str
252252
first_name : str
253253
geo_code : str
254-
Code that represents a geographic entity (location or object). Only returned for Sling Vertex Integration
254+
Code that represents a geographic entity (location or object). Only returned when Vertex or Avalara for Communications is enabled.
255255
id : str
256256
Shipping Address ID
257257
last_name : str
@@ -508,12 +508,18 @@ class CustomField(Resource):
508508
----------
509509
name : str
510510
Fields must be created in the UI before values can be assigned to them.
511+
source_record_id : str
512+
The UUID of the record this custom field was automatically copied from. Only present when the field was copied from another record.
513+
source_record_type : str
514+
The type of record this custom field was automatically copied from. Only present when the field was copied from another record.
511515
value : str
512516
Any values that resemble a credit card number or security code (CVV/CVC) will be rejected.
513517
"""
514518

515519
schema = {
516520
"name": str,
521+
"source_record_id": str,
522+
"source_record_type": str,
517523
"value": str,
518524
}
519525

@@ -943,7 +949,7 @@ class AddressWithName(Resource):
943949
first_name : str
944950
First name
945951
geo_code : str
946-
Code that represents a geographic entity (location or object). Only returned for Sling Vertex Integration
952+
Code that represents a geographic entity (location or object). Only returned when Vertex or Avalara for Communications is enabled.
947953
last_name : str
948954
Last name
949955
phone : str
@@ -1107,9 +1113,9 @@ class Coupon(Resource):
11071113
state : str
11081114
Indicates if the coupon is redeemable, and if it is not, why.
11091115
temporal_amount : int
1110-
If `duration` is "temporal" than `temporal_amount` is an integer which is multiplied by `temporal_unit` to define the duration that the coupon will be applied to invoices for.
1116+
If `duration` is "temporal" than `temporal_amount` is an integer which is multiplied by `temporal_unit` to define the duration that the coupon will be applied to invoices for. When `temporal_unit` is "billing_period", this is the number of complete billing cycles.
11111117
temporal_unit : str
1112-
If `duration` is "temporal" than `temporal_unit` is multiplied by `temporal_amount` to define the duration that the coupon will be applied to invoices for.
1118+
If `duration` is "temporal" than `temporal_unit` is multiplied by `temporal_amount` to define the duration that the coupon will be applied to invoices for. Use "billing_period" to apply the coupon for a fixed number of billing cycles. Requires `redemption_resource=subscription`.
11131119
unique_code_template : str
11141120
On a bulk coupon, the template from which unique coupon codes are generated.
11151121
unique_coupon_code : dict
@@ -1568,6 +1574,8 @@ class Invoice(Resource):
15681574
Credit payments
15691575
currency : str
15701576
3-letter ISO 4217 currency code.
1577+
custom_fields : :obj:`list` of :obj:`CustomField`
1578+
A list of custom fields that were on the account at the time of invoice creation and were marked to be displayed on invoices. Read-only; cannot be set directly on the invoice.
15711579
customer_notes : str
15721580
This will default to the Customer Notes text specified on the Invoice Settings. Specify custom notes to add or override Customer Notes.
15731581
discount : float
@@ -1667,6 +1675,7 @@ class Invoice(Resource):
16671675
"created_at": datetime,
16681676
"credit_payments": ["CreditPayment"],
16691677
"currency": str,
1678+
"custom_fields": ["CustomField"],
16701679
"customer_notes": str,
16711680
"discount": float,
16721681
"due_at": datetime,
@@ -1718,7 +1727,7 @@ class InvoiceAddress(Resource):
17181727
first_name : str
17191728
First name
17201729
geo_code : str
1721-
Code that represents a geographic entity (location or object). Only returned for Sling Vertex Integration
1730+
Code that represents a geographic entity (location or object). Only returned when Vertex or Avalara for Communications is enabled.
17221731
last_name : str
17231732
Last name
17241733
name_on_account : str

0 commit comments

Comments
 (0)