Skip to content

Commit

Permalink
Generated Latest Changes for v2021-02-25
Browse files Browse the repository at this point in the history
  • Loading branch information
DX Codefresh committed Apr 9, 2021
1 parent 3f93afb commit 6afacec
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 6 deletions.
30 changes: 24 additions & 6 deletions openapi/api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2033,7 +2033,7 @@ paths:
description: |
If you're using Recurly.js to securely submit data from webforms without sending it through your server,
you can associate the billing information with an account by passing in the `token_id`. The only other
field permitted with `token_id` is `primary_payment_method`.
fields permitted with `token_id` are `primary_payment_method` and/or `backup_payment_method`.

For credit card payments you'll need the following required fields:

Expand Down Expand Up @@ -2350,7 +2350,7 @@ paths:
description: |
If you're using Recurly.js to securely submit data from webforms without sending it through your server,
you can associate the billing information with an account by passing in the `token_id`. The only other
field permitted with `token_id` is `primary_payment_method`.
fields permitted with `token_id` are `primary_payment_method` and/or `backup_payment_method`.

For credit card payments you'll need the following required fields:

Expand Down Expand Up @@ -2434,7 +2434,7 @@ paths:
description: |
If you're using Recurly.js to securely submit data from webforms without sending it through your server,
you can associate the billing information with an account by passing in the `token_id`. The only other
field permitted with `token_id` is `primary_payment_method`.
fields permitted with `token_id` are `primary_payment_method` and/or `backup_payment_method`.

For credit card payments you'll need the following required fields:

Expand Down Expand Up @@ -16037,6 +16037,11 @@ components:
the `primary_payment_method` indicator. When adding billing infos via
the billing_info and /accounts endpoints, this value is not permitted,
and will return an error if provided.
backup_payment_method:
type: boolean
description: The `backup_payment_method` indicator is used to designate
a billing info as a backup on the account that will be tried if the billing
info marked `primary_payment_method` fails.
created_at:
type: string
format: date-time
Expand Down Expand Up @@ -16151,9 +16156,9 @@ components:
a consumer card in Brazil. This would be the customer's CPF, CPF is a
Brazilian tax identifier for all tax paying residents.
tax_identifier_type:
"$ref": "#/components/schemas/TaxIdentifierTypeEnum"
description: this field and a value of 'cpf' are required if adding a billing
info that is an elo or hipercard type in Brazil.
"$ref": "#/components/schemas/TaxIdentifierTypeEnum"
primary_payment_method:
type: boolean
title: Primary Payment Method
Expand All @@ -16165,6 +16170,15 @@ components:
the `primary_payment_method` indicator. When adding billing infos via
the billing_info and /accounts endpoints, this value is not permitted,
and will return an error if provided.
backup_payment_method:
type: boolean
description: The `backup_payment_method` indicator is used to designate
a billing info as a backup on the account that will be tried if the billing
info marked `primary_payment_method` fails. All payment methods, including
the billing info marked `primary_payment_method` can be set as a backup.
An account can have a maximum of 1 backup, if a user sets a different
payment method as a backup, the existing backup will no longer be marked
as such.
Coupon:
type: object
properties:
Expand Down Expand Up @@ -19863,8 +19877,8 @@ components:
format: float
title: Custom subscription pricing
description: Override the unit amount of the subscription plan by setting
this value in cents. If not provided, the subscription will inherit the
price from the subscription plan for the provided currency.
this value. If not provided, the subscription will inherit the price from
the subscription plan for the provided currency.
minimum: 0
maximum: 1000000
quantity:
Expand Down Expand Up @@ -20188,6 +20202,10 @@ components:
type: boolean
title: Success?
description: Did this transaction complete successfully?
backup_payment_method_used:
type: boolean
title: Backup Payment Method Used?
description: Indicates if the transaction was completed using a backup payment
refunded:
type: boolean
title: Refunded?
Expand Down
6 changes: 6 additions & 0 deletions recurly/resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,8 @@ class BillingInfo(Resource):
----------
account_id : str
address : Address
backup_payment_method : bool
The `backup_payment_method` indicator is used to designate a billing info as a backup on the account that will be tried if the billing info marked `primary_payment_method` fails.
company : str
created_at : datetime
When the billing information was created.
Expand All @@ -292,6 +294,7 @@ class BillingInfo(Resource):
schema = {
"account_id": str,
"address": "Address",
"backup_payment_method": bool,
"company": str,
"created_at": datetime,
"first_name": str,
Expand Down Expand Up @@ -881,6 +884,8 @@ class Transaction(Resource):
Total transaction amount sent to the payment gateway.
avs_check : str
When processed, result from checking the overall AVS on the transaction.
backup_payment_method_used : bool
Indicates if the transaction was completed using a backup payment
billing_address : AddressWithName
collected_at : datetime
Collected at, or if not collected yet, the time the transaction was created.
Expand Down Expand Up @@ -960,6 +965,7 @@ class Transaction(Resource):
"account": "AccountMini",
"amount": float,
"avs_check": str,
"backup_payment_method_used": bool,
"billing_address": "AddressWithName",
"collected_at": datetime,
"collection_method": str,
Expand Down

0 comments on commit 6afacec

Please sign in to comment.