You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: recurly/resources.py
+15-6Lines changed: 15 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -56,7 +56,7 @@ class Address(Resource):
56
56
country : str
57
57
Country, 2-letter ISO 3166-1 alpha-2 code.
58
58
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.
60
60
phone : str
61
61
Phone number
62
62
postal_code : str
@@ -251,7 +251,7 @@ class ShippingAddress(Resource):
251
251
email : str
252
252
first_name : str
253
253
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.
255
255
id : str
256
256
Shipping Address ID
257
257
last_name : str
@@ -508,12 +508,18 @@ class CustomField(Resource):
508
508
----------
509
509
name : str
510
510
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.
511
515
value : str
512
516
Any values that resemble a credit card number or security code (CVV/CVC) will be rejected.
513
517
"""
514
518
515
519
schema= {
516
520
"name": str,
521
+
"source_record_id": str,
522
+
"source_record_type": str,
517
523
"value": str,
518
524
}
519
525
@@ -943,7 +949,7 @@ class AddressWithName(Resource):
943
949
first_name : str
944
950
First name
945
951
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.
947
953
last_name : str
948
954
Last name
949
955
phone : str
@@ -1107,9 +1113,9 @@ class Coupon(Resource):
1107
1113
state : str
1108
1114
Indicates if the coupon is redeemable, and if it is not, why.
1109
1115
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.
1111
1117
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`.
1113
1119
unique_code_template : str
1114
1120
On a bulk coupon, the template from which unique coupon codes are generated.
1115
1121
unique_coupon_code : dict
@@ -1568,6 +1574,8 @@ class Invoice(Resource):
1568
1574
Credit payments
1569
1575
currency : str
1570
1576
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.
1571
1579
customer_notes : str
1572
1580
This will default to the Customer Notes text specified on the Invoice Settings. Specify custom notes to add or override Customer Notes.
1573
1581
discount : float
@@ -1667,6 +1675,7 @@ class Invoice(Resource):
1667
1675
"created_at": datetime,
1668
1676
"credit_payments": ["CreditPayment"],
1669
1677
"currency": str,
1678
+
"custom_fields": ["CustomField"],
1670
1679
"customer_notes": str,
1671
1680
"discount": float,
1672
1681
"due_at": datetime,
@@ -1718,7 +1727,7 @@ class InvoiceAddress(Resource):
1718
1727
first_name : str
1719
1728
First name
1720
1729
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.
0 commit comments