Skip to content

Commit 470227c

Browse files
author
Recurly Integrations
authored
Generated Latest Changes for v2021-02-25
1 parent 52f5cbc commit 470227c

File tree

2 files changed

+72
-0
lines changed

2 files changed

+72
-0
lines changed

openapi/api.yaml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8380,6 +8380,44 @@ paths:
83808380
schema:
83818381
"$ref": "#/components/schemas/Error"
83828382
x-code-samples: []
8383+
post:
8384+
tags:
8385+
- external_invoices
8386+
operationId: create_external_invoice
8387+
summary: Create an external invoice
8388+
requestBody:
8389+
content:
8390+
application/json:
8391+
schema:
8392+
"$ref": "#/components/schemas/ExternalInvoiceCreate"
8393+
required: true
8394+
responses:
8395+
'201':
8396+
description: Returns the external invoice
8397+
content:
8398+
application/json:
8399+
schema:
8400+
"$ref": "#/components/schemas/ExternalInvoice"
8401+
'400':
8402+
description: Bad request; perhaps missing or invalid parameters.
8403+
content:
8404+
application/json:
8405+
schema:
8406+
"$ref": "#/components/schemas/Error"
8407+
'404':
8408+
description: External subscription cannot be completed for the specified
8409+
reason.
8410+
content:
8411+
application/json:
8412+
schema:
8413+
"$ref": "#/components/schemas/Error"
8414+
default:
8415+
description: Unexpected error.
8416+
content:
8417+
application/json:
8418+
schema:
8419+
"$ref": "#/components/schemas/Error"
8420+
x-code-samples: []
83838421
"/invoices":
83848422
get:
83858423
tags:
@@ -18948,6 +18986,12 @@ components:
1894818986
description: Represents the card network preference associated with the
1894918987
billing info for dual badged cards. Must be a supported card network.
1895018988
"$ref": "#/components/schemas/CardNetworkEnum"
18989+
return_url:
18990+
type: string
18991+
title: Return URL
18992+
description: Specifies a URL to which a consumer will be redirected upon
18993+
completion of a redirect payment flow. Only redirect payment flows operating
18994+
through Adyen Components will utilize this return URL.
1895118995
BillingInfoVerify:
1895218996
type: object
1895318997
properties:

recurly/client.py

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2979,6 +2979,34 @@ def list_external_subscription_external_invoices(
29792979
)
29802980
return Pager(self, path, **options)
29812981

2982+
def create_external_invoice(self, external_subscription_id, body, **options):
2983+
"""Create an external invoice
2984+
2985+
Parameters
2986+
----------
2987+
2988+
external_subscription_id : str
2989+
External subscription id
2990+
body : dict
2991+
The request body. It should follow the schema of ExternalInvoiceCreate.
2992+
2993+
Keyword Arguments
2994+
-----------------
2995+
2996+
headers : dict
2997+
Extra HTTP headers to send with the request.
2998+
2999+
Returns
3000+
-------
3001+
3002+
ExternalInvoice
3003+
Returns the external invoice
3004+
"""
3005+
path = self._interpolate_path(
3006+
"/external_subscriptions/%s/external_invoices", external_subscription_id
3007+
)
3008+
return self._make_request("POST", path, body, **options)
3009+
29823010
def list_invoices(self, **options):
29833011
"""List a site's invoices
29843012

0 commit comments

Comments
 (0)