Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generated Latest Changes for v2021-02-25 #591

Merged
merged 1 commit into from
Sep 2, 2022
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
53 changes: 50 additions & 3 deletions openapi/api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2441,6 +2441,47 @@ paths:
{\n\t\tfmt.Printf(\"Resource not found: %v\", e)\n\t\treturn nil, err\n\t}\n\tfmt.Printf(\"Unexpected
Recurly error: %v\", e)\n\treturn nil, err\n}\n\nfmt.Printf(\"Fetched Transaction:
%v\", transaction)"
"/accounts/{account_id}/billing_info/verify_cvv":
post:
tags:
- billing_info
operationId: verify_billing_info_cvv
summary: Verify an account's credit card billing cvv
parameters:
- "$ref": "#/components/parameters/account_id"
requestBody:
content:
application/json:
schema:
"$ref": "#/components/schemas/BillingInfoVerifyCVV"
responses:
'200':
description: Transaction information from verify.
content:
application/json:
schema:
"$ref": "#/components/schemas/Transaction"
'429':
description: Over limit error. A credit card can only be checked 3 times
in 24 hours.
content:
application/json:
schema:
"$ref": "#/components/schemas/Error"
'422':
description: Invalid billing information, or error running the verification
transaction.
content:
application/json:
schema:
"$ref": "#/components/schemas/ErrorMayHaveTransaction"
default:
description: Unexpected error.
content:
application/json:
schema:
"$ref": "#/components/schemas/Error"
x-code-samples: []
"/accounts/{account_id}/billing_infos":
get:
tags:
Expand Down Expand Up @@ -16942,6 +16983,12 @@ components:
type: string
description: An identifier for a specific payment gateway.
maxLength: 13
BillingInfoVerifyCVV:
type: object
properties:
verification_value:
type: string
description: Unique security code for a credit card.
Coupon:
type: object
properties:
Expand Down Expand Up @@ -19275,7 +19322,7 @@ components:
properties:
starting_billing_cycle:
type: integer
description: Represents the first billing cycle of a ramp.
description: Represents the billing cycle where a ramp interval starts.
default: 1
currencies:
type: array
Expand Down Expand Up @@ -21239,7 +21286,7 @@ components:
properties:
starting_billing_cycle:
type: integer
description: Represents how many billing cycles are included in a ramp interval.
description: Represents the billing cycle where a ramp interval starts.
default: 1
unit_amount:
type: integer
Expand All @@ -21250,7 +21297,7 @@ components:
properties:
starting_billing_cycle:
type: integer
description: Represents how many billing cycles are included in a ramp interval.
description: Represents the billing cycle where a ramp interval starts.
remaining_billing_cycles:
type: integer
description: Represents how many billing cycles are left in a ramp interval.
Expand Down
28 changes: 28 additions & 0 deletions recurly/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -459,6 +459,34 @@ def verify_billing_info(self, account_id, **options):
path = self._interpolate_path("/accounts/%s/billing_info/verify", account_id)
return self._make_request("POST", path, body, **options)

def verify_billing_info_cvv(self, account_id, body, **options):
"""Verify an account's credit card billing cvv

Parameters
----------

account_id : str
Account ID or code. For ID no prefix is used e.g. `e28zov4fw0v2`. For code use prefix `code-`, e.g. `code-bob`.
body : dict
The request body. It should follow the schema of BillingInfoVerifyCVV.

Keyword Arguments
-----------------

headers : dict
Extra HTTP headers to send with the request.

Returns
-------

Transaction
Transaction information from verify.
"""
path = self._interpolate_path(
"/accounts/%s/billing_info/verify_cvv", account_id
)
return self._make_request("POST", path, body, **options)

def list_billing_infos(self, account_id, **options):
"""Get the list of billing information associated with an account

Expand Down
4 changes: 2 additions & 2 deletions recurly/resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -2059,7 +2059,7 @@ class SubscriptionRampIntervalResponse(Resource):
remaining_billing_cycles : int
Represents how many billing cycles are left in a ramp interval.
starting_billing_cycle : int
Represents how many billing cycles are included in a ramp interval.
Represents the billing cycle where a ramp interval starts.
unit_amount : int
Represents the price for the ramp interval.
"""
Expand Down Expand Up @@ -2420,7 +2420,7 @@ class PlanRampInterval(Resource):
currencies : :obj:`list` of :obj:`PlanRampPricing`
Represents the price for the ramp interval.
starting_billing_cycle : int
Represents the first billing cycle of a ramp.
Represents the billing cycle where a ramp interval starts.
"""

schema = {
Expand Down