-
Notifications
You must be signed in to change notification settings - Fork 774
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update generated code for v1249 * Update generated code for v1250 * Update generated code for v1252 * Update generated code for v1255 * Update generated code for v1257 * Update generated code for v1259 * Update generated code for v1260 --------- Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Co-authored-by: helenye-stripe <[email protected]>
- Loading branch information
1 parent
272799e
commit d870ffa
Showing
21 changed files
with
277 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
v1246 | ||
v1260 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// File generated from our OpenAPI spec | ||
|
||
import {StripeResource} from '../StripeResource.js'; | ||
const stripeMethod = StripeResource.method; | ||
export const InvoiceRenderingTemplates = StripeResource.extend({ | ||
retrieve: stripeMethod({ | ||
method: 'GET', | ||
fullPath: '/v1/invoice_rendering_templates/{template}', | ||
}), | ||
list: stripeMethod({ | ||
method: 'GET', | ||
fullPath: '/v1/invoice_rendering_templates', | ||
methodType: 'list', | ||
}), | ||
archive: stripeMethod({ | ||
method: 'POST', | ||
fullPath: '/v1/invoice_rendering_templates/{template}/archive', | ||
}), | ||
unarchive: stripeMethod({ | ||
method: 'POST', | ||
fullPath: '/v1/invoice_rendering_templates/{template}/unarchive', | ||
}), | ||
}); |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
// File generated from our OpenAPI spec | ||
|
||
declare module 'stripe' { | ||
namespace Stripe { | ||
/** | ||
* The InvoiceRenderingTemplate object. | ||
*/ | ||
interface InvoiceRenderingTemplate { | ||
/** | ||
* Unique identifier for the object. | ||
*/ | ||
id: string; | ||
|
||
/** | ||
* String representing the object's type. Objects of the same type share the same value. | ||
*/ | ||
object: 'invoice_rendering_template'; | ||
|
||
/** | ||
* Time at which the object was created. Measured in seconds since the Unix epoch. | ||
*/ | ||
created: number; | ||
|
||
/** | ||
* Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode. | ||
*/ | ||
livemode: boolean; | ||
|
||
/** | ||
* Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. | ||
*/ | ||
metadata: Stripe.Metadata | null; | ||
|
||
/** | ||
* A brief description of the template, hidden from customers | ||
*/ | ||
nickname: string | null; | ||
|
||
/** | ||
* The status of the template, one of `active` or `archived`. | ||
*/ | ||
status: InvoiceRenderingTemplate.Status; | ||
|
||
/** | ||
* Version of this template; version increases by one when an update on the template changes any field that controls invoice rendering | ||
*/ | ||
version: number; | ||
} | ||
|
||
namespace InvoiceRenderingTemplate { | ||
type Status = 'active' | 'archived'; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
// File generated from our OpenAPI spec | ||
|
||
declare module 'stripe' { | ||
namespace Stripe { | ||
interface InvoiceRenderingTemplateRetrieveParams { | ||
/** | ||
* Specifies which fields in the response should be expanded. | ||
*/ | ||
expand?: Array<string>; | ||
|
||
version?: number; | ||
} | ||
|
||
interface InvoiceRenderingTemplateListParams extends PaginationParams { | ||
/** | ||
* Specifies which fields in the response should be expanded. | ||
*/ | ||
expand?: Array<string>; | ||
|
||
status?: InvoiceRenderingTemplateListParams.Status; | ||
} | ||
|
||
namespace InvoiceRenderingTemplateListParams { | ||
type Status = 'active' | 'archived'; | ||
} | ||
|
||
interface InvoiceRenderingTemplateArchiveParams { | ||
/** | ||
* Specifies which fields in the response should be expanded. | ||
*/ | ||
expand?: Array<string>; | ||
} | ||
|
||
interface InvoiceRenderingTemplateUnarchiveParams { | ||
/** | ||
* Specifies which fields in the response should be expanded. | ||
*/ | ||
expand?: Array<string>; | ||
} | ||
|
||
class InvoiceRenderingTemplatesResource { | ||
/** | ||
* Retrieves an invoice rendering template with the given ID. It by default returns the latest version of the template. Optionally, specify a version to see previous versions. | ||
*/ | ||
retrieve( | ||
id: string, | ||
params?: InvoiceRenderingTemplateRetrieveParams, | ||
options?: RequestOptions | ||
): Promise<Stripe.Response<Stripe.InvoiceRenderingTemplate>>; | ||
retrieve( | ||
id: string, | ||
options?: RequestOptions | ||
): Promise<Stripe.Response<Stripe.InvoiceRenderingTemplate>>; | ||
|
||
/** | ||
* List all templates, ordered by creation date, with the most recently created template appearing first. | ||
*/ | ||
list( | ||
params?: InvoiceRenderingTemplateListParams, | ||
options?: RequestOptions | ||
): ApiListPromise<Stripe.InvoiceRenderingTemplate>; | ||
list( | ||
options?: RequestOptions | ||
): ApiListPromise<Stripe.InvoiceRenderingTemplate>; | ||
|
||
/** | ||
* Updates the status of an invoice rendering template to ‘archived' so no new Stripe objects (customers, invoices, etc.) can reference it. The template can also no longer be updated. However, if the template is already set on a Stripe object, it will continue to be applied on invoices generated by it. | ||
*/ | ||
archive( | ||
id: string, | ||
params?: InvoiceRenderingTemplateArchiveParams, | ||
options?: RequestOptions | ||
): Promise<Stripe.Response<Stripe.InvoiceRenderingTemplate>>; | ||
archive( | ||
id: string, | ||
options?: RequestOptions | ||
): Promise<Stripe.Response<Stripe.InvoiceRenderingTemplate>>; | ||
|
||
/** | ||
* Unarchive an invoice rendering template so it can be used on new Stripe objects again. | ||
*/ | ||
unarchive( | ||
id: string, | ||
params?: InvoiceRenderingTemplateUnarchiveParams, | ||
options?: RequestOptions | ||
): Promise<Stripe.Response<Stripe.InvoiceRenderingTemplate>>; | ||
unarchive( | ||
id: string, | ||
options?: RequestOptions | ||
): Promise<Stripe.Response<Stripe.InvoiceRenderingTemplate>>; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.