Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 25 additions & 6 deletions openapi/api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19850,6 +19850,8 @@ components:
description: Specifies a URL to which a consumer will be redirected upon
completion of a redirect payment flow. Only redirect payment flows operating
through Adyen Components will utilize this return URL.
authentication_method:
"$ref": "#/components/schemas/UpiAutopayAuthenticationMethodEnum"
BillingInfoVerify:
type: object
properties:
Expand Down Expand Up @@ -20394,7 +20396,8 @@ components:
type: string
title: Duration Type
description: The coupon's duration type. `temporal` includes an `expires_at`
timestamp. `forever` and `single_use` have no additional fields.
timestamp. `billing_periods` includes a `redemptions_remaining` count
of billing cycles. `forever` and `single_use` have no additional fields.
"$ref": "#/components/schemas/CouponDurationEnum"
readOnly: true
expires_at:
Expand All @@ -20404,6 +20407,12 @@ components:
description: Present when `type` is `temporal`. The datetime after which
this redemption will no longer apply.
readOnly: true
redemptions_remaining:
type: integer
title: Redemptions Remaining
description: The number of redemption periods remaining for which this coupon
will still apply.
readOnly: true
CouponRedemptionCreate:
type: object
properties:
Expand Down Expand Up @@ -22880,7 +22889,7 @@ components:
minimum: 0
maximum: 1000000
description: |
Allows up to 9 decimal places. Only supported when `add_on_type` = `usage`.
Allows up to 9 decimal places.
If `unit_amount_decimal` is provided, `unit_amount` cannot be provided.
tax_inclusive:
type: boolean
Expand Down Expand Up @@ -22912,7 +22921,7 @@ components:
minimum: 0
maximum: 1000000
description: |
Allows up to 9 decimal places. Only supported when `add_on_type` = `usage`.
Allows up to 9 decimal places.
If `unit_amount_decimal` is provided, `unit_amount` cannot be provided.
required:
- currency
Expand Down Expand Up @@ -24004,7 +24013,6 @@ components:
description: |
Allows up to 9 decimal places. Optionally, override the add-on's default unit amount.
If the plan add-on's `tier_type` is `tiered`, `volume`, or `stairstep`, then `unit_amount_decimal` cannot be provided.
Only supported when the plan add-on's `add_on_type` = `usage`.
If `unit_amount_decimal` is provided, `unit_amount` cannot be provided.
minimum: 0
maximum: 1000000
Expand Down Expand Up @@ -24088,7 +24096,6 @@ components:
description: |
Allows up to 9 decimal places. Optionally, override the add-on's default unit amount.
If the plan add-on's `tier_type` is `tiered`, `volume`, or `stairstep`, then `unit_amount_decimal` cannot be provided.
Only supported when the plan add-on's `add_on_type` = `usage`.
If `unit_amount_decimal` is provided, `unit_amount` cannot be provided.
tiers:
type: array
Expand Down Expand Up @@ -27608,6 +27615,7 @@ components:
- forever
- single_use
- temporal
- billing_periods
TemporalUnitEnum:
type: string
description: The temporal unit for the coupon's duration. Used with temporal_amount
Expand Down Expand Up @@ -28437,12 +28445,23 @@ components:
AchTypeEnum:
type: string
description: The payment method type for a non-credit card based billing info.
`bacs`, `becs`, `pix-automatico`, `mercadopago` are the only accepted values.
`bacs`, `becs`, `pix-automatico`, `mercadopago`, `upi-autopay` are the only
accepted values.
enum:
- bacs
- becs
- pix-automatico
- mercadopago
- upi-autopay
UpiAutopayAuthenticationMethodEnum:
type: string
title: Authentication Method
description: UPI Autopay authentication method. Specifies how the customer authorizes
the enrollment mandate. Defaults to 'vpa' if omitted.
enum:
- vpa
- qr-code
- app-deep-links
AchAccountTypeEnum:
type: string
description: The bank account type. (ACH only)
Expand Down
9 changes: 6 additions & 3 deletions recurly/resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -1273,12 +1273,15 @@ class CouponRedemptionRemainingDuration(Resource):
----------
expires_at : datetime
Present when `type` is `temporal`. The datetime after which this redemption will no longer apply.
redemptions_remaining : int
The number of redemption periods remaining for which this coupon will still apply.
type : str
The coupon's duration type. `temporal` includes an `expires_at` timestamp. `forever` and `single_use` have no additional fields.
The coupon's duration type. `temporal` includes an `expires_at` timestamp. `billing_periods` includes a `redemptions_remaining` count of billing cycles. `forever` and `single_use` have no additional fields.
"""

schema = {
"expires_at": datetime,
"redemptions_remaining": int,
"type": str,
}

Expand Down Expand Up @@ -3541,7 +3544,7 @@ class AddOnPricing(Resource):
unit_amount : float
Allows up to 2 decimal places. Required unless `unit_amount_decimal` is provided.
unit_amount_decimal : str
Allows up to 9 decimal places. Only supported when `add_on_type` = `usage`.
Allows up to 9 decimal places.
If `unit_amount_decimal` is provided, `unit_amount` cannot be provided.
"""

Expand Down Expand Up @@ -3581,7 +3584,7 @@ class TierPricing(Resource):
unit_amount : float
Allows up to 2 decimal places. Required unless `unit_amount_decimal` is provided.
unit_amount_decimal : str
Allows up to 9 decimal places. Only supported when `add_on_type` = `usage`.
Allows up to 9 decimal places.
If `unit_amount_decimal` is provided, `unit_amount` cannot be provided.
"""

Expand Down
Loading