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

Update generated code for beta #2065

Merged
merged 24 commits into from
Apr 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
8a9bb6a
Update generated code for v952
stripe-openapi[bot] Apr 12, 2024
66d45d5
Update generated code for v953
stripe-openapi[bot] Apr 12, 2024
7ac643f
Update generated code for v955
stripe-openapi[bot] Apr 13, 2024
2af3096
Update generated code for v956
stripe-openapi[bot] Apr 15, 2024
a77ba5d
Update generated code for v957
stripe-openapi[bot] Apr 15, 2024
55f921a
Update generated code for v958
stripe-openapi[bot] Apr 15, 2024
076d6fe
Update generated code for v959
stripe-openapi[bot] Apr 15, 2024
91586d2
Update generated code for v960
stripe-openapi[bot] Apr 15, 2024
2b0c3a8
Update generated code for v961
stripe-openapi[bot] Apr 15, 2024
ab2175d
Update generated code for v961
stripe-openapi[bot] Apr 15, 2024
389442f
Update generated code (#2064)
stripe-openapi[bot] Apr 16, 2024
b4f1a3c
Bump version to 15.2.0
ramya-stripe Apr 16, 2024
3dae50d
Merge upstream and update generated code for v962
stripe-openapi[bot] Apr 16, 2024
ddba465
Update generated code for v963
stripe-openapi[bot] Apr 17, 2024
1a000b5
Update generated code for v964
stripe-openapi[bot] Apr 17, 2024
3123d44
Update generated code for v965
stripe-openapi[bot] Apr 17, 2024
2bf399c
Update generated code for v966
stripe-openapi[bot] Apr 17, 2024
5688fb6
Update generated code for v967
stripe-openapi[bot] Apr 17, 2024
3028293
Update generated code for v968
stripe-openapi[bot] Apr 18, 2024
7b9aec5
Update generated code for v969
stripe-openapi[bot] Apr 18, 2024
74f23f5
Updated cloudflare wrangler in testProject to 3.50.0 (#2067)
prathmesh-stripe Apr 18, 2024
b3a6b7a
Merge upstream and update generated code for v970
stripe-openapi[bot] Apr 18, 2024
6666ba1
Update generated code for v971
stripe-openapi[bot] Apr 18, 2024
17d6299
Update generated code for v972
stripe-openapi[bot] Apr 18, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# Changelog

## 15.2.0 - 2024-04-16
* [#2064](https://github.com/stripe/stripe-node/pull/2064) Update generated code
* Add support for new resource `Entitlements.ActiveEntitlementSummary`
* Add support for `balances` and `payouts_list` on `AccountSession.components` and `AccountSessionCreateParams.components`
* Change `AccountSession.components.payment_details.features.destination_on_behalf_of_charge_management` and `AccountSession.components.payments.features.destination_on_behalf_of_charge_management` to be required
* Change `Billing.MeterEventCreateParams.timestamp` and `Dispute.payment_method_details.card` to be optional
* Change type of `Dispute.payment_method_details.card` from `DisputePaymentMethodDetailsCard | null` to `DisputePaymentMethodDetailsCard`
* Add support for new value `entitlements.active_entitlement_summary.updated` on enum `Event.type`
* Remove support for `config` on `Forwarding.RequestCreateParams` and `Forwarding.Request`. This field is no longer used by the Forwarding Request API.
* Add support for `capture_method` on `PaymentIntent.payment_method_options.revolut_pay`, `PaymentIntentConfirmParams.payment_method_options.revolut_pay`, `PaymentIntentCreateParams.payment_method_options.revolut_pay`, and `PaymentIntentUpdateParams.payment_method_options.revolut_pay`
* Add support for `swish` on `PaymentMethodConfigurationCreateParams`, `PaymentMethodConfigurationUpdateParams`, and `PaymentMethodConfiguration`
* Add support for new value `entitlements.active_entitlement_summary.updated` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]`

## 15.2.0-beta.1 - 2024-04-11
* [#2058](https://github.com/stripe/stripe-node/pull/2058) Update generated code for beta
* Add support for `retrieve` method on resources `Entitlements.ActiveEntitlement` and `Entitlements.Feature`
Expand Down
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v951
v972
2 changes: 1 addition & 1 deletion src/apiVersion.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// File generated from our OpenAPI spec

export const ApiVersion = '2024-04-10';
export const PreviewVersion = '2024-03-20.preview-v2';
export const PreviewVersion = '2024-04-11.preview-v2';
2 changes: 1 addition & 1 deletion testProjects/cloudflare-pages/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@
"stripe": "file:../../"
},
"devDependencies": {
"wrangler": "^2.9.0"
"wrangler": "^3.50.0"
}
}
4 changes: 2 additions & 2 deletions testProjects/cloudflare-worker/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "",
"main": "./src/index.js",
"scripts": {
"build": "wrangler publish --dry-run"
"build": "wrangler deploy --dry-run"
},
"keywords": [],
"author": "",
Expand All @@ -13,6 +13,6 @@
"stripe": "file:../../"
},
"devDependencies": {
"wrangler": "^2.9.0"
"wrangler": "^3.50.0"
}
}
49 changes: 47 additions & 2 deletions types/AccountSessions.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ declare module 'stripe' {

account_onboarding: Components.AccountOnboarding;

balances: Components.Balances;

capital_financing_promotion?: Components.CapitalFinancingPromotion | null;

documents: Components.Documents;
Expand All @@ -61,6 +63,8 @@ declare module 'stripe' {
payments: Components.Payments;

payouts: Components.Payouts;

payouts_list: Components.PayoutsList;
}

namespace Components {
Expand Down Expand Up @@ -100,6 +104,34 @@ declare module 'stripe' {
}
}

interface Balances {
/**
* Whether the embedded component is enabled.
*/
enabled: boolean;

features: Balances.Features;
}

namespace Balances {
interface Features {
/**
* Whether to allow payout schedule to be changed. Default `true` when Stripe owns Loss Liability, default `false` otherwise.
*/
edit_payout_schedule: boolean;

/**
* Whether to allow creation of instant payouts. Default `true` when Stripe owns Loss Liability, default `false` otherwise.
*/
instant_payouts: boolean;

/**
* Whether to allow creation of standard payouts. Default `true` when Stripe owns Loss Liability, default `false` otherwise.
*/
standard_payouts: boolean;
}
}

interface CapitalFinancingPromotion {
/**
* Whether the embedded component is enabled.
Expand Down Expand Up @@ -163,7 +195,7 @@ declare module 'stripe' {
/**
* Whether to allow connected accounts to manage destination charges that are created on behalf of them. This is `false` by default.
*/
destination_on_behalf_of_charge_management?: boolean;
destination_on_behalf_of_charge_management: boolean;

/**
* Whether to allow responding to disputes, including submitting evidence and accepting disputes. This is `true` by default.
Expand Down Expand Up @@ -196,7 +228,7 @@ declare module 'stripe' {
/**
* Whether to allow connected accounts to manage destination charges that are created on behalf of them. This is `false` by default.
*/
destination_on_behalf_of_charge_management?: boolean;
destination_on_behalf_of_charge_management: boolean;

/**
* Whether to allow responding to disputes, including submitting evidence and accepting disputes. This is `true` by default.
Expand Down Expand Up @@ -237,6 +269,19 @@ declare module 'stripe' {
standard_payouts: boolean;
}
}

interface PayoutsList {
/**
* Whether the embedded component is enabled.
*/
enabled: boolean;

features: PayoutsList.Features;
}

namespace PayoutsList {
interface Features {}
}
}
}
}
Expand Down
125 changes: 125 additions & 0 deletions types/AccountSessionsResource.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,18 @@ declare module 'stripe' {
*/
account_onboarding?: Components.AccountOnboarding;

/**
* Configuration for the balances embedded component.
*/
balances?: Components.Balances;

capital_financing_promotion?: Components.CapitalFinancingPromotion;

/**
* Configuration for the capital overview embedded component.
*/
capital_overview?: Components.CapitalOverview;

/**
* Configuration for the documents embedded component.
*/
Expand Down Expand Up @@ -77,6 +87,21 @@ declare module 'stripe' {
* Configuration for the payouts embedded component.
*/
payouts?: Components.Payouts;

/**
* Configuration for the payouts list embedded component.
*/
payouts_list?: Components.PayoutsList;

/**
* Configuration for the tax registrations embedded component.
*/
tax_registrations?: Components.TaxRegistrations;

/**
* Configuration for the tax settings embedded component.
*/
tax_settings?: Components.TaxSettings;
}

namespace Components {
Expand Down Expand Up @@ -122,6 +147,37 @@ declare module 'stripe' {
}
}

interface Balances {
/**
* Whether the embedded component is enabled.
*/
enabled: boolean;

/**
* The list of features enabled in the embedded component.
*/
features?: Balances.Features;
}

namespace Balances {
interface Features {
/**
* Whether to allow payout schedule to be changed. Default `true` when Stripe owns Loss Liability, default `false` otherwise.
*/
edit_payout_schedule?: boolean;

/**
* Whether to allow creation of instant payouts. Default `true` when Stripe owns Loss Liability, default `false` otherwise.
*/
instant_payouts?: boolean;

/**
* Whether to allow creation of standard payouts. Default `true` when Stripe owns Loss Liability, default `false` otherwise.
*/
standard_payouts?: boolean;
}
}

interface CapitalFinancingPromotion {
/**
* Whether the embedded component is enabled.
Expand All @@ -138,6 +194,22 @@ declare module 'stripe' {
interface Features {}
}

interface CapitalOverview {
/**
* Whether the embedded component is enabled.
*/
enabled: boolean;

/**
* The list of features enabled in the embedded component.
*/
features?: CapitalOverview.Features;
}

namespace CapitalOverview {
interface Features {}
}

interface Documents {
/**
* Whether the embedded component is enabled.
Expand Down Expand Up @@ -165,6 +237,11 @@ declare module 'stripe' {

namespace FinancialAccount {
interface Features {
/**
* Whether to allow external accounts to be linked for money transfer.
*/
external_account_collection?: boolean;

/**
* Whether to allow money movement features.
*/
Expand Down Expand Up @@ -355,6 +432,54 @@ declare module 'stripe' {
standard_payouts?: boolean;
}
}

interface PayoutsList {
/**
* Whether the embedded component is enabled.
*/
enabled: boolean;

/**
* The list of features enabled in the embedded component.
*/
features?: PayoutsList.Features;
}

namespace PayoutsList {
interface Features {}
}

interface TaxRegistrations {
/**
* Whether the embedded component is enabled.
*/
enabled: boolean;

/**
* The list of features enabled in the embedded component.
*/
features?: TaxRegistrations.Features;
}

namespace TaxRegistrations {
interface Features {}
}

interface TaxSettings {
/**
* Whether the embedded component is enabled.
*/
enabled: boolean;

/**
* The list of features enabled in the embedded component.
*/
features?: TaxSettings.Features;
}

namespace TaxSettings {
interface Features {}
}
}
}

Expand Down
8 changes: 4 additions & 4 deletions types/Billing/MeterEventSummaries.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ declare module 'stripe' {
object: 'billing.meter_event_summary';

/**
* Aggregated value of all the events within start_time (inclusive) and end_time (inclusive). The aggregation strategy is defined on meter via `default_aggregation``.
* Aggregated value of all the events within `start_time` (inclusive) and `end_time` (inclusive). The aggregation strategy is defined on meter via `default_aggregation`.
*/
aggregated_value: number;

/**
* End timestamp for this usage summary (inclusive).
* End timestamp for this event summary (inclusive).
*/
end_time: number;

Expand All @@ -34,12 +34,12 @@ declare module 'stripe' {
livemode: boolean;

/**
* The meter associated with this usage summary.
* The meter associated with this event summary.
*/
meter: string;

/**
* Start timestamp for this usage summary (inclusive).
* Start timestamp for this event summary (inclusive).
*/
start_time: number;
}
Expand Down
2 changes: 1 addition & 1 deletion types/Billing/MeterEvents.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ declare module 'stripe' {
livemode: boolean;

/**
* The payload of the event.
* The payload of the event. This contains the fields corresponding to a meter's `customer_mapping.event_payload_key` (default is `stripe_customer_id`) and `value_settings.event_payload_key` (default is `value`). Read more about the [payload](https://stripe.com/docs/billing/subscriptions/usage-based/recording-usage#payload-key-overrides).
*/
payload: {
[key: string]: string;
Expand Down
12 changes: 6 additions & 6 deletions types/Billing/MeterEventsResource.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,12 @@ declare module 'stripe' {
event_name: string;

/**
* The payload of the event. This must contain a field with the event's numerical value and a field to map the event to a customer.
* The payload of the event. This must contain the fields corresponding to a meter's `customer_mapping.event_payload_key` (default is `stripe_customer_id`) and `value_settings.event_payload_key` (default is `value`). Read more about the [payload](https://docs.stripe.com/billing/subscriptions/usage-based/recording-usage#payload-key-overrides).
*/
payload: {
[key: string]: string;
};

/**
* The time of the event. Measured in seconds since the Unix epoch.
*/
timestamp: number;

/**
* Specifies which fields in the response should be expanded.
*/
Expand All @@ -30,6 +25,11 @@ declare module 'stripe' {
* A unique identifier for the event. If not provided, one will be generated. We recommend using a globally unique identifier for this. We'll enforce uniqueness within a rolling 24 hour period.
*/
identifier?: string;

/**
* The time of the event. Measured in seconds since the Unix epoch. Must be within the past 35 calendar days or up to 5 minutes in the future. Defaults to current timestamp if not specified.
*/
timestamp?: number;
}

class MeterEventsResource {
Expand Down