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

API Updates #1646

Merged
merged 1 commit into from
Jan 5, 2023
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
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v216
v217
2 changes: 1 addition & 1 deletion test/resources/generated_examples_test.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ describe('Checkout.Sessions', function() {
});
});

describe('CashBalances', function() {
describe('CashBalance', function() {
it('retrieveCashBalance method', async function() {
const cashBalance = await stripe.customers.retrieveCashBalance('cus_123');
expect(cashBalance).not.to.be.null;
Expand Down
28 changes: 28 additions & 0 deletions types/Issuing/Cardholders.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ declare module 'stripe' {
}

interface Individual {
card_issuing: Individual.CardIssuing | null;

/**
* The date of birth of this cardholder.
*/
Expand All @@ -114,6 +116,32 @@ declare module 'stripe' {
}

namespace Individual {
interface CardIssuing {
/**
* Information about cardholder acceptance of [Authorized User Terms](https://stripe.com/docs/issuing/cards).
*/
user_terms_acceptance: CardIssuing.UserTermsAcceptance | null;
}

namespace CardIssuing {
interface UserTermsAcceptance {
/**
* The Unix timestamp marking when the cardholder accepted the Authorized User Terms.
*/
date: number | null;

/**
* The IP address from which the cardholder accepted the Authorized User Terms.
*/
ip: string | null;

/**
* The user agent of the browser from which the cardholder accepted the Authorized User Terms.
*/
user_agent: string | null;
}
}

interface Dob {
/**
* The day of birth, between 1 and 31.
Expand Down
2 changes: 1 addition & 1 deletion types/PaymentMethods.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ declare module 'stripe' {
networks: Card.Networks | null;

/**
* Contains details on how this Card maybe be used for 3D Secure authentication.
* Contains details on how this Card may be used for 3D Secure authentication.
*/
three_d_secure_usage: Card.ThreeDSecureUsage | null;

Expand Down
2 changes: 1 addition & 1 deletion types/PlansResource.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ declare module 'stripe' {
tax_code?: string;

/**
* A label that represents units of this product in Stripe and on customers' receipts and invoices. When set, this will be included in associated invoice line item descriptions.
* A label that represents units of this product. When set, this will be included in customers' receipts, invoices, Checkout, and the customer portal.
*/
unit_label?: string;
}
Expand Down
2 changes: 1 addition & 1 deletion types/PricesResource.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ declare module 'stripe' {
tax_code?: string;

/**
* A label that represents units of this product in Stripe and on customers' receipts and invoices. When set, this will be included in associated invoice line item descriptions.
* A label that represents units of this product. When set, this will be included in customers' receipts, invoices, Checkout, and the customer portal.
*/
unit_label?: string;
}
Expand Down
2 changes: 1 addition & 1 deletion types/Products.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ declare module 'stripe' {
type: Product.Type;

/**
* A label that represents units of this product in Stripe and on customers' receipts and invoices. When set, this will be included in associated invoice line item descriptions.
* A label that represents units of this product. When set, this will be included in customers' receipts, invoices, Checkout, and the customer portal.
*/
unit_label?: string | null;

Expand Down
4 changes: 2 additions & 2 deletions types/ProductsResource.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ declare module 'stripe' {
type?: ProductCreateParams.Type;

/**
* A label that represents units of this product in Stripe and on customers' receipts and invoices. When set, this will be included in associated invoice line item descriptions.
* A label that represents units of this product. When set, this will be included in customers' receipts, invoices, Checkout, and the customer portal.
*/
unit_label?: string;

Expand Down Expand Up @@ -341,7 +341,7 @@ declare module 'stripe' {
tax_code?: Stripe.Emptyable<string>;

/**
* A label that represents units of this product in Stripe and on customers' receipts and invoices. When set, this will be included in associated invoice line item descriptions. May only be set if `type=service`.
* A label that represents units of this product. When set, this will be included in customers' receipts, invoices, Checkout, and the customer portal. May only be set if `type=service`.
*/
unit_label?: string;

Expand Down
70 changes: 35 additions & 35 deletions types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,17 @@
///<reference path='./OAuth.d.ts' />
///<reference path='./Webhooks.d.ts' />
///<reference path='./UpcomingInvoices.d.ts' />
///<reference path='./AccountsResource.d.ts' />
///<reference path='./AccountLinksResource.d.ts' />
///<reference path='./AccountsResource.d.ts' />
///<reference path='./ApplePayDomainsResource.d.ts' />
///<reference path='./ApplicationFeesResource.d.ts' />
///<reference path='./Apps/SecretsResource.d.ts' />
///<reference path='./BalanceResource.d.ts' />
///<reference path='./BalanceTransactionsResource.d.ts' />
///<reference path='./BillingPortal/ConfigurationsResource.d.ts' />
///<reference path='./BillingPortal/SessionsResource.d.ts' />
///<reference path='./ChargesResource.d.ts' />
///<reference path='./Checkout/SessionsResource.d.ts' />
///<reference path='./CountrySpecsResource.d.ts' />
///<reference path='./CouponsResource.d.ts' />
///<reference path='./CreditNotesResource.d.ts' />
Expand All @@ -23,10 +27,19 @@
///<reference path='./EphemeralKeysResource.d.ts' />
///<reference path='./EventsResource.d.ts' />
///<reference path='./ExchangeRatesResource.d.ts' />
///<reference path='./FilesResource.d.ts' />
///<reference path='./FileLinksResource.d.ts' />
///<reference path='./InvoicesResource.d.ts' />
///<reference path='./FilesResource.d.ts' />
///<reference path='./FinancialConnections/AccountsResource.d.ts' />
///<reference path='./FinancialConnections/SessionsResource.d.ts' />
///<reference path='./Identity/VerificationReportsResource.d.ts' />
///<reference path='./Identity/VerificationSessionsResource.d.ts' />
///<reference path='./InvoiceItemsResource.d.ts' />
///<reference path='./InvoicesResource.d.ts' />
///<reference path='./Issuing/AuthorizationsResource.d.ts' />
///<reference path='./Issuing/CardholdersResource.d.ts' />
///<reference path='./Issuing/CardsResource.d.ts' />
///<reference path='./Issuing/DisputesResource.d.ts' />
///<reference path='./Issuing/TransactionsResource.d.ts' />
///<reference path='./MandatesResource.d.ts' />
///<reference path='./PaymentIntentsResource.d.ts' />
///<reference path='./PaymentLinksResource.d.ts' />
Expand All @@ -37,54 +50,40 @@
///<reference path='./ProductsResource.d.ts' />
///<reference path='./PromotionCodesResource.d.ts' />
///<reference path='./QuotesResource.d.ts' />
///<reference path='./Radar/EarlyFraudWarningsResource.d.ts' />
///<reference path='./Radar/ValueListItemsResource.d.ts' />
///<reference path='./Radar/ValueListsResource.d.ts' />
///<reference path='./RefundsResource.d.ts' />
///<reference path='./Reporting/ReportRunsResource.d.ts' />
///<reference path='./Reporting/ReportTypesResource.d.ts' />
///<reference path='./ReviewsResource.d.ts' />
///<reference path='./SetupAttemptsResource.d.ts' />
///<reference path='./SetupIntentsResource.d.ts' />
///<reference path='./ShippingRatesResource.d.ts' />
///<reference path='./Sigma/ScheduledQueryRunsResource.d.ts' />
///<reference path='./SourcesResource.d.ts' />
///<reference path='./SubscriptionsResource.d.ts' />
///<reference path='./SubscriptionItemsResource.d.ts' />
///<reference path='./SubscriptionSchedulesResource.d.ts' />
///<reference path='./SubscriptionsResource.d.ts' />
///<reference path='./TaxCodesResource.d.ts' />
///<reference path='./TaxRatesResource.d.ts' />
///<reference path='./TokensResource.d.ts' />
///<reference path='./TopupsResource.d.ts' />
///<reference path='./TransfersResource.d.ts' />
///<reference path='./WebhookEndpointsResource.d.ts' />
///<reference path='./Apps/SecretsResource.d.ts' />
///<reference path='./BillingPortal/ConfigurationsResource.d.ts' />
///<reference path='./BillingPortal/SessionsResource.d.ts' />
///<reference path='./Checkout/SessionsResource.d.ts' />
///<reference path='./FinancialConnections/AccountsResource.d.ts' />
///<reference path='./FinancialConnections/SessionsResource.d.ts' />
///<reference path='./Identity/VerificationReportsResource.d.ts' />
///<reference path='./Identity/VerificationSessionsResource.d.ts' />
///<reference path='./Issuing/AuthorizationsResource.d.ts' />
///<reference path='./Issuing/CardsResource.d.ts' />
///<reference path='./Issuing/CardholdersResource.d.ts' />
///<reference path='./Issuing/DisputesResource.d.ts' />
///<reference path='./Issuing/TransactionsResource.d.ts' />
///<reference path='./Radar/EarlyFraudWarningsResource.d.ts' />
///<reference path='./Radar/ValueListsResource.d.ts' />
///<reference path='./Radar/ValueListItemsResource.d.ts' />
///<reference path='./Reporting/ReportRunsResource.d.ts' />
///<reference path='./Reporting/ReportTypesResource.d.ts' />
///<reference path='./Sigma/ScheduledQueryRunsResource.d.ts' />
///<reference path='./Terminal/ConfigurationsResource.d.ts' />
///<reference path='./Terminal/ConnectionTokensResource.d.ts' />
///<reference path='./Terminal/LocationsResource.d.ts' />
///<reference path='./Terminal/ReadersResource.d.ts' />
///<reference path='./TestHelpers/TestClocksResource.d.ts' />
///<reference path='./TestHelpers/CustomersResource.d.ts' />
///<reference path='./TestHelpers/RefundsResource.d.ts' />
///<reference path='./TestHelpers/Issuing/CardsResource.d.ts' />
///<reference path='./TestHelpers/RefundsResource.d.ts' />
///<reference path='./TestHelpers/Terminal/ReadersResource.d.ts' />
///<reference path='./TestHelpers/TestClocksResource.d.ts' />
///<reference path='./TestHelpers/Treasury/InboundTransfersResource.d.ts' />
///<reference path='./TestHelpers/Treasury/OutboundPaymentsResource.d.ts' />
///<reference path='./TestHelpers/Treasury/OutboundTransfersResource.d.ts' />
///<reference path='./TestHelpers/Treasury/ReceivedCreditsResource.d.ts' />
///<reference path='./TestHelpers/Treasury/ReceivedDebitsResource.d.ts' />
///<reference path='./TokensResource.d.ts' />
///<reference path='./TopupsResource.d.ts' />
///<reference path='./TransfersResource.d.ts' />
///<reference path='./Treasury/CreditReversalsResource.d.ts' />
///<reference path='./Treasury/DebitReversalsResource.d.ts' />
///<reference path='./Treasury/FinancialAccountsResource.d.ts' />
Expand All @@ -93,8 +92,9 @@
///<reference path='./Treasury/OutboundTransfersResource.d.ts' />
///<reference path='./Treasury/ReceivedCreditsResource.d.ts' />
///<reference path='./Treasury/ReceivedDebitsResource.d.ts' />
///<reference path='./Treasury/TransactionsResource.d.ts' />
///<reference path='./Treasury/TransactionEntriesResource.d.ts' />
///<reference path='./Treasury/TransactionsResource.d.ts' />
///<reference path='./WebhookEndpointsResource.d.ts' />
///<reference path='./AccountLinks.d.ts' />
///<reference path='./Accounts.d.ts' />
///<reference path='./ApplePayDomains.d.ts' />
Expand Down Expand Up @@ -216,8 +216,8 @@ declare module 'stripe' {
/**
* Top Level Resources
*/
accounts: Stripe.AccountsResource;
accountLinks: Stripe.AccountLinksResource;
accounts: Stripe.AccountsResource;
applePayDomains: Stripe.ApplePayDomainsResource;
applicationFees: Stripe.ApplicationFeesResource;
balance: Stripe.BalanceResource;
Expand All @@ -231,10 +231,10 @@ declare module 'stripe' {
ephemeralKeys: Stripe.EphemeralKeysResource;
events: Stripe.EventsResource;
exchangeRates: Stripe.ExchangeRatesResource;
files: Stripe.FilesResource;
fileLinks: Stripe.FileLinksResource;
invoices: Stripe.InvoicesResource;
files: Stripe.FilesResource;
invoiceItems: Stripe.InvoiceItemsResource;
invoices: Stripe.InvoicesResource;
mandates: Stripe.MandatesResource;
paymentIntents: Stripe.PaymentIntentsResource;
paymentLinks: Stripe.PaymentLinksResource;
Expand All @@ -251,9 +251,9 @@ declare module 'stripe' {
setupIntents: Stripe.SetupIntentsResource;
shippingRates: Stripe.ShippingRatesResource;
sources: Stripe.SourcesResource;
subscriptions: Stripe.SubscriptionsResource;
subscriptionItems: Stripe.SubscriptionItemsResource;
subscriptionSchedules: Stripe.SubscriptionSchedulesResource;
subscriptions: Stripe.SubscriptionsResource;
taxCodes: Stripe.TaxCodesResource;
taxRates: Stripe.TaxRatesResource;
tokens: Stripe.TokensResource;
Expand Down Expand Up @@ -310,9 +310,9 @@ declare module 'stripe' {
readers: Stripe.Terminal.ReadersResource;
};
testHelpers: {
testClocks: Stripe.TestHelpers.TestClocksResource;
customers: Stripe.TestHelpers.CustomersResource;
refunds: Stripe.TestHelpers.RefundsResource;
testClocks: Stripe.TestHelpers.TestClocksResource;
issuing: {
cards: Stripe.TestHelpers.Issuing.CardsResource;
};
Expand Down