Skip to content

Commit

Permalink
Merge pull request #1919 from stripe/latest-codegen-beta
Browse files Browse the repository at this point in the history
Update generated code for beta
  • Loading branch information
stripe-openapi[bot] authored Oct 11, 2023
2 parents bf88f44 + 526ddb7 commit a754a73
Show file tree
Hide file tree
Showing 48 changed files with 2,159 additions and 373 deletions.
26 changes: 26 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# Changelog

## 13.10.0 - 2023-10-11
* [#1920](https://github.com/stripe/stripe-node/pull/1920) Update generated code
* Add support for `redirect_on_completion`, `return_url`, and `ui_mode` on `Checkout.SessionCreateParams` and `Checkout.Session`
* Change `Checkout.Session.custom_fields[].dropdown`, `Checkout.Session.custom_fields[].numeric`, `Checkout.Session.custom_fields[].text`, `Checkout.SessionCreateParams.success_url`, `PaymentLink.custom_fields[].dropdown`, `PaymentLink.custom_fields[].numeric`, and `PaymentLink.custom_fields[].text` to be optional
* Add support for `client_secret` on `Checkout.Session`
* Change type of `Checkout.Session.custom_fields[].dropdown` from `PaymentPagesCheckoutSessionCustomFieldsDropdown | null` to `PaymentPagesCheckoutSessionCustomFieldsDropdown`
* Change type of `Checkout.Session.custom_fields[].numeric` and `Checkout.Session.custom_fields[].text` from `PaymentPagesCheckoutSessionCustomFieldsNumeric | null` to `PaymentPagesCheckoutSessionCustomFieldsNumeric`
* Add support for `postal_code` on `Issuing.Authorization.verification_data`
* Change type of `PaymentLink.custom_fields[].dropdown` from `PaymentLinksResourceCustomFieldsDropdown | null` to `PaymentLinksResourceCustomFieldsDropdown`
* Change type of `PaymentLink.custom_fields[].numeric` and `PaymentLink.custom_fields[].text` from `PaymentLinksResourceCustomFieldsNumeric | null` to `PaymentLinksResourceCustomFieldsNumeric`
* Add support for `offline` on `Terminal.ConfigurationCreateParams`, `Terminal.ConfigurationUpdateParams`, and `Terminal.Configuration`
* [#1914](https://github.com/stripe/stripe-node/pull/1914) Bump get-func-name from 2.0.0 to 2.0.2

## 13.10.0-beta.1 - 2023-10-05
* [#1917](https://github.com/stripe/stripe-node/pull/1917) Update generated code for beta
* Add support for `mark_draft` and `mark_stale` methods on resource `Quote`
Expand All @@ -10,6 +23,19 @@
* Add support for `personalization_design` on `Issuing.CardListParams`
* Add support for `allow_backdated_lines` on `QuoteCreateParams`, `QuoteUpdateParams`, and `Quote`

## 13.9.0 - 2023-10-05
* [#1916](https://github.com/stripe/stripe-node/pull/1916) Update generated code
* Add support for new resource `Issuing.Token`
* Add support for `list`, `retrieve`, and `update` methods on resource `Token`
* Add support for `amount_authorized`, `extended_authorization`, `incremental_authorization`, `multicapture`, and `overcapture` on `Charge.payment_method_details.card`
* Add support for `token` on `Issuing.Authorization` and `Issuing.Transaction`
* Add support for `authorization_code` on `Issuing.Authorization.request_history[]`
* Add support for `request_extended_authorization`, `request_multicapture`, and `request_overcapture` on `PaymentIntent.payment_method_options.card`, `PaymentIntentConfirmParams.payment_method_options.card`, `PaymentIntentCreateParams.payment_method_options.card`, and `PaymentIntentUpdateParams.payment_method_options.card`
* Add support for `request_incremental_authorization` on `PaymentIntent.payment_method_options.card`, `PaymentIntentConfirmParams.payment_method_options.card_present`, `PaymentIntentConfirmParams.payment_method_options.card`, `PaymentIntentCreateParams.payment_method_options.card_present`, `PaymentIntentCreateParams.payment_method_options.card`, `PaymentIntentUpdateParams.payment_method_options.card_present`, and `PaymentIntentUpdateParams.payment_method_options.card`
* Add support for `final_capture` on `PaymentIntentCaptureParams`
* Add support for `metadata` on `PaymentLink.payment_intent_data`, `PaymentLink.subscription_data`, `PaymentLinkCreateParams.payment_intent_data`, and `PaymentLinkCreateParams.subscription_data`
* Add support for `statement_descriptor_suffix` and `statement_descriptor` on `PaymentLink.payment_intent_data` and `PaymentLinkCreateParams.payment_intent_data`
* Add support for `payment_intent_data` and `subscription_data` on `PaymentLinkUpdateParams`

## 13.9.0-beta.1 - 2023-09-28
* [#1910](https://github.com/stripe/stripe-node/pull/1910) Update generated code for beta
Expand Down
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v582
v597
3 changes: 3 additions & 0 deletions src/resources.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import {Configurations as BillingPortalConfigurations} from './resources/Billing
import {Configurations as TerminalConfigurations} from './resources/Terminal/Configurations.js';
import {ConnectionTokens as TerminalConnectionTokens} from './resources/Terminal/ConnectionTokens.js';
import {CreditReversals as TreasuryCreditReversals} from './resources/Treasury/CreditReversals.js';
import {CreditUnderwritingRecords as IssuingCreditUnderwritingRecords} from './resources/Issuing/CreditUnderwritingRecords.js';
import {Customers as TestHelpersCustomers} from './resources/TestHelpers/Customers.js';
import {DebitReversals as TreasuryDebitReversals} from './resources/Treasury/DebitReversals.js';
import {Disputes as IssuingDisputes} from './resources/Issuing/Disputes.js';
Expand Down Expand Up @@ -63,6 +64,7 @@ import {VerificationReports as IdentityVerificationReports} from './resources/Id
import {VerificationSessions as IdentityVerificationSessions} from './resources/Identity/VerificationSessions.js';
export {Accounts as Account} from './resources/Accounts.js';
export {AccountLinks} from './resources/AccountLinks.js';
export {AccountNotices} from './resources/AccountNotices.js';
export {AccountSessions} from './resources/AccountSessions.js';
export {Accounts} from './resources/Accounts.js';
export {ApplePayDomains} from './resources/ApplePayDomains.js';
Expand Down Expand Up @@ -144,6 +146,7 @@ export const Issuing = resourceNamespace('issuing', {
Authorizations: IssuingAuthorizations,
Cardholders: IssuingCardholders,
Cards: IssuingCards,
CreditUnderwritingRecords: IssuingCreditUnderwritingRecords,
Disputes: IssuingDisputes,
PersonalizationDesigns: IssuingPersonalizationDesigns,
PhysicalBundles: IssuingPhysicalBundles,
Expand Down
19 changes: 19 additions & 0 deletions src/resources/AccountNotices.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
// File generated from our OpenAPI spec

import {StripeResource} from '../StripeResource.js';
const stripeMethod = StripeResource.method;
export const AccountNotices = StripeResource.extend({
retrieve: stripeMethod({
method: 'GET',
fullPath: '/v1/account_notices/{account_notice}',
}),
update: stripeMethod({
method: 'POST',
fullPath: '/v1/account_notices/{account_notice}',
}),
list: stripeMethod({
method: 'GET',
fullPath: '/v1/account_notices',
methodType: 'list',
}),
});
35 changes: 35 additions & 0 deletions src/resources/Issuing/CreditUnderwritingRecords.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
// File generated from our OpenAPI spec

import {StripeResource} from '../../StripeResource.js';
const stripeMethod = StripeResource.method;
export const CreditUnderwritingRecords = StripeResource.extend({
retrieve: stripeMethod({
method: 'GET',
fullPath:
'/v1/issuing/credit_underwriting_records/{credit_underwriting_record}',
}),
list: stripeMethod({
method: 'GET',
fullPath: '/v1/issuing/credit_underwriting_records',
methodType: 'list',
}),
correct: stripeMethod({
method: 'POST',
fullPath:
'/v1/issuing/credit_underwriting_records/{credit_underwriting_record}/correct',
}),
createFromApplication: stripeMethod({
method: 'POST',
fullPath: '/v1/issuing/credit_underwriting_records/create_from_application',
}),
createFromProactiveReview: stripeMethod({
method: 'POST',
fullPath:
'/v1/issuing/credit_underwriting_records/create_from_proactive_review',
}),
reportDecision: stripeMethod({
method: 'POST',
fullPath:
'/v1/issuing/credit_underwriting_records/{credit_underwriting_record}/report_decision',
}),
});
110 changes: 110 additions & 0 deletions types/AccountNotices.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
// File generated from our OpenAPI spec

declare module 'stripe' {
namespace Stripe {
/**
* A notice to a Connected account. Notice can be sent by Stripe on your behalf or you can opt to send the notices yourself.
*
* See the [guide to send notices](https://stripe.com/docs/issuing/compliance-us/issuing-regulated-customer-notices) to your connected accounts.
*/
interface AccountNotice {
/**
* Unique identifier for the object.
*/
id: string;

/**
* String representing the object's type. Objects of the same type share the same value.
*/
object: 'account_notice';

/**
* Time at which the object was created. Measured in seconds since the Unix epoch.
*/
created: number;

/**
* When present, the deadline for sending the notice to meet the relevant regulations.
*/
deadline: number | null;

/**
* Information about the email when sent.
*/
email: AccountNotice.Email | null;

/**
* Information about objects related to the notice.
*/
linked_objects: AccountNotice.LinkedObjects | null;

/**
* 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;

/**
* Reason the notice is being sent. The reason determines what copy the notice must contain. See the [regulated customer notices](https://stripe.com/docs/issuing/compliance-us/issuing-regulated-customer-notices) guide. All reasons might not apply to your integration, and Stripe might add new reasons in the future, so we recommend an internal warning when you receive an unknown reason.
*/
reason: AccountNotice.Reason;

/**
* Date when the notice was sent. When absent, you must send the notice, update the content of the email and date when it was sent.
*/
sent_at: number | null;
}

namespace AccountNotice {
interface Email {
/**
* Content of the email in plain text. The copy must match exactly the language that Stripe Compliance has approved for use.
*/
plain_text: string;

/**
* Email address of the recipient.
*/
recipient: string;

/**
* Subject of the email.
*/
subject: string;
}

interface LinkedObjects {
/**
* Associated [Capability](https://stripe.com/docs/api/capabilities)
*/
capability: string | null;

/**
* Associated [Credit Underwriting Record](https://stripe.com/docs/api/issuing/credit_underwriting_record)
*/
issuing_credit_underwriting_record?: string | null;

/**
* Associated [Issuing Dispute](https://stripe.com/docs/api/issuing/disputes)
*/
issuing_dispute: string | null;
}

type Reason =
| 'issuing.account_closed_for_inactivity'
| 'issuing.account_closed_for_terms_of_service_violation'
| 'issuing.application_rejected_for_failure_to_verify'
| 'issuing.credit_application_rejected'
| 'issuing.credit_increase_application_rejected'
| 'issuing.credit_limit_decreased'
| 'issuing.credit_line_closed'
| 'issuing.dispute_lost'
| 'issuing.dispute_submitted'
| 'issuing.dispute_won';
}
}
}
98 changes: 98 additions & 0 deletions types/AccountNoticesResource.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
// File generated from our OpenAPI spec

declare module 'stripe' {
namespace Stripe {
interface AccountNoticeRetrieveParams {
/**
* Specifies which fields in the response should be expanded.
*/
expand?: Array<string>;
}

interface AccountNoticeUpdateParams {
/**
* Information about the email you sent.
*/
email: AccountNoticeUpdateParams.Email;

/**
* Date when you sent the notice.
*/
sent_at: number;

/**
* Specifies which fields in the response should be expanded.
*/
expand?: Array<string>;

/**
* 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. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
*/
metadata?: Stripe.MetadataParam;
}

namespace AccountNoticeUpdateParams {
interface Email {
/**
* Content of the email in plain text. The copy must match exactly the language that Stripe Compliance has approved for use.
*/
plain_text: string;

/**
* Email address of the recipient.
*/
recipient: string;

/**
* Subject of the email.
*/
subject: string;
}
}

interface AccountNoticeListParams extends PaginationParams {
/**
* Specifies which fields in the response should be expanded.
*/
expand?: Array<string>;

/**
* Set to false to only return unsent AccountNotices.
*/
sent?: boolean;
}

class AccountNoticesResource {
/**
* Retrieves an AccountNotice object.
*/
retrieve(
id: string,
params?: AccountNoticeRetrieveParams,
options?: RequestOptions
): Promise<Stripe.Response<Stripe.AccountNotice>>;
retrieve(
id: string,
options?: RequestOptions
): Promise<Stripe.Response<Stripe.AccountNotice>>;

/**
* Updates an AccountNotice object.
*/
update(
id: string,
params: AccountNoticeUpdateParams,
options?: RequestOptions
): Promise<Stripe.Response<Stripe.AccountNotice>>;

/**
* Retrieves a list of AccountNotice objects. The objects are sorted in descending order by creation date, with the most-recently-created object appearing first.
*/
list(
params?: AccountNoticeListParams,
options?: RequestOptions
): ApiListPromise<Stripe.AccountNotice>;
list(options?: RequestOptions): ApiListPromise<Stripe.AccountNotice>;
}
}
}
2 changes: 1 addition & 1 deletion types/BalanceTransactions.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ declare module 'stripe' {
net: number;

/**
* Learn more about how [reporting categories] (https://stripe.com/docs/reports/reporting-categories) can help you understand balance transactions from an accounting perspective.
* Learn more about how [reporting categories](https://stripe.com/docs/reports/reporting-categories) can help you understand balance transactions from an accounting perspective.
*/
reporting_category: string;

Expand Down
Loading

0 comments on commit a754a73

Please sign in to comment.