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
+24-5Lines changed: 24 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -816,6 +816,8 @@ class Transaction(Resource):
816
816
- Service Extension: Send `service_extension` if you are in a service industry and the customer has increased/extended their service in some way. For example: adding a day onto a car rental agreement.
817
817
- Split Shipment: Send `split_shipment` if you sell physical product and need to split up a shipment into multiple transactions when the customer is no longer in session.
818
818
- Top Up: Send `top_up` if you process one-time transactions based on a pre-arranged agreement with your customer where there is a pre-arranged account balance that needs maintaining. For example, if the customer has agreed to maintain an account balance of 30.00 and their current balance is 20.00, the MIT amount would be at least 10.00 to meet that 30.00 threshold.
819
+
next_action : TransactionNextAction
820
+
Next action values are used for any required customer follow-up action. Currently, this is supported for Ebanx when using Pix Automatico.
819
821
object : str
820
822
Object type
821
823
origin : str
@@ -881,6 +883,7 @@ class Transaction(Resource):
881
883
"ip_address_country": str,
882
884
"ip_address_v4": str,
883
885
"merchant_reason_code": str,
886
+
"next_action": "TransactionNextAction",
884
887
"object": str,
885
888
"origin": str,
886
889
"original_transaction_id": str,
@@ -988,6 +991,22 @@ class TransactionPaymentGateway(Resource):
988
991
}
989
992
990
993
994
+
classTransactionNextAction(Resource):
995
+
"""
996
+
Attributes
997
+
----------
998
+
type : str
999
+
The type of next action required.
1000
+
value : str
1001
+
The value associated with the next action type.
1002
+
"""
1003
+
1004
+
schema= {
1005
+
"type": str,
1006
+
"value": str,
1007
+
}
1008
+
1009
+
991
1010
classCouponRedemption(Resource):
992
1011
"""
993
1012
Attributes
@@ -1757,7 +1776,7 @@ class TaxInfo(Resource):
1757
1776
region : str
1758
1777
Provides the tax region applied on an invoice. For U.S. Sales Tax, this will be the 2 letter state code. For EU VAT this will be the 2 letter country code. For all country level tax types, this will display the regional tax, like VAT, GST, or PST. Not present when Avalara for Communications is enabled.
1759
1778
tax_details : :obj:`list` of :obj:`TaxDetail`
1760
-
Provides additional tax details for Communications taxes when Avalara for Communications is enabled or Canadian Sales Tax when there is tax applied at both the country and province levels. This will only be populated for the Invoice response when fetching a single invoice and not for the InvoiceList or LineItemList. Only populated for a single LineItem fetch when Avalara for Communications is enabled.
1779
+
Provides additional tax details for Communications taxes when Avalara for Communications or Vertex Tax Breakdown is enabled or Canadian Sales Tax. Tax details will only be populated for the Invoice response when fetching a single invoice and not for the InvoiceList or LineItemList. Only populated for a single LineItem fetch when Avalara for Communications is enabled.
1761
1780
type : str
1762
1781
Provides the tax type as "vat" for EU VAT, "usst" for U.S. Sales Tax, or the 2 letter country code for country level tax types like Canada, Australia, New Zealand, Israel, and all non-EU European countries. Not present when Avalara for Communications is enabled.
1763
1782
"""
@@ -1775,19 +1794,19 @@ class TaxDetail(Resource):
1775
1794
Attributes
1776
1795
----------
1777
1796
billable : bool
1778
-
Whether or not the line item is taxable. Only populated for a single LineItem fetch when Avalara for Communications is enabled.
1797
+
Whether or not the line item is taxable. Only populated for a single LineItem fetch when Avalara for Communications or Vertex is enabled.
1779
1798
level : str
1780
-
Provides the jurisdiction level for the Communications tax applied. Example values include city, state and federal. Present only when Avalara for Communications is enabled.
1799
+
Provides the jurisdiction level for the Communications tax applied. Example values include city, state and federal. Present only when Avalara for Communications or Vertex is enabled.
1781
1800
name : str
1782
-
Provides the name of the Communications tax applied. Present only when Avalara for Communications is enabled.
1801
+
Provides the name of the Communications tax applied. Present only when Avalara for Communications or Vertex is enabled.
1783
1802
rate : float
1784
1803
Provides the tax rate for the region.
1785
1804
region : str
1786
1805
Provides the tax region applied on an invoice. For Canadian Sales Tax, this will be either the 2 letter province code or country code. Not present when Avalara for Communications is enabled.
1787
1806
tax : float
1788
1807
The total tax applied for this tax type.
1789
1808
type : str
1790
-
Provides the tax type for the region or type of Comminications tax when Avalara for Communications is enabled. For Canadian Sales Tax, this will be GST, HST, QST or PST.
1809
+
Provides the tax type for the region or type of Comminications tax when Avalara for Communications or Vertex is enabled. For Canadian Sales Tax, this will be GST, HST, QST or PST.
0 commit comments