Skip to content

Commit f66f5a3

Browse files
Update generated code (#2469)
* Update generated code for v2093 and * Update generated code for v2095 and * Update generated code for v2096 and * Update generated code for v2099 and --------- Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
1 parent 00f0442 commit f66f5a3

File tree

64 files changed

+7698
-78
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+7698
-78
lines changed

API_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0de52cdca31a7c51c6d11187fc88ab23ea3a1c5b
1+
577fcb57736b925392ea563c0284df9002c75ac9

OPENAPI_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v2031
1+
v2099

src/apiVersion.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
// File generated from our OpenAPI spec
22

3-
export const ApiVersion = '2025-09-30.clover';
3+
export const ApiVersion = '2025-10-29.clover';
44
export const ApiMajorVersion = 'clover';

src/resources.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,11 +103,13 @@ export {InvoiceRenderingTemplates} from './resources/InvoiceRenderingTemplates.j
103103
export {Invoices} from './resources/Invoices.js';
104104
export {Mandates} from './resources/Mandates.js';
105105
export {OAuth} from './resources/OAuth.js';
106+
export {PaymentAttemptRecords} from './resources/PaymentAttemptRecords.js';
106107
export {PaymentIntents} from './resources/PaymentIntents.js';
107108
export {PaymentLinks} from './resources/PaymentLinks.js';
108109
export {PaymentMethodConfigurations} from './resources/PaymentMethodConfigurations.js';
109110
export {PaymentMethodDomains} from './resources/PaymentMethodDomains.js';
110111
export {PaymentMethods} from './resources/PaymentMethods.js';
112+
export {PaymentRecords} from './resources/PaymentRecords.js';
111113
export {Payouts} from './resources/Payouts.js';
112114
export {Plans} from './resources/Plans.js';
113115
export {Prices} from './resources/Prices.js';
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// File generated from our OpenAPI spec
2+
3+
import {StripeResource} from '../StripeResource.js';
4+
const stripeMethod = StripeResource.method;
5+
export const PaymentAttemptRecords = StripeResource.extend({
6+
retrieve: stripeMethod({
7+
method: 'GET',
8+
fullPath: '/v1/payment_attempt_records/{id}',
9+
}),
10+
list: stripeMethod({
11+
method: 'GET',
12+
fullPath: '/v1/payment_attempt_records',
13+
methodType: 'list',
14+
}),
15+
});

src/resources/PaymentIntents.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@ export const PaymentIntents = StripeResource.extend({
3737
method: 'POST',
3838
fullPath: '/v1/payment_intents/{intent}/increment_authorization',
3939
}),
40+
listAmountDetailsLineItems: stripeMethod({
41+
method: 'GET',
42+
fullPath: '/v1/payment_intents/{intent}/amount_details_line_items',
43+
methodType: 'list',
44+
}),
4045
search: stripeMethod({
4146
method: 'GET',
4247
fullPath: '/v1/payment_intents/search',

src/resources/PaymentRecords.ts

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
// File generated from our OpenAPI spec
2+
3+
import {StripeResource} from '../StripeResource.js';
4+
const stripeMethod = StripeResource.method;
5+
export const PaymentRecords = StripeResource.extend({
6+
retrieve: stripeMethod({method: 'GET', fullPath: '/v1/payment_records/{id}'}),
7+
reportPayment: stripeMethod({
8+
method: 'POST',
9+
fullPath: '/v1/payment_records/report_payment',
10+
}),
11+
reportPaymentAttempt: stripeMethod({
12+
method: 'POST',
13+
fullPath: '/v1/payment_records/{id}/report_payment_attempt',
14+
}),
15+
reportPaymentAttemptCanceled: stripeMethod({
16+
method: 'POST',
17+
fullPath: '/v1/payment_records/{id}/report_payment_attempt_canceled',
18+
}),
19+
reportPaymentAttemptFailed: stripeMethod({
20+
method: 'POST',
21+
fullPath: '/v1/payment_records/{id}/report_payment_attempt_failed',
22+
}),
23+
reportPaymentAttemptGuaranteed: stripeMethod({
24+
method: 'POST',
25+
fullPath: '/v1/payment_records/{id}/report_payment_attempt_guaranteed',
26+
}),
27+
reportPaymentAttemptInformational: stripeMethod({
28+
method: 'POST',
29+
fullPath: '/v1/payment_records/{id}/report_payment_attempt_informational',
30+
}),
31+
reportRefund: stripeMethod({
32+
method: 'POST',
33+
fullPath: '/v1/payment_records/{id}/report_refund',
34+
}),
35+
});

test/resources/generated_examples_test.spec.js

Lines changed: 3 additions & 5 deletions
Large diffs are not rendered by default.

types/Accounts.d.ts

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -729,6 +729,11 @@ declare module 'stripe' {
729729

730730
registration_date?: Company.RegistrationDate;
731731

732+
/**
733+
* This hash is used to attest that the representative is authorized to act as the representative of their legal entity.
734+
*/
735+
representative_declaration?: Company.RepresentativeDeclaration | null;
736+
732737
/**
733738
* The category identifying the legal structure of the company or legal entity. Also available for accounts where [controller.requirement_collection](https://docs.stripe.com/api/accounts/object#account_object-controller-requirement_collection) is `stripe`. See [Business structure](https://stripe.com/docs/connect/identity-verification#business-structure) for more details.
734739
*/
@@ -885,6 +890,23 @@ declare module 'stripe' {
885890
year: number | null;
886891
}
887892

893+
interface RepresentativeDeclaration {
894+
/**
895+
* The Unix timestamp marking when the representative declaration attestation was made.
896+
*/
897+
date: number | null;
898+
899+
/**
900+
* The IP address from which the representative declaration attestation was made.
901+
*/
902+
ip: string | null;
903+
904+
/**
905+
* The user-agent string from the browser where the representative declaration attestation was made.
906+
*/
907+
user_agent: string | null;
908+
}
909+
888910
type Structure =
889911
| 'free_zone_establishment'
890912
| 'free_zone_llc'

types/AccountsResource.d.ts

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1024,6 +1024,11 @@ declare module 'stripe' {
10241024
*/
10251025
registration_number?: string;
10261026

1027+
/**
1028+
* This hash is used to attest that the representative is authorized to act as the representative of their legal entity.
1029+
*/
1030+
representative_declaration?: Company.RepresentativeDeclaration;
1031+
10271032
/**
10281033
* The category identifying the legal structure of the company or legal entity. See [Business structure](https://docs.stripe.com/connect/identity-verification#business-structure) for more details. Pass an empty string to unset this value.
10291034
*/
@@ -1106,6 +1111,23 @@ declare module 'stripe' {
11061111
year: number;
11071112
}
11081113

1114+
interface RepresentativeDeclaration {
1115+
/**
1116+
* The Unix timestamp marking when the representative declaration attestation was made.
1117+
*/
1118+
date?: number;
1119+
1120+
/**
1121+
* The IP address from which the representative declaration attestation was made.
1122+
*/
1123+
ip?: string;
1124+
1125+
/**
1126+
* The user agent of the browser from which the representative declaration attestation was made.
1127+
*/
1128+
user_agent?: string;
1129+
}
1130+
11091131
type Structure =
11101132
| 'free_zone_establishment'
11111133
| 'free_zone_llc'
@@ -2953,6 +2975,11 @@ declare module 'stripe' {
29532975
*/
29542976
registration_number?: string;
29552977

2978+
/**
2979+
* This hash is used to attest that the representative is authorized to act as the representative of their legal entity.
2980+
*/
2981+
representative_declaration?: Company.RepresentativeDeclaration;
2982+
29562983
/**
29572984
* The category identifying the legal structure of the company or legal entity. See [Business structure](https://docs.stripe.com/connect/identity-verification#business-structure) for more details. Pass an empty string to unset this value.
29582985
*/
@@ -3035,6 +3062,23 @@ declare module 'stripe' {
30353062
year: number;
30363063
}
30373064

3065+
interface RepresentativeDeclaration {
3066+
/**
3067+
* The Unix timestamp marking when the representative declaration attestation was made.
3068+
*/
3069+
date?: number;
3070+
3071+
/**
3072+
* The IP address from which the representative declaration attestation was made.
3073+
*/
3074+
ip?: string;
3075+
3076+
/**
3077+
* The user agent of the browser from which the representative declaration attestation was made.
3078+
*/
3079+
user_agent?: string;
3080+
}
3081+
30383082
type Structure =
30393083
| 'free_zone_establishment'
30403084
| 'free_zone_llc'

0 commit comments

Comments
 (0)