From 4a56562644f0981733940979d9e909419eed94ec Mon Sep 17 00:00:00 2001 From: Recurly Integrations Date: Mon, 3 Nov 2025 22:15:19 +0000 Subject: [PATCH] Generated Latest Changes for v2021-02-25 --- openapi/api.yaml | 38 +++++++++++++++++++++++++++++++++++--- recurly/resources.py | 19 +++++++++++++++++++ 2 files changed, 54 insertions(+), 3 deletions(-) diff --git a/openapi/api.yaml b/openapi/api.yaml index 8d3bcf33..2a1ddeea 100644 --- a/openapi/api.yaml +++ b/openapi/api.yaml @@ -18373,9 +18373,11 @@ components: street1: type: string title: Street 1 + maxLength: 50 street2: type: string title: Street 2 + maxLength: 50 city: type: string title: City @@ -23977,8 +23979,10 @@ components: gateway_code: type: string title: Gateway Code - description: If present, this subscription's transactions will use the payment - gateway with this code. + description: If present, this subscription's subsequent transactions will + use the payment gateway with this code. To select a payment gateway to + use when creating a Subscription, be sure to set the `account.billing_info.gateway_code` + as well. maxLength: 13 transaction_type: description: An optional type designation for the payment gateway transaction @@ -24634,6 +24638,22 @@ components: title: VAT Number fraud_info: "$ref": "#/components/schemas/TransactionFraudInfo" + next_action: + type: object + x-class-name: TransactionNextAction + description: Next action values are used for any required customer follow-up + action. Currently, this is supported for Ebanx when using Pix Automatico. + properties: + type: + type: string + title: Next action type + description: The type of next action required. + "$ref": "#/components/schemas/NextActionTypeEnum" + value: + type: string + title: Next action value + description: The value associated with the next action type. + title: Next action TransactionFraudInfo: type: object title: Fraud information @@ -27043,9 +27063,11 @@ components: - credit_card - eft - google_pay + - mercadopago - money_order - other - paypal + - pix_automatico - roku - sepadirectdebit - wire_transfer @@ -27183,6 +27205,11 @@ components: - scheduled - success - void + NextActionTypeEnum: + type: string + description: The type of next action required for the transaction. + enum: + - qr_code CvvCheckEnum: type: string enum: @@ -27259,6 +27286,9 @@ components: - boleto - cash_app - upi_autopay + - pix_automatico + - mercadopago + - klarna CardTypeEnum: type: string enum: @@ -27584,10 +27614,12 @@ components: AchTypeEnum: type: string description: The payment method type for a non-credit card based billing info. - `bacs` and `becs` are the only accepted values. + `bacs`, `becs`, `pix-automatico`, `mercadopago` are the only accepted values. enum: - bacs - becs + - pix-automatico + - mercadopago AchAccountTypeEnum: type: string description: The bank account type. (ACH only) diff --git a/recurly/resources.py b/recurly/resources.py index e6e07d7c..fce47470 100644 --- a/recurly/resources.py +++ b/recurly/resources.py @@ -816,6 +816,8 @@ class Transaction(Resource): - 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. - 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. - 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. + next_action : TransactionNextAction + Next action values are used for any required customer follow-up action. Currently, this is supported for Ebanx when using Pix Automatico. object : str Object type origin : str @@ -881,6 +883,7 @@ class Transaction(Resource): "ip_address_country": str, "ip_address_v4": str, "merchant_reason_code": str, + "next_action": "TransactionNextAction", "object": str, "origin": str, "original_transaction_id": str, @@ -988,6 +991,22 @@ class TransactionPaymentGateway(Resource): } +class TransactionNextAction(Resource): + """ + Attributes + ---------- + type : str + The type of next action required. + value : str + The value associated with the next action type. + """ + + schema = { + "type": str, + "value": str, + } + + class CouponRedemption(Resource): """ Attributes