@stacksjs/payments 0.70.73 → 0.70.75

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6,7 +6,7 @@ export declare interface ManageCustomer {
6
6
  stripeId: (user: UserModel) => string
7
7
  hasStripeId: (user: UserModel) => boolean
8
8
  createStripeCustomer: (user: UserModel, options: Stripe.CustomerCreateParams) => Promise<Stripe.Response<Stripe.Customer>>
9
- updateStripeCustomer: (user: UserModel, options: Stripe.CustomerCreateParams) => Promise<Stripe.Response<Stripe.Customer>>
9
+ updateStripeCustomer: (user: UserModel, options: Stripe.CustomerUpdateParams) => Promise<Stripe.Response<Stripe.Customer>>
10
10
  createOrGetStripeUser: (user: UserModel, options: Stripe.CustomerCreateParams) => Promise<Stripe.Response<Stripe.Customer>>
11
11
  retrieveStripeUser: (user: UserModel) => Promise<Stripe.Response<Stripe.Customer> | undefined>
12
12
  createOrUpdateStripeUser: (user: UserModel, options: Stripe.CustomerCreateParams) => Promise<Stripe.Response<Stripe.Customer>>
@@ -103,7 +103,23 @@ export declare function getCharge(event: Stripe.Event): Stripe.Charge | null;
103
103
  export declare function getCustomer(event: Stripe.Event): Stripe.Customer | null;
104
104
  declare const handlers: Map<WebhookEventType, WebhookHandler[]>;
105
105
  export declare const manageWebhook: {
106
-
106
+ onWebhookEvent: typeof onWebhookEvent;
107
+ registerWebhookHandlers: typeof registerWebhookHandlers;
108
+ constructEvent: typeof constructEvent;
109
+ constructEventAsync: typeof constructEventAsync;
110
+ handleWebhookEvent: typeof handleWebhookEvent;
111
+ processWebhook: typeof processWebhook;
112
+ onPaymentIntent: typeof onPaymentIntent;
113
+ onSubscription: typeof onSubscription;
114
+ onInvoice: typeof onInvoice;
115
+ onCheckout: typeof onCheckout;
116
+ onCharge: typeof onCharge;
117
+ getPaymentIntent: typeof getPaymentIntent;
118
+ getSubscription: typeof getSubscription;
119
+ getInvoice: typeof getInvoice;
120
+ getCheckoutSession: typeof getCheckoutSession;
121
+ getCharge: typeof getCharge;
122
+ getCustomer: typeof getCustomer
107
123
  };
108
124
  export declare interface WebhookConfig {
109
125
  secret: string
package/dist/index.js CHANGED
@@ -9,4 +9,4 @@ Signature verification is impossible without access to the original signed mater
9
9
  If a webhook request is being forwarded by a third-party tool, ensure that the exact request body, including JSON formatting and new line style, is preserved.
10
10
  `+b+`
11
11
  `+I})}let f=Math.floor((typeof O==="number"?O:Date.now())/1000)-W.timestamp;if(L>0&&f>L)throw new n.StripeSignatureVerificationError(V,Y,{message:"Timestamp outside the tolerance zone"});return!0}function w(Y,V){if(typeof Y!=="string")return null;return Y.split(",").reduce((W,D)=>{let L=D.split("=");if(L[0]==="t")W.timestamp=parseInt(L[1],10);if(L[0]===V)W.signatures.push(L[1]);return W},{timestamp:-1,signatures:[]})}let X=null;function K(){if(!X)X=J.createDefaultCryptoProvider();return X}function T(Y){if(!Y)throw new n.StripeError({message:"Options are required"});let V=Math.floor(Y.timestamp)||Math.floor(Date.now()/1000),W=Y.scheme||$.EXPECTED_SCHEME,D=Y.cryptoProvider||K(),L=`${V}.${Y.payload}`;return{...Y,timestamp:V,scheme:W,cryptoProvider:D,payloadString:L,generateHeaderString:(q)=>{return`t=${V},${W}=${q}`}}}return Z.signature=$,Z}X$.createWebhooks=_w});var V$=B((U$)=>{Object.defineProperty(U$,"__esModule",{value:!0});U$.ApiMajorVersion=U$.ApiVersion=void 0;U$.ApiVersion="2026-03-25.dahlia";U$.ApiMajorVersion="dahlia"});var T$=B((W$)=>{Object.defineProperty(W$,"__esModule",{value:!0});W$.resourceNamespace=void 0;function hw(J,Z){for(let $ in Z){if(!Object.prototype.hasOwnProperty.call(Z,$))continue;let Q=$[0].toLowerCase()+$.substring(1),G=new Z[$](J);this[Q]=G}}function lw(J,Z){return function($){return new hw($,Z)}}W$.resourceNamespace=lw});var q$=B((H$)=>{Object.defineProperty(H$,"__esModule",{value:!0});H$.AccountLinks=void 0;var N$=U(),uw=N$.StripeResource.method;H$.AccountLinks=N$.StripeResource.extend({create:uw({method:"POST",fullPath:"/v2/core/account_links"})})});var C$=B((k$)=>{Object.defineProperty(k$,"__esModule",{value:!0});k$.AccountTokens=void 0;var O$=U(),E$=O$.StripeResource.method;k$.AccountTokens=O$.StripeResource.extend({create:E$({method:"POST",fullPath:"/v2/core/account_tokens",requestSchema:{kind:"object",fields:{identity:{kind:"object",fields:{individual:{kind:"object",fields:{relationship:{kind:"object",fields:{percent_ownership:{kind:"decimal_string"}}}}}}}}}}),retrieve:E$({method:"GET",fullPath:"/v2/core/account_tokens/{id}"})})});var x$=B((b$)=>{Object.defineProperty(b$,"__esModule",{value:!0});b$.Accounts=void 0;var A$=U(),t=A$.StripeResource.method;b$.Accounts=A$.StripeResource.extend({retrieve:t({method:"GET",fullPath:"/v1/financial_connections/accounts/{account}"}),list:t({method:"GET",fullPath:"/v1/financial_connections/accounts",methodType:"list"}),disconnect:t({method:"POST",fullPath:"/v1/financial_connections/accounts/{account}/disconnect"}),listOwners:t({method:"GET",fullPath:"/v1/financial_connections/accounts/{account}/owners",methodType:"list"}),refresh:t({method:"POST",fullPath:"/v1/financial_connections/accounts/{account}/refresh"}),subscribe:t({method:"POST",fullPath:"/v1/financial_connections/accounts/{account}/subscribe"}),unsubscribe:t({method:"POST",fullPath:"/v1/financial_connections/accounts/{account}/unsubscribe"})})});var y$=B((I$)=>{Object.defineProperty(I$,"__esModule",{value:!0});I$.Persons=void 0;var P$=U(),PJ=P$.StripeResource.method;I$.Persons=P$.StripeResource.extend({create:PJ({method:"POST",fullPath:"/v2/core/accounts/{account_id}/persons",requestSchema:{kind:"object",fields:{relationship:{kind:"object",fields:{percent_ownership:{kind:"decimal_string"}}}}},responseSchema:{kind:"object",fields:{relationship:{kind:"object",fields:{percent_ownership:{kind:"decimal_string"}}}}}}),retrieve:PJ({method:"GET",fullPath:"/v2/core/accounts/{account_id}/persons/{id}",responseSchema:{kind:"object",fields:{relationship:{kind:"object",fields:{percent_ownership:{kind:"decimal_string"}}}}}}),update:PJ({method:"POST",fullPath:"/v2/core/accounts/{account_id}/persons/{id}",requestSchema:{kind:"object",fields:{relationship:{kind:"object",fields:{percent_ownership:{kind:"decimal_string"}}}}},responseSchema:{kind:"object",fields:{relationship:{kind:"object",fields:{percent_ownership:{kind:"decimal_string"}}}}}}),list:PJ({method:"GET",fullPath:"/v2/core/accounts/{account_id}/persons",methodType:"list",responseSchema:{kind:"object",fields:{data:{kind:"array",element:{kind:"object",fields:{relationship:{kind:"object",fields:{percent_ownership:{kind:"decimal_string"}}}}}}}}}),del:PJ({method:"DELETE",fullPath:"/v2/core/accounts/{account_id}/persons/{id}"})})});var j$=B((S$)=>{Object.defineProperty(S$,"__esModule",{value:!0});S$.PersonTokens=void 0;var R$=U(),g$=R$.StripeResource.method;S$.PersonTokens=R$.StripeResource.extend({create:g$({method:"POST",fullPath:"/v2/core/accounts/{account_id}/person_tokens",requestSchema:{kind:"object",fields:{relationship:{kind:"object",fields:{percent_ownership:{kind:"decimal_string"}}}}}}),retrieve:g$({method:"GET",fullPath:"/v2/core/accounts/{account_id}/person_tokens/{id}"})})});var h$=B((_$)=>{Object.defineProperty(_$,"__esModule",{value:!0});_$.Accounts=void 0;var zZ=U(),cw=y$(),dw=j$(),IJ=zZ.StripeResource.method;_$.Accounts=zZ.StripeResource.extend({constructor:function(...J){zZ.StripeResource.apply(this,J),this.persons=new cw.Persons(...J),this.personTokens=new dw.PersonTokens(...J)},create:IJ({method:"POST",fullPath:"/v2/core/accounts",requestSchema:{kind:"object",fields:{identity:{kind:"object",fields:{individual:{kind:"object",fields:{relationship:{kind:"object",fields:{percent_ownership:{kind:"decimal_string"}}}}}}}}},responseSchema:{kind:"object",fields:{identity:{kind:"object",fields:{individual:{kind:"object",fields:{relationship:{kind:"object",fields:{percent_ownership:{kind:"decimal_string"}}}}}}}}}}),retrieve:IJ({method:"GET",fullPath:"/v2/core/accounts/{id}",responseSchema:{kind:"object",fields:{identity:{kind:"object",fields:{individual:{kind:"object",fields:{relationship:{kind:"object",fields:{percent_ownership:{kind:"decimal_string"}}}}}}}}}}),update:IJ({method:"POST",fullPath:"/v2/core/accounts/{id}",requestSchema:{kind:"object",fields:{identity:{kind:"object",fields:{individual:{kind:"object",fields:{relationship:{kind:"object",fields:{percent_ownership:{kind:"decimal_string"}}}}}}}}},responseSchema:{kind:"object",fields:{identity:{kind:"object",fields:{individual:{kind:"object",fields:{relationship:{kind:"object",fields:{percent_ownership:{kind:"decimal_string"}}}}}}}}}}),list:IJ({method:"GET",fullPath:"/v2/core/accounts",methodType:"list",responseSchema:{kind:"object",fields:{data:{kind:"array",element:{kind:"object",fields:{identity:{kind:"object",fields:{individual:{kind:"object",fields:{relationship:{kind:"object",fields:{percent_ownership:{kind:"decimal_string"}}}}}}}}}}}}}),close:IJ({method:"POST",fullPath:"/v2/core/accounts/{id}/close",responseSchema:{kind:"object",fields:{identity:{kind:"object",fields:{individual:{kind:"object",fields:{relationship:{kind:"object",fields:{percent_ownership:{kind:"decimal_string"}}}}}}}}}})})});var n$=B((c$)=>{Object.defineProperty(c$,"__esModule",{value:!0});c$.ActiveEntitlements=void 0;var u$=U(),l$=u$.StripeResource.method;c$.ActiveEntitlements=u$.StripeResource.extend({retrieve:l$({method:"GET",fullPath:"/v1/entitlements/active_entitlements/{id}"}),list:l$({method:"GET",fullPath:"/v1/entitlements/active_entitlements",methodType:"list"})})});var o$=B((i$)=>{Object.defineProperty(i$,"__esModule",{value:!0});i$.Alerts=void 0;var a$=U(),UJ=a$.StripeResource.method;i$.Alerts=a$.StripeResource.extend({create:UJ({method:"POST",fullPath:"/v1/billing/alerts"}),retrieve:UJ({method:"GET",fullPath:"/v1/billing/alerts/{id}"}),list:UJ({method:"GET",fullPath:"/v1/billing/alerts",methodType:"list"}),activate:UJ({method:"POST",fullPath:"/v1/billing/alerts/{id}/activate"}),archive:UJ({method:"POST",fullPath:"/v1/billing/alerts/{id}/archive"}),deactivate:UJ({method:"POST",fullPath:"/v1/billing/alerts/{id}/deactivate"})})});var e$=B((r$)=>{Object.defineProperty(r$,"__esModule",{value:!0});r$.Associations=void 0;var s$=U(),nw=s$.StripeResource.method;r$.Associations=s$.StripeResource.extend({find:nw({method:"GET",fullPath:"/v1/tax/associations/find"})})});var Q8=B((Z8)=>{Object.defineProperty(Z8,"__esModule",{value:!0});Z8.Authorizations=void 0;var J8=U(),fJ=J8.StripeResource.method;Z8.Authorizations=J8.StripeResource.extend({retrieve:fJ({method:"GET",fullPath:"/v1/issuing/authorizations/{authorization}",responseSchema:{kind:"object",fields:{fleet:{kind:"nullable",inner:{kind:"object",fields:{reported_breakdown:{kind:"nullable",inner:{kind:"object",fields:{fuel:{kind:"nullable",inner:{kind:"object",fields:{gross_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},non_fuel:{kind:"nullable",inner:{kind:"object",fields:{gross_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},tax:{kind:"nullable",inner:{kind:"object",fields:{local_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},national_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}}}}},fuel:{kind:"nullable",inner:{kind:"object",fields:{quantity_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_cost_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},transactions:{kind:"array",element:{kind:"object",fields:{purchase_details:{kind:"nullable",inner:{kind:"object",fields:{fleet:{kind:"nullable",inner:{kind:"object",fields:{reported_breakdown:{kind:"nullable",inner:{kind:"object",fields:{fuel:{kind:"nullable",inner:{kind:"object",fields:{gross_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},non_fuel:{kind:"nullable",inner:{kind:"object",fields:{gross_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},tax:{kind:"nullable",inner:{kind:"object",fields:{local_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},national_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}}}}},fuel:{kind:"nullable",inner:{kind:"object",fields:{quantity_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_cost_decimal:{kind:"decimal_string"}}}}}}}}}}}}}),update:fJ({method:"POST",fullPath:"/v1/issuing/authorizations/{authorization}",responseSchema:{kind:"object",fields:{fleet:{kind:"nullable",inner:{kind:"object",fields:{reported_breakdown:{kind:"nullable",inner:{kind:"object",fields:{fuel:{kind:"nullable",inner:{kind:"object",fields:{gross_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},non_fuel:{kind:"nullable",inner:{kind:"object",fields:{gross_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},tax:{kind:"nullable",inner:{kind:"object",fields:{local_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},national_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}}}}},fuel:{kind:"nullable",inner:{kind:"object",fields:{quantity_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_cost_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},transactions:{kind:"array",element:{kind:"object",fields:{purchase_details:{kind:"nullable",inner:{kind:"object",fields:{fleet:{kind:"nullable",inner:{kind:"object",fields:{reported_breakdown:{kind:"nullable",inner:{kind:"object",fields:{fuel:{kind:"nullable",inner:{kind:"object",fields:{gross_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},non_fuel:{kind:"nullable",inner:{kind:"object",fields:{gross_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},tax:{kind:"nullable",inner:{kind:"object",fields:{local_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},national_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}}}}},fuel:{kind:"nullable",inner:{kind:"object",fields:{quantity_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_cost_decimal:{kind:"decimal_string"}}}}}}}}}}}}}),list:fJ({method:"GET",fullPath:"/v1/issuing/authorizations",methodType:"list",responseSchema:{kind:"object",fields:{data:{kind:"array",element:{kind:"object",fields:{fleet:{kind:"nullable",inner:{kind:"object",fields:{reported_breakdown:{kind:"nullable",inner:{kind:"object",fields:{fuel:{kind:"nullable",inner:{kind:"object",fields:{gross_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},non_fuel:{kind:"nullable",inner:{kind:"object",fields:{gross_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},tax:{kind:"nullable",inner:{kind:"object",fields:{local_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},national_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}}}}},fuel:{kind:"nullable",inner:{kind:"object",fields:{quantity_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_cost_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},transactions:{kind:"array",element:{kind:"object",fields:{purchase_details:{kind:"nullable",inner:{kind:"object",fields:{fleet:{kind:"nullable",inner:{kind:"object",fields:{reported_breakdown:{kind:"nullable",inner:{kind:"object",fields:{fuel:{kind:"nullable",inner:{kind:"object",fields:{gross_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},non_fuel:{kind:"nullable",inner:{kind:"object",fields:{gross_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},tax:{kind:"nullable",inner:{kind:"object",fields:{local_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},national_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}}}}},fuel:{kind:"nullable",inner:{kind:"object",fields:{quantity_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_cost_decimal:{kind:"decimal_string"}}}}}}}}}}}}}}}}),approve:fJ({method:"POST",fullPath:"/v1/issuing/authorizations/{authorization}/approve",responseSchema:{kind:"object",fields:{fleet:{kind:"nullable",inner:{kind:"object",fields:{reported_breakdown:{kind:"nullable",inner:{kind:"object",fields:{fuel:{kind:"nullable",inner:{kind:"object",fields:{gross_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},non_fuel:{kind:"nullable",inner:{kind:"object",fields:{gross_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},tax:{kind:"nullable",inner:{kind:"object",fields:{local_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},national_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}}}}},fuel:{kind:"nullable",inner:{kind:"object",fields:{quantity_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_cost_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},transactions:{kind:"array",element:{kind:"object",fields:{purchase_details:{kind:"nullable",inner:{kind:"object",fields:{fleet:{kind:"nullable",inner:{kind:"object",fields:{reported_breakdown:{kind:"nullable",inner:{kind:"object",fields:{fuel:{kind:"nullable",inner:{kind:"object",fields:{gross_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},non_fuel:{kind:"nullable",inner:{kind:"object",fields:{gross_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},tax:{kind:"nullable",inner:{kind:"object",fields:{local_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},national_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}}}}},fuel:{kind:"nullable",inner:{kind:"object",fields:{quantity_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_cost_decimal:{kind:"decimal_string"}}}}}}}}}}}}}),decline:fJ({method:"POST",fullPath:"/v1/issuing/authorizations/{authorization}/decline",responseSchema:{kind:"object",fields:{fleet:{kind:"nullable",inner:{kind:"object",fields:{reported_breakdown:{kind:"nullable",inner:{kind:"object",fields:{fuel:{kind:"nullable",inner:{kind:"object",fields:{gross_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},non_fuel:{kind:"nullable",inner:{kind:"object",fields:{gross_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},tax:{kind:"nullable",inner:{kind:"object",fields:{local_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},national_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}}}}},fuel:{kind:"nullable",inner:{kind:"object",fields:{quantity_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_cost_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},transactions:{kind:"array",element:{kind:"object",fields:{purchase_details:{kind:"nullable",inner:{kind:"object",fields:{fleet:{kind:"nullable",inner:{kind:"object",fields:{reported_breakdown:{kind:"nullable",inner:{kind:"object",fields:{fuel:{kind:"nullable",inner:{kind:"object",fields:{gross_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},non_fuel:{kind:"nullable",inner:{kind:"object",fields:{gross_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},tax:{kind:"nullable",inner:{kind:"object",fields:{local_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},national_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}}}}},fuel:{kind:"nullable",inner:{kind:"object",fields:{quantity_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_cost_decimal:{kind:"decimal_string"}}}}}}}}}}}}})})});var X8=B((z8)=>{Object.defineProperty(z8,"__esModule",{value:!0});z8.Authorizations=void 0;var G8=U(),e=G8.StripeResource.method;z8.Authorizations=G8.StripeResource.extend({create:e({method:"POST",fullPath:"/v1/test_helpers/issuing/authorizations",requestSchema:{kind:"object",fields:{fleet:{kind:"object",fields:{reported_breakdown:{kind:"object",fields:{fuel:{kind:"object",fields:{gross_amount_decimal:{kind:"decimal_string"}}},non_fuel:{kind:"object",fields:{gross_amount_decimal:{kind:"decimal_string"}}},tax:{kind:"object",fields:{local_amount_decimal:{kind:"decimal_string"},national_amount_decimal:{kind:"decimal_string"}}}}}}},fuel:{kind:"object",fields:{quantity_decimal:{kind:"decimal_string"},unit_cost_decimal:{kind:"decimal_string"}}}}},responseSchema:{kind:"object",fields:{fleet:{kind:"nullable",inner:{kind:"object",fields:{reported_breakdown:{kind:"nullable",inner:{kind:"object",fields:{fuel:{kind:"nullable",inner:{kind:"object",fields:{gross_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},non_fuel:{kind:"nullable",inner:{kind:"object",fields:{gross_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},tax:{kind:"nullable",inner:{kind:"object",fields:{local_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},national_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}}}}},fuel:{kind:"nullable",inner:{kind:"object",fields:{quantity_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_cost_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},transactions:{kind:"array",element:{kind:"object",fields:{purchase_details:{kind:"nullable",inner:{kind:"object",fields:{fleet:{kind:"nullable",inner:{kind:"object",fields:{reported_breakdown:{kind:"nullable",inner:{kind:"object",fields:{fuel:{kind:"nullable",inner:{kind:"object",fields:{gross_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},non_fuel:{kind:"nullable",inner:{kind:"object",fields:{gross_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},tax:{kind:"nullable",inner:{kind:"object",fields:{local_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},national_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}}}}},fuel:{kind:"nullable",inner:{kind:"object",fields:{quantity_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_cost_decimal:{kind:"decimal_string"}}}}}}}}}}}}}),capture:e({method:"POST",fullPath:"/v1/test_helpers/issuing/authorizations/{authorization}/capture",requestSchema:{kind:"object",fields:{purchase_details:{kind:"object",fields:{fleet:{kind:"object",fields:{reported_breakdown:{kind:"object",fields:{fuel:{kind:"object",fields:{gross_amount_decimal:{kind:"decimal_string"}}},non_fuel:{kind:"object",fields:{gross_amount_decimal:{kind:"decimal_string"}}},tax:{kind:"object",fields:{local_amount_decimal:{kind:"decimal_string"},national_amount_decimal:{kind:"decimal_string"}}}}}}},fuel:{kind:"object",fields:{quantity_decimal:{kind:"decimal_string"},unit_cost_decimal:{kind:"decimal_string"}}},receipt:{kind:"array",element:{kind:"object",fields:{quantity:{kind:"decimal_string"}}}}}}}},responseSchema:{kind:"object",fields:{fleet:{kind:"nullable",inner:{kind:"object",fields:{reported_breakdown:{kind:"nullable",inner:{kind:"object",fields:{fuel:{kind:"nullable",inner:{kind:"object",fields:{gross_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},non_fuel:{kind:"nullable",inner:{kind:"object",fields:{gross_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},tax:{kind:"nullable",inner:{kind:"object",fields:{local_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},national_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}}}}},fuel:{kind:"nullable",inner:{kind:"object",fields:{quantity_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_cost_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},transactions:{kind:"array",element:{kind:"object",fields:{purchase_details:{kind:"nullable",inner:{kind:"object",fields:{fleet:{kind:"nullable",inner:{kind:"object",fields:{reported_breakdown:{kind:"nullable",inner:{kind:"object",fields:{fuel:{kind:"nullable",inner:{kind:"object",fields:{gross_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},non_fuel:{kind:"nullable",inner:{kind:"object",fields:{gross_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},tax:{kind:"nullable",inner:{kind:"object",fields:{local_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},national_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}}}}},fuel:{kind:"nullable",inner:{kind:"object",fields:{quantity_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_cost_decimal:{kind:"decimal_string"}}}}}}}}}}}}}),expire:e({method:"POST",fullPath:"/v1/test_helpers/issuing/authorizations/{authorization}/expire",responseSchema:{kind:"object",fields:{fleet:{kind:"nullable",inner:{kind:"object",fields:{reported_breakdown:{kind:"nullable",inner:{kind:"object",fields:{fuel:{kind:"nullable",inner:{kind:"object",fields:{gross_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},non_fuel:{kind:"nullable",inner:{kind:"object",fields:{gross_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},tax:{kind:"nullable",inner:{kind:"object",fields:{local_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},national_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}}}}},fuel:{kind:"nullable",inner:{kind:"object",fields:{quantity_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_cost_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},transactions:{kind:"array",element:{kind:"object",fields:{purchase_details:{kind:"nullable",inner:{kind:"object",fields:{fleet:{kind:"nullable",inner:{kind:"object",fields:{reported_breakdown:{kind:"nullable",inner:{kind:"object",fields:{fuel:{kind:"nullable",inner:{kind:"object",fields:{gross_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},non_fuel:{kind:"nullable",inner:{kind:"object",fields:{gross_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},tax:{kind:"nullable",inner:{kind:"object",fields:{local_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},national_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}}}}},fuel:{kind:"nullable",inner:{kind:"object",fields:{quantity_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_cost_decimal:{kind:"decimal_string"}}}}}}}}}}}}}),finalizeAmount:e({method:"POST",fullPath:"/v1/test_helpers/issuing/authorizations/{authorization}/finalize_amount",requestSchema:{kind:"object",fields:{fleet:{kind:"object",fields:{reported_breakdown:{kind:"object",fields:{fuel:{kind:"object",fields:{gross_amount_decimal:{kind:"decimal_string"}}},non_fuel:{kind:"object",fields:{gross_amount_decimal:{kind:"decimal_string"}}},tax:{kind:"object",fields:{local_amount_decimal:{kind:"decimal_string"},national_amount_decimal:{kind:"decimal_string"}}}}}}},fuel:{kind:"object",fields:{quantity_decimal:{kind:"decimal_string"},unit_cost_decimal:{kind:"decimal_string"}}}}},responseSchema:{kind:"object",fields:{fleet:{kind:"nullable",inner:{kind:"object",fields:{reported_breakdown:{kind:"nullable",inner:{kind:"object",fields:{fuel:{kind:"nullable",inner:{kind:"object",fields:{gross_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},non_fuel:{kind:"nullable",inner:{kind:"object",fields:{gross_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},tax:{kind:"nullable",inner:{kind:"object",fields:{local_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},national_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}}}}},fuel:{kind:"nullable",inner:{kind:"object",fields:{quantity_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_cost_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},transactions:{kind:"array",element:{kind:"object",fields:{purchase_details:{kind:"nullable",inner:{kind:"object",fields:{fleet:{kind:"nullable",inner:{kind:"object",fields:{reported_breakdown:{kind:"nullable",inner:{kind:"object",fields:{fuel:{kind:"nullable",inner:{kind:"object",fields:{gross_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},non_fuel:{kind:"nullable",inner:{kind:"object",fields:{gross_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},tax:{kind:"nullable",inner:{kind:"object",fields:{local_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},national_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}}}}},fuel:{kind:"nullable",inner:{kind:"object",fields:{quantity_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_cost_decimal:{kind:"decimal_string"}}}}}}}}}}}}}),increment:e({method:"POST",fullPath:"/v1/test_helpers/issuing/authorizations/{authorization}/increment",responseSchema:{kind:"object",fields:{fleet:{kind:"nullable",inner:{kind:"object",fields:{reported_breakdown:{kind:"nullable",inner:{kind:"object",fields:{fuel:{kind:"nullable",inner:{kind:"object",fields:{gross_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},non_fuel:{kind:"nullable",inner:{kind:"object",fields:{gross_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},tax:{kind:"nullable",inner:{kind:"object",fields:{local_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},national_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}}}}},fuel:{kind:"nullable",inner:{kind:"object",fields:{quantity_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_cost_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},transactions:{kind:"array",element:{kind:"object",fields:{purchase_details:{kind:"nullable",inner:{kind:"object",fields:{fleet:{kind:"nullable",inner:{kind:"object",fields:{reported_breakdown:{kind:"nullable",inner:{kind:"object",fields:{fuel:{kind:"nullable",inner:{kind:"object",fields:{gross_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},non_fuel:{kind:"nullable",inner:{kind:"object",fields:{gross_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},tax:{kind:"nullable",inner:{kind:"object",fields:{local_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},national_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}}}}},fuel:{kind:"nullable",inner:{kind:"object",fields:{quantity_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_cost_decimal:{kind:"decimal_string"}}}}}}}}}}}}}),respond:e({method:"POST",fullPath:"/v1/test_helpers/issuing/authorizations/{authorization}/fraud_challenges/respond",responseSchema:{kind:"object",fields:{fleet:{kind:"nullable",inner:{kind:"object",fields:{reported_breakdown:{kind:"nullable",inner:{kind:"object",fields:{fuel:{kind:"nullable",inner:{kind:"object",fields:{gross_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},non_fuel:{kind:"nullable",inner:{kind:"object",fields:{gross_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},tax:{kind:"nullable",inner:{kind:"object",fields:{local_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},national_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}}}}},fuel:{kind:"nullable",inner:{kind:"object",fields:{quantity_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_cost_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},transactions:{kind:"array",element:{kind:"object",fields:{purchase_details:{kind:"nullable",inner:{kind:"object",fields:{fleet:{kind:"nullable",inner:{kind:"object",fields:{reported_breakdown:{kind:"nullable",inner:{kind:"object",fields:{fuel:{kind:"nullable",inner:{kind:"object",fields:{gross_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},non_fuel:{kind:"nullable",inner:{kind:"object",fields:{gross_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},tax:{kind:"nullable",inner:{kind:"object",fields:{local_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},national_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}}}}},fuel:{kind:"nullable",inner:{kind:"object",fields:{quantity_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_cost_decimal:{kind:"decimal_string"}}}}}}}}}}}}}),reverse:e({method:"POST",fullPath:"/v1/test_helpers/issuing/authorizations/{authorization}/reverse",responseSchema:{kind:"object",fields:{fleet:{kind:"nullable",inner:{kind:"object",fields:{reported_breakdown:{kind:"nullable",inner:{kind:"object",fields:{fuel:{kind:"nullable",inner:{kind:"object",fields:{gross_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},non_fuel:{kind:"nullable",inner:{kind:"object",fields:{gross_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},tax:{kind:"nullable",inner:{kind:"object",fields:{local_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},national_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}}}}},fuel:{kind:"nullable",inner:{kind:"object",fields:{quantity_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_cost_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},transactions:{kind:"array",element:{kind:"object",fields:{purchase_details:{kind:"nullable",inner:{kind:"object",fields:{fleet:{kind:"nullable",inner:{kind:"object",fields:{reported_breakdown:{kind:"nullable",inner:{kind:"object",fields:{fuel:{kind:"nullable",inner:{kind:"object",fields:{gross_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},non_fuel:{kind:"nullable",inner:{kind:"object",fields:{gross_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},tax:{kind:"nullable",inner:{kind:"object",fields:{local_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},national_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}}}}},fuel:{kind:"nullable",inner:{kind:"object",fields:{quantity_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_cost_decimal:{kind:"decimal_string"}}}}}}}}}}}}})})});var L8=B((w8)=>{Object.defineProperty(w8,"__esModule",{value:!0});w8.Calculations=void 0;var Y8=U(),BZ=Y8.StripeResource.method;w8.Calculations=Y8.StripeResource.extend({create:BZ({method:"POST",fullPath:"/v1/tax/calculations"}),retrieve:BZ({method:"GET",fullPath:"/v1/tax/calculations/{calculation}"}),listLineItems:BZ({method:"GET",fullPath:"/v1/tax/calculations/{calculation}/line_items",methodType:"list"})})});var T8=B((W8)=>{Object.defineProperty(W8,"__esModule",{value:!0});W8.Cardholders=void 0;var V8=U(),w0=V8.StripeResource.method;W8.Cardholders=V8.StripeResource.extend({create:w0({method:"POST",fullPath:"/v1/issuing/cardholders"}),retrieve:w0({method:"GET",fullPath:"/v1/issuing/cardholders/{cardholder}"}),update:w0({method:"POST",fullPath:"/v1/issuing/cardholders/{cardholder}"}),list:w0({method:"GET",fullPath:"/v1/issuing/cardholders",methodType:"list"})})});var q8=B((H8)=>{Object.defineProperty(H8,"__esModule",{value:!0});H8.Cards=void 0;var N8=U(),U0=N8.StripeResource.method;H8.Cards=N8.StripeResource.extend({create:U0({method:"POST",fullPath:"/v1/issuing/cards"}),retrieve:U0({method:"GET",fullPath:"/v1/issuing/cards/{card}"}),update:U0({method:"POST",fullPath:"/v1/issuing/cards/{card}"}),list:U0({method:"GET",fullPath:"/v1/issuing/cards",methodType:"list"})})});var F8=B((O8)=>{Object.defineProperty(O8,"__esModule",{value:!0});O8.Cards=void 0;var E8=U(),yJ=E8.StripeResource.method;O8.Cards=E8.StripeResource.extend({deliverCard:yJ({method:"POST",fullPath:"/v1/test_helpers/issuing/cards/{card}/shipping/deliver"}),failCard:yJ({method:"POST",fullPath:"/v1/test_helpers/issuing/cards/{card}/shipping/fail"}),returnCard:yJ({method:"POST",fullPath:"/v1/test_helpers/issuing/cards/{card}/shipping/return"}),shipCard:yJ({method:"POST",fullPath:"/v1/test_helpers/issuing/cards/{card}/shipping/ship"}),submitCard:yJ({method:"POST",fullPath:"/v1/test_helpers/issuing/cards/{card}/shipping/submit"})})});var v8=B((A8)=>{Object.defineProperty(A8,"__esModule",{value:!0});A8.Configurations=void 0;var C8=U(),L0=C8.StripeResource.method;A8.Configurations=C8.StripeResource.extend({create:L0({method:"POST",fullPath:"/v1/billing_portal/configurations"}),retrieve:L0({method:"GET",fullPath:"/v1/billing_portal/configurations/{configuration}"}),update:L0({method:"POST",fullPath:"/v1/billing_portal/configurations/{configuration}"}),list:L0({method:"GET",fullPath:"/v1/billing_portal/configurations",methodType:"list"})})});var f8=B((P8)=>{Object.defineProperty(P8,"__esModule",{value:!0});P8.Configurations=void 0;var x8=U(),gJ=x8.StripeResource.method;P8.Configurations=x8.StripeResource.extend({create:gJ({method:"POST",fullPath:"/v1/terminal/configurations"}),retrieve:gJ({method:"GET",fullPath:"/v1/terminal/configurations/{configuration}"}),update:gJ({method:"POST",fullPath:"/v1/terminal/configurations/{configuration}"}),list:gJ({method:"GET",fullPath:"/v1/terminal/configurations",methodType:"list"}),del:gJ({method:"DELETE",fullPath:"/v1/terminal/configurations/{configuration}"})})});var S8=B((g8)=>{Object.defineProperty(g8,"__esModule",{value:!0});g8.ConfirmationTokens=void 0;var y8=U(),aw=y8.StripeResource.method;g8.ConfirmationTokens=y8.StripeResource.extend({create:aw({method:"POST",fullPath:"/v1/test_helpers/confirmation_tokens"})})});var m8=B((j8)=>{Object.defineProperty(j8,"__esModule",{value:!0});j8.ConnectionTokens=void 0;var M8=U(),iw=M8.StripeResource.method;j8.ConnectionTokens=M8.StripeResource.extend({create:iw({method:"POST",fullPath:"/v1/terminal/connection_tokens"})})});var c8=B((l8)=>{Object.defineProperty(l8,"__esModule",{value:!0});l8.CreditBalanceSummary=void 0;var h8=U(),pw=h8.StripeResource.method;l8.CreditBalanceSummary=h8.StripeResource.extend({retrieve:pw({method:"GET",fullPath:"/v1/billing/credit_balance_summary"})})});var p8=B((a8)=>{Object.defineProperty(a8,"__esModule",{value:!0});a8.CreditBalanceTransactions=void 0;var n8=U(),d8=n8.StripeResource.method;a8.CreditBalanceTransactions=n8.StripeResource.extend({retrieve:d8({method:"GET",fullPath:"/v1/billing/credit_balance_transactions/{id}"}),list:d8({method:"GET",fullPath:"/v1/billing/credit_balance_transactions",methodType:"list"})})});var t8=B((s8)=>{Object.defineProperty(s8,"__esModule",{value:!0});s8.CreditGrants=void 0;var o8=U(),LJ=o8.StripeResource.method;s8.CreditGrants=o8.StripeResource.extend({create:LJ({method:"POST",fullPath:"/v1/billing/credit_grants"}),retrieve:LJ({method:"GET",fullPath:"/v1/billing/credit_grants/{id}"}),update:LJ({method:"POST",fullPath:"/v1/billing/credit_grants/{id}"}),list:LJ({method:"GET",fullPath:"/v1/billing/credit_grants",methodType:"list"}),expire:LJ({method:"POST",fullPath:"/v1/billing/credit_grants/{id}/expire"}),voidGrant:LJ({method:"POST",fullPath:"/v1/billing/credit_grants/{id}/void"})})});var $Q=B((JQ)=>{Object.defineProperty(JQ,"__esModule",{value:!0});JQ.CreditReversals=void 0;var e8=U(),XZ=e8.StripeResource.method;JQ.CreditReversals=e8.StripeResource.extend({create:XZ({method:"POST",fullPath:"/v1/treasury/credit_reversals"}),retrieve:XZ({method:"GET",fullPath:"/v1/treasury/credit_reversals/{credit_reversal}"}),list:XZ({method:"GET",fullPath:"/v1/treasury/credit_reversals",methodType:"list"})})});var BQ=B((GQ)=>{Object.defineProperty(GQ,"__esModule",{value:!0});GQ.Customers=void 0;var QQ=U(),ow=QQ.StripeResource.method;GQ.Customers=QQ.StripeResource.extend({fundCashBalance:ow({method:"POST",fullPath:"/v1/test_helpers/customers/{customer}/fund_cash_balance"})})});var UQ=B((YQ)=>{Object.defineProperty(YQ,"__esModule",{value:!0});YQ.DebitReversals=void 0;var XQ=U(),YZ=XQ.StripeResource.method;YQ.DebitReversals=XQ.StripeResource.extend({create:YZ({method:"POST",fullPath:"/v1/treasury/debit_reversals"}),retrieve:YZ({method:"GET",fullPath:"/v1/treasury/debit_reversals/{debit_reversal}"}),list:YZ({method:"GET",fullPath:"/v1/treasury/debit_reversals",methodType:"list"})})});var KQ=B((VQ)=>{Object.defineProperty(VQ,"__esModule",{value:!0});VQ.Disputes=void 0;var LQ=U(),RJ=LQ.StripeResource.method;VQ.Disputes=LQ.StripeResource.extend({create:RJ({method:"POST",fullPath:"/v1/issuing/disputes"}),retrieve:RJ({method:"GET",fullPath:"/v1/issuing/disputes/{dispute}"}),update:RJ({method:"POST",fullPath:"/v1/issuing/disputes/{dispute}"}),list:RJ({method:"GET",fullPath:"/v1/issuing/disputes",methodType:"list"}),submit:RJ({method:"POST",fullPath:"/v1/issuing/disputes/{dispute}/submit"})})});var qQ=B((HQ)=>{Object.defineProperty(HQ,"__esModule",{value:!0});HQ.EarlyFraudWarnings=void 0;var NQ=U(),TQ=NQ.StripeResource.method;HQ.EarlyFraudWarnings=NQ.StripeResource.extend({retrieve:TQ({method:"GET",fullPath:"/v1/radar/early_fraud_warnings/{early_fraud_warning}"}),list:TQ({method:"GET",fullPath:"/v1/radar/early_fraud_warnings",methodType:"list"})})});var FQ=B((OQ)=>{Object.defineProperty(OQ,"__esModule",{value:!0});OQ.EventDestinations=void 0;var EQ=U(),a=EQ.StripeResource.method;OQ.EventDestinations=EQ.StripeResource.extend({create:a({method:"POST",fullPath:"/v2/core/event_destinations"}),retrieve:a({method:"GET",fullPath:"/v2/core/event_destinations/{id}"}),update:a({method:"POST",fullPath:"/v2/core/event_destinations/{id}"}),list:a({method:"GET",fullPath:"/v2/core/event_destinations",methodType:"list"}),del:a({method:"DELETE",fullPath:"/v2/core/event_destinations/{id}"}),disable:a({method:"POST",fullPath:"/v2/core/event_destinations/{id}/disable"}),enable:a({method:"POST",fullPath:"/v2/core/event_destinations/{id}/enable"}),ping:a({method:"POST",fullPath:"/v2/core/event_destinations/{id}/ping"})})});var vQ=B((AQ)=>{Object.defineProperty(AQ,"__esModule",{value:!0});AQ.Events=void 0;var CQ=U(),wZ=CQ.StripeResource.method;AQ.Events=CQ.StripeResource.extend({retrieve(...J){return wZ({method:"GET",fullPath:"/v2/core/events/{id}",transformResponseData:($)=>{return this.addFetchRelatedObjectIfNeeded($)}}).apply(this,J)},list(...J){return wZ({method:"GET",fullPath:"/v2/core/events",methodType:"list",transformResponseData:($)=>{return{...$,data:$.data.map(this.addFetchRelatedObjectIfNeeded.bind(this))}}}).apply(this,J)},addFetchRelatedObjectIfNeeded(J){if(!J.related_object||!J.related_object.url)return J;return{...J,fetchRelatedObject:()=>wZ({method:"GET",fullPath:J.related_object.url}).apply(this,[{stripeContext:J.context,headers:{"Stripe-Request-Trigger":`event=${J.id}`}}])}}})});var fQ=B((PQ)=>{Object.defineProperty(PQ,"__esModule",{value:!0});PQ.Features=void 0;var xQ=U(),V0=xQ.StripeResource.method;PQ.Features=xQ.StripeResource.extend({create:V0({method:"POST",fullPath:"/v1/entitlements/features"}),retrieve:V0({method:"GET",fullPath:"/v1/entitlements/features/{id}"}),update:V0({method:"POST",fullPath:"/v1/entitlements/features/{id}"}),list:V0({method:"GET",fullPath:"/v1/entitlements/features",methodType:"list"})})});var SQ=B((gQ)=>{Object.defineProperty(gQ,"__esModule",{value:!0});gQ.FinancialAccounts=void 0;var yQ=U(),JJ=yQ.StripeResource.method;gQ.FinancialAccounts=yQ.StripeResource.extend({create:JJ({method:"POST",fullPath:"/v1/treasury/financial_accounts"}),retrieve:JJ({method:"GET",fullPath:"/v1/treasury/financial_accounts/{financial_account}"}),update:JJ({method:"POST",fullPath:"/v1/treasury/financial_accounts/{financial_account}"}),list:JJ({method:"GET",fullPath:"/v1/treasury/financial_accounts",methodType:"list"}),close:JJ({method:"POST",fullPath:"/v1/treasury/financial_accounts/{financial_account}/close"}),retrieveFeatures:JJ({method:"GET",fullPath:"/v1/treasury/financial_accounts/{financial_account}/features"}),updateFeatures:JJ({method:"POST",fullPath:"/v1/treasury/financial_accounts/{financial_account}/features"})})});var mQ=B((jQ)=>{Object.defineProperty(jQ,"__esModule",{value:!0});jQ.InboundTransfers=void 0;var MQ=U(),UZ=MQ.StripeResource.method;jQ.InboundTransfers=MQ.StripeResource.extend({fail:UZ({method:"POST",fullPath:"/v1/test_helpers/treasury/inbound_transfers/{id}/fail"}),returnInboundTransfer:UZ({method:"POST",fullPath:"/v1/test_helpers/treasury/inbound_transfers/{id}/return"}),succeed:UZ({method:"POST",fullPath:"/v1/test_helpers/treasury/inbound_transfers/{id}/succeed"})})});var cQ=B((lQ)=>{Object.defineProperty(lQ,"__esModule",{value:!0});lQ.InboundTransfers=void 0;var hQ=U(),W0=hQ.StripeResource.method;lQ.InboundTransfers=hQ.StripeResource.extend({create:W0({method:"POST",fullPath:"/v1/treasury/inbound_transfers"}),retrieve:W0({method:"GET",fullPath:"/v1/treasury/inbound_transfers/{id}"}),list:W0({method:"GET",fullPath:"/v1/treasury/inbound_transfers",methodType:"list"}),cancel:W0({method:"POST",fullPath:"/v1/treasury/inbound_transfers/{inbound_transfer}/cancel"})})});var iQ=B((nQ)=>{Object.defineProperty(nQ,"__esModule",{value:!0});nQ.Locations=void 0;var dQ=U(),SJ=dQ.StripeResource.method;nQ.Locations=dQ.StripeResource.extend({create:SJ({method:"POST",fullPath:"/v1/terminal/locations"}),retrieve:SJ({method:"GET",fullPath:"/v1/terminal/locations/{location}"}),update:SJ({method:"POST",fullPath:"/v1/terminal/locations/{location}"}),list:SJ({method:"GET",fullPath:"/v1/terminal/locations",methodType:"list"}),del:SJ({method:"DELETE",fullPath:"/v1/terminal/locations/{location}"})})});var rQ=B((oQ)=>{Object.defineProperty(oQ,"__esModule",{value:!0});oQ.MeterEventAdjustments=void 0;var pQ=U(),sw=pQ.StripeResource.method;oQ.MeterEventAdjustments=pQ.StripeResource.extend({create:sw({method:"POST",fullPath:"/v1/billing/meter_event_adjustments"})})});var Z7=B((eQ)=>{Object.defineProperty(eQ,"__esModule",{value:!0});eQ.MeterEventAdjustments=void 0;var tQ=U(),rw=tQ.StripeResource.method;eQ.MeterEventAdjustments=tQ.StripeResource.extend({create:rw({method:"POST",fullPath:"/v2/billing/meter_event_adjustments"})})});var z7=B((Q7)=>{Object.defineProperty(Q7,"__esModule",{value:!0});Q7.MeterEventSession=void 0;var $7=U(),tw=$7.StripeResource.method;Q7.MeterEventSession=$7.StripeResource.extend({create:tw({method:"POST",fullPath:"/v2/billing/meter_event_session"})})});var w7=B((X7)=>{Object.defineProperty(X7,"__esModule",{value:!0});X7.MeterEventStream=void 0;var B7=U(),ew=B7.StripeResource.method;X7.MeterEventStream=B7.StripeResource.extend({create:ew({method:"POST",fullPath:"/v2/billing/meter_event_stream",host:"meter-events.stripe.com"})})});var W7=B((L7)=>{Object.defineProperty(L7,"__esModule",{value:!0});L7.MeterEvents=void 0;var U7=U(),J3=U7.StripeResource.method;L7.MeterEvents=U7.StripeResource.extend({create:J3({method:"POST",fullPath:"/v1/billing/meter_events"})})});var H7=B((T7)=>{Object.defineProperty(T7,"__esModule",{value:!0});T7.MeterEvents=void 0;var K7=U(),Z3=K7.StripeResource.method;T7.MeterEvents=K7.StripeResource.extend({create:Z3({method:"POST",fullPath:"/v2/billing/meter_events"})})});var O7=B((q7)=>{Object.defineProperty(q7,"__esModule",{value:!0});q7.Meters=void 0;var D7=U(),ZJ=D7.StripeResource.method;q7.Meters=D7.StripeResource.extend({create:ZJ({method:"POST",fullPath:"/v1/billing/meters"}),retrieve:ZJ({method:"GET",fullPath:"/v1/billing/meters/{id}"}),update:ZJ({method:"POST",fullPath:"/v1/billing/meters/{id}"}),list:ZJ({method:"GET",fullPath:"/v1/billing/meters",methodType:"list"}),deactivate:ZJ({method:"POST",fullPath:"/v1/billing/meters/{id}/deactivate"}),listEventSummaries:ZJ({method:"GET",fullPath:"/v1/billing/meters/{id}/event_summaries",methodType:"list"}),reactivate:ZJ({method:"POST",fullPath:"/v1/billing/meters/{id}/reactivate"})})});var A7=B((F7)=>{Object.defineProperty(F7,"__esModule",{value:!0});F7.OnboardingLinks=void 0;var k7=U(),$3=k7.StripeResource.method;F7.OnboardingLinks=k7.StripeResource.extend({create:$3({method:"POST",fullPath:"/v1/terminal/onboarding_links"})})});var P7=B((v7)=>{Object.defineProperty(v7,"__esModule",{value:!0});v7.Orders=void 0;var b7=U(),MJ=b7.StripeResource.method;v7.Orders=b7.StripeResource.extend({create:MJ({method:"POST",fullPath:"/v1/climate/orders",requestSchema:{kind:"object",fields:{metric_tons:{kind:"decimal_string"}}},responseSchema:{kind:"object",fields:{metric_tons:{kind:"decimal_string"}}}}),retrieve:MJ({method:"GET",fullPath:"/v1/climate/orders/{order}",responseSchema:{kind:"object",fields:{metric_tons:{kind:"decimal_string"}}}}),update:MJ({method:"POST",fullPath:"/v1/climate/orders/{order}",responseSchema:{kind:"object",fields:{metric_tons:{kind:"decimal_string"}}}}),list:MJ({method:"GET",fullPath:"/v1/climate/orders",methodType:"list",responseSchema:{kind:"object",fields:{data:{kind:"array",element:{kind:"object",fields:{metric_tons:{kind:"decimal_string"}}}}}}}),cancel:MJ({method:"POST",fullPath:"/v1/climate/orders/{order}/cancel",responseSchema:{kind:"object",fields:{metric_tons:{kind:"decimal_string"}}}})})});var g7=B((f7)=>{Object.defineProperty(f7,"__esModule",{value:!0});f7.OutboundPayments=void 0;var I7=U(),K0=I7.StripeResource.method;f7.OutboundPayments=I7.StripeResource.extend({update:K0({method:"POST",fullPath:"/v1/test_helpers/treasury/outbound_payments/{id}"}),fail:K0({method:"POST",fullPath:"/v1/test_helpers/treasury/outbound_payments/{id}/fail"}),post:K0({method:"POST",fullPath:"/v1/test_helpers/treasury/outbound_payments/{id}/post"}),returnOutboundPayment:K0({method:"POST",fullPath:"/v1/test_helpers/treasury/outbound_payments/{id}/return"})})});var j7=B((S7)=>{Object.defineProperty(S7,"__esModule",{value:!0});S7.OutboundPayments=void 0;var R7=U(),T0=R7.StripeResource.method;S7.OutboundPayments=R7.StripeResource.extend({create:T0({method:"POST",fullPath:"/v1/treasury/outbound_payments"}),retrieve:T0({method:"GET",fullPath:"/v1/treasury/outbound_payments/{id}"}),list:T0({method:"GET",fullPath:"/v1/treasury/outbound_payments",methodType:"list"}),cancel:T0({method:"POST",fullPath:"/v1/treasury/outbound_payments/{id}/cancel"})})});var l7=B((m7)=>{Object.defineProperty(m7,"__esModule",{value:!0});m7.OutboundTransfers=void 0;var _7=U(),N0=_7.StripeResource.method;m7.OutboundTransfers=_7.StripeResource.extend({update:N0({method:"POST",fullPath:"/v1/test_helpers/treasury/outbound_transfers/{outbound_transfer}"}),fail:N0({method:"POST",fullPath:"/v1/test_helpers/treasury/outbound_transfers/{outbound_transfer}/fail"}),post:N0({method:"POST",fullPath:"/v1/test_helpers/treasury/outbound_transfers/{outbound_transfer}/post"}),returnOutboundTransfer:N0({method:"POST",fullPath:"/v1/test_helpers/treasury/outbound_transfers/{outbound_transfer}/return"})})});var n7=B((c7)=>{Object.defineProperty(c7,"__esModule",{value:!0});c7.OutboundTransfers=void 0;var u7=U(),H0=u7.StripeResource.method;c7.OutboundTransfers=u7.StripeResource.extend({create:H0({method:"POST",fullPath:"/v1/treasury/outbound_transfers"}),retrieve:H0({method:"GET",fullPath:"/v1/treasury/outbound_transfers/{outbound_transfer}"}),list:H0({method:"GET",fullPath:"/v1/treasury/outbound_transfers",methodType:"list"}),cancel:H0({method:"POST",fullPath:"/v1/treasury/outbound_transfers/{outbound_transfer}/cancel"})})});var o7=B((i7)=>{Object.defineProperty(i7,"__esModule",{value:!0});i7.PaymentEvaluations=void 0;var a7=U(),Q3=a7.StripeResource.method;i7.PaymentEvaluations=a7.StripeResource.extend({create:Q3({method:"POST",fullPath:"/v1/radar/payment_evaluations"})})});var e7=B((r7)=>{Object.defineProperty(r7,"__esModule",{value:!0});r7.PersonalizationDesigns=void 0;var s7=U(),D0=s7.StripeResource.method;r7.PersonalizationDesigns=s7.StripeResource.extend({create:D0({method:"POST",fullPath:"/v1/issuing/personalization_designs"}),retrieve:D0({method:"GET",fullPath:"/v1/issuing/personalization_designs/{personalization_design}"}),update:D0({method:"POST",fullPath:"/v1/issuing/personalization_designs/{personalization_design}"}),list:D0({method:"GET",fullPath:"/v1/issuing/personalization_designs",methodType:"list"})})});var Q4=B((Z4)=>{Object.defineProperty(Z4,"__esModule",{value:!0});Z4.PersonalizationDesigns=void 0;var J4=U(),LZ=J4.StripeResource.method;Z4.PersonalizationDesigns=J4.StripeResource.extend({activate:LZ({method:"POST",fullPath:"/v1/test_helpers/issuing/personalization_designs/{personalization_design}/activate"}),deactivate:LZ({method:"POST",fullPath:"/v1/test_helpers/issuing/personalization_designs/{personalization_design}/deactivate"}),reject:LZ({method:"POST",fullPath:"/v1/test_helpers/issuing/personalization_designs/{personalization_design}/reject"})})});var Y4=B((B4)=>{Object.defineProperty(B4,"__esModule",{value:!0});B4.PhysicalBundles=void 0;var z4=U(),G4=z4.StripeResource.method;B4.PhysicalBundles=z4.StripeResource.extend({retrieve:G4({method:"GET",fullPath:"/v1/issuing/physical_bundles/{physical_bundle}"}),list:G4({method:"GET",fullPath:"/v1/issuing/physical_bundles",methodType:"list"})})});var W4=B((L4)=>{Object.defineProperty(L4,"__esModule",{value:!0});L4.Products=void 0;var U4=U(),w4=U4.StripeResource.method;L4.Products=U4.StripeResource.extend({retrieve:w4({method:"GET",fullPath:"/v1/climate/products/{product}",responseSchema:{kind:"object",fields:{metric_tons_available:{kind:"decimal_string"}}}}),list:w4({method:"GET",fullPath:"/v1/climate/products",methodType:"list",responseSchema:{kind:"object",fields:{data:{kind:"array",element:{kind:"object",fields:{metric_tons_available:{kind:"decimal_string"}}}}}}})})});var H4=B((T4)=>{Object.defineProperty(T4,"__esModule",{value:!0});T4.Readers=void 0;var K4=U(),M=K4.StripeResource.method;T4.Readers=K4.StripeResource.extend({create:M({method:"POST",fullPath:"/v1/terminal/readers"}),retrieve:M({method:"GET",fullPath:"/v1/terminal/readers/{reader}"}),update:M({method:"POST",fullPath:"/v1/terminal/readers/{reader}"}),list:M({method:"GET",fullPath:"/v1/terminal/readers",methodType:"list"}),del:M({method:"DELETE",fullPath:"/v1/terminal/readers/{reader}"}),cancelAction:M({method:"POST",fullPath:"/v1/terminal/readers/{reader}/cancel_action"}),collectInputs:M({method:"POST",fullPath:"/v1/terminal/readers/{reader}/collect_inputs"}),collectPaymentMethod:M({method:"POST",fullPath:"/v1/terminal/readers/{reader}/collect_payment_method"}),confirmPaymentIntent:M({method:"POST",fullPath:"/v1/terminal/readers/{reader}/confirm_payment_intent"}),processPaymentIntent:M({method:"POST",fullPath:"/v1/terminal/readers/{reader}/process_payment_intent"}),processSetupIntent:M({method:"POST",fullPath:"/v1/terminal/readers/{reader}/process_setup_intent"}),refundPayment:M({method:"POST",fullPath:"/v1/terminal/readers/{reader}/refund_payment"}),setReaderDisplay:M({method:"POST",fullPath:"/v1/terminal/readers/{reader}/set_reader_display"})})});var O4=B((q4)=>{Object.defineProperty(q4,"__esModule",{value:!0});q4.Readers=void 0;var D4=U(),VZ=D4.StripeResource.method;q4.Readers=D4.StripeResource.extend({presentPaymentMethod:VZ({method:"POST",fullPath:"/v1/test_helpers/terminal/readers/{reader}/present_payment_method"}),succeedInputCollection:VZ({method:"POST",fullPath:"/v1/test_helpers/terminal/readers/{reader}/succeed_input_collection"}),timeoutInputCollection:VZ({method:"POST",fullPath:"/v1/test_helpers/terminal/readers/{reader}/timeout_input_collection"})})});var A4=B((F4)=>{Object.defineProperty(F4,"__esModule",{value:!0});F4.ReceivedCredits=void 0;var k4=U(),G3=k4.StripeResource.method;F4.ReceivedCredits=k4.StripeResource.extend({create:G3({method:"POST",fullPath:"/v1/test_helpers/treasury/received_credits"})})});var I4=B((x4)=>{Object.defineProperty(x4,"__esModule",{value:!0});x4.ReceivedCredits=void 0;var v4=U(),b4=v4.StripeResource.method;x4.ReceivedCredits=v4.StripeResource.extend({retrieve:b4({method:"GET",fullPath:"/v1/treasury/received_credits/{id}"}),list:b4({method:"GET",fullPath:"/v1/treasury/received_credits",methodType:"list"})})});var R4=B((y4)=>{Object.defineProperty(y4,"__esModule",{value:!0});y4.ReceivedDebits=void 0;var f4=U(),z3=f4.StripeResource.method;y4.ReceivedDebits=f4.StripeResource.extend({create:z3({method:"POST",fullPath:"/v1/test_helpers/treasury/received_debits"})})});var m4=B((j4)=>{Object.defineProperty(j4,"__esModule",{value:!0});j4.ReceivedDebits=void 0;var M4=U(),S4=M4.StripeResource.method;j4.ReceivedDebits=M4.StripeResource.extend({retrieve:S4({method:"GET",fullPath:"/v1/treasury/received_debits/{id}"}),list:S4({method:"GET",fullPath:"/v1/treasury/received_debits",methodType:"list"})})});var c4=B((l4)=>{Object.defineProperty(l4,"__esModule",{value:!0});l4.Refunds=void 0;var h4=U(),B3=h4.StripeResource.method;l4.Refunds=h4.StripeResource.extend({expire:B3({method:"POST",fullPath:"/v1/test_helpers/refunds/{refund}/expire"})})});var i4=B((n4)=>{Object.defineProperty(n4,"__esModule",{value:!0});n4.Registrations=void 0;var d4=U(),q0=d4.StripeResource.method;n4.Registrations=d4.StripeResource.extend({create:q0({method:"POST",fullPath:"/v1/tax/registrations"}),retrieve:q0({method:"GET",fullPath:"/v1/tax/registrations/{id}"}),update:q0({method:"POST",fullPath:"/v1/tax/registrations/{id}"}),list:q0({method:"GET",fullPath:"/v1/tax/registrations",methodType:"list"})})});var r4=B((o4)=>{Object.defineProperty(o4,"__esModule",{value:!0});o4.ReportRuns=void 0;var p4=U(),WZ=p4.StripeResource.method;o4.ReportRuns=p4.StripeResource.extend({create:WZ({method:"POST",fullPath:"/v1/reporting/report_runs"}),retrieve:WZ({method:"GET",fullPath:"/v1/reporting/report_runs/{report_run}"}),list:WZ({method:"GET",fullPath:"/v1/reporting/report_runs",methodType:"list"})})});var $5=B((J5)=>{Object.defineProperty(J5,"__esModule",{value:!0});J5.ReportTypes=void 0;var e4=U(),t4=e4.StripeResource.method;J5.ReportTypes=e4.StripeResource.extend({retrieve:t4({method:"GET",fullPath:"/v1/reporting/report_types/{report_type}"}),list:t4({method:"GET",fullPath:"/v1/reporting/report_types",methodType:"list"})})});var B5=B((G5)=>{Object.defineProperty(G5,"__esModule",{value:!0});G5.Requests=void 0;var Q5=U(),KZ=Q5.StripeResource.method;G5.Requests=Q5.StripeResource.extend({create:KZ({method:"POST",fullPath:"/v1/forwarding/requests"}),retrieve:KZ({method:"GET",fullPath:"/v1/forwarding/requests/{id}"}),list:KZ({method:"GET",fullPath:"/v1/forwarding/requests",methodType:"list"})})});var L5=B((w5)=>{Object.defineProperty(w5,"__esModule",{value:!0});w5.ScheduledQueryRuns=void 0;var Y5=U(),X5=Y5.StripeResource.method;w5.ScheduledQueryRuns=Y5.StripeResource.extend({retrieve:X5({method:"GET",fullPath:"/v1/sigma/scheduled_query_runs/{scheduled_query_run}"}),list:X5({method:"GET",fullPath:"/v1/sigma/scheduled_query_runs",methodType:"list"})})});var T5=B((W5)=>{Object.defineProperty(W5,"__esModule",{value:!0});W5.Secrets=void 0;var V5=U(),E0=V5.StripeResource.method;W5.Secrets=V5.StripeResource.extend({create:E0({method:"POST",fullPath:"/v1/apps/secrets"}),list:E0({method:"GET",fullPath:"/v1/apps/secrets",methodType:"list"}),deleteWhere:E0({method:"POST",fullPath:"/v1/apps/secrets/delete"}),find:E0({method:"GET",fullPath:"/v1/apps/secrets/find"})})});var q5=B((H5)=>{Object.defineProperty(H5,"__esModule",{value:!0});H5.Sessions=void 0;var N5=U(),X3=N5.StripeResource.method;H5.Sessions=N5.StripeResource.extend({create:X3({method:"POST",fullPath:"/v1/billing_portal/sessions"})})});var F5=B((O5)=>{Object.defineProperty(O5,"__esModule",{value:!0});O5.Sessions=void 0;var E5=U(),VJ=E5.StripeResource.method;O5.Sessions=E5.StripeResource.extend({create:VJ({method:"POST",fullPath:"/v1/checkout/sessions",requestSchema:{kind:"object",fields:{line_items:{kind:"array",element:{kind:"object",fields:{price_data:{kind:"object",fields:{unit_amount_decimal:{kind:"decimal_string"}}}}}}}},responseSchema:{kind:"object",fields:{currency_conversion:{kind:"nullable",inner:{kind:"object",fields:{fx_rate:{kind:"decimal_string"}}}},line_items:{kind:"object",fields:{data:{kind:"array",element:{kind:"object",fields:{price:{kind:"nullable",inner:{kind:"object",fields:{currency_options:{kind:"array",element:{kind:"object",fields:{tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}}}}}}}),retrieve:VJ({method:"GET",fullPath:"/v1/checkout/sessions/{session}",responseSchema:{kind:"object",fields:{currency_conversion:{kind:"nullable",inner:{kind:"object",fields:{fx_rate:{kind:"decimal_string"}}}},line_items:{kind:"object",fields:{data:{kind:"array",element:{kind:"object",fields:{price:{kind:"nullable",inner:{kind:"object",fields:{currency_options:{kind:"array",element:{kind:"object",fields:{tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}}}}}}}),update:VJ({method:"POST",fullPath:"/v1/checkout/sessions/{session}",requestSchema:{kind:"object",fields:{line_items:{kind:"array",element:{kind:"object",fields:{price_data:{kind:"object",fields:{unit_amount_decimal:{kind:"decimal_string"}}}}}}}},responseSchema:{kind:"object",fields:{currency_conversion:{kind:"nullable",inner:{kind:"object",fields:{fx_rate:{kind:"decimal_string"}}}},line_items:{kind:"object",fields:{data:{kind:"array",element:{kind:"object",fields:{price:{kind:"nullable",inner:{kind:"object",fields:{currency_options:{kind:"array",element:{kind:"object",fields:{tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}}}}}}}),list:VJ({method:"GET",fullPath:"/v1/checkout/sessions",methodType:"list",responseSchema:{kind:"object",fields:{data:{kind:"array",element:{kind:"object",fields:{currency_conversion:{kind:"nullable",inner:{kind:"object",fields:{fx_rate:{kind:"decimal_string"}}}},line_items:{kind:"object",fields:{data:{kind:"array",element:{kind:"object",fields:{price:{kind:"nullable",inner:{kind:"object",fields:{currency_options:{kind:"array",element:{kind:"object",fields:{tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}}}}}}}}}}),expire:VJ({method:"POST",fullPath:"/v1/checkout/sessions/{session}/expire",responseSchema:{kind:"object",fields:{currency_conversion:{kind:"nullable",inner:{kind:"object",fields:{fx_rate:{kind:"decimal_string"}}}},line_items:{kind:"object",fields:{data:{kind:"array",element:{kind:"object",fields:{price:{kind:"nullable",inner:{kind:"object",fields:{currency_options:{kind:"array",element:{kind:"object",fields:{tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}}}}}}}),listLineItems:VJ({method:"GET",fullPath:"/v1/checkout/sessions/{session}/line_items",methodType:"list",responseSchema:{kind:"object",fields:{data:{kind:"array",element:{kind:"object",fields:{price:{kind:"nullable",inner:{kind:"object",fields:{currency_options:{kind:"array",element:{kind:"object",fields:{tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}}}}})})});var x5=B((b5)=>{Object.defineProperty(b5,"__esModule",{value:!0});b5.Sessions=void 0;var A5=U(),C5=A5.StripeResource.method;b5.Sessions=A5.StripeResource.extend({create:C5({method:"POST",fullPath:"/v1/financial_connections/sessions"}),retrieve:C5({method:"GET",fullPath:"/v1/financial_connections/sessions/{session}"})})});var g5=B((f5)=>{Object.defineProperty(f5,"__esModule",{value:!0});f5.Settings=void 0;var I5=U(),P5=I5.StripeResource.method;f5.Settings=I5.StripeResource.extend({retrieve:P5({method:"GET",fullPath:"/v1/tax/settings"}),update:P5({method:"POST",fullPath:"/v1/tax/settings"})})});var _5=B((M5)=>{Object.defineProperty(M5,"__esModule",{value:!0});M5.Suppliers=void 0;var S5=U(),R5=S5.StripeResource.method;M5.Suppliers=S5.StripeResource.extend({retrieve:R5({method:"GET",fullPath:"/v1/climate/suppliers/{supplier}"}),list:R5({method:"GET",fullPath:"/v1/climate/suppliers",methodType:"list"})})});var u5=B((h5)=>{Object.defineProperty(h5,"__esModule",{value:!0});h5.TestClocks=void 0;var m5=U(),jJ=m5.StripeResource.method;h5.TestClocks=m5.StripeResource.extend({create:jJ({method:"POST",fullPath:"/v1/test_helpers/test_clocks"}),retrieve:jJ({method:"GET",fullPath:"/v1/test_helpers/test_clocks/{test_clock}"}),list:jJ({method:"GET",fullPath:"/v1/test_helpers/test_clocks",methodType:"list"}),del:jJ({method:"DELETE",fullPath:"/v1/test_helpers/test_clocks/{test_clock}"}),advance:jJ({method:"POST",fullPath:"/v1/test_helpers/test_clocks/{test_clock}/advance"})})});var a5=B((d5)=>{Object.defineProperty(d5,"__esModule",{value:!0});d5.Tokens=void 0;var c5=U(),TZ=c5.StripeResource.method;d5.Tokens=c5.StripeResource.extend({retrieve:TZ({method:"GET",fullPath:"/v1/issuing/tokens/{token}"}),update:TZ({method:"POST",fullPath:"/v1/issuing/tokens/{token}"}),list:TZ({method:"GET",fullPath:"/v1/issuing/tokens",methodType:"list"})})});var r5=B((o5)=>{Object.defineProperty(o5,"__esModule",{value:!0});o5.TransactionEntries=void 0;var p5=U(),i5=p5.StripeResource.method;o5.TransactionEntries=p5.StripeResource.extend({retrieve:i5({method:"GET",fullPath:"/v1/treasury/transaction_entries/{id}",responseSchema:{kind:"object",fields:{flow_details:{kind:"nullable",inner:{kind:"object",fields:{issuing_authorization:{kind:"object",fields:{fleet:{kind:"nullable",inner:{kind:"object",fields:{reported_breakdown:{kind:"nullable",inner:{kind:"object",fields:{fuel:{kind:"nullable",inner:{kind:"object",fields:{gross_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},non_fuel:{kind:"nullable",inner:{kind:"object",fields:{gross_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},tax:{kind:"nullable",inner:{kind:"object",fields:{local_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},national_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}}}}},fuel:{kind:"nullable",inner:{kind:"object",fields:{quantity_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_cost_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},transactions:{kind:"array",element:{kind:"object",fields:{purchase_details:{kind:"nullable",inner:{kind:"object",fields:{fleet:{kind:"nullable",inner:{kind:"object",fields:{reported_breakdown:{kind:"nullable",inner:{kind:"object",fields:{fuel:{kind:"nullable",inner:{kind:"object",fields:{gross_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},non_fuel:{kind:"nullable",inner:{kind:"object",fields:{gross_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},tax:{kind:"nullable",inner:{kind:"object",fields:{local_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},national_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}}}}},fuel:{kind:"nullable",inner:{kind:"object",fields:{quantity_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_cost_decimal:{kind:"decimal_string"}}}}}}}}}}}}}}}}}}),list:i5({method:"GET",fullPath:"/v1/treasury/transaction_entries",methodType:"list",responseSchema:{kind:"object",fields:{data:{kind:"array",element:{kind:"object",fields:{flow_details:{kind:"nullable",inner:{kind:"object",fields:{issuing_authorization:{kind:"object",fields:{fleet:{kind:"nullable",inner:{kind:"object",fields:{reported_breakdown:{kind:"nullable",inner:{kind:"object",fields:{fuel:{kind:"nullable",inner:{kind:"object",fields:{gross_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},non_fuel:{kind:"nullable",inner:{kind:"object",fields:{gross_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},tax:{kind:"nullable",inner:{kind:"object",fields:{local_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},national_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}}}}},fuel:{kind:"nullable",inner:{kind:"object",fields:{quantity_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_cost_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},transactions:{kind:"array",element:{kind:"object",fields:{purchase_details:{kind:"nullable",inner:{kind:"object",fields:{fleet:{kind:"nullable",inner:{kind:"object",fields:{reported_breakdown:{kind:"nullable",inner:{kind:"object",fields:{fuel:{kind:"nullable",inner:{kind:"object",fields:{gross_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},non_fuel:{kind:"nullable",inner:{kind:"object",fields:{gross_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},tax:{kind:"nullable",inner:{kind:"object",fields:{local_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},national_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}}}}},fuel:{kind:"nullable",inner:{kind:"object",fields:{quantity_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_cost_decimal:{kind:"decimal_string"}}}}}}}}}}}}}}}}}}}}})})});var $G=B((JG)=>{Object.defineProperty(JG,"__esModule",{value:!0});JG.Transactions=void 0;var e5=U(),t5=e5.StripeResource.method;JG.Transactions=e5.StripeResource.extend({retrieve:t5({method:"GET",fullPath:"/v1/financial_connections/transactions/{transaction}"}),list:t5({method:"GET",fullPath:"/v1/financial_connections/transactions",methodType:"list"})})});var BG=B((GG)=>{Object.defineProperty(GG,"__esModule",{value:!0});GG.Transactions=void 0;var QG=U(),NZ=QG.StripeResource.method;GG.Transactions=QG.StripeResource.extend({retrieve:NZ({method:"GET",fullPath:"/v1/issuing/transactions/{transaction}",responseSchema:{kind:"object",fields:{purchase_details:{kind:"nullable",inner:{kind:"object",fields:{fleet:{kind:"nullable",inner:{kind:"object",fields:{reported_breakdown:{kind:"nullable",inner:{kind:"object",fields:{fuel:{kind:"nullable",inner:{kind:"object",fields:{gross_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},non_fuel:{kind:"nullable",inner:{kind:"object",fields:{gross_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},tax:{kind:"nullable",inner:{kind:"object",fields:{local_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},national_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}}}}},fuel:{kind:"nullable",inner:{kind:"object",fields:{quantity_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_cost_decimal:{kind:"decimal_string"}}}}}}}}}}),update:NZ({method:"POST",fullPath:"/v1/issuing/transactions/{transaction}",responseSchema:{kind:"object",fields:{purchase_details:{kind:"nullable",inner:{kind:"object",fields:{fleet:{kind:"nullable",inner:{kind:"object",fields:{reported_breakdown:{kind:"nullable",inner:{kind:"object",fields:{fuel:{kind:"nullable",inner:{kind:"object",fields:{gross_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},non_fuel:{kind:"nullable",inner:{kind:"object",fields:{gross_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},tax:{kind:"nullable",inner:{kind:"object",fields:{local_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},national_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}}}}},fuel:{kind:"nullable",inner:{kind:"object",fields:{quantity_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_cost_decimal:{kind:"decimal_string"}}}}}}}}}}),list:NZ({method:"GET",fullPath:"/v1/issuing/transactions",methodType:"list",responseSchema:{kind:"object",fields:{data:{kind:"array",element:{kind:"object",fields:{purchase_details:{kind:"nullable",inner:{kind:"object",fields:{fleet:{kind:"nullable",inner:{kind:"object",fields:{reported_breakdown:{kind:"nullable",inner:{kind:"object",fields:{fuel:{kind:"nullable",inner:{kind:"object",fields:{gross_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},non_fuel:{kind:"nullable",inner:{kind:"object",fields:{gross_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},tax:{kind:"nullable",inner:{kind:"object",fields:{local_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},national_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}}}}},fuel:{kind:"nullable",inner:{kind:"object",fields:{quantity_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_cost_decimal:{kind:"decimal_string"}}}}}}}}}}}}})})});var UG=B((YG)=>{Object.defineProperty(YG,"__esModule",{value:!0});YG.Transactions=void 0;var XG=U(),O0=XG.StripeResource.method;YG.Transactions=XG.StripeResource.extend({retrieve:O0({method:"GET",fullPath:"/v1/tax/transactions/{transaction}"}),createFromCalculation:O0({method:"POST",fullPath:"/v1/tax/transactions/create_from_calculation"}),createReversal:O0({method:"POST",fullPath:"/v1/tax/transactions/create_reversal"}),listLineItems:O0({method:"GET",fullPath:"/v1/tax/transactions/{transaction}/line_items",methodType:"list"})})});var KG=B((VG)=>{Object.defineProperty(VG,"__esModule",{value:!0});VG.Transactions=void 0;var LG=U(),HZ=LG.StripeResource.method;VG.Transactions=LG.StripeResource.extend({createForceCapture:HZ({method:"POST",fullPath:"/v1/test_helpers/issuing/transactions/create_force_capture",requestSchema:{kind:"object",fields:{purchase_details:{kind:"object",fields:{fleet:{kind:"object",fields:{reported_breakdown:{kind:"object",fields:{fuel:{kind:"object",fields:{gross_amount_decimal:{kind:"decimal_string"}}},non_fuel:{kind:"object",fields:{gross_amount_decimal:{kind:"decimal_string"}}},tax:{kind:"object",fields:{local_amount_decimal:{kind:"decimal_string"},national_amount_decimal:{kind:"decimal_string"}}}}}}},fuel:{kind:"object",fields:{quantity_decimal:{kind:"decimal_string"},unit_cost_decimal:{kind:"decimal_string"}}},receipt:{kind:"array",element:{kind:"object",fields:{quantity:{kind:"decimal_string"}}}}}}}},responseSchema:{kind:"object",fields:{purchase_details:{kind:"nullable",inner:{kind:"object",fields:{fleet:{kind:"nullable",inner:{kind:"object",fields:{reported_breakdown:{kind:"nullable",inner:{kind:"object",fields:{fuel:{kind:"nullable",inner:{kind:"object",fields:{gross_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},non_fuel:{kind:"nullable",inner:{kind:"object",fields:{gross_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},tax:{kind:"nullable",inner:{kind:"object",fields:{local_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},national_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}}}}},fuel:{kind:"nullable",inner:{kind:"object",fields:{quantity_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_cost_decimal:{kind:"decimal_string"}}}}}}}}}}),createUnlinkedRefund:HZ({method:"POST",fullPath:"/v1/test_helpers/issuing/transactions/create_unlinked_refund",requestSchema:{kind:"object",fields:{purchase_details:{kind:"object",fields:{fleet:{kind:"object",fields:{reported_breakdown:{kind:"object",fields:{fuel:{kind:"object",fields:{gross_amount_decimal:{kind:"decimal_string"}}},non_fuel:{kind:"object",fields:{gross_amount_decimal:{kind:"decimal_string"}}},tax:{kind:"object",fields:{local_amount_decimal:{kind:"decimal_string"},national_amount_decimal:{kind:"decimal_string"}}}}}}},fuel:{kind:"object",fields:{quantity_decimal:{kind:"decimal_string"},unit_cost_decimal:{kind:"decimal_string"}}},receipt:{kind:"array",element:{kind:"object",fields:{quantity:{kind:"decimal_string"}}}}}}}},responseSchema:{kind:"object",fields:{purchase_details:{kind:"nullable",inner:{kind:"object",fields:{fleet:{kind:"nullable",inner:{kind:"object",fields:{reported_breakdown:{kind:"nullable",inner:{kind:"object",fields:{fuel:{kind:"nullable",inner:{kind:"object",fields:{gross_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},non_fuel:{kind:"nullable",inner:{kind:"object",fields:{gross_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},tax:{kind:"nullable",inner:{kind:"object",fields:{local_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},national_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}}}}},fuel:{kind:"nullable",inner:{kind:"object",fields:{quantity_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_cost_decimal:{kind:"decimal_string"}}}}}}}}}}),refund:HZ({method:"POST",fullPath:"/v1/test_helpers/issuing/transactions/{transaction}/refund",responseSchema:{kind:"object",fields:{purchase_details:{kind:"nullable",inner:{kind:"object",fields:{fleet:{kind:"nullable",inner:{kind:"object",fields:{reported_breakdown:{kind:"nullable",inner:{kind:"object",fields:{fuel:{kind:"nullable",inner:{kind:"object",fields:{gross_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},non_fuel:{kind:"nullable",inner:{kind:"object",fields:{gross_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},tax:{kind:"nullable",inner:{kind:"object",fields:{local_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},national_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}}}}},fuel:{kind:"nullable",inner:{kind:"object",fields:{quantity_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_cost_decimal:{kind:"decimal_string"}}}}}}}}}})})});var qG=B((HG)=>{Object.defineProperty(HG,"__esModule",{value:!0});HG.Transactions=void 0;var NG=U(),TG=NG.StripeResource.method;HG.Transactions=NG.StripeResource.extend({retrieve:TG({method:"GET",fullPath:"/v1/treasury/transactions/{id}",responseSchema:{kind:"object",fields:{entries:{kind:"nullable",inner:{kind:"object",fields:{data:{kind:"array",element:{kind:"object",fields:{flow_details:{kind:"nullable",inner:{kind:"object",fields:{issuing_authorization:{kind:"object",fields:{fleet:{kind:"nullable",inner:{kind:"object",fields:{reported_breakdown:{kind:"nullable",inner:{kind:"object",fields:{fuel:{kind:"nullable",inner:{kind:"object",fields:{gross_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},non_fuel:{kind:"nullable",inner:{kind:"object",fields:{gross_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},tax:{kind:"nullable",inner:{kind:"object",fields:{local_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},national_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}}}}},fuel:{kind:"nullable",inner:{kind:"object",fields:{quantity_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_cost_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},transactions:{kind:"array",element:{kind:"object",fields:{purchase_details:{kind:"nullable",inner:{kind:"object",fields:{fleet:{kind:"nullable",inner:{kind:"object",fields:{reported_breakdown:{kind:"nullable",inner:{kind:"object",fields:{fuel:{kind:"nullable",inner:{kind:"object",fields:{gross_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},non_fuel:{kind:"nullable",inner:{kind:"object",fields:{gross_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},tax:{kind:"nullable",inner:{kind:"object",fields:{local_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},national_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}}}}},fuel:{kind:"nullable",inner:{kind:"object",fields:{quantity_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_cost_decimal:{kind:"decimal_string"}}}}}}}}}}}}}}}}}}}}}}}}),list:TG({method:"GET",fullPath:"/v1/treasury/transactions",methodType:"list",responseSchema:{kind:"object",fields:{data:{kind:"array",element:{kind:"object",fields:{entries:{kind:"nullable",inner:{kind:"object",fields:{data:{kind:"array",element:{kind:"object",fields:{flow_details:{kind:"nullable",inner:{kind:"object",fields:{issuing_authorization:{kind:"object",fields:{fleet:{kind:"nullable",inner:{kind:"object",fields:{reported_breakdown:{kind:"nullable",inner:{kind:"object",fields:{fuel:{kind:"nullable",inner:{kind:"object",fields:{gross_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},non_fuel:{kind:"nullable",inner:{kind:"object",fields:{gross_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},tax:{kind:"nullable",inner:{kind:"object",fields:{local_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},national_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}}}}},fuel:{kind:"nullable",inner:{kind:"object",fields:{quantity_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_cost_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},transactions:{kind:"array",element:{kind:"object",fields:{purchase_details:{kind:"nullable",inner:{kind:"object",fields:{fleet:{kind:"nullable",inner:{kind:"object",fields:{reported_breakdown:{kind:"nullable",inner:{kind:"object",fields:{fuel:{kind:"nullable",inner:{kind:"object",fields:{gross_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},non_fuel:{kind:"nullable",inner:{kind:"object",fields:{gross_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},tax:{kind:"nullable",inner:{kind:"object",fields:{local_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},national_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}}}}},fuel:{kind:"nullable",inner:{kind:"object",fields:{quantity_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_cost_decimal:{kind:"decimal_string"}}}}}}}}}}}}}}}}}}}}}}}}}}})})});var FG=B((OG)=>{Object.defineProperty(OG,"__esModule",{value:!0});OG.ValueListItems=void 0;var EG=U(),k0=EG.StripeResource.method;OG.ValueListItems=EG.StripeResource.extend({create:k0({method:"POST",fullPath:"/v1/radar/value_list_items"}),retrieve:k0({method:"GET",fullPath:"/v1/radar/value_list_items/{item}"}),list:k0({method:"GET",fullPath:"/v1/radar/value_list_items",methodType:"list"}),del:k0({method:"DELETE",fullPath:"/v1/radar/value_list_items/{item}"})})});var vG=B((AG)=>{Object.defineProperty(AG,"__esModule",{value:!0});AG.ValueLists=void 0;var CG=U(),_J=CG.StripeResource.method;AG.ValueLists=CG.StripeResource.extend({create:_J({method:"POST",fullPath:"/v1/radar/value_lists"}),retrieve:_J({method:"GET",fullPath:"/v1/radar/value_lists/{value_list}"}),update:_J({method:"POST",fullPath:"/v1/radar/value_lists/{value_list}"}),list:_J({method:"GET",fullPath:"/v1/radar/value_lists",methodType:"list"}),del:_J({method:"DELETE",fullPath:"/v1/radar/value_lists/{value_list}"})})});var yG=B((IG)=>{Object.defineProperty(IG,"__esModule",{value:!0});IG.VerificationReports=void 0;var PG=U(),xG=PG.StripeResource.method;IG.VerificationReports=PG.StripeResource.extend({retrieve:xG({method:"GET",fullPath:"/v1/identity/verification_reports/{report}"}),list:xG({method:"GET",fullPath:"/v1/identity/verification_reports",methodType:"list"})})});var MG=B((RG)=>{Object.defineProperty(RG,"__esModule",{value:!0});RG.VerificationSessions=void 0;var gG=U(),WJ=gG.StripeResource.method;RG.VerificationSessions=gG.StripeResource.extend({create:WJ({method:"POST",fullPath:"/v1/identity/verification_sessions"}),retrieve:WJ({method:"GET",fullPath:"/v1/identity/verification_sessions/{session}"}),update:WJ({method:"POST",fullPath:"/v1/identity/verification_sessions/{session}"}),list:WJ({method:"GET",fullPath:"/v1/identity/verification_sessions",methodType:"list"}),cancel:WJ({method:"POST",fullPath:"/v1/identity/verification_sessions/{session}/cancel"}),redact:WJ({method:"POST",fullPath:"/v1/identity/verification_sessions/{session}/redact"})})});var DZ=B((_G)=>{Object.defineProperty(_G,"__esModule",{value:!0});_G.Accounts=void 0;var jG=U(),A=jG.StripeResource.method;_G.Accounts=jG.StripeResource.extend({create:A({method:"POST",fullPath:"/v1/accounts"}),retrieve(J,...Z){if(typeof J==="string")return A({method:"GET",fullPath:"/v1/accounts/{id}"}).apply(this,[J,...Z]);else{if(J===null||J===void 0)[].shift.apply([J,...Z]);return A({method:"GET",fullPath:"/v1/account"}).apply(this,[J,...Z])}},update:A({method:"POST",fullPath:"/v1/accounts/{account}"}),list:A({method:"GET",fullPath:"/v1/accounts",methodType:"list"}),del:A({method:"DELETE",fullPath:"/v1/accounts/{account}"}),createExternalAccount:A({method:"POST",fullPath:"/v1/accounts/{account}/external_accounts"}),createLoginLink:A({method:"POST",fullPath:"/v1/accounts/{account}/login_links"}),createPerson:A({method:"POST",fullPath:"/v1/accounts/{account}/persons"}),deleteExternalAccount:A({method:"DELETE",fullPath:"/v1/accounts/{account}/external_accounts/{id}"}),deletePerson:A({method:"DELETE",fullPath:"/v1/accounts/{account}/persons/{person}"}),listCapabilities:A({method:"GET",fullPath:"/v1/accounts/{account}/capabilities",methodType:"list"}),listExternalAccounts:A({method:"GET",fullPath:"/v1/accounts/{account}/external_accounts",methodType:"list"}),listPersons:A({method:"GET",fullPath:"/v1/accounts/{account}/persons",methodType:"list"}),reject:A({method:"POST",fullPath:"/v1/accounts/{account}/reject"}),retrieveCurrent:A({method:"GET",fullPath:"/v1/account"}),retrieveCapability:A({method:"GET",fullPath:"/v1/accounts/{account}/capabilities/{capability}"}),retrieveExternalAccount:A({method:"GET",fullPath:"/v1/accounts/{account}/external_accounts/{id}"}),retrievePerson:A({method:"GET",fullPath:"/v1/accounts/{account}/persons/{person}"}),updateCapability:A({method:"POST",fullPath:"/v1/accounts/{account}/capabilities/{capability}"}),updateExternalAccount:A({method:"POST",fullPath:"/v1/accounts/{account}/external_accounts/{id}"}),updatePerson:A({method:"POST",fullPath:"/v1/accounts/{account}/persons/{person}"})})});var cG=B((lG)=>{Object.defineProperty(lG,"__esModule",{value:!0});lG.AccountLinks=void 0;var hG=U(),Y3=hG.StripeResource.method;lG.AccountLinks=hG.StripeResource.extend({create:Y3({method:"POST",fullPath:"/v1/account_links"})})});var iG=B((nG)=>{Object.defineProperty(nG,"__esModule",{value:!0});nG.AccountSessions=void 0;var dG=U(),w3=dG.StripeResource.method;nG.AccountSessions=dG.StripeResource.extend({create:w3({method:"POST",fullPath:"/v1/account_sessions"})})});var rG=B((oG)=>{Object.defineProperty(oG,"__esModule",{value:!0});oG.ApplePayDomains=void 0;var pG=U(),F0=pG.StripeResource.method;oG.ApplePayDomains=pG.StripeResource.extend({create:F0({method:"POST",fullPath:"/v1/apple_pay/domains"}),retrieve:F0({method:"GET",fullPath:"/v1/apple_pay/domains/{domain}"}),list:F0({method:"GET",fullPath:"/v1/apple_pay/domains",methodType:"list"}),del:F0({method:"DELETE",fullPath:"/v1/apple_pay/domains/{domain}"})})});var Z6=B((eG)=>{Object.defineProperty(eG,"__esModule",{value:!0});eG.ApplicationFees=void 0;var tG=U(),KJ=tG.StripeResource.method;eG.ApplicationFees=tG.StripeResource.extend({retrieve:KJ({method:"GET",fullPath:"/v1/application_fees/{id}"}),list:KJ({method:"GET",fullPath:"/v1/application_fees",methodType:"list"}),createRefund:KJ({method:"POST",fullPath:"/v1/application_fees/{id}/refunds"}),listRefunds:KJ({method:"GET",fullPath:"/v1/application_fees/{id}/refunds",methodType:"list"}),retrieveRefund:KJ({method:"GET",fullPath:"/v1/application_fees/{fee}/refunds/{id}"}),updateRefund:KJ({method:"POST",fullPath:"/v1/application_fees/{fee}/refunds/{id}"})})});var z6=B((Q6)=>{Object.defineProperty(Q6,"__esModule",{value:!0});Q6.Balance=void 0;var $6=U(),U3=$6.StripeResource.method;Q6.Balance=$6.StripeResource.extend({retrieve:U3({method:"GET",fullPath:"/v1/balance"})})});var U6=B((Y6)=>{Object.defineProperty(Y6,"__esModule",{value:!0});Y6.BalanceSettings=void 0;var X6=U(),B6=X6.StripeResource.method;Y6.BalanceSettings=X6.StripeResource.extend({retrieve:B6({method:"GET",fullPath:"/v1/balance_settings"}),update:B6({method:"POST",fullPath:"/v1/balance_settings"})})});var T6=B((W6)=>{Object.defineProperty(W6,"__esModule",{value:!0});W6.BalanceTransactions=void 0;var V6=U(),L6=V6.StripeResource.method;W6.BalanceTransactions=V6.StripeResource.extend({retrieve:L6({method:"GET",fullPath:"/v1/balance_transactions/{id}"}),list:L6({method:"GET",fullPath:"/v1/balance_transactions",methodType:"list"})})});var q6=B((H6)=>{Object.defineProperty(H6,"__esModule",{value:!0});H6.Charges=void 0;var N6=U(),TJ=N6.StripeResource.method;H6.Charges=N6.StripeResource.extend({create:TJ({method:"POST",fullPath:"/v1/charges"}),retrieve:TJ({method:"GET",fullPath:"/v1/charges/{charge}"}),update:TJ({method:"POST",fullPath:"/v1/charges/{charge}"}),list:TJ({method:"GET",fullPath:"/v1/charges",methodType:"list"}),capture:TJ({method:"POST",fullPath:"/v1/charges/{charge}/capture"}),search:TJ({method:"GET",fullPath:"/v1/charges/search",methodType:"search"})})});var F6=B((O6)=>{Object.defineProperty(O6,"__esModule",{value:!0});O6.ConfirmationTokens=void 0;var E6=U(),L3=E6.StripeResource.method;O6.ConfirmationTokens=E6.StripeResource.extend({retrieve:L3({method:"GET",fullPath:"/v1/confirmation_tokens/{confirmation_token}"})})});var x6=B((b6)=>{Object.defineProperty(b6,"__esModule",{value:!0});b6.CountrySpecs=void 0;var A6=U(),C6=A6.StripeResource.method;b6.CountrySpecs=A6.StripeResource.extend({retrieve:C6({method:"GET",fullPath:"/v1/country_specs/{country}"}),list:C6({method:"GET",fullPath:"/v1/country_specs",methodType:"list"})})});var y6=B((I6)=>{Object.defineProperty(I6,"__esModule",{value:!0});I6.Coupons=void 0;var P6=U(),mJ=P6.StripeResource.method;I6.Coupons=P6.StripeResource.extend({create:mJ({method:"POST",fullPath:"/v1/coupons"}),retrieve:mJ({method:"GET",fullPath:"/v1/coupons/{coupon}"}),update:mJ({method:"POST",fullPath:"/v1/coupons/{coupon}"}),list:mJ({method:"GET",fullPath:"/v1/coupons",methodType:"list"}),del:mJ({method:"DELETE",fullPath:"/v1/coupons/{coupon}"})})});var M6=B((R6)=>{Object.defineProperty(R6,"__esModule",{value:!0});R6.CreditNotes=void 0;var g6=U(),i=g6.StripeResource.method;R6.CreditNotes=g6.StripeResource.extend({create:i({method:"POST",fullPath:"/v1/credit_notes",requestSchema:{kind:"object",fields:{lines:{kind:"array",element:{kind:"object",fields:{unit_amount_decimal:{kind:"decimal_string"}}}}}},responseSchema:{kind:"object",fields:{lines:{kind:"object",fields:{data:{kind:"array",element:{kind:"object",fields:{unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}}}}),retrieve:i({method:"GET",fullPath:"/v1/credit_notes/{id}",responseSchema:{kind:"object",fields:{lines:{kind:"object",fields:{data:{kind:"array",element:{kind:"object",fields:{unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}}}}),update:i({method:"POST",fullPath:"/v1/credit_notes/{id}",responseSchema:{kind:"object",fields:{lines:{kind:"object",fields:{data:{kind:"array",element:{kind:"object",fields:{unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}}}}),list:i({method:"GET",fullPath:"/v1/credit_notes",methodType:"list",responseSchema:{kind:"object",fields:{data:{kind:"array",element:{kind:"object",fields:{lines:{kind:"object",fields:{data:{kind:"array",element:{kind:"object",fields:{unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}}}}}}}),listLineItems:i({method:"GET",fullPath:"/v1/credit_notes/{credit_note}/lines",methodType:"list",responseSchema:{kind:"object",fields:{data:{kind:"array",element:{kind:"object",fields:{unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}}),listPreviewLineItems:i({method:"GET",fullPath:"/v1/credit_notes/preview/lines",methodType:"list",requestSchema:{kind:"object",fields:{lines:{kind:"array",element:{kind:"object",fields:{unit_amount_decimal:{kind:"decimal_string"}}}}}},responseSchema:{kind:"object",fields:{data:{kind:"array",element:{kind:"object",fields:{unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}}),preview:i({method:"GET",fullPath:"/v1/credit_notes/preview",requestSchema:{kind:"object",fields:{lines:{kind:"array",element:{kind:"object",fields:{unit_amount_decimal:{kind:"decimal_string"}}}}}},responseSchema:{kind:"object",fields:{lines:{kind:"object",fields:{data:{kind:"array",element:{kind:"object",fields:{unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}}}}),voidCreditNote:i({method:"POST",fullPath:"/v1/credit_notes/{id}/void",responseSchema:{kind:"object",fields:{lines:{kind:"object",fields:{data:{kind:"array",element:{kind:"object",fields:{unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}}}})})});var h6=B((_6)=>{Object.defineProperty(_6,"__esModule",{value:!0});_6.CustomerSessions=void 0;var j6=U(),V3=j6.StripeResource.method;_6.CustomerSessions=j6.StripeResource.extend({create:V3({method:"POST",fullPath:"/v1/customer_sessions"})})});var d6=B((u6)=>{Object.defineProperty(u6,"__esModule",{value:!0});u6.Customers=void 0;var l6=U(),F=l6.StripeResource.method;u6.Customers=l6.StripeResource.extend({create:F({method:"POST",fullPath:"/v1/customers",responseSchema:{kind:"object",fields:{subscriptions:{kind:"object",fields:{data:{kind:"array",element:{kind:"object",fields:{items:{kind:"object",fields:{data:{kind:"array",element:{kind:"object",fields:{plan:{kind:"object",fields:{amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}},price:{kind:"object",fields:{currency_options:{kind:"array",element:{kind:"object",fields:{tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}}}}}}}}}}}),retrieve:F({method:"GET",fullPath:"/v1/customers/{customer}"}),update:F({method:"POST",fullPath:"/v1/customers/{customer}",responseSchema:{kind:"object",fields:{subscriptions:{kind:"object",fields:{data:{kind:"array",element:{kind:"object",fields:{items:{kind:"object",fields:{data:{kind:"array",element:{kind:"object",fields:{plan:{kind:"object",fields:{amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}},price:{kind:"object",fields:{currency_options:{kind:"array",element:{kind:"object",fields:{tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}}}}}}}}}}}),list:F({method:"GET",fullPath:"/v1/customers",methodType:"list",responseSchema:{kind:"object",fields:{data:{kind:"array",element:{kind:"object",fields:{subscriptions:{kind:"object",fields:{data:{kind:"array",element:{kind:"object",fields:{items:{kind:"object",fields:{data:{kind:"array",element:{kind:"object",fields:{plan:{kind:"object",fields:{amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}},price:{kind:"object",fields:{currency_options:{kind:"array",element:{kind:"object",fields:{tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}}}}}}}}}}}}}}),del:F({method:"DELETE",fullPath:"/v1/customers/{customer}"}),createBalanceTransaction:F({method:"POST",fullPath:"/v1/customers/{customer}/balance_transactions"}),createFundingInstructions:F({method:"POST",fullPath:"/v1/customers/{customer}/funding_instructions"}),createSource:F({method:"POST",fullPath:"/v1/customers/{customer}/sources"}),createTaxId:F({method:"POST",fullPath:"/v1/customers/{customer}/tax_ids"}),deleteDiscount:F({method:"DELETE",fullPath:"/v1/customers/{customer}/discount"}),deleteSource:F({method:"DELETE",fullPath:"/v1/customers/{customer}/sources/{id}"}),deleteTaxId:F({method:"DELETE",fullPath:"/v1/customers/{customer}/tax_ids/{id}"}),listBalanceTransactions:F({method:"GET",fullPath:"/v1/customers/{customer}/balance_transactions",methodType:"list"}),listCashBalanceTransactions:F({method:"GET",fullPath:"/v1/customers/{customer}/cash_balance_transactions",methodType:"list"}),listPaymentMethods:F({method:"GET",fullPath:"/v1/customers/{customer}/payment_methods",methodType:"list"}),listSources:F({method:"GET",fullPath:"/v1/customers/{customer}/sources",methodType:"list"}),listTaxIds:F({method:"GET",fullPath:"/v1/customers/{customer}/tax_ids",methodType:"list"}),retrieveBalanceTransaction:F({method:"GET",fullPath:"/v1/customers/{customer}/balance_transactions/{transaction}"}),retrieveCashBalance:F({method:"GET",fullPath:"/v1/customers/{customer}/cash_balance"}),retrieveCashBalanceTransaction:F({method:"GET",fullPath:"/v1/customers/{customer}/cash_balance_transactions/{transaction}"}),retrievePaymentMethod:F({method:"GET",fullPath:"/v1/customers/{customer}/payment_methods/{payment_method}"}),retrieveSource:F({method:"GET",fullPath:"/v1/customers/{customer}/sources/{id}"}),retrieveTaxId:F({method:"GET",fullPath:"/v1/customers/{customer}/tax_ids/{id}"}),search:F({method:"GET",fullPath:"/v1/customers/search",methodType:"search",responseSchema:{kind:"object",fields:{data:{kind:"array",element:{kind:"object",fields:{subscriptions:{kind:"object",fields:{data:{kind:"array",element:{kind:"object",fields:{items:{kind:"object",fields:{data:{kind:"array",element:{kind:"object",fields:{plan:{kind:"object",fields:{amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}},price:{kind:"object",fields:{currency_options:{kind:"array",element:{kind:"object",fields:{tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}}}}}}}}}}}}}}),updateBalanceTransaction:F({method:"POST",fullPath:"/v1/customers/{customer}/balance_transactions/{transaction}"}),updateCashBalance:F({method:"POST",fullPath:"/v1/customers/{customer}/cash_balance"}),updateSource:F({method:"POST",fullPath:"/v1/customers/{customer}/sources/{id}"}),verifySource:F({method:"POST",fullPath:"/v1/customers/{customer}/sources/{id}/verify"})})});var p6=B((a6)=>{Object.defineProperty(a6,"__esModule",{value:!0});a6.Disputes=void 0;var n6=U(),C0=n6.StripeResource.method;a6.Disputes=n6.StripeResource.extend({retrieve:C0({method:"GET",fullPath:"/v1/disputes/{dispute}"}),update:C0({method:"POST",fullPath:"/v1/disputes/{dispute}"}),list:C0({method:"GET",fullPath:"/v1/disputes",methodType:"list"}),close:C0({method:"POST",fullPath:"/v1/disputes/{dispute}/close"})})});var e6=B((r6)=>{Object.defineProperty(r6,"__esModule",{value:!0});r6.EphemeralKeys=void 0;var s6=U(),o6=s6.StripeResource.method;r6.EphemeralKeys=s6.StripeResource.extend({create:o6({method:"POST",fullPath:"/v1/ephemeral_keys",validator:(J,Z)=>{if(!Z.headers||!Z.headers["Stripe-Version"])throw Error("Passing apiVersion in a separate options hash is required to create an ephemeral key. See https://stripe.com/docs/api/versioning?lang=node")}}),del:o6({method:"DELETE",fullPath:"/v1/ephemeral_keys/{key}"})})});var Gz=B(($z)=>{Object.defineProperty($z,"__esModule",{value:!0});$z.Events=void 0;var Zz=U(),Jz=Zz.StripeResource.method;$z.Events=Zz.StripeResource.extend({retrieve:Jz({method:"GET",fullPath:"/v1/events/{id}"}),list:Jz({method:"GET",fullPath:"/v1/events",methodType:"list"})})});var wz=B((Xz)=>{Object.defineProperty(Xz,"__esModule",{value:!0});Xz.ExchangeRates=void 0;var Bz=U(),zz=Bz.StripeResource.method;Xz.ExchangeRates=Bz.StripeResource.extend({retrieve:zz({method:"GET",fullPath:"/v1/exchange_rates/{rate_id}"}),list:zz({method:"GET",fullPath:"/v1/exchange_rates",methodType:"list"})})});var Wz=B((Lz)=>{Object.defineProperty(Lz,"__esModule",{value:!0});Lz.FileLinks=void 0;var Uz=U(),A0=Uz.StripeResource.method;Lz.FileLinks=Uz.StripeResource.extend({create:A0({method:"POST",fullPath:"/v1/file_links"}),retrieve:A0({method:"GET",fullPath:"/v1/file_links/{link}"}),update:A0({method:"POST",fullPath:"/v1/file_links/{link}"}),list:A0({method:"GET",fullPath:"/v1/file_links",methodType:"list"})})});var Hz=B((Tz)=>{Object.defineProperty(Tz,"__esModule",{value:!0});Tz.multipartRequestDataProcessor=void 0;var Kz=_(),W3=(J,Z,$)=>{let Q=(Math.round(Math.random()*10000000000000000)+Math.round(Math.random()*10000000000000000)).toString();$["Content-Type"]=`multipart/form-data; boundary=${Q}`;let G=new TextEncoder,z=new Uint8Array(0),w=G.encode(`\r
12
- `);function X(Y){let V=z,W=Y instanceof Uint8Array?Y:new Uint8Array(G.encode(Y));z=new Uint8Array(V.length+W.length+2),z.set(V),z.set(W,V.length),z.set(w,z.length-2)}function K(Y){return`"${Y.replace(/"|"/g,"%22").replace(/\r\n|\r|\n/g," ")}"`}let T=(0,Kz.flattenAndStringify)(Z);for(let Y in T){if(!Object.prototype.hasOwnProperty.call(T,Y))continue;let V=T[Y];if(X(`--${Q}`),Object.prototype.hasOwnProperty.call(V,"data")){let W=V;X(`Content-Disposition: form-data; name=${K(Y)}; filename=${K(W.name||"blob")}`),X(`Content-Type: ${W.type||"application/octet-stream"}`),X(""),X(W.data)}else X(`Content-Disposition: form-data; name=${K(Y)}`),X(""),X(V)}return X(`--${Q}--`),z};function K3(J,Z,$,Q){if(Z=Z||{},J!=="POST")return Q(null,(0,Kz.queryStringifyRequestData)(Z));this._stripe._platformFunctions.tryBufferData(Z).then((G)=>{let z=W3(J,G,$);return Q(null,z)}).catch((G)=>Q(G,null))}Tz.multipartRequestDataProcessor=K3});var Oz=B((qz)=>{Object.defineProperty(qz,"__esModule",{value:!0});qz.Files=void 0;var T3=Hz(),Dz=U(),qZ=Dz.StripeResource.method;qz.Files=Dz.StripeResource.extend({create:qZ({method:"POST",fullPath:"/v1/files",headers:{"Content-Type":"multipart/form-data"},host:"files.stripe.com"}),retrieve:qZ({method:"GET",fullPath:"/v1/files/{file}"}),list:qZ({method:"GET",fullPath:"/v1/files",methodType:"list"}),requestDataProcessor:T3.multipartRequestDataProcessor})});var Az=B((Fz)=>{Object.defineProperty(Fz,"__esModule",{value:!0});Fz.InvoiceItems=void 0;var kz=U(),hJ=kz.StripeResource.method;Fz.InvoiceItems=kz.StripeResource.extend({create:hJ({method:"POST",fullPath:"/v1/invoiceitems",requestSchema:{kind:"object",fields:{price_data:{kind:"object",fields:{unit_amount_decimal:{kind:"decimal_string"}}},quantity_decimal:{kind:"decimal_string"},unit_amount_decimal:{kind:"decimal_string"}}},responseSchema:{kind:"object",fields:{pricing:{kind:"nullable",inner:{kind:"object",fields:{unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},quantity_decimal:{kind:"decimal_string"}}}}),retrieve:hJ({method:"GET",fullPath:"/v1/invoiceitems/{invoiceitem}",responseSchema:{kind:"object",fields:{pricing:{kind:"nullable",inner:{kind:"object",fields:{unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},quantity_decimal:{kind:"decimal_string"}}}}),update:hJ({method:"POST",fullPath:"/v1/invoiceitems/{invoiceitem}",requestSchema:{kind:"object",fields:{price_data:{kind:"object",fields:{unit_amount_decimal:{kind:"decimal_string"}}},quantity_decimal:{kind:"decimal_string"},unit_amount_decimal:{kind:"decimal_string"}}},responseSchema:{kind:"object",fields:{pricing:{kind:"nullable",inner:{kind:"object",fields:{unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},quantity_decimal:{kind:"decimal_string"}}}}),list:hJ({method:"GET",fullPath:"/v1/invoiceitems",methodType:"list",responseSchema:{kind:"object",fields:{data:{kind:"array",element:{kind:"object",fields:{pricing:{kind:"nullable",inner:{kind:"object",fields:{unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},quantity_decimal:{kind:"decimal_string"}}}}}}}),del:hJ({method:"DELETE",fullPath:"/v1/invoiceitems/{invoiceitem}"})})});var Iz=B((xz)=>{Object.defineProperty(xz,"__esModule",{value:!0});xz.InvoicePayments=void 0;var vz=U(),bz=vz.StripeResource.method;xz.InvoicePayments=vz.StripeResource.extend({retrieve:bz({method:"GET",fullPath:"/v1/invoice_payments/{invoice_payment}"}),list:bz({method:"GET",fullPath:"/v1/invoice_payments",methodType:"list"})})});var Rz=B((yz)=>{Object.defineProperty(yz,"__esModule",{value:!0});yz.InvoiceRenderingTemplates=void 0;var fz=U(),b0=fz.StripeResource.method;yz.InvoiceRenderingTemplates=fz.StripeResource.extend({retrieve:b0({method:"GET",fullPath:"/v1/invoice_rendering_templates/{template}"}),list:b0({method:"GET",fullPath:"/v1/invoice_rendering_templates",methodType:"list"}),archive:b0({method:"POST",fullPath:"/v1/invoice_rendering_templates/{template}/archive"}),unarchive:b0({method:"POST",fullPath:"/v1/invoice_rendering_templates/{template}/unarchive"})})});var _z=B((Mz)=>{Object.defineProperty(Mz,"__esModule",{value:!0});Mz.Invoices=void 0;var Sz=U(),P=Sz.StripeResource.method;Mz.Invoices=Sz.StripeResource.extend({create:P({method:"POST",fullPath:"/v1/invoices",responseSchema:{kind:"object",fields:{lines:{kind:"object",fields:{data:{kind:"array",element:{kind:"object",fields:{pricing:{kind:"nullable",inner:{kind:"object",fields:{unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},quantity_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}}}}),retrieve:P({method:"GET",fullPath:"/v1/invoices/{invoice}",responseSchema:{kind:"object",fields:{lines:{kind:"object",fields:{data:{kind:"array",element:{kind:"object",fields:{pricing:{kind:"nullable",inner:{kind:"object",fields:{unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},quantity_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}}}}),update:P({method:"POST",fullPath:"/v1/invoices/{invoice}",responseSchema:{kind:"object",fields:{lines:{kind:"object",fields:{data:{kind:"array",element:{kind:"object",fields:{pricing:{kind:"nullable",inner:{kind:"object",fields:{unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},quantity_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}}}}),list:P({method:"GET",fullPath:"/v1/invoices",methodType:"list",responseSchema:{kind:"object",fields:{data:{kind:"array",element:{kind:"object",fields:{lines:{kind:"object",fields:{data:{kind:"array",element:{kind:"object",fields:{pricing:{kind:"nullable",inner:{kind:"object",fields:{unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},quantity_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}}}}}}}),del:P({method:"DELETE",fullPath:"/v1/invoices/{invoice}"}),addLines:P({method:"POST",fullPath:"/v1/invoices/{invoice}/add_lines",requestSchema:{kind:"object",fields:{lines:{kind:"array",element:{kind:"object",fields:{price_data:{kind:"object",fields:{unit_amount_decimal:{kind:"decimal_string"}}},quantity_decimal:{kind:"decimal_string"}}}}}},responseSchema:{kind:"object",fields:{lines:{kind:"object",fields:{data:{kind:"array",element:{kind:"object",fields:{pricing:{kind:"nullable",inner:{kind:"object",fields:{unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},quantity_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}}}}),attachPayment:P({method:"POST",fullPath:"/v1/invoices/{invoice}/attach_payment",responseSchema:{kind:"object",fields:{lines:{kind:"object",fields:{data:{kind:"array",element:{kind:"object",fields:{pricing:{kind:"nullable",inner:{kind:"object",fields:{unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},quantity_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}}}}),createPreview:P({method:"POST",fullPath:"/v1/invoices/create_preview",requestSchema:{kind:"object",fields:{invoice_items:{kind:"array",element:{kind:"object",fields:{price_data:{kind:"object",fields:{unit_amount_decimal:{kind:"decimal_string"}}},quantity_decimal:{kind:"decimal_string"},unit_amount_decimal:{kind:"decimal_string"}}}},schedule_details:{kind:"object",fields:{phases:{kind:"array",element:{kind:"object",fields:{add_invoice_items:{kind:"array",element:{kind:"object",fields:{price_data:{kind:"object",fields:{unit_amount_decimal:{kind:"decimal_string"}}}}}},items:{kind:"array",element:{kind:"object",fields:{price_data:{kind:"object",fields:{unit_amount_decimal:{kind:"decimal_string"}}}}}}}}}}},subscription_details:{kind:"object",fields:{items:{kind:"array",element:{kind:"object",fields:{price_data:{kind:"object",fields:{unit_amount_decimal:{kind:"decimal_string"}}}}}}}}}},responseSchema:{kind:"object",fields:{lines:{kind:"object",fields:{data:{kind:"array",element:{kind:"object",fields:{pricing:{kind:"nullable",inner:{kind:"object",fields:{unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},quantity_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}}}}),finalizeInvoice:P({method:"POST",fullPath:"/v1/invoices/{invoice}/finalize",responseSchema:{kind:"object",fields:{lines:{kind:"object",fields:{data:{kind:"array",element:{kind:"object",fields:{pricing:{kind:"nullable",inner:{kind:"object",fields:{unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},quantity_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}}}}),listLineItems:P({method:"GET",fullPath:"/v1/invoices/{invoice}/lines",methodType:"list",responseSchema:{kind:"object",fields:{data:{kind:"array",element:{kind:"object",fields:{pricing:{kind:"nullable",inner:{kind:"object",fields:{unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},quantity_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}}),markUncollectible:P({method:"POST",fullPath:"/v1/invoices/{invoice}/mark_uncollectible",responseSchema:{kind:"object",fields:{lines:{kind:"object",fields:{data:{kind:"array",element:{kind:"object",fields:{pricing:{kind:"nullable",inner:{kind:"object",fields:{unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},quantity_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}}}}),pay:P({method:"POST",fullPath:"/v1/invoices/{invoice}/pay",responseSchema:{kind:"object",fields:{lines:{kind:"object",fields:{data:{kind:"array",element:{kind:"object",fields:{pricing:{kind:"nullable",inner:{kind:"object",fields:{unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},quantity_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}}}}),removeLines:P({method:"POST",fullPath:"/v1/invoices/{invoice}/remove_lines",responseSchema:{kind:"object",fields:{lines:{kind:"object",fields:{data:{kind:"array",element:{kind:"object",fields:{pricing:{kind:"nullable",inner:{kind:"object",fields:{unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},quantity_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}}}}),search:P({method:"GET",fullPath:"/v1/invoices/search",methodType:"search",responseSchema:{kind:"object",fields:{data:{kind:"array",element:{kind:"object",fields:{lines:{kind:"object",fields:{data:{kind:"array",element:{kind:"object",fields:{pricing:{kind:"nullable",inner:{kind:"object",fields:{unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},quantity_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}}}}}}}),sendInvoice:P({method:"POST",fullPath:"/v1/invoices/{invoice}/send",responseSchema:{kind:"object",fields:{lines:{kind:"object",fields:{data:{kind:"array",element:{kind:"object",fields:{pricing:{kind:"nullable",inner:{kind:"object",fields:{unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},quantity_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}}}}),updateLines:P({method:"POST",fullPath:"/v1/invoices/{invoice}/update_lines",requestSchema:{kind:"object",fields:{lines:{kind:"array",element:{kind:"object",fields:{price_data:{kind:"object",fields:{unit_amount_decimal:{kind:"decimal_string"}}},quantity_decimal:{kind:"decimal_string"}}}}}},responseSchema:{kind:"object",fields:{lines:{kind:"object",fields:{data:{kind:"array",element:{kind:"object",fields:{pricing:{kind:"nullable",inner:{kind:"object",fields:{unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},quantity_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}}}}),updateLineItem:P({method:"POST",fullPath:"/v1/invoices/{invoice}/lines/{line_item_id}",requestSchema:{kind:"object",fields:{price_data:{kind:"object",fields:{unit_amount_decimal:{kind:"decimal_string"}}},quantity_decimal:{kind:"decimal_string"}}},responseSchema:{kind:"object",fields:{pricing:{kind:"nullable",inner:{kind:"object",fields:{unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},quantity_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}),voidInvoice:P({method:"POST",fullPath:"/v1/invoices/{invoice}/void",responseSchema:{kind:"object",fields:{lines:{kind:"object",fields:{data:{kind:"array",element:{kind:"object",fields:{pricing:{kind:"nullable",inner:{kind:"object",fields:{unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},quantity_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}}}})})});var uz=B((hz)=>{Object.defineProperty(hz,"__esModule",{value:!0});hz.Mandates=void 0;var mz=U(),N3=mz.StripeResource.method;hz.Mandates=mz.StripeResource.extend({retrieve:N3({method:"GET",fullPath:"/v1/mandates/{mandate}"})})});var iz=B((nz)=>{Object.defineProperty(nz,"__esModule",{value:!0});nz.OAuth=void 0;var dz=U(),H3=_(),cz=dz.StripeResource.method,EZ="connect.stripe.com";nz.OAuth=dz.StripeResource.extend({basePath:"/",authorizeUrl(J,Z){J=J||{},Z=Z||{};let $="oauth/authorize";if(Z.express)$=`express/${$}`;if(!J.response_type)J.response_type="code";if(!J.client_id)J.client_id=this._stripe.getClientId();if(!J.scope)J.scope="read_write";return`https://${EZ}/${$}?${(0,H3.queryStringifyRequestData)(J)}`},token:cz({method:"POST",path:"oauth/token",host:EZ}),deauthorize(J,...Z){if(!J.client_id)J.client_id=this._stripe.getClientId();return cz({method:"POST",path:"oauth/deauthorize",host:EZ}).apply(this,[J,...Z])}})});var tz=B((sz)=>{Object.defineProperty(sz,"__esModule",{value:!0});sz.PaymentAttemptRecords=void 0;var oz=U(),pz=oz.StripeResource.method;sz.PaymentAttemptRecords=oz.StripeResource.extend({retrieve:pz({method:"GET",fullPath:"/v1/payment_attempt_records/{id}"}),list:pz({method:"GET",fullPath:"/v1/payment_attempt_records",methodType:"list"})})});var $1=B((J1)=>{Object.defineProperty(J1,"__esModule",{value:!0});J1.PaymentIntents=void 0;var ez=U(),j=ez.StripeResource.method;J1.PaymentIntents=ez.StripeResource.extend({create:j({method:"POST",fullPath:"/v1/payment_intents"}),retrieve:j({method:"GET",fullPath:"/v1/payment_intents/{intent}"}),update:j({method:"POST",fullPath:"/v1/payment_intents/{intent}"}),list:j({method:"GET",fullPath:"/v1/payment_intents",methodType:"list"}),applyCustomerBalance:j({method:"POST",fullPath:"/v1/payment_intents/{intent}/apply_customer_balance"}),cancel:j({method:"POST",fullPath:"/v1/payment_intents/{intent}/cancel"}),capture:j({method:"POST",fullPath:"/v1/payment_intents/{intent}/capture"}),confirm:j({method:"POST",fullPath:"/v1/payment_intents/{intent}/confirm"}),incrementAuthorization:j({method:"POST",fullPath:"/v1/payment_intents/{intent}/increment_authorization"}),listAmountDetailsLineItems:j({method:"GET",fullPath:"/v1/payment_intents/{intent}/amount_details_line_items",methodType:"list"}),search:j({method:"GET",fullPath:"/v1/payment_intents/search",methodType:"search"}),verifyMicrodeposits:j({method:"POST",fullPath:"/v1/payment_intents/{intent}/verify_microdeposits"})})});var B1=B((G1)=>{Object.defineProperty(G1,"__esModule",{value:!0});G1.PaymentLinks=void 0;var Q1=U(),lJ=Q1.StripeResource.method;G1.PaymentLinks=Q1.StripeResource.extend({create:lJ({method:"POST",fullPath:"/v1/payment_links",requestSchema:{kind:"object",fields:{line_items:{kind:"array",element:{kind:"object",fields:{price_data:{kind:"object",fields:{unit_amount_decimal:{kind:"decimal_string"}}}}}}}},responseSchema:{kind:"object",fields:{line_items:{kind:"object",fields:{data:{kind:"array",element:{kind:"object",fields:{price:{kind:"nullable",inner:{kind:"object",fields:{currency_options:{kind:"array",element:{kind:"object",fields:{tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}}}}}}}),retrieve:lJ({method:"GET",fullPath:"/v1/payment_links/{payment_link}",responseSchema:{kind:"object",fields:{line_items:{kind:"object",fields:{data:{kind:"array",element:{kind:"object",fields:{price:{kind:"nullable",inner:{kind:"object",fields:{currency_options:{kind:"array",element:{kind:"object",fields:{tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}}}}}}}),update:lJ({method:"POST",fullPath:"/v1/payment_links/{payment_link}",responseSchema:{kind:"object",fields:{line_items:{kind:"object",fields:{data:{kind:"array",element:{kind:"object",fields:{price:{kind:"nullable",inner:{kind:"object",fields:{currency_options:{kind:"array",element:{kind:"object",fields:{tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}}}}}}}),list:lJ({method:"GET",fullPath:"/v1/payment_links",methodType:"list",responseSchema:{kind:"object",fields:{data:{kind:"array",element:{kind:"object",fields:{line_items:{kind:"object",fields:{data:{kind:"array",element:{kind:"object",fields:{price:{kind:"nullable",inner:{kind:"object",fields:{currency_options:{kind:"array",element:{kind:"object",fields:{tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}}}}}}}}}}),listLineItems:lJ({method:"GET",fullPath:"/v1/payment_links/{payment_link}/line_items",methodType:"list",responseSchema:{kind:"object",fields:{data:{kind:"array",element:{kind:"object",fields:{price:{kind:"nullable",inner:{kind:"object",fields:{currency_options:{kind:"array",element:{kind:"object",fields:{tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}}}}})})});var U1=B((Y1)=>{Object.defineProperty(Y1,"__esModule",{value:!0});Y1.PaymentMethodConfigurations=void 0;var X1=U(),v0=X1.StripeResource.method;Y1.PaymentMethodConfigurations=X1.StripeResource.extend({create:v0({method:"POST",fullPath:"/v1/payment_method_configurations"}),retrieve:v0({method:"GET",fullPath:"/v1/payment_method_configurations/{configuration}"}),update:v0({method:"POST",fullPath:"/v1/payment_method_configurations/{configuration}"}),list:v0({method:"GET",fullPath:"/v1/payment_method_configurations",methodType:"list"})})});var K1=B((V1)=>{Object.defineProperty(V1,"__esModule",{value:!0});V1.PaymentMethodDomains=void 0;var L1=U(),uJ=L1.StripeResource.method;V1.PaymentMethodDomains=L1.StripeResource.extend({create:uJ({method:"POST",fullPath:"/v1/payment_method_domains"}),retrieve:uJ({method:"GET",fullPath:"/v1/payment_method_domains/{payment_method_domain}"}),update:uJ({method:"POST",fullPath:"/v1/payment_method_domains/{payment_method_domain}"}),list:uJ({method:"GET",fullPath:"/v1/payment_method_domains",methodType:"list"}),validate:uJ({method:"POST",fullPath:"/v1/payment_method_domains/{payment_method_domain}/validate"})})});var D1=B((N1)=>{Object.defineProperty(N1,"__esModule",{value:!0});N1.PaymentMethods=void 0;var T1=U(),NJ=T1.StripeResource.method;N1.PaymentMethods=T1.StripeResource.extend({create:NJ({method:"POST",fullPath:"/v1/payment_methods"}),retrieve:NJ({method:"GET",fullPath:"/v1/payment_methods/{payment_method}"}),update:NJ({method:"POST",fullPath:"/v1/payment_methods/{payment_method}"}),list:NJ({method:"GET",fullPath:"/v1/payment_methods",methodType:"list"}),attach:NJ({method:"POST",fullPath:"/v1/payment_methods/{payment_method}/attach"}),detach:NJ({method:"POST",fullPath:"/v1/payment_methods/{payment_method}/detach"})})});var k1=B((E1)=>{Object.defineProperty(E1,"__esModule",{value:!0});E1.PaymentRecords=void 0;var q1=U(),p=q1.StripeResource.method;E1.PaymentRecords=q1.StripeResource.extend({retrieve:p({method:"GET",fullPath:"/v1/payment_records/{id}"}),reportPayment:p({method:"POST",fullPath:"/v1/payment_records/report_payment"}),reportPaymentAttempt:p({method:"POST",fullPath:"/v1/payment_records/{id}/report_payment_attempt"}),reportPaymentAttemptCanceled:p({method:"POST",fullPath:"/v1/payment_records/{id}/report_payment_attempt_canceled"}),reportPaymentAttemptFailed:p({method:"POST",fullPath:"/v1/payment_records/{id}/report_payment_attempt_failed"}),reportPaymentAttemptGuaranteed:p({method:"POST",fullPath:"/v1/payment_records/{id}/report_payment_attempt_guaranteed"}),reportPaymentAttemptInformational:p({method:"POST",fullPath:"/v1/payment_records/{id}/report_payment_attempt_informational"}),reportRefund:p({method:"POST",fullPath:"/v1/payment_records/{id}/report_refund"})})});var b1=B((C1)=>{Object.defineProperty(C1,"__esModule",{value:!0});C1.Payouts=void 0;var F1=U(),HJ=F1.StripeResource.method;C1.Payouts=F1.StripeResource.extend({create:HJ({method:"POST",fullPath:"/v1/payouts"}),retrieve:HJ({method:"GET",fullPath:"/v1/payouts/{payout}"}),update:HJ({method:"POST",fullPath:"/v1/payouts/{payout}"}),list:HJ({method:"GET",fullPath:"/v1/payouts",methodType:"list"}),cancel:HJ({method:"POST",fullPath:"/v1/payouts/{payout}/cancel"}),reverse:HJ({method:"POST",fullPath:"/v1/payouts/{payout}/reverse"})})});var I1=B((x1)=>{Object.defineProperty(x1,"__esModule",{value:!0});x1.Plans=void 0;var v1=U(),cJ=v1.StripeResource.method;x1.Plans=v1.StripeResource.extend({create:cJ({method:"POST",fullPath:"/v1/plans",requestSchema:{kind:"object",fields:{amount_decimal:{kind:"decimal_string"},tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"decimal_string"},unit_amount_decimal:{kind:"decimal_string"}}}}}},responseSchema:{kind:"object",fields:{amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}}),retrieve:cJ({method:"GET",fullPath:"/v1/plans/{plan}",responseSchema:{kind:"object",fields:{amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}}),update:cJ({method:"POST",fullPath:"/v1/plans/{plan}",responseSchema:{kind:"object",fields:{amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}}),list:cJ({method:"GET",fullPath:"/v1/plans",methodType:"list",responseSchema:{kind:"object",fields:{data:{kind:"array",element:{kind:"object",fields:{amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}}}}}),del:cJ({method:"DELETE",fullPath:"/v1/plans/{plan}"})})});var R1=B((y1)=>{Object.defineProperty(y1,"__esModule",{value:!0});y1.Prices=void 0;var f1=U(),dJ=f1.StripeResource.method;y1.Prices=f1.StripeResource.extend({create:dJ({method:"POST",fullPath:"/v1/prices",requestSchema:{kind:"object",fields:{currency_options:{kind:"array",element:{kind:"object",fields:{tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"decimal_string"},unit_amount_decimal:{kind:"decimal_string"}}}},unit_amount_decimal:{kind:"decimal_string"}}}},tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"decimal_string"},unit_amount_decimal:{kind:"decimal_string"}}}},unit_amount_decimal:{kind:"decimal_string"}}},responseSchema:{kind:"object",fields:{currency_options:{kind:"array",element:{kind:"object",fields:{tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}),retrieve:dJ({method:"GET",fullPath:"/v1/prices/{price}",responseSchema:{kind:"object",fields:{currency_options:{kind:"array",element:{kind:"object",fields:{tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}),update:dJ({method:"POST",fullPath:"/v1/prices/{price}",responseSchema:{kind:"object",fields:{currency_options:{kind:"array",element:{kind:"object",fields:{tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}),list:dJ({method:"GET",fullPath:"/v1/prices",methodType:"list",responseSchema:{kind:"object",fields:{data:{kind:"array",element:{kind:"object",fields:{currency_options:{kind:"array",element:{kind:"object",fields:{tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}}),search:dJ({method:"GET",fullPath:"/v1/prices/search",methodType:"search",responseSchema:{kind:"object",fields:{data:{kind:"array",element:{kind:"object",fields:{currency_options:{kind:"array",element:{kind:"object",fields:{tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}})})});var _1=B((M1)=>{Object.defineProperty(M1,"__esModule",{value:!0});M1.Products=void 0;var S1=U(),m=S1.StripeResource.method;M1.Products=S1.StripeResource.extend({create:m({method:"POST",fullPath:"/v1/products",requestSchema:{kind:"object",fields:{default_price_data:{kind:"object",fields:{currency_options:{kind:"array",element:{kind:"object",fields:{tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"decimal_string"},unit_amount_decimal:{kind:"decimal_string"}}}},unit_amount_decimal:{kind:"decimal_string"}}}},unit_amount_decimal:{kind:"decimal_string"}}}}}}),retrieve:m({method:"GET",fullPath:"/v1/products/{id}"}),update:m({method:"POST",fullPath:"/v1/products/{id}"}),list:m({method:"GET",fullPath:"/v1/products",methodType:"list"}),del:m({method:"DELETE",fullPath:"/v1/products/{id}"}),createFeature:m({method:"POST",fullPath:"/v1/products/{product}/features"}),deleteFeature:m({method:"DELETE",fullPath:"/v1/products/{product}/features/{id}"}),listFeatures:m({method:"GET",fullPath:"/v1/products/{product}/features",methodType:"list"}),retrieveFeature:m({method:"GET",fullPath:"/v1/products/{product}/features/{id}"}),search:m({method:"GET",fullPath:"/v1/products/search",methodType:"search"})})});var u1=B((h1)=>{Object.defineProperty(h1,"__esModule",{value:!0});h1.PromotionCodes=void 0;var m1=U(),x0=m1.StripeResource.method;h1.PromotionCodes=m1.StripeResource.extend({create:x0({method:"POST",fullPath:"/v1/promotion_codes"}),retrieve:x0({method:"GET",fullPath:"/v1/promotion_codes/{promotion_code}"}),update:x0({method:"POST",fullPath:"/v1/promotion_codes/{promotion_code}"}),list:x0({method:"GET",fullPath:"/v1/promotion_codes",methodType:"list"})})});var a1=B((d1)=>{Object.defineProperty(d1,"__esModule",{value:!0});d1.Quotes=void 0;var c1=U(),h=c1.StripeResource.method;d1.Quotes=c1.StripeResource.extend({create:h({method:"POST",fullPath:"/v1/quotes",requestSchema:{kind:"object",fields:{line_items:{kind:"array",element:{kind:"object",fields:{price_data:{kind:"object",fields:{unit_amount_decimal:{kind:"decimal_string"}}}}}}}},responseSchema:{kind:"object",fields:{computed:{kind:"object",fields:{upfront:{kind:"object",fields:{line_items:{kind:"object",fields:{data:{kind:"array",element:{kind:"object",fields:{price:{kind:"nullable",inner:{kind:"object",fields:{currency_options:{kind:"array",element:{kind:"object",fields:{tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}}}}}}}}}}}),retrieve:h({method:"GET",fullPath:"/v1/quotes/{quote}",responseSchema:{kind:"object",fields:{computed:{kind:"object",fields:{upfront:{kind:"object",fields:{line_items:{kind:"object",fields:{data:{kind:"array",element:{kind:"object",fields:{price:{kind:"nullable",inner:{kind:"object",fields:{currency_options:{kind:"array",element:{kind:"object",fields:{tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}}}}}}}}}}}),update:h({method:"POST",fullPath:"/v1/quotes/{quote}",requestSchema:{kind:"object",fields:{line_items:{kind:"array",element:{kind:"object",fields:{price_data:{kind:"object",fields:{unit_amount_decimal:{kind:"decimal_string"}}}}}}}},responseSchema:{kind:"object",fields:{computed:{kind:"object",fields:{upfront:{kind:"object",fields:{line_items:{kind:"object",fields:{data:{kind:"array",element:{kind:"object",fields:{price:{kind:"nullable",inner:{kind:"object",fields:{currency_options:{kind:"array",element:{kind:"object",fields:{tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}}}}}}}}}}}),list:h({method:"GET",fullPath:"/v1/quotes",methodType:"list",responseSchema:{kind:"object",fields:{data:{kind:"array",element:{kind:"object",fields:{computed:{kind:"object",fields:{upfront:{kind:"object",fields:{line_items:{kind:"object",fields:{data:{kind:"array",element:{kind:"object",fields:{price:{kind:"nullable",inner:{kind:"object",fields:{currency_options:{kind:"array",element:{kind:"object",fields:{tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}}}}}}}}}}}}}}),accept:h({method:"POST",fullPath:"/v1/quotes/{quote}/accept",responseSchema:{kind:"object",fields:{computed:{kind:"object",fields:{upfront:{kind:"object",fields:{line_items:{kind:"object",fields:{data:{kind:"array",element:{kind:"object",fields:{price:{kind:"nullable",inner:{kind:"object",fields:{currency_options:{kind:"array",element:{kind:"object",fields:{tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}}}}}}}}}}}),cancel:h({method:"POST",fullPath:"/v1/quotes/{quote}/cancel",responseSchema:{kind:"object",fields:{computed:{kind:"object",fields:{upfront:{kind:"object",fields:{line_items:{kind:"object",fields:{data:{kind:"array",element:{kind:"object",fields:{price:{kind:"nullable",inner:{kind:"object",fields:{currency_options:{kind:"array",element:{kind:"object",fields:{tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}}}}}}}}}}}),finalizeQuote:h({method:"POST",fullPath:"/v1/quotes/{quote}/finalize",responseSchema:{kind:"object",fields:{computed:{kind:"object",fields:{upfront:{kind:"object",fields:{line_items:{kind:"object",fields:{data:{kind:"array",element:{kind:"object",fields:{price:{kind:"nullable",inner:{kind:"object",fields:{currency_options:{kind:"array",element:{kind:"object",fields:{tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}}}}}}}}}}}),listComputedUpfrontLineItems:h({method:"GET",fullPath:"/v1/quotes/{quote}/computed_upfront_line_items",methodType:"list",responseSchema:{kind:"object",fields:{data:{kind:"array",element:{kind:"object",fields:{price:{kind:"nullable",inner:{kind:"object",fields:{currency_options:{kind:"array",element:{kind:"object",fields:{tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}}}}}),listLineItems:h({method:"GET",fullPath:"/v1/quotes/{quote}/line_items",methodType:"list",responseSchema:{kind:"object",fields:{data:{kind:"array",element:{kind:"object",fields:{price:{kind:"nullable",inner:{kind:"object",fields:{currency_options:{kind:"array",element:{kind:"object",fields:{tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}}}}}),pdf:h({method:"GET",fullPath:"/v1/quotes/{quote}/pdf",host:"files.stripe.com",streaming:!0})})});var s1=B((p1)=>{Object.defineProperty(p1,"__esModule",{value:!0});p1.Refunds=void 0;var i1=U(),nJ=i1.StripeResource.method;p1.Refunds=i1.StripeResource.extend({create:nJ({method:"POST",fullPath:"/v1/refunds"}),retrieve:nJ({method:"GET",fullPath:"/v1/refunds/{refund}"}),update:nJ({method:"POST",fullPath:"/v1/refunds/{refund}"}),list:nJ({method:"GET",fullPath:"/v1/refunds",methodType:"list"}),cancel:nJ({method:"POST",fullPath:"/v1/refunds/{refund}/cancel"})})});var JB=B((t1)=>{Object.defineProperty(t1,"__esModule",{value:!0});t1.Reviews=void 0;var r1=U(),OZ=r1.StripeResource.method;t1.Reviews=r1.StripeResource.extend({retrieve:OZ({method:"GET",fullPath:"/v1/reviews/{review}"}),list:OZ({method:"GET",fullPath:"/v1/reviews",methodType:"list"}),approve:OZ({method:"POST",fullPath:"/v1/reviews/{review}/approve"})})});var GB=B(($B)=>{Object.defineProperty($B,"__esModule",{value:!0});$B.SetupAttempts=void 0;var ZB=U(),D3=ZB.StripeResource.method;$B.SetupAttempts=ZB.StripeResource.extend({list:D3({method:"GET",fullPath:"/v1/setup_attempts",methodType:"list"})})});var YB=B((BB)=>{Object.defineProperty(BB,"__esModule",{value:!0});BB.SetupIntents=void 0;var zB=U(),$J=zB.StripeResource.method;BB.SetupIntents=zB.StripeResource.extend({create:$J({method:"POST",fullPath:"/v1/setup_intents"}),retrieve:$J({method:"GET",fullPath:"/v1/setup_intents/{intent}"}),update:$J({method:"POST",fullPath:"/v1/setup_intents/{intent}"}),list:$J({method:"GET",fullPath:"/v1/setup_intents",methodType:"list"}),cancel:$J({method:"POST",fullPath:"/v1/setup_intents/{intent}/cancel"}),confirm:$J({method:"POST",fullPath:"/v1/setup_intents/{intent}/confirm"}),verifyMicrodeposits:$J({method:"POST",fullPath:"/v1/setup_intents/{intent}/verify_microdeposits"})})});var VB=B((UB)=>{Object.defineProperty(UB,"__esModule",{value:!0});UB.ShippingRates=void 0;var wB=U(),P0=wB.StripeResource.method;UB.ShippingRates=wB.StripeResource.extend({create:P0({method:"POST",fullPath:"/v1/shipping_rates"}),retrieve:P0({method:"GET",fullPath:"/v1/shipping_rates/{shipping_rate_token}"}),update:P0({method:"POST",fullPath:"/v1/shipping_rates/{shipping_rate_token}"}),list:P0({method:"GET",fullPath:"/v1/shipping_rates",methodType:"list"})})});var NB=B((KB)=>{Object.defineProperty(KB,"__esModule",{value:!0});KB.Sources=void 0;var WB=U(),aJ=WB.StripeResource.method;KB.Sources=WB.StripeResource.extend({create:aJ({method:"POST",fullPath:"/v1/sources"}),retrieve:aJ({method:"GET",fullPath:"/v1/sources/{source}"}),update:aJ({method:"POST",fullPath:"/v1/sources/{source}"}),listSourceTransactions:aJ({method:"GET",fullPath:"/v1/sources/{source}/source_transactions",methodType:"list"}),verify:aJ({method:"POST",fullPath:"/v1/sources/{source}/verify"})})});var EB=B((DB)=>{Object.defineProperty(DB,"__esModule",{value:!0});DB.SubscriptionItems=void 0;var HB=U(),iJ=HB.StripeResource.method;DB.SubscriptionItems=HB.StripeResource.extend({create:iJ({method:"POST",fullPath:"/v1/subscription_items",requestSchema:{kind:"object",fields:{price_data:{kind:"object",fields:{unit_amount_decimal:{kind:"decimal_string"}}}}},responseSchema:{kind:"object",fields:{plan:{kind:"object",fields:{amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}},price:{kind:"object",fields:{currency_options:{kind:"array",element:{kind:"object",fields:{tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}),retrieve:iJ({method:"GET",fullPath:"/v1/subscription_items/{item}",responseSchema:{kind:"object",fields:{plan:{kind:"object",fields:{amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}},price:{kind:"object",fields:{currency_options:{kind:"array",element:{kind:"object",fields:{tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}),update:iJ({method:"POST",fullPath:"/v1/subscription_items/{item}",requestSchema:{kind:"object",fields:{price_data:{kind:"object",fields:{unit_amount_decimal:{kind:"decimal_string"}}}}},responseSchema:{kind:"object",fields:{plan:{kind:"object",fields:{amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}},price:{kind:"object",fields:{currency_options:{kind:"array",element:{kind:"object",fields:{tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}),list:iJ({method:"GET",fullPath:"/v1/subscription_items",methodType:"list",responseSchema:{kind:"object",fields:{data:{kind:"array",element:{kind:"object",fields:{plan:{kind:"object",fields:{amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}},price:{kind:"object",fields:{currency_options:{kind:"array",element:{kind:"object",fields:{tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}}}}),del:iJ({method:"DELETE",fullPath:"/v1/subscription_items/{item}"})})});var CB=B((kB)=>{Object.defineProperty(kB,"__esModule",{value:!0});kB.SubscriptionSchedules=void 0;var OB=U(),DJ=OB.StripeResource.method;kB.SubscriptionSchedules=OB.StripeResource.extend({create:DJ({method:"POST",fullPath:"/v1/subscription_schedules",requestSchema:{kind:"object",fields:{phases:{kind:"array",element:{kind:"object",fields:{add_invoice_items:{kind:"array",element:{kind:"object",fields:{price_data:{kind:"object",fields:{unit_amount_decimal:{kind:"decimal_string"}}}}}},items:{kind:"array",element:{kind:"object",fields:{price_data:{kind:"object",fields:{unit_amount_decimal:{kind:"decimal_string"}}}}}}}}}}}}),retrieve:DJ({method:"GET",fullPath:"/v1/subscription_schedules/{schedule}"}),update:DJ({method:"POST",fullPath:"/v1/subscription_schedules/{schedule}",requestSchema:{kind:"object",fields:{phases:{kind:"array",element:{kind:"object",fields:{add_invoice_items:{kind:"array",element:{kind:"object",fields:{price_data:{kind:"object",fields:{unit_amount_decimal:{kind:"decimal_string"}}}}}},items:{kind:"array",element:{kind:"object",fields:{price_data:{kind:"object",fields:{unit_amount_decimal:{kind:"decimal_string"}}}}}}}}}}}}),list:DJ({method:"GET",fullPath:"/v1/subscription_schedules",methodType:"list"}),cancel:DJ({method:"POST",fullPath:"/v1/subscription_schedules/{schedule}/cancel"}),release:DJ({method:"POST",fullPath:"/v1/subscription_schedules/{schedule}/release"})})});var xB=B((bB)=>{Object.defineProperty(bB,"__esModule",{value:!0});bB.Subscriptions=void 0;var AB=U(),u=AB.StripeResource.method;bB.Subscriptions=AB.StripeResource.extend({create:u({method:"POST",fullPath:"/v1/subscriptions",requestSchema:{kind:"object",fields:{add_invoice_items:{kind:"array",element:{kind:"object",fields:{price_data:{kind:"object",fields:{unit_amount_decimal:{kind:"decimal_string"}}}}}},items:{kind:"array",element:{kind:"object",fields:{price_data:{kind:"object",fields:{unit_amount_decimal:{kind:"decimal_string"}}}}}}}},responseSchema:{kind:"object",fields:{items:{kind:"object",fields:{data:{kind:"array",element:{kind:"object",fields:{plan:{kind:"object",fields:{amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}},price:{kind:"object",fields:{currency_options:{kind:"array",element:{kind:"object",fields:{tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}}}}}}),retrieve:u({method:"GET",fullPath:"/v1/subscriptions/{subscription_exposed_id}",responseSchema:{kind:"object",fields:{items:{kind:"object",fields:{data:{kind:"array",element:{kind:"object",fields:{plan:{kind:"object",fields:{amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}},price:{kind:"object",fields:{currency_options:{kind:"array",element:{kind:"object",fields:{tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}}}}}}),update:u({method:"POST",fullPath:"/v1/subscriptions/{subscription_exposed_id}",requestSchema:{kind:"object",fields:{add_invoice_items:{kind:"array",element:{kind:"object",fields:{price_data:{kind:"object",fields:{unit_amount_decimal:{kind:"decimal_string"}}}}}},items:{kind:"array",element:{kind:"object",fields:{price_data:{kind:"object",fields:{unit_amount_decimal:{kind:"decimal_string"}}}}}}}},responseSchema:{kind:"object",fields:{items:{kind:"object",fields:{data:{kind:"array",element:{kind:"object",fields:{plan:{kind:"object",fields:{amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}},price:{kind:"object",fields:{currency_options:{kind:"array",element:{kind:"object",fields:{tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}}}}}}),list:u({method:"GET",fullPath:"/v1/subscriptions",methodType:"list",responseSchema:{kind:"object",fields:{data:{kind:"array",element:{kind:"object",fields:{items:{kind:"object",fields:{data:{kind:"array",element:{kind:"object",fields:{plan:{kind:"object",fields:{amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}},price:{kind:"object",fields:{currency_options:{kind:"array",element:{kind:"object",fields:{tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}}}}}}}}}),cancel:u({method:"DELETE",fullPath:"/v1/subscriptions/{subscription_exposed_id}",responseSchema:{kind:"object",fields:{items:{kind:"object",fields:{data:{kind:"array",element:{kind:"object",fields:{plan:{kind:"object",fields:{amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}},price:{kind:"object",fields:{currency_options:{kind:"array",element:{kind:"object",fields:{tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}}}}}}),deleteDiscount:u({method:"DELETE",fullPath:"/v1/subscriptions/{subscription_exposed_id}/discount"}),migrate:u({method:"POST",fullPath:"/v1/subscriptions/{subscription}/migrate",responseSchema:{kind:"object",fields:{items:{kind:"object",fields:{data:{kind:"array",element:{kind:"object",fields:{plan:{kind:"object",fields:{amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}},price:{kind:"object",fields:{currency_options:{kind:"array",element:{kind:"object",fields:{tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}}}}}}),resume:u({method:"POST",fullPath:"/v1/subscriptions/{subscription}/resume",responseSchema:{kind:"object",fields:{items:{kind:"object",fields:{data:{kind:"array",element:{kind:"object",fields:{plan:{kind:"object",fields:{amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}},price:{kind:"object",fields:{currency_options:{kind:"array",element:{kind:"object",fields:{tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}}}}}}),search:u({method:"GET",fullPath:"/v1/subscriptions/search",methodType:"search",responseSchema:{kind:"object",fields:{data:{kind:"array",element:{kind:"object",fields:{items:{kind:"object",fields:{data:{kind:"array",element:{kind:"object",fields:{plan:{kind:"object",fields:{amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}},price:{kind:"object",fields:{currency_options:{kind:"array",element:{kind:"object",fields:{tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}}}}}}}}})})});var gB=B((fB)=>{Object.defineProperty(fB,"__esModule",{value:!0});fB.TaxCodes=void 0;var IB=U(),PB=IB.StripeResource.method;fB.TaxCodes=IB.StripeResource.extend({retrieve:PB({method:"GET",fullPath:"/v1/tax_codes/{id}"}),list:PB({method:"GET",fullPath:"/v1/tax_codes",methodType:"list"})})});var jB=B((SB)=>{Object.defineProperty(SB,"__esModule",{value:!0});SB.TaxIds=void 0;var RB=U(),I0=RB.StripeResource.method;SB.TaxIds=RB.StripeResource.extend({create:I0({method:"POST",fullPath:"/v1/tax_ids"}),retrieve:I0({method:"GET",fullPath:"/v1/tax_ids/{id}"}),list:I0({method:"GET",fullPath:"/v1/tax_ids",methodType:"list"}),del:I0({method:"DELETE",fullPath:"/v1/tax_ids/{id}"})})});var lB=B((mB)=>{Object.defineProperty(mB,"__esModule",{value:!0});mB.TaxRates=void 0;var _B=U(),f0=_B.StripeResource.method;mB.TaxRates=_B.StripeResource.extend({create:f0({method:"POST",fullPath:"/v1/tax_rates"}),retrieve:f0({method:"GET",fullPath:"/v1/tax_rates/{tax_rate}"}),update:f0({method:"POST",fullPath:"/v1/tax_rates/{tax_rate}"}),list:f0({method:"GET",fullPath:"/v1/tax_rates",methodType:"list"})})});var aB=B((dB)=>{Object.defineProperty(dB,"__esModule",{value:!0});dB.Tokens=void 0;var cB=U(),uB=cB.StripeResource.method;dB.Tokens=cB.StripeResource.extend({create:uB({method:"POST",fullPath:"/v1/tokens"}),retrieve:uB({method:"GET",fullPath:"/v1/tokens/{token}"})})});var sB=B((pB)=>{Object.defineProperty(pB,"__esModule",{value:!0});pB.Topups=void 0;var iB=U(),pJ=iB.StripeResource.method;pB.Topups=iB.StripeResource.extend({create:pJ({method:"POST",fullPath:"/v1/topups"}),retrieve:pJ({method:"GET",fullPath:"/v1/topups/{topup}"}),update:pJ({method:"POST",fullPath:"/v1/topups/{topup}"}),list:pJ({method:"GET",fullPath:"/v1/topups",methodType:"list"}),cancel:pJ({method:"POST",fullPath:"/v1/topups/{topup}/cancel"})})});var JX=B((tB)=>{Object.defineProperty(tB,"__esModule",{value:!0});tB.Transfers=void 0;var rB=U(),o=rB.StripeResource.method;tB.Transfers=rB.StripeResource.extend({create:o({method:"POST",fullPath:"/v1/transfers"}),retrieve:o({method:"GET",fullPath:"/v1/transfers/{transfer}"}),update:o({method:"POST",fullPath:"/v1/transfers/{transfer}"}),list:o({method:"GET",fullPath:"/v1/transfers",methodType:"list"}),createReversal:o({method:"POST",fullPath:"/v1/transfers/{id}/reversals"}),listReversals:o({method:"GET",fullPath:"/v1/transfers/{id}/reversals",methodType:"list"}),retrieveReversal:o({method:"GET",fullPath:"/v1/transfers/{transfer}/reversals/{id}"}),updateReversal:o({method:"POST",fullPath:"/v1/transfers/{transfer}/reversals/{id}"})})});var GX=B(($X)=>{Object.defineProperty($X,"__esModule",{value:!0});$X.WebhookEndpoints=void 0;var ZX=U(),oJ=ZX.StripeResource.method;$X.WebhookEndpoints=ZX.StripeResource.extend({create:oJ({method:"POST",fullPath:"/v1/webhook_endpoints"}),retrieve:oJ({method:"GET",fullPath:"/v1/webhook_endpoints/{webhook_endpoint}"}),update:oJ({method:"POST",fullPath:"/v1/webhook_endpoints/{webhook_endpoint}"}),list:oJ({method:"GET",fullPath:"/v1/webhook_endpoints",methodType:"list"}),del:oJ({method:"DELETE",fullPath:"/v1/webhook_endpoints/{webhook_endpoint}"})})});var BX=B((E)=>{Object.defineProperty(E,"__esModule",{value:!0});E.Subscriptions=E.SubscriptionSchedules=E.SubscriptionItems=E.Sources=E.ShippingRates=E.SetupIntents=E.SetupAttempts=E.Reviews=E.Refunds=E.Quotes=E.PromotionCodes=E.Products=E.Prices=E.Plans=E.Payouts=E.PaymentRecords=E.PaymentMethods=E.PaymentMethodDomains=E.PaymentMethodConfigurations=E.PaymentLinks=E.PaymentIntents=E.PaymentAttemptRecords=E.OAuth=E.Mandates=E.Invoices=E.InvoiceRenderingTemplates=E.InvoicePayments=E.InvoiceItems=E.Files=E.FileLinks=E.ExchangeRates=E.Events=E.EphemeralKeys=E.Disputes=E.Customers=E.CustomerSessions=E.CreditNotes=E.Coupons=E.CountrySpecs=E.ConfirmationTokens=E.Charges=E.BalanceTransactions=E.BalanceSettings=E.Balance=E.ApplicationFees=E.ApplePayDomains=E.Accounts=E.AccountSessions=E.AccountLinks=E.Account=void 0;E.V2=E.Treasury=E.TestHelpers=E.Terminal=E.Tax=E.Sigma=E.Reporting=E.Radar=E.Issuing=E.Identity=E.Forwarding=E.FinancialConnections=E.Entitlements=E.Climate=E.Checkout=E.BillingPortal=E.Billing=E.Apps=E.WebhookEndpoints=E.Transfers=E.Topups=E.Tokens=E.TaxRates=E.TaxIds=E.TaxCodes=void 0;var C=T$(),q3=q$(),E3=C$(),O3=x$(),k3=h$(),F3=n$(),C3=o$(),A3=e$(),b3=Q8(),v3=X8(),x3=L8(),P3=T8(),I3=q8(),f3=F8(),y3=v8(),g3=f8(),R3=S8(),S3=m8(),M3=c8(),j3=p8(),_3=t8(),m3=$Q(),h3=BQ(),l3=UQ(),u3=KQ(),c3=qQ(),d3=FQ(),n3=vQ(),a3=fQ(),i3=SQ(),p3=mQ(),o3=cQ(),s3=iQ(),r3=rQ(),t3=Z7(),e3=z7(),JU=w7(),ZU=W7(),$U=H7(),QU=O7(),GU=A7(),zU=P7(),BU=g7(),XU=j7(),YU=l7(),wU=n7(),UU=o7(),LU=e7(),VU=Q4(),WU=Y4(),KU=W4(),TU=H4(),NU=O4(),HU=A4(),DU=I4(),qU=R4(),EU=m4(),OU=c4(),kU=i4(),FU=r4(),CU=$5(),AU=B5(),bU=L5(),vU=T5(),xU=q5(),PU=F5(),IU=x5(),fU=g5(),yU=_5(),gU=u5(),RU=a5(),SU=r5(),MU=$G(),jU=BG(),_U=UG(),mU=KG(),hU=qG(),lU=FG(),uU=vG(),cU=yG(),dU=MG(),nU=DZ();Object.defineProperty(E,"Account",{enumerable:!0,get:function(){return nU.Accounts}});var aU=cG();Object.defineProperty(E,"AccountLinks",{enumerable:!0,get:function(){return aU.AccountLinks}});var iU=iG();Object.defineProperty(E,"AccountSessions",{enumerable:!0,get:function(){return iU.AccountSessions}});var pU=DZ();Object.defineProperty(E,"Accounts",{enumerable:!0,get:function(){return pU.Accounts}});var oU=rG();Object.defineProperty(E,"ApplePayDomains",{enumerable:!0,get:function(){return oU.ApplePayDomains}});var sU=Z6();Object.defineProperty(E,"ApplicationFees",{enumerable:!0,get:function(){return sU.ApplicationFees}});var rU=z6();Object.defineProperty(E,"Balance",{enumerable:!0,get:function(){return rU.Balance}});var tU=U6();Object.defineProperty(E,"BalanceSettings",{enumerable:!0,get:function(){return tU.BalanceSettings}});var eU=T6();Object.defineProperty(E,"BalanceTransactions",{enumerable:!0,get:function(){return eU.BalanceTransactions}});var JL=q6();Object.defineProperty(E,"Charges",{enumerable:!0,get:function(){return JL.Charges}});var ZL=F6();Object.defineProperty(E,"ConfirmationTokens",{enumerable:!0,get:function(){return ZL.ConfirmationTokens}});var $L=x6();Object.defineProperty(E,"CountrySpecs",{enumerable:!0,get:function(){return $L.CountrySpecs}});var QL=y6();Object.defineProperty(E,"Coupons",{enumerable:!0,get:function(){return QL.Coupons}});var GL=M6();Object.defineProperty(E,"CreditNotes",{enumerable:!0,get:function(){return GL.CreditNotes}});var zL=h6();Object.defineProperty(E,"CustomerSessions",{enumerable:!0,get:function(){return zL.CustomerSessions}});var BL=d6();Object.defineProperty(E,"Customers",{enumerable:!0,get:function(){return BL.Customers}});var XL=p6();Object.defineProperty(E,"Disputes",{enumerable:!0,get:function(){return XL.Disputes}});var YL=e6();Object.defineProperty(E,"EphemeralKeys",{enumerable:!0,get:function(){return YL.EphemeralKeys}});var wL=Gz();Object.defineProperty(E,"Events",{enumerable:!0,get:function(){return wL.Events}});var UL=wz();Object.defineProperty(E,"ExchangeRates",{enumerable:!0,get:function(){return UL.ExchangeRates}});var LL=Wz();Object.defineProperty(E,"FileLinks",{enumerable:!0,get:function(){return LL.FileLinks}});var VL=Oz();Object.defineProperty(E,"Files",{enumerable:!0,get:function(){return VL.Files}});var WL=Az();Object.defineProperty(E,"InvoiceItems",{enumerable:!0,get:function(){return WL.InvoiceItems}});var KL=Iz();Object.defineProperty(E,"InvoicePayments",{enumerable:!0,get:function(){return KL.InvoicePayments}});var TL=Rz();Object.defineProperty(E,"InvoiceRenderingTemplates",{enumerable:!0,get:function(){return TL.InvoiceRenderingTemplates}});var NL=_z();Object.defineProperty(E,"Invoices",{enumerable:!0,get:function(){return NL.Invoices}});var HL=uz();Object.defineProperty(E,"Mandates",{enumerable:!0,get:function(){return HL.Mandates}});var DL=iz();Object.defineProperty(E,"OAuth",{enumerable:!0,get:function(){return DL.OAuth}});var qL=tz();Object.defineProperty(E,"PaymentAttemptRecords",{enumerable:!0,get:function(){return qL.PaymentAttemptRecords}});var EL=$1();Object.defineProperty(E,"PaymentIntents",{enumerable:!0,get:function(){return EL.PaymentIntents}});var OL=B1();Object.defineProperty(E,"PaymentLinks",{enumerable:!0,get:function(){return OL.PaymentLinks}});var kL=U1();Object.defineProperty(E,"PaymentMethodConfigurations",{enumerable:!0,get:function(){return kL.PaymentMethodConfigurations}});var FL=K1();Object.defineProperty(E,"PaymentMethodDomains",{enumerable:!0,get:function(){return FL.PaymentMethodDomains}});var CL=D1();Object.defineProperty(E,"PaymentMethods",{enumerable:!0,get:function(){return CL.PaymentMethods}});var AL=k1();Object.defineProperty(E,"PaymentRecords",{enumerable:!0,get:function(){return AL.PaymentRecords}});var bL=b1();Object.defineProperty(E,"Payouts",{enumerable:!0,get:function(){return bL.Payouts}});var vL=I1();Object.defineProperty(E,"Plans",{enumerable:!0,get:function(){return vL.Plans}});var xL=R1();Object.defineProperty(E,"Prices",{enumerable:!0,get:function(){return xL.Prices}});var PL=_1();Object.defineProperty(E,"Products",{enumerable:!0,get:function(){return PL.Products}});var IL=u1();Object.defineProperty(E,"PromotionCodes",{enumerable:!0,get:function(){return IL.PromotionCodes}});var fL=a1();Object.defineProperty(E,"Quotes",{enumerable:!0,get:function(){return fL.Quotes}});var yL=s1();Object.defineProperty(E,"Refunds",{enumerable:!0,get:function(){return yL.Refunds}});var gL=JB();Object.defineProperty(E,"Reviews",{enumerable:!0,get:function(){return gL.Reviews}});var RL=GB();Object.defineProperty(E,"SetupAttempts",{enumerable:!0,get:function(){return RL.SetupAttempts}});var SL=YB();Object.defineProperty(E,"SetupIntents",{enumerable:!0,get:function(){return SL.SetupIntents}});var ML=VB();Object.defineProperty(E,"ShippingRates",{enumerable:!0,get:function(){return ML.ShippingRates}});var jL=NB();Object.defineProperty(E,"Sources",{enumerable:!0,get:function(){return jL.Sources}});var _L=EB();Object.defineProperty(E,"SubscriptionItems",{enumerable:!0,get:function(){return _L.SubscriptionItems}});var mL=CB();Object.defineProperty(E,"SubscriptionSchedules",{enumerable:!0,get:function(){return mL.SubscriptionSchedules}});var hL=xB();Object.defineProperty(E,"Subscriptions",{enumerable:!0,get:function(){return hL.Subscriptions}});var lL=gB();Object.defineProperty(E,"TaxCodes",{enumerable:!0,get:function(){return lL.TaxCodes}});var uL=jB();Object.defineProperty(E,"TaxIds",{enumerable:!0,get:function(){return uL.TaxIds}});var cL=lB();Object.defineProperty(E,"TaxRates",{enumerable:!0,get:function(){return cL.TaxRates}});var dL=aB();Object.defineProperty(E,"Tokens",{enumerable:!0,get:function(){return dL.Tokens}});var nL=sB();Object.defineProperty(E,"Topups",{enumerable:!0,get:function(){return nL.Topups}});var aL=JX();Object.defineProperty(E,"Transfers",{enumerable:!0,get:function(){return aL.Transfers}});var iL=GX();Object.defineProperty(E,"WebhookEndpoints",{enumerable:!0,get:function(){return iL.WebhookEndpoints}});E.Apps=(0,C.resourceNamespace)("apps",{Secrets:vU.Secrets});E.Billing=(0,C.resourceNamespace)("billing",{Alerts:C3.Alerts,CreditBalanceSummary:M3.CreditBalanceSummary,CreditBalanceTransactions:j3.CreditBalanceTransactions,CreditGrants:_3.CreditGrants,MeterEventAdjustments:r3.MeterEventAdjustments,MeterEvents:ZU.MeterEvents,Meters:QU.Meters});E.BillingPortal=(0,C.resourceNamespace)("billingPortal",{Configurations:y3.Configurations,Sessions:xU.Sessions});E.Checkout=(0,C.resourceNamespace)("checkout",{Sessions:PU.Sessions});E.Climate=(0,C.resourceNamespace)("climate",{Orders:zU.Orders,Products:KU.Products,Suppliers:yU.Suppliers});E.Entitlements=(0,C.resourceNamespace)("entitlements",{ActiveEntitlements:F3.ActiveEntitlements,Features:a3.Features});E.FinancialConnections=(0,C.resourceNamespace)("financialConnections",{Accounts:O3.Accounts,Sessions:IU.Sessions,Transactions:MU.Transactions});E.Forwarding=(0,C.resourceNamespace)("forwarding",{Requests:AU.Requests});E.Identity=(0,C.resourceNamespace)("identity",{VerificationReports:cU.VerificationReports,VerificationSessions:dU.VerificationSessions});E.Issuing=(0,C.resourceNamespace)("issuing",{Authorizations:b3.Authorizations,Cardholders:P3.Cardholders,Cards:I3.Cards,Disputes:u3.Disputes,PersonalizationDesigns:LU.PersonalizationDesigns,PhysicalBundles:WU.PhysicalBundles,Tokens:RU.Tokens,Transactions:jU.Transactions});E.Radar=(0,C.resourceNamespace)("radar",{EarlyFraudWarnings:c3.EarlyFraudWarnings,PaymentEvaluations:UU.PaymentEvaluations,ValueListItems:lU.ValueListItems,ValueLists:uU.ValueLists});E.Reporting=(0,C.resourceNamespace)("reporting",{ReportRuns:FU.ReportRuns,ReportTypes:CU.ReportTypes});E.Sigma=(0,C.resourceNamespace)("sigma",{ScheduledQueryRuns:bU.ScheduledQueryRuns});E.Tax=(0,C.resourceNamespace)("tax",{Associations:A3.Associations,Calculations:x3.Calculations,Registrations:kU.Registrations,Settings:fU.Settings,Transactions:_U.Transactions});E.Terminal=(0,C.resourceNamespace)("terminal",{Configurations:g3.Configurations,ConnectionTokens:S3.ConnectionTokens,Locations:s3.Locations,OnboardingLinks:GU.OnboardingLinks,Readers:TU.Readers});E.TestHelpers=(0,C.resourceNamespace)("testHelpers",{ConfirmationTokens:R3.ConfirmationTokens,Customers:h3.Customers,Refunds:OU.Refunds,TestClocks:gU.TestClocks,Issuing:(0,C.resourceNamespace)("issuing",{Authorizations:v3.Authorizations,Cards:f3.Cards,PersonalizationDesigns:VU.PersonalizationDesigns,Transactions:mU.Transactions}),Terminal:(0,C.resourceNamespace)("terminal",{Readers:NU.Readers}),Treasury:(0,C.resourceNamespace)("treasury",{InboundTransfers:p3.InboundTransfers,OutboundPayments:BU.OutboundPayments,OutboundTransfers:YU.OutboundTransfers,ReceivedCredits:HU.ReceivedCredits,ReceivedDebits:qU.ReceivedDebits})});E.Treasury=(0,C.resourceNamespace)("treasury",{CreditReversals:m3.CreditReversals,DebitReversals:l3.DebitReversals,FinancialAccounts:i3.FinancialAccounts,InboundTransfers:o3.InboundTransfers,OutboundPayments:XU.OutboundPayments,OutboundTransfers:wU.OutboundTransfers,ReceivedCredits:DU.ReceivedCredits,ReceivedDebits:EU.ReceivedDebits,TransactionEntries:SU.TransactionEntries,Transactions:hU.Transactions});E.V2=(0,C.resourceNamespace)("v2",{Billing:(0,C.resourceNamespace)("billing",{MeterEventAdjustments:t3.MeterEventAdjustments,MeterEventSession:e3.MeterEventSession,MeterEventStream:JU.MeterEventStream,MeterEvents:$U.MeterEvents}),Core:(0,C.resourceNamespace)("core",{AccountLinks:q3.AccountLinks,AccountTokens:E3.AccountTokens,Accounts:k3.Accounts,EventDestinations:d3.EventDestinations,Events:n3.Events})})});var kX=B((EX)=>{Object.defineProperty(EX,"__esModule",{value:!0});EX.createStripe=void 0;var XX=CJ(),VV=m9(),DX=U(),YX=B$(),WV=w$(),qX=V$(),KV=OJ(),TV=X0(),wX=kJ(),y0=BX(),QJ=_(),UX="api.stripe.com",LX="443",VX="/v1/",WX=qX.ApiVersion,KX=80000,TX=5,NX=0.5,NV=["name","version","url","partner_id"],HX=["authenticator","apiVersion","typescript","maxNetworkRetries","httpAgent","httpClient","timeout","host","port","protocol","telemetry","appInfo","stripeAccount","stripeContext"],HV=(J)=>new VV.RequestSender(J,DX.StripeResource.MAX_BUFFERED_REQUEST_METRICS);function DV(J,Z=HV){Q.PACKAGE_VERSION="21.0.1",Q.API_VERSION=qX.ApiVersion;let $=typeof process<"u"&&process.env?(0,QJ.detectAIAgent)(process.env):"";Q.AI_AGENT=$,Q.USER_AGENT={bindings_version:Q.PACKAGE_VERSION,lang:"node",typescript:!1,...(0,QJ.determineProcessUserAgentProperties)(),...$?{ai_agent:$}:{}},Q.StripeResource=DX.StripeResource,Q.StripeContext=YX.StripeContext,Q.resources=y0,Q.HttpClient=wX.HttpClient,Q.HttpClientResponse=wX.HttpClientResponse,Q.CryptoProvider=KV.CryptoProvider,Q.webhooks=(0,WV.createWebhooks)(J),Q.Decimal=TV.Decimal;function Q(G,z={}){if(!(this instanceof Q))return new Q(G,z);let w=this._getPropsFromConfig(z);this._platformFunctions=J,Object.defineProperty(this,"_emitter",{value:this._platformFunctions.createEmitter(),enumerable:!1,configurable:!1,writable:!1}),this.VERSION=Q.PACKAGE_VERSION,this.on=this._emitter.on.bind(this._emitter),this.once=this._emitter.once.bind(this._emitter),this.off=this._emitter.removeListener.bind(this._emitter);let X=w.httpAgent||null;this._api={host:w.host||UX,port:w.port||LX,protocol:w.protocol||"https",basePath:VX,version:w.apiVersion||WX,timeout:(0,QJ.validateInteger)("timeout",w.timeout,KX),maxNetworkRetries:(0,QJ.validateInteger)("maxNetworkRetries",w.maxNetworkRetries,2),agent:X,httpClient:w.httpClient||(X?this._platformFunctions.createNodeHttpClient(X):this._platformFunctions.createDefaultHttpClient()),dev:!1,stripeAccount:w.stripeAccount||null,stripeContext:w.stripeContext||null};let K=w.typescript||!1;if(K!==Q.USER_AGENT.typescript)Q.USER_AGENT.typescript=K;if(w.appInfo)this._setAppInfo(w.appInfo);this._prepResources(),this._setAuthenticator(G,w.authenticator),this.errors=XX,this.webhooks=Q.webhooks,this._prevRequestMetrics=[],this._enableTelemetry=w.telemetry!==!1,this._requestSender=Z(this),this.StripeResource=Q.StripeResource,this.Decimal=Q.Decimal}return Q.errors=XX,Q.createNodeHttpClient=J.createNodeHttpClient,Q.createFetchHttpClient=J.createFetchHttpClient,Q.createNodeCryptoProvider=J.createNodeCryptoProvider,Q.createSubtleCryptoProvider=J.createSubtleCryptoProvider,Q.prototype={_appInfo:void 0,on:null,off:null,once:null,VERSION:null,StripeResource:null,webhooks:null,errors:null,_api:null,_prevRequestMetrics:null,_emitter:null,_enableTelemetry:null,_requestSender:null,_platformFunctions:null,rawRequest(G,z,w,X){return this._requestSender._rawRequest(G,z,w,X)},_setAuthenticator(G,z){if(G&&z)throw Error("Can't specify both apiKey and authenticator");if(!G&&!z)throw Error("Neither apiKey nor config.authenticator provided");this._authenticator=G?(0,QJ.createApiKeyAuthenticator)(G):z},_setAppInfo(G){if(G&&typeof G!=="object")throw Error("AppInfo must be an object.");if(G&&!G.name)throw Error("AppInfo.name is required");G=G||{},this._appInfo=NV.reduce((z,w)=>{if(typeof G[w]=="string")z=z||{},z[w]=G[w];return z},{})},_setApiField(G,z){this._api[G]=z},getApiField(G){return this._api[G]},setClientId(G){this._clientId=G},getClientId(){return this._clientId},getConstant:(G)=>{switch(G){case"DEFAULT_HOST":return UX;case"DEFAULT_PORT":return LX;case"DEFAULT_BASE_PATH":return VX;case"DEFAULT_API_VERSION":return WX;case"DEFAULT_TIMEOUT":return KX;case"MAX_NETWORK_RETRY_DELAY_SEC":return TX;case"INITIAL_NETWORK_RETRY_DELAY_SEC":return NX}return Q[G]},getMaxNetworkRetries(){return this.getApiField("maxNetworkRetries")},_setApiNumberField(G,z,w){let X=(0,QJ.validateInteger)(G,z,w);this._setApiField(G,X)},getMaxNetworkRetryDelay(){return TX},getInitialNetworkRetryDelay(){return NX},getClientUserAgent(G){return this.getClientUserAgentSeeded(Q.USER_AGENT,G)},getClientUserAgentSeeded(G,z){let w={};for(let T in G){if(!Object.prototype.hasOwnProperty.call(G,T))continue;w[T]=encodeURIComponent(G[T]??"null")}let X=this._platformFunctions.getPlatformInfo();if(X&&this.getTelemetryEnabled())w.platform=encodeURIComponent(X);else delete w.platform;let K=this.getApiField("httpClient");if(K)w.httplib=encodeURIComponent(K.getClientName());if(this._appInfo)w.application=this._appInfo;z(JSON.stringify(w))},getAppInfoAsString(){if(!this._appInfo)return"";let G=this._appInfo.name;if(this._appInfo.version)G+=`/${this._appInfo.version}`;if(this._appInfo.url)G+=` (${this._appInfo.url})`;return G},getTelemetryEnabled(){return this._enableTelemetry},_prepResources(){for(let G in y0){if(!Object.prototype.hasOwnProperty.call(y0,G))continue;this[(0,QJ.pascalToCamelCase)(G)]=new y0[G](this)}},_getPropsFromConfig(G){if(!G)return{};let z=typeof G==="string";if(!(G===Object(G)&&!Array.isArray(G))&&!z)throw Error("Config must either be an object or a string");if(z)return{apiVersion:G};if(Object.keys(G).filter((K)=>!HX.includes(K)).length>0)throw Error(`Config object may only contain the following: ${HX.join(", ")}`);return G},parseEventNotification(G,z,w,X,K,T){this.webhooks.signature.verifyHeader(G,z,w,X||this.webhooks.DEFAULT_TOLERANCE,K,T);let Y=G instanceof Uint8Array?JSON.parse(new TextDecoder("utf8").decode(G)):JSON.parse(G);if(Y&&Y.object==="event")throw Error("You passed a webhook payload to stripe.parseEventNotification, which expects an event notification. Use stripe.webhooks.constructEvent instead.");if(Y.context)Y.context=YX.StripeContext.parse(Y.context);return Y.fetchEvent=()=>{return this._requestSender._rawRequest("GET",`/v2/core/events/${Y.id}`,void 0,{stripeContext:Y.context,headers:{"Stripe-Request-Trigger":`event=${Y.id}`}},["fetch_event"])},Y.fetchRelatedObject=()=>{if(!Y.related_object)return Promise.resolve(null);return this._requestSender._rawRequest("GET",Y.related_object.url,void 0,{stripeContext:Y.context,headers:{"Stripe-Request-Trigger":`event=${Y.id}`}},["fetch_related_object"])},Y}},Q}EX.createStripe=DV});var FZ=B((FX,sJ)=>{Object.defineProperty(FX,"__esModule",{value:!0});var qV=S9(),EV=kX(),OV=X0(),kZ=(0,EV.createStripe)(new qV.NodePlatformFunctions);sJ.exports=kZ;sJ.exports.Stripe=kZ;sJ.exports.default=kZ;sJ.exports.Decimal=OV.Decimal});var AX=_Z(FZ(),1);import{services as CX}from"@stacksjs/config";var CZ=null,H=new Proxy({},{get(J,Z){if(!CZ){let $=CX?.stripe?.secretKey;if(!$)throw Error("Stripe secret key is not configured. Set STRIPE_SECRET_KEY in your .env file.");let Q=CX?.stripe?.apiVersion??"2026-01-28.preview";CZ=new AX.default($,{apiVersion:Q})}return CZ[Z]}});import{config as FV}from"@stacksjs/config";import{log as CV}from"@stacksjs/logging";import{createHash as bX}from"crypto";var AZ="stacks",bZ="v1",kV=255;function c(J,...Z){let $=Z.filter((z)=>z!==null&&z!==void 0&&z!=="").map((z)=>String(z)).join(":"),Q=$?`${AZ}:${J}:${$}:${bZ}`:`${AZ}:${J}:${bZ}`;if(Q.length<=kV)return Q;let G=bX("sha256").update($).digest("hex").slice(0,32);return`${AZ}:${J}:${G}:${bZ}`}function GJ(J,...Z){let $=bX("sha256").update(`${Date.now()}:${Math.random()}`).digest("hex").slice(0,16);return c(J,...Z,$)}function vX(){let J=FV||{};return(J.payment?.currency||J.billing?.currency||process.env.STRIPE_CURRENCY||"usd").toLowerCase()}var g0=(()=>{async function J(G,z,w){let X={currency:vX(),amount:z};if(G.hasStripeId())X.customer=G.stripe_id;let K={...X,...w};return await H.paymentIntents.create(K,{idempotencyKey:GJ("payment_intent.create",G.id,z)})}async function Z(G){try{return await H.paymentIntents.retrieve(G)}catch(z){return CV.error(z),null}}async function $(G,z={}){if(!G||typeof G!=="string")throw Error("[payments/refund] paymentIntentId is required");if(z.amount!=null){if(typeof z.amount!=="number"||!Number.isFinite(z.amount)||z.amount<=0)throw Error("[payments/refund] amount must be a positive finite number");try{let Y=await H.paymentIntents.retrieve(G),V=Y.amount_received??Y.amount;if(V&&z.amount>V)throw Error(`[payments/refund] amount ${z.amount} exceeds captured amount ${V}`)}catch(Y){if(Y instanceof Error&&Y.message.startsWith("[payments/refund]"))throw Y}}let{idempotencyKey:w,...X}=z,K={payment_intent:G,...X},T={idempotencyKey:w||`refund:${G}:${X.amount??"full"}`};return await H.refunds.create(K,T)}async function Q(G,z,w,X){let T={...{confirmation_method:"automatic",confirm:!0,payment_method:w,currency:vX(),amount:z},...X};return await J(G,z,T)}return{createPayment:J,charge:Q,findPayment:Z,refund:$}})();import{config as AV}from"@stacksjs/config";function xX(J,Z){if(!J)return;let $;try{$=new URL(J)}catch{throw Error(`[payments/checkout] ${Z} is not a valid URL: ${J}`)}let Q=AV?.app?.url;if(!Q)return;let G;try{G=new URL(Q.startsWith("http")?Q:`https://${Q}`).origin}catch{return}if($.origin!==G)throw Error(`[payments/checkout] ${Z} origin (${$.origin}) does not match app origin (${G})`)}var vZ=(()=>{async function J(Z,$){let Q=$.customer||Z.stripe_id;if(!Q)throw Error("User has no Stripe customer");xX($.success_url,"success_url"),xX($.cancel_url,"cancel_url");let z={...{customer:Q,mode:"payment",success_url:$.success_url,cancel_url:$.cancel_url},...$};return await H.checkout.sessions.create(z,{idempotencyKey:GJ("checkout.session.create",Z.id)})}return{create:J}})();var d=(()=>{function J(L){return L.stripe_id||""}function Z(L){return{line1:L.address?.line1,city:L.address?.city,state:L.address?.state,postal_code:L.address?.postal_code,country:L.address?.country}}function $(){return[]}function Q(L){return L}function G(L){return Boolean(L.stripe_id)}async function z(L,N={}){if(G(L))throw Error("Customer already created");if(!N.name&&W(L))N.name=W(L);if(!N.email&&D(L))N.email=D(L);let q=await H.customers.create(N,{idempotencyKey:c("customer.create",L.id)});return await L.update({stripe_id:q.id}),q}async function w(L,N={}){if(!L.stripe_id)throw Error("User does not have a Stripe customer ID. Create a customer first.");return await H.customers.update(L.stripe_id,N,{idempotencyKey:c("customer.update",L.id,L.stripe_id)})}async function X(L){if(!G(L))throw Error("User does not have a Stripe ID");try{if(!L.stripe_id)throw Error("User has no Stripe ID");let N=await H.customers.del(L.stripe_id);return await L.update({stripe_id:""}),N}catch(N){if(N.statusCode===404)throw Error("Customer not found in Stripe");throw N}}async function K(L,N={}){if(!G(L))return await z(L,N);try{let q=await H.customers.retrieve(L.stripe_id);if(q.deleted)throw Error("Customer was deleted");return q}catch(q){if(q.statusCode===404)return await z(L,N);throw q}}async function T(L){if(!G(L))return;try{let N=await H.customers.retrieve(L.stripe_id);if(N.deleted)throw Error("Customer was deleted in Stripe");return N}catch(N){if(N.statusCode===404)throw Error("Customer not found in Stripe");throw N}}async function Y(L,N){if(!G(L))return await z(L,N);try{if((await H.customers.retrieve(L.stripe_id)).deleted)return await z(L,N);return await w(L,N)}catch(q){if(q.statusCode===404)return await z(L,N);throw q}}async function V(L,N){return await w(L,{name:W(L),email:D(L),address:Z(N),preferred_locales:$(),metadata:N.metadata?Q(N.metadata):{}})}function W(L){return L.name||""}function D(L){return L.email||""}return{stripeId:J,hasStripeId:G,createStripeCustomer:z,updateStripeCustomer:w,createOrGetStripeUser:K,createOrUpdateStripeUser:Y,deleteStripeUser:X,retrieveStripeUser:T,syncStripeCustomerDetails:V}})();var xZ=(()=>{async function J(Z){if(!Z.hasStripeId())throw Error("Customer does not exist in Stripe");if(!Z.stripe_id)throw Error("User has no Stripe ID");return await H.invoices.list({customer:Z.stripe_id,expand:["data.payment_intent.payment_method"]})}return{list:J}})();import{db as s}from"@stacksjs/database";import{PaymentMethod as PZ}from"@stacksjs/orm";var rJ=(()=>{async function J(Y,V){if(!Y.hasStripeId())throw Error("Customer does not exist in Stripe");let W;if(typeof V==="string")W=await H.paymentMethods.retrieve(V);else W=V;if(W.customer!==Y.stripe_id)W=await H.paymentMethods.attach(W.id,{customer:Y.stripe_id});return await Q(Y,W),W}async function Z(Y,V){if(!Y.hasStripeId())throw Error("Customer does not exist in Stripe");let W=await H.paymentMethods.retrieve(V),D=await s.selectFrom("payment_methods").where("provider_id","=",V).selectAll().executeTakeFirst();if(!Y.stripe_id)throw Error("User has no Stripe ID");if(W.customer!==Y.stripe_id)await H.paymentMethods.attach(W.id,{customer:Y.stripe_id});let L=await H.customers.update(Y.stripe_id,{invoice_settings:{default_payment_method:V}});if(await s.updateTable("payment_methods").set({is_default:!1}).where("user_id","=",Y.id).executeTakeFirst(),D)await G(D);return L}async function $(Y,V){if(!Y.hasStripeId())throw Error("Customer does not exist in Stripe");let W=await s.selectFrom("payment_methods").where("id","=",V).selectAll().executeTakeFirst();if(!W?.provider_id)throw Error(`Payment method with id ${V} not found`);let D=await H.paymentMethods.retrieve(String(W.provider_id));if(D.customer!==Y.stripe_id)await H.paymentMethods.attach(D.id,{customer:Y.stripe_id});if(!Y.stripe_id)throw Error("User has no Stripe ID");let L=await H.customers.update(Y.stripe_id,{invoice_settings:{default_payment_method:String(W.provider_id)}});return await s.updateTable("payment_methods").set({is_default:!1}).where("user_id","=",Y.id).executeTakeFirst(),await s.updateTable("payment_methods").set({is_default:!0}).where("id","=",V).executeTakeFirst(),L}async function Q(Y,V){if(!Y.hasStripeId())throw Error("Customer does not exist in Stripe");if(!V.card?.brand||!V.card?.exp_year||!V.card?.exp_month)throw Error("Invalid payment method: missing required card details");let W={type:"card",last_four:String(V.card.last4),brand:V.card.brand,exp_year:V.card.exp_year,exp_month:V.card.exp_month,user_id:Y.id,provider_id:V.id};if(V.customer!==Y.stripe_id)await H.paymentMethods.attach(V.id,{customer:Y.stripe_id});return await PZ.create(W)}async function G(Y){return await Y.update({is_default:!0})}async function z(Y,V){if(!Y.hasStripeId())throw Error("Customer does not exist in Stripe");let W=typeof V==="string"?await s.selectFrom("payment_methods").where("provider_id","=",V).selectAll().executeTakeFirst():await PZ.find(V);if(!W?.provider_id)throw Error(`Payment method with id ${V} not found`);if((await H.paymentMethods.retrieve(String(W.provider_id))).customer!==Y.stripe_id)throw Error("Payment method does not belong to this customer");return await W.delete(),await H.paymentMethods.detach(String(W.provider_id))}async function w(Y,V,W){if(!Y.hasStripeId())throw Error("Customer does not exist in Stripe");if((await H.paymentMethods.retrieve(V)).customer!==Y.stripe_id)throw Error("Payment method does not belong to this customer");return await H.paymentMethods.update(V,W)}async function X(Y){if(!Y.hasStripeId())throw Error("Customer does not exist in Stripe");return await s.selectFrom("payment_methods").selectAll().where("user_id","=",Y.id).execute()}async function K(Y,V){if(!Y.hasStripeId())throw Error("Customer does not exist in Stripe");return await s.selectFrom("payment_methods").where("id","=",V).selectAll().executeTakeFirst()}async function T(Y){if(!Y.hasStripeId())throw Error("Customer does not exist in Stripe");return await PZ.where("user_id",Y.id).where("is_default",!0).first()}return{addPaymentMethod:J,deletePaymentMethod:z,retrieveDefaultPaymentMethod:T,updatePaymentMethod:w,listPaymentMethods:X,setDefaultPaymentMethod:$,storePaymentMethod:Q,retrievePaymentMethod:K,setUserDefaultPayment:Z}})();var tJ=(()=>{async function J($){let Q=await H.prices.list({lookup_keys:[$]});if(!Q.data.length)return;return Q.data[0]}async function Z($,Q){let G=await J($);if(G)return G;return await H.prices.create({...Q,lookup_key:$})}return{retrieveByLookupKey:J,createOrGet:Z}})();var R0=(()=>{async function J(X){return await H.products.create(X)}async function Z(X){return await H.products.retrieve(X)}async function $(X,K){return await H.products.update(X,K)}async function Q(X={}){return await H.products.list({active:!0,...X})}async function G(X){return await H.products.update(X,{active:!1})}async function z(X,K){let T=await H.products.create(X),Y=await H.prices.create({...K,product:T.id});return{product:T,price:Y}}async function w(X,K={query:""}){return await H.products.search({...K,query:X})}return{create:J,retrieve:Z,update:$,list:Q,archive:G,createWithPrice:z,search:w}})(),PX=(()=>{async function J(X){return await H.prices.create(X)}async function Z(X){return await H.prices.retrieve(X)}async function $(X,K){return await H.prices.update(X,K)}async function Q(X={}){return await H.prices.list({active:!0,...X})}async function G(X,K={}){return await H.prices.list({product:X,active:!0,...K})}async function z(X,K={query:""}){return await H.prices.search({...K,query:X})}async function w(X){return await H.prices.update(X,{active:!1})}return{create:J,retrieve:Z,update:$,list:Q,listByProduct:G,search:z,archive:w}})(),eJ=(()=>{async function J(X){return await H.coupons.create(X)}async function Z(X){return await H.coupons.retrieve(X)}async function $(X,K){return await H.coupons.update(X,K)}async function Q(X){return await H.coupons.del(X)}async function G(X={}){return await H.coupons.list(X)}async function z(X){return await H.promotionCodes.create(X)}async function w(X){try{let K=await H.promotionCodes.list({code:X,active:!0});if(K.data.length>0)return K.data[0]??null;return null}catch{return null}}return{create:J,retrieve:Z,update:$,delete:Q,list:G,createPromotionCode:z,retrievePromotionCode:w}})();import{db as zJ}from"@stacksjs/database";import{HttpError as bV}from"@stacksjs/error-handling";import{isUniqueViolation as vV}from"@stacksjs/orm";var qJ=(()=>{async function J(W,D,L,N){let q=await tJ.retrieveByLookupKey(L);if(!q)throw Error("Price does not exist in Stripe");let O=[{price:q.id,quantity:1}],I={...{customer:await d.createOrGetStripeUser(W,{}).then((y)=>{if(!y||!y.id)throw Error("Customer does not exist in Stripe");return y.id}),payment_behavior:"allow_incomplete",expand:["latest_invoice.payment_intent"],items:O},...N},f=await H.subscriptions.create(I,{idempotencyKey:c("subscription.create",W.id,D,L)});return await T(W,D,L,f),f}async function Z(W,D,L,N={}){let q=await tJ.retrieveByLookupKey(L),O=await W?.activeSubscription();if(!q)throw Error("New price does not exist in Stripe");if(!O)throw Error("No active subscription for user!");let k=O.subscription?.provider_id;if(!k)throw Error("Active subscription has no provider ID");let b=await H.subscriptions.retrieve(k);if(!b)throw Error("Subscription does not exist in Stripe");let I=b.items.data[0]?.id;if(!I)throw Error("No subscription items found in the subscription");await H.subscriptions.update(k,{items:[{id:I,price:q.id,quantity:1}],proration_behavior:"create_prorations"},{idempotencyKey:c("subscription.update",k,q.id)});let f=await H.subscriptions.retrieve(k);if(!O.subscription?.id)throw Error("Active subscription has no database ID");return await Y(O.subscription.id,D,f),f}async function $(W,D){if(!await H.subscriptions.retrieve(W))throw Error("Subscription does not exist or does not belong to the user");let N=await H.subscriptions.cancel(W,D,{idempotencyKey:c("subscription.cancel",W)});return await G(W),N}async function Q(W,D){if(!W.hasStripeId())throw Error("Customer does not exist in Stripe");return await H.subscriptions.retrieve(D)}async function G(W){await zJ.updateTable("subscriptions").set({provider_status:"canceled"}).where("provider_id","=",W).executeTakeFirst()}function z(W){return W.provider_status==="active"}function w(W){return W.provider_status==="trialing"}async function X(W,D){let L=await zJ.selectFrom("subscriptions").where("user_id","=",W.id).where("type","=",D).selectAll().executeTakeFirst();if(!L)return!1;return L.provider_status==="incomplete"}async function K(W,D){let L=await zJ.selectFrom("subscriptions").where("user_id","=",W.id).where("type","=",D).selectAll().executeTakeFirst();if(!L)return!1;let N=await z(L),q=await w(L);return N||q}async function T(W,D,L,N){let q=N.items.data[0];if(!q)throw Error("Stripe subscription contains no line items \u2014 cannot store subscription");let O=V({user_id:W.id,type:D,unit_price:Number(q.price.unit_amount),provider_id:N.id,provider_status:N.status,provider_price_id:q.price.id,quantity:q.quantity,trial_ends_at:N.trial_end!=null?String(N.trial_end):void 0,ends_at:N.current_period_end!=null?String(N.current_period_end):void 0,provider_type:"stripe",last_used_at:N.current_period_end!=null?String(N.current_period_end):void 0}),k;try{k=await zJ.insertInto("subscriptions").values(O).executeTakeFirst()}catch(I){if(vV(I))throw new bV(409,"A subscription with this provider ID already exists");throw I}if(!k)throw Error("Failed to insert subscription record");return await zJ.selectFrom("subscriptions").where("id","=",Number(k.insertId)).selectAll().executeTakeFirst()}async function Y(W,D,L){let N=await zJ.selectFrom("subscriptions").where("id","=",W).selectAll().executeTakeFirst(),q=L.items.data[0];if(!q)throw Error("Stripe subscription contains no line items \u2014 cannot update subscription");return await zJ?.updateTable("subscriptions").set({type:D,provider_price_id:q.price.id,unit_price:Number(q.price.unit_amount)}).where("id","=",W).executeTakeFirst(),N}function V(W){return Object.fromEntries(Object.entries(W).filter(([D,L])=>L!=null))}return{create:J,update:Z,isValid:K,isIncomplete:X,cancel:$,retrieve:Q}})();var IX=(()=>{async function J(Z,$){let z={...{customer:await d.createOrGetStripeUser(Z,{}).then((w)=>{if(!w||!w.id)throw Error("Customer does not exist in Stripe");return w.id}),payment_method_types:["card"]},...$};return await H.setupIntents.create(z,{idempotencyKey:GJ("setup_intent.create",Z.id)})}return{create:J}})();var IZ=new Map;function x(J,Z){let $=IZ.get(J)||[];$.push(Z),IZ.set(J,$)}function xV(J){for(let[Z,$]of Object.entries(J))x(Z,$)}function PV(J,Z,$,Q){if(Q!=null&&Number.isFinite(Q)&&Q>0)return H.webhooks.constructEvent(J,Z,$,Q);return H.webhooks.constructEvent(J,Z,$)}async function fX(J,Z,$,Q){if(Q!=null&&Number.isFinite(Q)&&Q>0)return await H.webhooks.constructEventAsync(J,Z,$,Q);return await H.webhooks.constructEventAsync(J,Z,$)}async function yX(J){let Z=IZ.get(J.type)||[];if(Z.length===0)return{handled:!1,eventType:J.type};let $=[];for(let Q of Z)try{await Q(J)}catch(G){$.push(G instanceof Error?G.message:String(G))}return{handled:!0,eventType:J.type,...$.length>0?{errors:$}:{}}}async function fZ(J,Z,$){try{let Q=await fX(J,Z,$.secret,$.tolerance),G=await yX(Q);if(G.errors&&G.errors.length>0)return{success:!1,eventType:G.eventType,error:G.errors.join("; ")};return{success:!0,eventType:G.eventType}}catch(Q){return{success:!1,error:Q instanceof Error?Q.message:"Unknown error"}}}function yZ(J){if(J.succeeded)x("payment_intent.succeeded",J.succeeded);if(J.failed)x("payment_intent.payment_failed",J.failed);if(J.created)x("payment_intent.created",J.created);if(J.canceled)x("payment_intent.canceled",J.canceled)}function gZ(J){if(J.created)x("customer.subscription.created",J.created);if(J.updated)x("customer.subscription.updated",J.updated);if(J.deleted)x("customer.subscription.deleted",J.deleted);if(J.trialWillEnd)x("customer.subscription.trial_will_end",J.trialWillEnd)}function RZ(J){if(J.paid)x("invoice.paid",J.paid);if(J.paymentFailed)x("invoice.payment_failed",J.paymentFailed);if(J.created)x("invoice.created",J.created);if(J.finalized)x("invoice.finalized",J.finalized)}function SZ(J){if(J.completed)x("checkout.session.completed",J.completed);if(J.expired)x("checkout.session.expired",J.expired)}function MZ(J){if(J.succeeded)x("charge.succeeded",J.succeeded);if(J.failed)x("charge.failed",J.failed);if(J.refunded)x("charge.refunded",J.refunded);if(J.disputed)x("charge.dispute.created",J.disputed)}function IV(J){if(J.type.startsWith("payment_intent."))return J.data.object;return null}function fV(J){if(J.type.startsWith("customer.subscription."))return J.data.object;return null}function yV(J){if(J.type.startsWith("invoice."))return J.data.object;return null}function gV(J){if(J.type.startsWith("checkout.session."))return J.data.object;return null}function RV(J){if(J.type.startsWith("charge."))return J.data.object;return null}function SV(J){if(J.type.startsWith("customer.")&&!J.type.includes("subscription"))return J.data.object;return null}var gX={onWebhookEvent:x,registerWebhookHandlers:xV,constructEvent:PV,constructEventAsync:fX,handleWebhookEvent:yX,processWebhook:fZ,onPaymentIntent:yZ,onSubscription:gZ,onInvoice:RZ,onCheckout:SZ,onCharge:MZ,getPaymentIntent:IV,getSubscription:fV,getInvoice:yV,getCheckoutSession:gV,getCharge:RV,getCustomer:SV};async function MV(J,Z,$,Q={}){return g0.charge(J,Z,$,Q)}async function jV(J,Z,$={}){return g0.createPayment(J,Z,$)}async function _V(J,Z,$={}){return g0.refund(J,{amount:Z,...$})}async function mV(J,Z,$={}){return vZ.create(J,{line_items:Z,mode:"payment",...$})}async function hV(J,Z,$={}){return vZ.create(J,{line_items:[{price:Z,quantity:1}],mode:"subscription",...$})}async function lV(J,Z,$={}){return qJ.create(J,"default",Z,$)}async function uV(J,Z=!1){return qJ.cancel(J,{prorate:!Z,invoice_now:Z})}async function cV(J,Z="default"){return qJ.isValid(J,Z)}async function dV(J,Z,$="default"){return qJ.update(J,$,Z,{})}async function nV(J,Z={}){return d.createOrGetStripeUser(J,Z)}async function aV(J,Z){return d.updateStripeCustomer(J,Z)}async function iV(J){return d.deleteStripeUser(J)}async function pV(J,Z){return rJ.addPaymentMethod(J,Z)}async function oV(J,Z){return rJ.setUserDefaultPayment(J,Z)}async function sV(J,Z){return rJ.deletePaymentMethod(J,Z)}async function rV(J,Z={}){return IX.create(J,Z)}async function tV(J){return xZ.list(J)}async function eV(J,Z={}){return H.invoices.create({customer:J,...Z})}async function JW(J){return H.invoices.pay(J)}async function ZW(J,Z,$={}){let{currency:Q="usd",interval:G,description:z,metadata:w}=$,X={unit_amount:Z,currency:Q};if(G)X.recurring={interval:G};return R0.createWithPrice({name:J,description:z,metadata:w},X)}async function $W(J){return tJ.retrieveByLookupKey(J)}async function QW(J={}){return R0.list(J)}async function GW(J){let Z={duration:J.duration||"once"};if(J.percentOff)Z.percent_off=J.percentOff;else if(J.amountOff)Z.amount_off=J.amountOff,Z.currency=J.currency||"usd";if(J.name)Z.name=J.name;if(J.durationInMonths)Z.duration_in_months=J.durationInMonths;if(J.maxRedemptions)Z.max_redemptions=J.maxRedemptions;return eJ.create(Z)}async function zW(J,Z,$={}){return eJ.createPromotionCode({promotion:{type:"coupon",coupon:J},code:Z,...$})}async function BW(J){return eJ.retrievePromotionCode(J)}function XW(J,Z){let $=globalThis.config||{},Q=(Z||$.payment?.currency||$.billing?.currency||process.env.STRIPE_CURRENCY||"usd").toLowerCase(),G=$.app?.locale||"en-US";return new Intl.NumberFormat(G,{style:"currency",currency:Q.toUpperCase()}).format(J/100)}function YW(J){return Math.round(J*100)}function wW(J){return J/100}var UW={charge:MV,createPayment:jV,refund:_V,checkout:mV,subscriptionCheckout:hV,subscribe:lV,cancelSubscription:uV,hasActiveSubscription:cV,changeSubscription:dV,getOrCreateCustomer:nV,updateCustomer:aV,deleteCustomer:iV,addPaymentMethod:pV,setDefaultPaymentMethod:oV,removePaymentMethod:sV,createSetupIntent:rV,getInvoices:tV,createInvoice:eV,payInvoice:JW,createProduct:ZW,getPrice:$W,listProducts:QW,createCoupon:GW,createPromoCode:zW,validatePromoCode:BW,formatAmount:XW,toCents:YW,toDollars:wW,webhook:gX,onPaymentIntent:yZ,onSubscription:gZ,onInvoice:RZ,onCheckout:SZ,onCharge:MZ,processWebhook:fZ,stripe:H,customer:d,subscription:qJ,invoice:xZ,paymentMethod:rJ,product:R0,price:PX,coupon:eJ},LW=UW;import{saas as VW}from"@stacksjs/config";import{err as WW,ok as KW}from"@stacksjs/error-handling";import{log as TW}from"@stacksjs/logging";import{stripe as RX}from"@stacksjs/payments";async function HD(){let J=VW.plans;try{if(J!==void 0&&J.length)for(let Z of J){let $=await RX.products.create({name:Z.productName,description:Z.description,metadata:Z.metadata});for(let Q of Z.pricing)if($){let G={unit_amount:Q.price,currency:Q.currency,product:$.id,lookup_key:Q.key};if(Q.interval)G.recurring={interval:Q.interval};await RX.prices.create(G)}}return KW("Migrations generated")}catch(Z){let $=Z instanceof Error?Z:Error(String(Z));return TW.error($),WW($)}}import{db as S0}from"@stacksjs/database";var ED=(()=>{async function J($,Q,G){let z=await S0.selectFrom("payment_products").where("id","=",Q).selectAll().executeTakeFirst();if(!z)throw Error(`Payment product with id ${Q} not found.`);let w={name:z.name,description:G.description??"",amount:z.unit_price,brand:G.brand,type:G.type??"one-time",provider_id:G.provider_id,user_id:$.id},X=await S0.insertInto("payment_transactions").values(w).executeTakeFirst();if(!X)throw Error("Failed to insert payment transaction");return await S0.selectFrom("payment_transactions").where("id","=",Number(X.insertId)).selectAll().executeTakeFirst()}async function Z($){return await S0.selectFrom("payment_transactions").where("user_id","=",$.id).selectAll().execute()}return{store:J,list:Z}})();var hD=_Z(FZ(),1);export{BW as validatePromoCode,aV as updateCustomer,wW as toDollars,YW as toCents,hV as subscriptionCheckout,lV as subscribe,H as stripe,c as stacksIdempotencyKey,oV as setDefaultPaymentMethod,sV as removePaymentMethod,xV as registerWebhookHandlers,_V as refund,fZ as processWebhook,JW as payInvoice,x as onWebhookEvent,gZ as onSubscription,yZ as onPaymentIntent,RZ as onInvoice,SZ as onCheckout,MZ as onCharge,gX as manageWebhook,ED as manageTransaction,qJ as manageSubscription,IX as manageSetupIntent,R0 as manageProduct,PX as managePriceExtended,tJ as managePrice,rJ as managePaymentMethod,xZ as manageInvoice,d as manageCustomer,eJ as manageCoupon,vZ as manageCheckout,g0 as manageCharge,QW as listProducts,cV as hasActiveSubscription,yX as handleWebhookEvent,fV as getSubscription,$W as getPrice,IV as getPaymentIntent,nV as getOrCreateCustomer,tV as getInvoices,yV as getInvoice,SV as getCustomer,gV as getCheckoutSession,RV as getCharge,GJ as freshIdempotencyKey,XW as formatAmount,iV as deleteCustomer,HD as createStripeProduct,rV as createSetupIntent,zW as createPromoCode,ZW as createProduct,jV as createPayment,eV as createInvoice,GW as createCoupon,fX as constructEventAsync,PV as constructEvent,mV as checkout,MV as charge,dV as changeSubscription,uV as cancelSubscription,pV as addPaymentMethod,hD as Stripe,LW as Payment};
12
+ `);function X(Y){let V=z,W=Y instanceof Uint8Array?Y:new Uint8Array(G.encode(Y));z=new Uint8Array(V.length+W.length+2),z.set(V),z.set(W,V.length),z.set(w,z.length-2)}function K(Y){return`"${Y.replace(/"|"/g,"%22").replace(/\r\n|\r|\n/g," ")}"`}let T=(0,Kz.flattenAndStringify)(Z);for(let Y in T){if(!Object.prototype.hasOwnProperty.call(T,Y))continue;let V=T[Y];if(X(`--${Q}`),Object.prototype.hasOwnProperty.call(V,"data")){let W=V;X(`Content-Disposition: form-data; name=${K(Y)}; filename=${K(W.name||"blob")}`),X(`Content-Type: ${W.type||"application/octet-stream"}`),X(""),X(W.data)}else X(`Content-Disposition: form-data; name=${K(Y)}`),X(""),X(V)}return X(`--${Q}--`),z};function K3(J,Z,$,Q){if(Z=Z||{},J!=="POST")return Q(null,(0,Kz.queryStringifyRequestData)(Z));this._stripe._platformFunctions.tryBufferData(Z).then((G)=>{let z=W3(J,G,$);return Q(null,z)}).catch((G)=>Q(G,null))}Tz.multipartRequestDataProcessor=K3});var Oz=B((qz)=>{Object.defineProperty(qz,"__esModule",{value:!0});qz.Files=void 0;var T3=Hz(),Dz=U(),qZ=Dz.StripeResource.method;qz.Files=Dz.StripeResource.extend({create:qZ({method:"POST",fullPath:"/v1/files",headers:{"Content-Type":"multipart/form-data"},host:"files.stripe.com"}),retrieve:qZ({method:"GET",fullPath:"/v1/files/{file}"}),list:qZ({method:"GET",fullPath:"/v1/files",methodType:"list"}),requestDataProcessor:T3.multipartRequestDataProcessor})});var Az=B((Fz)=>{Object.defineProperty(Fz,"__esModule",{value:!0});Fz.InvoiceItems=void 0;var kz=U(),hJ=kz.StripeResource.method;Fz.InvoiceItems=kz.StripeResource.extend({create:hJ({method:"POST",fullPath:"/v1/invoiceitems",requestSchema:{kind:"object",fields:{price_data:{kind:"object",fields:{unit_amount_decimal:{kind:"decimal_string"}}},quantity_decimal:{kind:"decimal_string"},unit_amount_decimal:{kind:"decimal_string"}}},responseSchema:{kind:"object",fields:{pricing:{kind:"nullable",inner:{kind:"object",fields:{unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},quantity_decimal:{kind:"decimal_string"}}}}),retrieve:hJ({method:"GET",fullPath:"/v1/invoiceitems/{invoiceitem}",responseSchema:{kind:"object",fields:{pricing:{kind:"nullable",inner:{kind:"object",fields:{unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},quantity_decimal:{kind:"decimal_string"}}}}),update:hJ({method:"POST",fullPath:"/v1/invoiceitems/{invoiceitem}",requestSchema:{kind:"object",fields:{price_data:{kind:"object",fields:{unit_amount_decimal:{kind:"decimal_string"}}},quantity_decimal:{kind:"decimal_string"},unit_amount_decimal:{kind:"decimal_string"}}},responseSchema:{kind:"object",fields:{pricing:{kind:"nullable",inner:{kind:"object",fields:{unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},quantity_decimal:{kind:"decimal_string"}}}}),list:hJ({method:"GET",fullPath:"/v1/invoiceitems",methodType:"list",responseSchema:{kind:"object",fields:{data:{kind:"array",element:{kind:"object",fields:{pricing:{kind:"nullable",inner:{kind:"object",fields:{unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},quantity_decimal:{kind:"decimal_string"}}}}}}}),del:hJ({method:"DELETE",fullPath:"/v1/invoiceitems/{invoiceitem}"})})});var Iz=B((xz)=>{Object.defineProperty(xz,"__esModule",{value:!0});xz.InvoicePayments=void 0;var vz=U(),bz=vz.StripeResource.method;xz.InvoicePayments=vz.StripeResource.extend({retrieve:bz({method:"GET",fullPath:"/v1/invoice_payments/{invoice_payment}"}),list:bz({method:"GET",fullPath:"/v1/invoice_payments",methodType:"list"})})});var Rz=B((yz)=>{Object.defineProperty(yz,"__esModule",{value:!0});yz.InvoiceRenderingTemplates=void 0;var fz=U(),b0=fz.StripeResource.method;yz.InvoiceRenderingTemplates=fz.StripeResource.extend({retrieve:b0({method:"GET",fullPath:"/v1/invoice_rendering_templates/{template}"}),list:b0({method:"GET",fullPath:"/v1/invoice_rendering_templates",methodType:"list"}),archive:b0({method:"POST",fullPath:"/v1/invoice_rendering_templates/{template}/archive"}),unarchive:b0({method:"POST",fullPath:"/v1/invoice_rendering_templates/{template}/unarchive"})})});var _z=B((Mz)=>{Object.defineProperty(Mz,"__esModule",{value:!0});Mz.Invoices=void 0;var Sz=U(),P=Sz.StripeResource.method;Mz.Invoices=Sz.StripeResource.extend({create:P({method:"POST",fullPath:"/v1/invoices",responseSchema:{kind:"object",fields:{lines:{kind:"object",fields:{data:{kind:"array",element:{kind:"object",fields:{pricing:{kind:"nullable",inner:{kind:"object",fields:{unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},quantity_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}}}}),retrieve:P({method:"GET",fullPath:"/v1/invoices/{invoice}",responseSchema:{kind:"object",fields:{lines:{kind:"object",fields:{data:{kind:"array",element:{kind:"object",fields:{pricing:{kind:"nullable",inner:{kind:"object",fields:{unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},quantity_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}}}}),update:P({method:"POST",fullPath:"/v1/invoices/{invoice}",responseSchema:{kind:"object",fields:{lines:{kind:"object",fields:{data:{kind:"array",element:{kind:"object",fields:{pricing:{kind:"nullable",inner:{kind:"object",fields:{unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},quantity_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}}}}),list:P({method:"GET",fullPath:"/v1/invoices",methodType:"list",responseSchema:{kind:"object",fields:{data:{kind:"array",element:{kind:"object",fields:{lines:{kind:"object",fields:{data:{kind:"array",element:{kind:"object",fields:{pricing:{kind:"nullable",inner:{kind:"object",fields:{unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},quantity_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}}}}}}}),del:P({method:"DELETE",fullPath:"/v1/invoices/{invoice}"}),addLines:P({method:"POST",fullPath:"/v1/invoices/{invoice}/add_lines",requestSchema:{kind:"object",fields:{lines:{kind:"array",element:{kind:"object",fields:{price_data:{kind:"object",fields:{unit_amount_decimal:{kind:"decimal_string"}}},quantity_decimal:{kind:"decimal_string"}}}}}},responseSchema:{kind:"object",fields:{lines:{kind:"object",fields:{data:{kind:"array",element:{kind:"object",fields:{pricing:{kind:"nullable",inner:{kind:"object",fields:{unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},quantity_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}}}}),attachPayment:P({method:"POST",fullPath:"/v1/invoices/{invoice}/attach_payment",responseSchema:{kind:"object",fields:{lines:{kind:"object",fields:{data:{kind:"array",element:{kind:"object",fields:{pricing:{kind:"nullable",inner:{kind:"object",fields:{unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},quantity_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}}}}),createPreview:P({method:"POST",fullPath:"/v1/invoices/create_preview",requestSchema:{kind:"object",fields:{invoice_items:{kind:"array",element:{kind:"object",fields:{price_data:{kind:"object",fields:{unit_amount_decimal:{kind:"decimal_string"}}},quantity_decimal:{kind:"decimal_string"},unit_amount_decimal:{kind:"decimal_string"}}}},schedule_details:{kind:"object",fields:{phases:{kind:"array",element:{kind:"object",fields:{add_invoice_items:{kind:"array",element:{kind:"object",fields:{price_data:{kind:"object",fields:{unit_amount_decimal:{kind:"decimal_string"}}}}}},items:{kind:"array",element:{kind:"object",fields:{price_data:{kind:"object",fields:{unit_amount_decimal:{kind:"decimal_string"}}}}}}}}}}},subscription_details:{kind:"object",fields:{items:{kind:"array",element:{kind:"object",fields:{price_data:{kind:"object",fields:{unit_amount_decimal:{kind:"decimal_string"}}}}}}}}}},responseSchema:{kind:"object",fields:{lines:{kind:"object",fields:{data:{kind:"array",element:{kind:"object",fields:{pricing:{kind:"nullable",inner:{kind:"object",fields:{unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},quantity_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}}}}),finalizeInvoice:P({method:"POST",fullPath:"/v1/invoices/{invoice}/finalize",responseSchema:{kind:"object",fields:{lines:{kind:"object",fields:{data:{kind:"array",element:{kind:"object",fields:{pricing:{kind:"nullable",inner:{kind:"object",fields:{unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},quantity_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}}}}),listLineItems:P({method:"GET",fullPath:"/v1/invoices/{invoice}/lines",methodType:"list",responseSchema:{kind:"object",fields:{data:{kind:"array",element:{kind:"object",fields:{pricing:{kind:"nullable",inner:{kind:"object",fields:{unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},quantity_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}}),markUncollectible:P({method:"POST",fullPath:"/v1/invoices/{invoice}/mark_uncollectible",responseSchema:{kind:"object",fields:{lines:{kind:"object",fields:{data:{kind:"array",element:{kind:"object",fields:{pricing:{kind:"nullable",inner:{kind:"object",fields:{unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},quantity_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}}}}),pay:P({method:"POST",fullPath:"/v1/invoices/{invoice}/pay",responseSchema:{kind:"object",fields:{lines:{kind:"object",fields:{data:{kind:"array",element:{kind:"object",fields:{pricing:{kind:"nullable",inner:{kind:"object",fields:{unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},quantity_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}}}}),removeLines:P({method:"POST",fullPath:"/v1/invoices/{invoice}/remove_lines",responseSchema:{kind:"object",fields:{lines:{kind:"object",fields:{data:{kind:"array",element:{kind:"object",fields:{pricing:{kind:"nullable",inner:{kind:"object",fields:{unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},quantity_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}}}}),search:P({method:"GET",fullPath:"/v1/invoices/search",methodType:"search",responseSchema:{kind:"object",fields:{data:{kind:"array",element:{kind:"object",fields:{lines:{kind:"object",fields:{data:{kind:"array",element:{kind:"object",fields:{pricing:{kind:"nullable",inner:{kind:"object",fields:{unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},quantity_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}}}}}}}),sendInvoice:P({method:"POST",fullPath:"/v1/invoices/{invoice}/send",responseSchema:{kind:"object",fields:{lines:{kind:"object",fields:{data:{kind:"array",element:{kind:"object",fields:{pricing:{kind:"nullable",inner:{kind:"object",fields:{unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},quantity_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}}}}),updateLines:P({method:"POST",fullPath:"/v1/invoices/{invoice}/update_lines",requestSchema:{kind:"object",fields:{lines:{kind:"array",element:{kind:"object",fields:{price_data:{kind:"object",fields:{unit_amount_decimal:{kind:"decimal_string"}}},quantity_decimal:{kind:"decimal_string"}}}}}},responseSchema:{kind:"object",fields:{lines:{kind:"object",fields:{data:{kind:"array",element:{kind:"object",fields:{pricing:{kind:"nullable",inner:{kind:"object",fields:{unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},quantity_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}}}}),updateLineItem:P({method:"POST",fullPath:"/v1/invoices/{invoice}/lines/{line_item_id}",requestSchema:{kind:"object",fields:{price_data:{kind:"object",fields:{unit_amount_decimal:{kind:"decimal_string"}}},quantity_decimal:{kind:"decimal_string"}}},responseSchema:{kind:"object",fields:{pricing:{kind:"nullable",inner:{kind:"object",fields:{unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},quantity_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}),voidInvoice:P({method:"POST",fullPath:"/v1/invoices/{invoice}/void",responseSchema:{kind:"object",fields:{lines:{kind:"object",fields:{data:{kind:"array",element:{kind:"object",fields:{pricing:{kind:"nullable",inner:{kind:"object",fields:{unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},quantity_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}}}})})});var uz=B((hz)=>{Object.defineProperty(hz,"__esModule",{value:!0});hz.Mandates=void 0;var mz=U(),N3=mz.StripeResource.method;hz.Mandates=mz.StripeResource.extend({retrieve:N3({method:"GET",fullPath:"/v1/mandates/{mandate}"})})});var iz=B((nz)=>{Object.defineProperty(nz,"__esModule",{value:!0});nz.OAuth=void 0;var dz=U(),H3=_(),cz=dz.StripeResource.method,EZ="connect.stripe.com";nz.OAuth=dz.StripeResource.extend({basePath:"/",authorizeUrl(J,Z){J=J||{},Z=Z||{};let $="oauth/authorize";if(Z.express)$=`express/${$}`;if(!J.response_type)J.response_type="code";if(!J.client_id)J.client_id=this._stripe.getClientId();if(!J.scope)J.scope="read_write";return`https://${EZ}/${$}?${(0,H3.queryStringifyRequestData)(J)}`},token:cz({method:"POST",path:"oauth/token",host:EZ}),deauthorize(J,...Z){if(!J.client_id)J.client_id=this._stripe.getClientId();return cz({method:"POST",path:"oauth/deauthorize",host:EZ}).apply(this,[J,...Z])}})});var tz=B((sz)=>{Object.defineProperty(sz,"__esModule",{value:!0});sz.PaymentAttemptRecords=void 0;var oz=U(),pz=oz.StripeResource.method;sz.PaymentAttemptRecords=oz.StripeResource.extend({retrieve:pz({method:"GET",fullPath:"/v1/payment_attempt_records/{id}"}),list:pz({method:"GET",fullPath:"/v1/payment_attempt_records",methodType:"list"})})});var $1=B((J1)=>{Object.defineProperty(J1,"__esModule",{value:!0});J1.PaymentIntents=void 0;var ez=U(),j=ez.StripeResource.method;J1.PaymentIntents=ez.StripeResource.extend({create:j({method:"POST",fullPath:"/v1/payment_intents"}),retrieve:j({method:"GET",fullPath:"/v1/payment_intents/{intent}"}),update:j({method:"POST",fullPath:"/v1/payment_intents/{intent}"}),list:j({method:"GET",fullPath:"/v1/payment_intents",methodType:"list"}),applyCustomerBalance:j({method:"POST",fullPath:"/v1/payment_intents/{intent}/apply_customer_balance"}),cancel:j({method:"POST",fullPath:"/v1/payment_intents/{intent}/cancel"}),capture:j({method:"POST",fullPath:"/v1/payment_intents/{intent}/capture"}),confirm:j({method:"POST",fullPath:"/v1/payment_intents/{intent}/confirm"}),incrementAuthorization:j({method:"POST",fullPath:"/v1/payment_intents/{intent}/increment_authorization"}),listAmountDetailsLineItems:j({method:"GET",fullPath:"/v1/payment_intents/{intent}/amount_details_line_items",methodType:"list"}),search:j({method:"GET",fullPath:"/v1/payment_intents/search",methodType:"search"}),verifyMicrodeposits:j({method:"POST",fullPath:"/v1/payment_intents/{intent}/verify_microdeposits"})})});var B1=B((G1)=>{Object.defineProperty(G1,"__esModule",{value:!0});G1.PaymentLinks=void 0;var Q1=U(),lJ=Q1.StripeResource.method;G1.PaymentLinks=Q1.StripeResource.extend({create:lJ({method:"POST",fullPath:"/v1/payment_links",requestSchema:{kind:"object",fields:{line_items:{kind:"array",element:{kind:"object",fields:{price_data:{kind:"object",fields:{unit_amount_decimal:{kind:"decimal_string"}}}}}}}},responseSchema:{kind:"object",fields:{line_items:{kind:"object",fields:{data:{kind:"array",element:{kind:"object",fields:{price:{kind:"nullable",inner:{kind:"object",fields:{currency_options:{kind:"array",element:{kind:"object",fields:{tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}}}}}}}),retrieve:lJ({method:"GET",fullPath:"/v1/payment_links/{payment_link}",responseSchema:{kind:"object",fields:{line_items:{kind:"object",fields:{data:{kind:"array",element:{kind:"object",fields:{price:{kind:"nullable",inner:{kind:"object",fields:{currency_options:{kind:"array",element:{kind:"object",fields:{tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}}}}}}}),update:lJ({method:"POST",fullPath:"/v1/payment_links/{payment_link}",responseSchema:{kind:"object",fields:{line_items:{kind:"object",fields:{data:{kind:"array",element:{kind:"object",fields:{price:{kind:"nullable",inner:{kind:"object",fields:{currency_options:{kind:"array",element:{kind:"object",fields:{tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}}}}}}}),list:lJ({method:"GET",fullPath:"/v1/payment_links",methodType:"list",responseSchema:{kind:"object",fields:{data:{kind:"array",element:{kind:"object",fields:{line_items:{kind:"object",fields:{data:{kind:"array",element:{kind:"object",fields:{price:{kind:"nullable",inner:{kind:"object",fields:{currency_options:{kind:"array",element:{kind:"object",fields:{tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}}}}}}}}}}),listLineItems:lJ({method:"GET",fullPath:"/v1/payment_links/{payment_link}/line_items",methodType:"list",responseSchema:{kind:"object",fields:{data:{kind:"array",element:{kind:"object",fields:{price:{kind:"nullable",inner:{kind:"object",fields:{currency_options:{kind:"array",element:{kind:"object",fields:{tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}}}}})})});var U1=B((Y1)=>{Object.defineProperty(Y1,"__esModule",{value:!0});Y1.PaymentMethodConfigurations=void 0;var X1=U(),v0=X1.StripeResource.method;Y1.PaymentMethodConfigurations=X1.StripeResource.extend({create:v0({method:"POST",fullPath:"/v1/payment_method_configurations"}),retrieve:v0({method:"GET",fullPath:"/v1/payment_method_configurations/{configuration}"}),update:v0({method:"POST",fullPath:"/v1/payment_method_configurations/{configuration}"}),list:v0({method:"GET",fullPath:"/v1/payment_method_configurations",methodType:"list"})})});var K1=B((V1)=>{Object.defineProperty(V1,"__esModule",{value:!0});V1.PaymentMethodDomains=void 0;var L1=U(),uJ=L1.StripeResource.method;V1.PaymentMethodDomains=L1.StripeResource.extend({create:uJ({method:"POST",fullPath:"/v1/payment_method_domains"}),retrieve:uJ({method:"GET",fullPath:"/v1/payment_method_domains/{payment_method_domain}"}),update:uJ({method:"POST",fullPath:"/v1/payment_method_domains/{payment_method_domain}"}),list:uJ({method:"GET",fullPath:"/v1/payment_method_domains",methodType:"list"}),validate:uJ({method:"POST",fullPath:"/v1/payment_method_domains/{payment_method_domain}/validate"})})});var D1=B((N1)=>{Object.defineProperty(N1,"__esModule",{value:!0});N1.PaymentMethods=void 0;var T1=U(),NJ=T1.StripeResource.method;N1.PaymentMethods=T1.StripeResource.extend({create:NJ({method:"POST",fullPath:"/v1/payment_methods"}),retrieve:NJ({method:"GET",fullPath:"/v1/payment_methods/{payment_method}"}),update:NJ({method:"POST",fullPath:"/v1/payment_methods/{payment_method}"}),list:NJ({method:"GET",fullPath:"/v1/payment_methods",methodType:"list"}),attach:NJ({method:"POST",fullPath:"/v1/payment_methods/{payment_method}/attach"}),detach:NJ({method:"POST",fullPath:"/v1/payment_methods/{payment_method}/detach"})})});var k1=B((E1)=>{Object.defineProperty(E1,"__esModule",{value:!0});E1.PaymentRecords=void 0;var q1=U(),p=q1.StripeResource.method;E1.PaymentRecords=q1.StripeResource.extend({retrieve:p({method:"GET",fullPath:"/v1/payment_records/{id}"}),reportPayment:p({method:"POST",fullPath:"/v1/payment_records/report_payment"}),reportPaymentAttempt:p({method:"POST",fullPath:"/v1/payment_records/{id}/report_payment_attempt"}),reportPaymentAttemptCanceled:p({method:"POST",fullPath:"/v1/payment_records/{id}/report_payment_attempt_canceled"}),reportPaymentAttemptFailed:p({method:"POST",fullPath:"/v1/payment_records/{id}/report_payment_attempt_failed"}),reportPaymentAttemptGuaranteed:p({method:"POST",fullPath:"/v1/payment_records/{id}/report_payment_attempt_guaranteed"}),reportPaymentAttemptInformational:p({method:"POST",fullPath:"/v1/payment_records/{id}/report_payment_attempt_informational"}),reportRefund:p({method:"POST",fullPath:"/v1/payment_records/{id}/report_refund"})})});var b1=B((C1)=>{Object.defineProperty(C1,"__esModule",{value:!0});C1.Payouts=void 0;var F1=U(),HJ=F1.StripeResource.method;C1.Payouts=F1.StripeResource.extend({create:HJ({method:"POST",fullPath:"/v1/payouts"}),retrieve:HJ({method:"GET",fullPath:"/v1/payouts/{payout}"}),update:HJ({method:"POST",fullPath:"/v1/payouts/{payout}"}),list:HJ({method:"GET",fullPath:"/v1/payouts",methodType:"list"}),cancel:HJ({method:"POST",fullPath:"/v1/payouts/{payout}/cancel"}),reverse:HJ({method:"POST",fullPath:"/v1/payouts/{payout}/reverse"})})});var I1=B((x1)=>{Object.defineProperty(x1,"__esModule",{value:!0});x1.Plans=void 0;var v1=U(),cJ=v1.StripeResource.method;x1.Plans=v1.StripeResource.extend({create:cJ({method:"POST",fullPath:"/v1/plans",requestSchema:{kind:"object",fields:{amount_decimal:{kind:"decimal_string"},tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"decimal_string"},unit_amount_decimal:{kind:"decimal_string"}}}}}},responseSchema:{kind:"object",fields:{amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}}),retrieve:cJ({method:"GET",fullPath:"/v1/plans/{plan}",responseSchema:{kind:"object",fields:{amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}}),update:cJ({method:"POST",fullPath:"/v1/plans/{plan}",responseSchema:{kind:"object",fields:{amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}}),list:cJ({method:"GET",fullPath:"/v1/plans",methodType:"list",responseSchema:{kind:"object",fields:{data:{kind:"array",element:{kind:"object",fields:{amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}}}}}),del:cJ({method:"DELETE",fullPath:"/v1/plans/{plan}"})})});var R1=B((y1)=>{Object.defineProperty(y1,"__esModule",{value:!0});y1.Prices=void 0;var f1=U(),dJ=f1.StripeResource.method;y1.Prices=f1.StripeResource.extend({create:dJ({method:"POST",fullPath:"/v1/prices",requestSchema:{kind:"object",fields:{currency_options:{kind:"array",element:{kind:"object",fields:{tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"decimal_string"},unit_amount_decimal:{kind:"decimal_string"}}}},unit_amount_decimal:{kind:"decimal_string"}}}},tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"decimal_string"},unit_amount_decimal:{kind:"decimal_string"}}}},unit_amount_decimal:{kind:"decimal_string"}}},responseSchema:{kind:"object",fields:{currency_options:{kind:"array",element:{kind:"object",fields:{tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}),retrieve:dJ({method:"GET",fullPath:"/v1/prices/{price}",responseSchema:{kind:"object",fields:{currency_options:{kind:"array",element:{kind:"object",fields:{tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}),update:dJ({method:"POST",fullPath:"/v1/prices/{price}",responseSchema:{kind:"object",fields:{currency_options:{kind:"array",element:{kind:"object",fields:{tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}),list:dJ({method:"GET",fullPath:"/v1/prices",methodType:"list",responseSchema:{kind:"object",fields:{data:{kind:"array",element:{kind:"object",fields:{currency_options:{kind:"array",element:{kind:"object",fields:{tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}}),search:dJ({method:"GET",fullPath:"/v1/prices/search",methodType:"search",responseSchema:{kind:"object",fields:{data:{kind:"array",element:{kind:"object",fields:{currency_options:{kind:"array",element:{kind:"object",fields:{tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}})})});var _1=B((M1)=>{Object.defineProperty(M1,"__esModule",{value:!0});M1.Products=void 0;var S1=U(),m=S1.StripeResource.method;M1.Products=S1.StripeResource.extend({create:m({method:"POST",fullPath:"/v1/products",requestSchema:{kind:"object",fields:{default_price_data:{kind:"object",fields:{currency_options:{kind:"array",element:{kind:"object",fields:{tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"decimal_string"},unit_amount_decimal:{kind:"decimal_string"}}}},unit_amount_decimal:{kind:"decimal_string"}}}},unit_amount_decimal:{kind:"decimal_string"}}}}}}),retrieve:m({method:"GET",fullPath:"/v1/products/{id}"}),update:m({method:"POST",fullPath:"/v1/products/{id}"}),list:m({method:"GET",fullPath:"/v1/products",methodType:"list"}),del:m({method:"DELETE",fullPath:"/v1/products/{id}"}),createFeature:m({method:"POST",fullPath:"/v1/products/{product}/features"}),deleteFeature:m({method:"DELETE",fullPath:"/v1/products/{product}/features/{id}"}),listFeatures:m({method:"GET",fullPath:"/v1/products/{product}/features",methodType:"list"}),retrieveFeature:m({method:"GET",fullPath:"/v1/products/{product}/features/{id}"}),search:m({method:"GET",fullPath:"/v1/products/search",methodType:"search"})})});var u1=B((h1)=>{Object.defineProperty(h1,"__esModule",{value:!0});h1.PromotionCodes=void 0;var m1=U(),x0=m1.StripeResource.method;h1.PromotionCodes=m1.StripeResource.extend({create:x0({method:"POST",fullPath:"/v1/promotion_codes"}),retrieve:x0({method:"GET",fullPath:"/v1/promotion_codes/{promotion_code}"}),update:x0({method:"POST",fullPath:"/v1/promotion_codes/{promotion_code}"}),list:x0({method:"GET",fullPath:"/v1/promotion_codes",methodType:"list"})})});var a1=B((d1)=>{Object.defineProperty(d1,"__esModule",{value:!0});d1.Quotes=void 0;var c1=U(),h=c1.StripeResource.method;d1.Quotes=c1.StripeResource.extend({create:h({method:"POST",fullPath:"/v1/quotes",requestSchema:{kind:"object",fields:{line_items:{kind:"array",element:{kind:"object",fields:{price_data:{kind:"object",fields:{unit_amount_decimal:{kind:"decimal_string"}}}}}}}},responseSchema:{kind:"object",fields:{computed:{kind:"object",fields:{upfront:{kind:"object",fields:{line_items:{kind:"object",fields:{data:{kind:"array",element:{kind:"object",fields:{price:{kind:"nullable",inner:{kind:"object",fields:{currency_options:{kind:"array",element:{kind:"object",fields:{tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}}}}}}}}}}}),retrieve:h({method:"GET",fullPath:"/v1/quotes/{quote}",responseSchema:{kind:"object",fields:{computed:{kind:"object",fields:{upfront:{kind:"object",fields:{line_items:{kind:"object",fields:{data:{kind:"array",element:{kind:"object",fields:{price:{kind:"nullable",inner:{kind:"object",fields:{currency_options:{kind:"array",element:{kind:"object",fields:{tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}}}}}}}}}}}),update:h({method:"POST",fullPath:"/v1/quotes/{quote}",requestSchema:{kind:"object",fields:{line_items:{kind:"array",element:{kind:"object",fields:{price_data:{kind:"object",fields:{unit_amount_decimal:{kind:"decimal_string"}}}}}}}},responseSchema:{kind:"object",fields:{computed:{kind:"object",fields:{upfront:{kind:"object",fields:{line_items:{kind:"object",fields:{data:{kind:"array",element:{kind:"object",fields:{price:{kind:"nullable",inner:{kind:"object",fields:{currency_options:{kind:"array",element:{kind:"object",fields:{tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}}}}}}}}}}}),list:h({method:"GET",fullPath:"/v1/quotes",methodType:"list",responseSchema:{kind:"object",fields:{data:{kind:"array",element:{kind:"object",fields:{computed:{kind:"object",fields:{upfront:{kind:"object",fields:{line_items:{kind:"object",fields:{data:{kind:"array",element:{kind:"object",fields:{price:{kind:"nullable",inner:{kind:"object",fields:{currency_options:{kind:"array",element:{kind:"object",fields:{tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}}}}}}}}}}}}}}),accept:h({method:"POST",fullPath:"/v1/quotes/{quote}/accept",responseSchema:{kind:"object",fields:{computed:{kind:"object",fields:{upfront:{kind:"object",fields:{line_items:{kind:"object",fields:{data:{kind:"array",element:{kind:"object",fields:{price:{kind:"nullable",inner:{kind:"object",fields:{currency_options:{kind:"array",element:{kind:"object",fields:{tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}}}}}}}}}}}),cancel:h({method:"POST",fullPath:"/v1/quotes/{quote}/cancel",responseSchema:{kind:"object",fields:{computed:{kind:"object",fields:{upfront:{kind:"object",fields:{line_items:{kind:"object",fields:{data:{kind:"array",element:{kind:"object",fields:{price:{kind:"nullable",inner:{kind:"object",fields:{currency_options:{kind:"array",element:{kind:"object",fields:{tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}}}}}}}}}}}),finalizeQuote:h({method:"POST",fullPath:"/v1/quotes/{quote}/finalize",responseSchema:{kind:"object",fields:{computed:{kind:"object",fields:{upfront:{kind:"object",fields:{line_items:{kind:"object",fields:{data:{kind:"array",element:{kind:"object",fields:{price:{kind:"nullable",inner:{kind:"object",fields:{currency_options:{kind:"array",element:{kind:"object",fields:{tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}}}}}}}}}}}),listComputedUpfrontLineItems:h({method:"GET",fullPath:"/v1/quotes/{quote}/computed_upfront_line_items",methodType:"list",responseSchema:{kind:"object",fields:{data:{kind:"array",element:{kind:"object",fields:{price:{kind:"nullable",inner:{kind:"object",fields:{currency_options:{kind:"array",element:{kind:"object",fields:{tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}}}}}),listLineItems:h({method:"GET",fullPath:"/v1/quotes/{quote}/line_items",methodType:"list",responseSchema:{kind:"object",fields:{data:{kind:"array",element:{kind:"object",fields:{price:{kind:"nullable",inner:{kind:"object",fields:{currency_options:{kind:"array",element:{kind:"object",fields:{tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}}}}}),pdf:h({method:"GET",fullPath:"/v1/quotes/{quote}/pdf",host:"files.stripe.com",streaming:!0})})});var s1=B((p1)=>{Object.defineProperty(p1,"__esModule",{value:!0});p1.Refunds=void 0;var i1=U(),nJ=i1.StripeResource.method;p1.Refunds=i1.StripeResource.extend({create:nJ({method:"POST",fullPath:"/v1/refunds"}),retrieve:nJ({method:"GET",fullPath:"/v1/refunds/{refund}"}),update:nJ({method:"POST",fullPath:"/v1/refunds/{refund}"}),list:nJ({method:"GET",fullPath:"/v1/refunds",methodType:"list"}),cancel:nJ({method:"POST",fullPath:"/v1/refunds/{refund}/cancel"})})});var JB=B((t1)=>{Object.defineProperty(t1,"__esModule",{value:!0});t1.Reviews=void 0;var r1=U(),OZ=r1.StripeResource.method;t1.Reviews=r1.StripeResource.extend({retrieve:OZ({method:"GET",fullPath:"/v1/reviews/{review}"}),list:OZ({method:"GET",fullPath:"/v1/reviews",methodType:"list"}),approve:OZ({method:"POST",fullPath:"/v1/reviews/{review}/approve"})})});var GB=B(($B)=>{Object.defineProperty($B,"__esModule",{value:!0});$B.SetupAttempts=void 0;var ZB=U(),D3=ZB.StripeResource.method;$B.SetupAttempts=ZB.StripeResource.extend({list:D3({method:"GET",fullPath:"/v1/setup_attempts",methodType:"list"})})});var YB=B((BB)=>{Object.defineProperty(BB,"__esModule",{value:!0});BB.SetupIntents=void 0;var zB=U(),$J=zB.StripeResource.method;BB.SetupIntents=zB.StripeResource.extend({create:$J({method:"POST",fullPath:"/v1/setup_intents"}),retrieve:$J({method:"GET",fullPath:"/v1/setup_intents/{intent}"}),update:$J({method:"POST",fullPath:"/v1/setup_intents/{intent}"}),list:$J({method:"GET",fullPath:"/v1/setup_intents",methodType:"list"}),cancel:$J({method:"POST",fullPath:"/v1/setup_intents/{intent}/cancel"}),confirm:$J({method:"POST",fullPath:"/v1/setup_intents/{intent}/confirm"}),verifyMicrodeposits:$J({method:"POST",fullPath:"/v1/setup_intents/{intent}/verify_microdeposits"})})});var VB=B((UB)=>{Object.defineProperty(UB,"__esModule",{value:!0});UB.ShippingRates=void 0;var wB=U(),P0=wB.StripeResource.method;UB.ShippingRates=wB.StripeResource.extend({create:P0({method:"POST",fullPath:"/v1/shipping_rates"}),retrieve:P0({method:"GET",fullPath:"/v1/shipping_rates/{shipping_rate_token}"}),update:P0({method:"POST",fullPath:"/v1/shipping_rates/{shipping_rate_token}"}),list:P0({method:"GET",fullPath:"/v1/shipping_rates",methodType:"list"})})});var NB=B((KB)=>{Object.defineProperty(KB,"__esModule",{value:!0});KB.Sources=void 0;var WB=U(),aJ=WB.StripeResource.method;KB.Sources=WB.StripeResource.extend({create:aJ({method:"POST",fullPath:"/v1/sources"}),retrieve:aJ({method:"GET",fullPath:"/v1/sources/{source}"}),update:aJ({method:"POST",fullPath:"/v1/sources/{source}"}),listSourceTransactions:aJ({method:"GET",fullPath:"/v1/sources/{source}/source_transactions",methodType:"list"}),verify:aJ({method:"POST",fullPath:"/v1/sources/{source}/verify"})})});var EB=B((DB)=>{Object.defineProperty(DB,"__esModule",{value:!0});DB.SubscriptionItems=void 0;var HB=U(),iJ=HB.StripeResource.method;DB.SubscriptionItems=HB.StripeResource.extend({create:iJ({method:"POST",fullPath:"/v1/subscription_items",requestSchema:{kind:"object",fields:{price_data:{kind:"object",fields:{unit_amount_decimal:{kind:"decimal_string"}}}}},responseSchema:{kind:"object",fields:{plan:{kind:"object",fields:{amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}},price:{kind:"object",fields:{currency_options:{kind:"array",element:{kind:"object",fields:{tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}),retrieve:iJ({method:"GET",fullPath:"/v1/subscription_items/{item}",responseSchema:{kind:"object",fields:{plan:{kind:"object",fields:{amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}},price:{kind:"object",fields:{currency_options:{kind:"array",element:{kind:"object",fields:{tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}),update:iJ({method:"POST",fullPath:"/v1/subscription_items/{item}",requestSchema:{kind:"object",fields:{price_data:{kind:"object",fields:{unit_amount_decimal:{kind:"decimal_string"}}}}},responseSchema:{kind:"object",fields:{plan:{kind:"object",fields:{amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}},price:{kind:"object",fields:{currency_options:{kind:"array",element:{kind:"object",fields:{tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}),list:iJ({method:"GET",fullPath:"/v1/subscription_items",methodType:"list",responseSchema:{kind:"object",fields:{data:{kind:"array",element:{kind:"object",fields:{plan:{kind:"object",fields:{amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}},price:{kind:"object",fields:{currency_options:{kind:"array",element:{kind:"object",fields:{tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}}}}),del:iJ({method:"DELETE",fullPath:"/v1/subscription_items/{item}"})})});var CB=B((kB)=>{Object.defineProperty(kB,"__esModule",{value:!0});kB.SubscriptionSchedules=void 0;var OB=U(),DJ=OB.StripeResource.method;kB.SubscriptionSchedules=OB.StripeResource.extend({create:DJ({method:"POST",fullPath:"/v1/subscription_schedules",requestSchema:{kind:"object",fields:{phases:{kind:"array",element:{kind:"object",fields:{add_invoice_items:{kind:"array",element:{kind:"object",fields:{price_data:{kind:"object",fields:{unit_amount_decimal:{kind:"decimal_string"}}}}}},items:{kind:"array",element:{kind:"object",fields:{price_data:{kind:"object",fields:{unit_amount_decimal:{kind:"decimal_string"}}}}}}}}}}}}),retrieve:DJ({method:"GET",fullPath:"/v1/subscription_schedules/{schedule}"}),update:DJ({method:"POST",fullPath:"/v1/subscription_schedules/{schedule}",requestSchema:{kind:"object",fields:{phases:{kind:"array",element:{kind:"object",fields:{add_invoice_items:{kind:"array",element:{kind:"object",fields:{price_data:{kind:"object",fields:{unit_amount_decimal:{kind:"decimal_string"}}}}}},items:{kind:"array",element:{kind:"object",fields:{price_data:{kind:"object",fields:{unit_amount_decimal:{kind:"decimal_string"}}}}}}}}}}}}),list:DJ({method:"GET",fullPath:"/v1/subscription_schedules",methodType:"list"}),cancel:DJ({method:"POST",fullPath:"/v1/subscription_schedules/{schedule}/cancel"}),release:DJ({method:"POST",fullPath:"/v1/subscription_schedules/{schedule}/release"})})});var xB=B((bB)=>{Object.defineProperty(bB,"__esModule",{value:!0});bB.Subscriptions=void 0;var AB=U(),u=AB.StripeResource.method;bB.Subscriptions=AB.StripeResource.extend({create:u({method:"POST",fullPath:"/v1/subscriptions",requestSchema:{kind:"object",fields:{add_invoice_items:{kind:"array",element:{kind:"object",fields:{price_data:{kind:"object",fields:{unit_amount_decimal:{kind:"decimal_string"}}}}}},items:{kind:"array",element:{kind:"object",fields:{price_data:{kind:"object",fields:{unit_amount_decimal:{kind:"decimal_string"}}}}}}}},responseSchema:{kind:"object",fields:{items:{kind:"object",fields:{data:{kind:"array",element:{kind:"object",fields:{plan:{kind:"object",fields:{amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}},price:{kind:"object",fields:{currency_options:{kind:"array",element:{kind:"object",fields:{tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}}}}}}),retrieve:u({method:"GET",fullPath:"/v1/subscriptions/{subscription_exposed_id}",responseSchema:{kind:"object",fields:{items:{kind:"object",fields:{data:{kind:"array",element:{kind:"object",fields:{plan:{kind:"object",fields:{amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}},price:{kind:"object",fields:{currency_options:{kind:"array",element:{kind:"object",fields:{tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}}}}}}),update:u({method:"POST",fullPath:"/v1/subscriptions/{subscription_exposed_id}",requestSchema:{kind:"object",fields:{add_invoice_items:{kind:"array",element:{kind:"object",fields:{price_data:{kind:"object",fields:{unit_amount_decimal:{kind:"decimal_string"}}}}}},items:{kind:"array",element:{kind:"object",fields:{price_data:{kind:"object",fields:{unit_amount_decimal:{kind:"decimal_string"}}}}}}}},responseSchema:{kind:"object",fields:{items:{kind:"object",fields:{data:{kind:"array",element:{kind:"object",fields:{plan:{kind:"object",fields:{amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}},price:{kind:"object",fields:{currency_options:{kind:"array",element:{kind:"object",fields:{tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}}}}}}),list:u({method:"GET",fullPath:"/v1/subscriptions",methodType:"list",responseSchema:{kind:"object",fields:{data:{kind:"array",element:{kind:"object",fields:{items:{kind:"object",fields:{data:{kind:"array",element:{kind:"object",fields:{plan:{kind:"object",fields:{amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}},price:{kind:"object",fields:{currency_options:{kind:"array",element:{kind:"object",fields:{tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}}}}}}}}}),cancel:u({method:"DELETE",fullPath:"/v1/subscriptions/{subscription_exposed_id}",responseSchema:{kind:"object",fields:{items:{kind:"object",fields:{data:{kind:"array",element:{kind:"object",fields:{plan:{kind:"object",fields:{amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}},price:{kind:"object",fields:{currency_options:{kind:"array",element:{kind:"object",fields:{tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}}}}}}),deleteDiscount:u({method:"DELETE",fullPath:"/v1/subscriptions/{subscription_exposed_id}/discount"}),migrate:u({method:"POST",fullPath:"/v1/subscriptions/{subscription}/migrate",responseSchema:{kind:"object",fields:{items:{kind:"object",fields:{data:{kind:"array",element:{kind:"object",fields:{plan:{kind:"object",fields:{amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}},price:{kind:"object",fields:{currency_options:{kind:"array",element:{kind:"object",fields:{tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}}}}}}),resume:u({method:"POST",fullPath:"/v1/subscriptions/{subscription}/resume",responseSchema:{kind:"object",fields:{items:{kind:"object",fields:{data:{kind:"array",element:{kind:"object",fields:{plan:{kind:"object",fields:{amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}},price:{kind:"object",fields:{currency_options:{kind:"array",element:{kind:"object",fields:{tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}}}}}}),search:u({method:"GET",fullPath:"/v1/subscriptions/search",methodType:"search",responseSchema:{kind:"object",fields:{data:{kind:"array",element:{kind:"object",fields:{items:{kind:"object",fields:{data:{kind:"array",element:{kind:"object",fields:{plan:{kind:"object",fields:{amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}},price:{kind:"object",fields:{currency_options:{kind:"array",element:{kind:"object",fields:{tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},tiers:{kind:"array",element:{kind:"object",fields:{flat_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}},unit_amount_decimal:{kind:"nullable",inner:{kind:"decimal_string"}}}}}}}}}}}}}}})})});var gB=B((fB)=>{Object.defineProperty(fB,"__esModule",{value:!0});fB.TaxCodes=void 0;var IB=U(),PB=IB.StripeResource.method;fB.TaxCodes=IB.StripeResource.extend({retrieve:PB({method:"GET",fullPath:"/v1/tax_codes/{id}"}),list:PB({method:"GET",fullPath:"/v1/tax_codes",methodType:"list"})})});var jB=B((SB)=>{Object.defineProperty(SB,"__esModule",{value:!0});SB.TaxIds=void 0;var RB=U(),I0=RB.StripeResource.method;SB.TaxIds=RB.StripeResource.extend({create:I0({method:"POST",fullPath:"/v1/tax_ids"}),retrieve:I0({method:"GET",fullPath:"/v1/tax_ids/{id}"}),list:I0({method:"GET",fullPath:"/v1/tax_ids",methodType:"list"}),del:I0({method:"DELETE",fullPath:"/v1/tax_ids/{id}"})})});var lB=B((mB)=>{Object.defineProperty(mB,"__esModule",{value:!0});mB.TaxRates=void 0;var _B=U(),f0=_B.StripeResource.method;mB.TaxRates=_B.StripeResource.extend({create:f0({method:"POST",fullPath:"/v1/tax_rates"}),retrieve:f0({method:"GET",fullPath:"/v1/tax_rates/{tax_rate}"}),update:f0({method:"POST",fullPath:"/v1/tax_rates/{tax_rate}"}),list:f0({method:"GET",fullPath:"/v1/tax_rates",methodType:"list"})})});var aB=B((dB)=>{Object.defineProperty(dB,"__esModule",{value:!0});dB.Tokens=void 0;var cB=U(),uB=cB.StripeResource.method;dB.Tokens=cB.StripeResource.extend({create:uB({method:"POST",fullPath:"/v1/tokens"}),retrieve:uB({method:"GET",fullPath:"/v1/tokens/{token}"})})});var sB=B((pB)=>{Object.defineProperty(pB,"__esModule",{value:!0});pB.Topups=void 0;var iB=U(),pJ=iB.StripeResource.method;pB.Topups=iB.StripeResource.extend({create:pJ({method:"POST",fullPath:"/v1/topups"}),retrieve:pJ({method:"GET",fullPath:"/v1/topups/{topup}"}),update:pJ({method:"POST",fullPath:"/v1/topups/{topup}"}),list:pJ({method:"GET",fullPath:"/v1/topups",methodType:"list"}),cancel:pJ({method:"POST",fullPath:"/v1/topups/{topup}/cancel"})})});var JX=B((tB)=>{Object.defineProperty(tB,"__esModule",{value:!0});tB.Transfers=void 0;var rB=U(),o=rB.StripeResource.method;tB.Transfers=rB.StripeResource.extend({create:o({method:"POST",fullPath:"/v1/transfers"}),retrieve:o({method:"GET",fullPath:"/v1/transfers/{transfer}"}),update:o({method:"POST",fullPath:"/v1/transfers/{transfer}"}),list:o({method:"GET",fullPath:"/v1/transfers",methodType:"list"}),createReversal:o({method:"POST",fullPath:"/v1/transfers/{id}/reversals"}),listReversals:o({method:"GET",fullPath:"/v1/transfers/{id}/reversals",methodType:"list"}),retrieveReversal:o({method:"GET",fullPath:"/v1/transfers/{transfer}/reversals/{id}"}),updateReversal:o({method:"POST",fullPath:"/v1/transfers/{transfer}/reversals/{id}"})})});var GX=B(($X)=>{Object.defineProperty($X,"__esModule",{value:!0});$X.WebhookEndpoints=void 0;var ZX=U(),oJ=ZX.StripeResource.method;$X.WebhookEndpoints=ZX.StripeResource.extend({create:oJ({method:"POST",fullPath:"/v1/webhook_endpoints"}),retrieve:oJ({method:"GET",fullPath:"/v1/webhook_endpoints/{webhook_endpoint}"}),update:oJ({method:"POST",fullPath:"/v1/webhook_endpoints/{webhook_endpoint}"}),list:oJ({method:"GET",fullPath:"/v1/webhook_endpoints",methodType:"list"}),del:oJ({method:"DELETE",fullPath:"/v1/webhook_endpoints/{webhook_endpoint}"})})});var BX=B((E)=>{Object.defineProperty(E,"__esModule",{value:!0});E.Subscriptions=E.SubscriptionSchedules=E.SubscriptionItems=E.Sources=E.ShippingRates=E.SetupIntents=E.SetupAttempts=E.Reviews=E.Refunds=E.Quotes=E.PromotionCodes=E.Products=E.Prices=E.Plans=E.Payouts=E.PaymentRecords=E.PaymentMethods=E.PaymentMethodDomains=E.PaymentMethodConfigurations=E.PaymentLinks=E.PaymentIntents=E.PaymentAttemptRecords=E.OAuth=E.Mandates=E.Invoices=E.InvoiceRenderingTemplates=E.InvoicePayments=E.InvoiceItems=E.Files=E.FileLinks=E.ExchangeRates=E.Events=E.EphemeralKeys=E.Disputes=E.Customers=E.CustomerSessions=E.CreditNotes=E.Coupons=E.CountrySpecs=E.ConfirmationTokens=E.Charges=E.BalanceTransactions=E.BalanceSettings=E.Balance=E.ApplicationFees=E.ApplePayDomains=E.Accounts=E.AccountSessions=E.AccountLinks=E.Account=void 0;E.V2=E.Treasury=E.TestHelpers=E.Terminal=E.Tax=E.Sigma=E.Reporting=E.Radar=E.Issuing=E.Identity=E.Forwarding=E.FinancialConnections=E.Entitlements=E.Climate=E.Checkout=E.BillingPortal=E.Billing=E.Apps=E.WebhookEndpoints=E.Transfers=E.Topups=E.Tokens=E.TaxRates=E.TaxIds=E.TaxCodes=void 0;var C=T$(),q3=q$(),E3=C$(),O3=x$(),k3=h$(),F3=n$(),C3=o$(),A3=e$(),b3=Q8(),v3=X8(),x3=L8(),P3=T8(),I3=q8(),f3=F8(),y3=v8(),g3=f8(),R3=S8(),S3=m8(),M3=c8(),j3=p8(),_3=t8(),m3=$Q(),h3=BQ(),l3=UQ(),u3=KQ(),c3=qQ(),d3=FQ(),n3=vQ(),a3=fQ(),i3=SQ(),p3=mQ(),o3=cQ(),s3=iQ(),r3=rQ(),t3=Z7(),e3=z7(),JU=w7(),ZU=W7(),$U=H7(),QU=O7(),GU=A7(),zU=P7(),BU=g7(),XU=j7(),YU=l7(),wU=n7(),UU=o7(),LU=e7(),VU=Q4(),WU=Y4(),KU=W4(),TU=H4(),NU=O4(),HU=A4(),DU=I4(),qU=R4(),EU=m4(),OU=c4(),kU=i4(),FU=r4(),CU=$5(),AU=B5(),bU=L5(),vU=T5(),xU=q5(),PU=F5(),IU=x5(),fU=g5(),yU=_5(),gU=u5(),RU=a5(),SU=r5(),MU=$G(),jU=BG(),_U=UG(),mU=KG(),hU=qG(),lU=FG(),uU=vG(),cU=yG(),dU=MG(),nU=DZ();Object.defineProperty(E,"Account",{enumerable:!0,get:function(){return nU.Accounts}});var aU=cG();Object.defineProperty(E,"AccountLinks",{enumerable:!0,get:function(){return aU.AccountLinks}});var iU=iG();Object.defineProperty(E,"AccountSessions",{enumerable:!0,get:function(){return iU.AccountSessions}});var pU=DZ();Object.defineProperty(E,"Accounts",{enumerable:!0,get:function(){return pU.Accounts}});var oU=rG();Object.defineProperty(E,"ApplePayDomains",{enumerable:!0,get:function(){return oU.ApplePayDomains}});var sU=Z6();Object.defineProperty(E,"ApplicationFees",{enumerable:!0,get:function(){return sU.ApplicationFees}});var rU=z6();Object.defineProperty(E,"Balance",{enumerable:!0,get:function(){return rU.Balance}});var tU=U6();Object.defineProperty(E,"BalanceSettings",{enumerable:!0,get:function(){return tU.BalanceSettings}});var eU=T6();Object.defineProperty(E,"BalanceTransactions",{enumerable:!0,get:function(){return eU.BalanceTransactions}});var JL=q6();Object.defineProperty(E,"Charges",{enumerable:!0,get:function(){return JL.Charges}});var ZL=F6();Object.defineProperty(E,"ConfirmationTokens",{enumerable:!0,get:function(){return ZL.ConfirmationTokens}});var $L=x6();Object.defineProperty(E,"CountrySpecs",{enumerable:!0,get:function(){return $L.CountrySpecs}});var QL=y6();Object.defineProperty(E,"Coupons",{enumerable:!0,get:function(){return QL.Coupons}});var GL=M6();Object.defineProperty(E,"CreditNotes",{enumerable:!0,get:function(){return GL.CreditNotes}});var zL=h6();Object.defineProperty(E,"CustomerSessions",{enumerable:!0,get:function(){return zL.CustomerSessions}});var BL=d6();Object.defineProperty(E,"Customers",{enumerable:!0,get:function(){return BL.Customers}});var XL=p6();Object.defineProperty(E,"Disputes",{enumerable:!0,get:function(){return XL.Disputes}});var YL=e6();Object.defineProperty(E,"EphemeralKeys",{enumerable:!0,get:function(){return YL.EphemeralKeys}});var wL=Gz();Object.defineProperty(E,"Events",{enumerable:!0,get:function(){return wL.Events}});var UL=wz();Object.defineProperty(E,"ExchangeRates",{enumerable:!0,get:function(){return UL.ExchangeRates}});var LL=Wz();Object.defineProperty(E,"FileLinks",{enumerable:!0,get:function(){return LL.FileLinks}});var VL=Oz();Object.defineProperty(E,"Files",{enumerable:!0,get:function(){return VL.Files}});var WL=Az();Object.defineProperty(E,"InvoiceItems",{enumerable:!0,get:function(){return WL.InvoiceItems}});var KL=Iz();Object.defineProperty(E,"InvoicePayments",{enumerable:!0,get:function(){return KL.InvoicePayments}});var TL=Rz();Object.defineProperty(E,"InvoiceRenderingTemplates",{enumerable:!0,get:function(){return TL.InvoiceRenderingTemplates}});var NL=_z();Object.defineProperty(E,"Invoices",{enumerable:!0,get:function(){return NL.Invoices}});var HL=uz();Object.defineProperty(E,"Mandates",{enumerable:!0,get:function(){return HL.Mandates}});var DL=iz();Object.defineProperty(E,"OAuth",{enumerable:!0,get:function(){return DL.OAuth}});var qL=tz();Object.defineProperty(E,"PaymentAttemptRecords",{enumerable:!0,get:function(){return qL.PaymentAttemptRecords}});var EL=$1();Object.defineProperty(E,"PaymentIntents",{enumerable:!0,get:function(){return EL.PaymentIntents}});var OL=B1();Object.defineProperty(E,"PaymentLinks",{enumerable:!0,get:function(){return OL.PaymentLinks}});var kL=U1();Object.defineProperty(E,"PaymentMethodConfigurations",{enumerable:!0,get:function(){return kL.PaymentMethodConfigurations}});var FL=K1();Object.defineProperty(E,"PaymentMethodDomains",{enumerable:!0,get:function(){return FL.PaymentMethodDomains}});var CL=D1();Object.defineProperty(E,"PaymentMethods",{enumerable:!0,get:function(){return CL.PaymentMethods}});var AL=k1();Object.defineProperty(E,"PaymentRecords",{enumerable:!0,get:function(){return AL.PaymentRecords}});var bL=b1();Object.defineProperty(E,"Payouts",{enumerable:!0,get:function(){return bL.Payouts}});var vL=I1();Object.defineProperty(E,"Plans",{enumerable:!0,get:function(){return vL.Plans}});var xL=R1();Object.defineProperty(E,"Prices",{enumerable:!0,get:function(){return xL.Prices}});var PL=_1();Object.defineProperty(E,"Products",{enumerable:!0,get:function(){return PL.Products}});var IL=u1();Object.defineProperty(E,"PromotionCodes",{enumerable:!0,get:function(){return IL.PromotionCodes}});var fL=a1();Object.defineProperty(E,"Quotes",{enumerable:!0,get:function(){return fL.Quotes}});var yL=s1();Object.defineProperty(E,"Refunds",{enumerable:!0,get:function(){return yL.Refunds}});var gL=JB();Object.defineProperty(E,"Reviews",{enumerable:!0,get:function(){return gL.Reviews}});var RL=GB();Object.defineProperty(E,"SetupAttempts",{enumerable:!0,get:function(){return RL.SetupAttempts}});var SL=YB();Object.defineProperty(E,"SetupIntents",{enumerable:!0,get:function(){return SL.SetupIntents}});var ML=VB();Object.defineProperty(E,"ShippingRates",{enumerable:!0,get:function(){return ML.ShippingRates}});var jL=NB();Object.defineProperty(E,"Sources",{enumerable:!0,get:function(){return jL.Sources}});var _L=EB();Object.defineProperty(E,"SubscriptionItems",{enumerable:!0,get:function(){return _L.SubscriptionItems}});var mL=CB();Object.defineProperty(E,"SubscriptionSchedules",{enumerable:!0,get:function(){return mL.SubscriptionSchedules}});var hL=xB();Object.defineProperty(E,"Subscriptions",{enumerable:!0,get:function(){return hL.Subscriptions}});var lL=gB();Object.defineProperty(E,"TaxCodes",{enumerable:!0,get:function(){return lL.TaxCodes}});var uL=jB();Object.defineProperty(E,"TaxIds",{enumerable:!0,get:function(){return uL.TaxIds}});var cL=lB();Object.defineProperty(E,"TaxRates",{enumerable:!0,get:function(){return cL.TaxRates}});var dL=aB();Object.defineProperty(E,"Tokens",{enumerable:!0,get:function(){return dL.Tokens}});var nL=sB();Object.defineProperty(E,"Topups",{enumerable:!0,get:function(){return nL.Topups}});var aL=JX();Object.defineProperty(E,"Transfers",{enumerable:!0,get:function(){return aL.Transfers}});var iL=GX();Object.defineProperty(E,"WebhookEndpoints",{enumerable:!0,get:function(){return iL.WebhookEndpoints}});E.Apps=(0,C.resourceNamespace)("apps",{Secrets:vU.Secrets});E.Billing=(0,C.resourceNamespace)("billing",{Alerts:C3.Alerts,CreditBalanceSummary:M3.CreditBalanceSummary,CreditBalanceTransactions:j3.CreditBalanceTransactions,CreditGrants:_3.CreditGrants,MeterEventAdjustments:r3.MeterEventAdjustments,MeterEvents:ZU.MeterEvents,Meters:QU.Meters});E.BillingPortal=(0,C.resourceNamespace)("billingPortal",{Configurations:y3.Configurations,Sessions:xU.Sessions});E.Checkout=(0,C.resourceNamespace)("checkout",{Sessions:PU.Sessions});E.Climate=(0,C.resourceNamespace)("climate",{Orders:zU.Orders,Products:KU.Products,Suppliers:yU.Suppliers});E.Entitlements=(0,C.resourceNamespace)("entitlements",{ActiveEntitlements:F3.ActiveEntitlements,Features:a3.Features});E.FinancialConnections=(0,C.resourceNamespace)("financialConnections",{Accounts:O3.Accounts,Sessions:IU.Sessions,Transactions:MU.Transactions});E.Forwarding=(0,C.resourceNamespace)("forwarding",{Requests:AU.Requests});E.Identity=(0,C.resourceNamespace)("identity",{VerificationReports:cU.VerificationReports,VerificationSessions:dU.VerificationSessions});E.Issuing=(0,C.resourceNamespace)("issuing",{Authorizations:b3.Authorizations,Cardholders:P3.Cardholders,Cards:I3.Cards,Disputes:u3.Disputes,PersonalizationDesigns:LU.PersonalizationDesigns,PhysicalBundles:WU.PhysicalBundles,Tokens:RU.Tokens,Transactions:jU.Transactions});E.Radar=(0,C.resourceNamespace)("radar",{EarlyFraudWarnings:c3.EarlyFraudWarnings,PaymentEvaluations:UU.PaymentEvaluations,ValueListItems:lU.ValueListItems,ValueLists:uU.ValueLists});E.Reporting=(0,C.resourceNamespace)("reporting",{ReportRuns:FU.ReportRuns,ReportTypes:CU.ReportTypes});E.Sigma=(0,C.resourceNamespace)("sigma",{ScheduledQueryRuns:bU.ScheduledQueryRuns});E.Tax=(0,C.resourceNamespace)("tax",{Associations:A3.Associations,Calculations:x3.Calculations,Registrations:kU.Registrations,Settings:fU.Settings,Transactions:_U.Transactions});E.Terminal=(0,C.resourceNamespace)("terminal",{Configurations:g3.Configurations,ConnectionTokens:S3.ConnectionTokens,Locations:s3.Locations,OnboardingLinks:GU.OnboardingLinks,Readers:TU.Readers});E.TestHelpers=(0,C.resourceNamespace)("testHelpers",{ConfirmationTokens:R3.ConfirmationTokens,Customers:h3.Customers,Refunds:OU.Refunds,TestClocks:gU.TestClocks,Issuing:(0,C.resourceNamespace)("issuing",{Authorizations:v3.Authorizations,Cards:f3.Cards,PersonalizationDesigns:VU.PersonalizationDesigns,Transactions:mU.Transactions}),Terminal:(0,C.resourceNamespace)("terminal",{Readers:NU.Readers}),Treasury:(0,C.resourceNamespace)("treasury",{InboundTransfers:p3.InboundTransfers,OutboundPayments:BU.OutboundPayments,OutboundTransfers:YU.OutboundTransfers,ReceivedCredits:HU.ReceivedCredits,ReceivedDebits:qU.ReceivedDebits})});E.Treasury=(0,C.resourceNamespace)("treasury",{CreditReversals:m3.CreditReversals,DebitReversals:l3.DebitReversals,FinancialAccounts:i3.FinancialAccounts,InboundTransfers:o3.InboundTransfers,OutboundPayments:XU.OutboundPayments,OutboundTransfers:wU.OutboundTransfers,ReceivedCredits:DU.ReceivedCredits,ReceivedDebits:EU.ReceivedDebits,TransactionEntries:SU.TransactionEntries,Transactions:hU.Transactions});E.V2=(0,C.resourceNamespace)("v2",{Billing:(0,C.resourceNamespace)("billing",{MeterEventAdjustments:t3.MeterEventAdjustments,MeterEventSession:e3.MeterEventSession,MeterEventStream:JU.MeterEventStream,MeterEvents:$U.MeterEvents}),Core:(0,C.resourceNamespace)("core",{AccountLinks:q3.AccountLinks,AccountTokens:E3.AccountTokens,Accounts:k3.Accounts,EventDestinations:d3.EventDestinations,Events:n3.Events})})});var kX=B((EX)=>{Object.defineProperty(EX,"__esModule",{value:!0});EX.createStripe=void 0;var XX=CJ(),VV=m9(),DX=U(),YX=B$(),WV=w$(),qX=V$(),KV=OJ(),TV=X0(),wX=kJ(),y0=BX(),QJ=_(),UX="api.stripe.com",LX="443",VX="/v1/",WX=qX.ApiVersion,KX=80000,TX=5,NX=0.5,NV=["name","version","url","partner_id"],HX=["authenticator","apiVersion","typescript","maxNetworkRetries","httpAgent","httpClient","timeout","host","port","protocol","telemetry","appInfo","stripeAccount","stripeContext"],HV=(J)=>new VV.RequestSender(J,DX.StripeResource.MAX_BUFFERED_REQUEST_METRICS);function DV(J,Z=HV){Q.PACKAGE_VERSION="21.0.1",Q.API_VERSION=qX.ApiVersion;let $=typeof process<"u"&&process.env?(0,QJ.detectAIAgent)(process.env):"";Q.AI_AGENT=$,Q.USER_AGENT={bindings_version:Q.PACKAGE_VERSION,lang:"node",typescript:!1,...(0,QJ.determineProcessUserAgentProperties)(),...$?{ai_agent:$}:{}},Q.StripeResource=DX.StripeResource,Q.StripeContext=YX.StripeContext,Q.resources=y0,Q.HttpClient=wX.HttpClient,Q.HttpClientResponse=wX.HttpClientResponse,Q.CryptoProvider=KV.CryptoProvider,Q.webhooks=(0,WV.createWebhooks)(J),Q.Decimal=TV.Decimal;function Q(G,z={}){if(!(this instanceof Q))return new Q(G,z);let w=this._getPropsFromConfig(z);this._platformFunctions=J,Object.defineProperty(this,"_emitter",{value:this._platformFunctions.createEmitter(),enumerable:!1,configurable:!1,writable:!1}),this.VERSION=Q.PACKAGE_VERSION,this.on=this._emitter.on.bind(this._emitter),this.once=this._emitter.once.bind(this._emitter),this.off=this._emitter.removeListener.bind(this._emitter);let X=w.httpAgent||null;this._api={host:w.host||UX,port:w.port||LX,protocol:w.protocol||"https",basePath:VX,version:w.apiVersion||WX,timeout:(0,QJ.validateInteger)("timeout",w.timeout,KX),maxNetworkRetries:(0,QJ.validateInteger)("maxNetworkRetries",w.maxNetworkRetries,2),agent:X,httpClient:w.httpClient||(X?this._platformFunctions.createNodeHttpClient(X):this._platformFunctions.createDefaultHttpClient()),dev:!1,stripeAccount:w.stripeAccount||null,stripeContext:w.stripeContext||null};let K=w.typescript||!1;if(K!==Q.USER_AGENT.typescript)Q.USER_AGENT.typescript=K;if(w.appInfo)this._setAppInfo(w.appInfo);this._prepResources(),this._setAuthenticator(G,w.authenticator),this.errors=XX,this.webhooks=Q.webhooks,this._prevRequestMetrics=[],this._enableTelemetry=w.telemetry!==!1,this._requestSender=Z(this),this.StripeResource=Q.StripeResource,this.Decimal=Q.Decimal}return Q.errors=XX,Q.createNodeHttpClient=J.createNodeHttpClient,Q.createFetchHttpClient=J.createFetchHttpClient,Q.createNodeCryptoProvider=J.createNodeCryptoProvider,Q.createSubtleCryptoProvider=J.createSubtleCryptoProvider,Q.prototype={_appInfo:void 0,on:null,off:null,once:null,VERSION:null,StripeResource:null,webhooks:null,errors:null,_api:null,_prevRequestMetrics:null,_emitter:null,_enableTelemetry:null,_requestSender:null,_platformFunctions:null,rawRequest(G,z,w,X){return this._requestSender._rawRequest(G,z,w,X)},_setAuthenticator(G,z){if(G&&z)throw Error("Can't specify both apiKey and authenticator");if(!G&&!z)throw Error("Neither apiKey nor config.authenticator provided");this._authenticator=G?(0,QJ.createApiKeyAuthenticator)(G):z},_setAppInfo(G){if(G&&typeof G!=="object")throw Error("AppInfo must be an object.");if(G&&!G.name)throw Error("AppInfo.name is required");G=G||{},this._appInfo=NV.reduce((z,w)=>{if(typeof G[w]=="string")z=z||{},z[w]=G[w];return z},{})},_setApiField(G,z){this._api[G]=z},getApiField(G){return this._api[G]},setClientId(G){this._clientId=G},getClientId(){return this._clientId},getConstant:(G)=>{switch(G){case"DEFAULT_HOST":return UX;case"DEFAULT_PORT":return LX;case"DEFAULT_BASE_PATH":return VX;case"DEFAULT_API_VERSION":return WX;case"DEFAULT_TIMEOUT":return KX;case"MAX_NETWORK_RETRY_DELAY_SEC":return TX;case"INITIAL_NETWORK_RETRY_DELAY_SEC":return NX}return Q[G]},getMaxNetworkRetries(){return this.getApiField("maxNetworkRetries")},_setApiNumberField(G,z,w){let X=(0,QJ.validateInteger)(G,z,w);this._setApiField(G,X)},getMaxNetworkRetryDelay(){return TX},getInitialNetworkRetryDelay(){return NX},getClientUserAgent(G){return this.getClientUserAgentSeeded(Q.USER_AGENT,G)},getClientUserAgentSeeded(G,z){let w={};for(let T in G){if(!Object.prototype.hasOwnProperty.call(G,T))continue;w[T]=encodeURIComponent(G[T]??"null")}let X=this._platformFunctions.getPlatformInfo();if(X&&this.getTelemetryEnabled())w.platform=encodeURIComponent(X);else delete w.platform;let K=this.getApiField("httpClient");if(K)w.httplib=encodeURIComponent(K.getClientName());if(this._appInfo)w.application=this._appInfo;z(JSON.stringify(w))},getAppInfoAsString(){if(!this._appInfo)return"";let G=this._appInfo.name;if(this._appInfo.version)G+=`/${this._appInfo.version}`;if(this._appInfo.url)G+=` (${this._appInfo.url})`;return G},getTelemetryEnabled(){return this._enableTelemetry},_prepResources(){for(let G in y0){if(!Object.prototype.hasOwnProperty.call(y0,G))continue;this[(0,QJ.pascalToCamelCase)(G)]=new y0[G](this)}},_getPropsFromConfig(G){if(!G)return{};let z=typeof G==="string";if(!(G===Object(G)&&!Array.isArray(G))&&!z)throw Error("Config must either be an object or a string");if(z)return{apiVersion:G};if(Object.keys(G).filter((K)=>!HX.includes(K)).length>0)throw Error(`Config object may only contain the following: ${HX.join(", ")}`);return G},parseEventNotification(G,z,w,X,K,T){this.webhooks.signature.verifyHeader(G,z,w,X||this.webhooks.DEFAULT_TOLERANCE,K,T);let Y=G instanceof Uint8Array?JSON.parse(new TextDecoder("utf8").decode(G)):JSON.parse(G);if(Y&&Y.object==="event")throw Error("You passed a webhook payload to stripe.parseEventNotification, which expects an event notification. Use stripe.webhooks.constructEvent instead.");if(Y.context)Y.context=YX.StripeContext.parse(Y.context);return Y.fetchEvent=()=>{return this._requestSender._rawRequest("GET",`/v2/core/events/${Y.id}`,void 0,{stripeContext:Y.context,headers:{"Stripe-Request-Trigger":`event=${Y.id}`}},["fetch_event"])},Y.fetchRelatedObject=()=>{if(!Y.related_object)return Promise.resolve(null);return this._requestSender._rawRequest("GET",Y.related_object.url,void 0,{stripeContext:Y.context,headers:{"Stripe-Request-Trigger":`event=${Y.id}`}},["fetch_related_object"])},Y}},Q}EX.createStripe=DV});var FZ=B((FX,sJ)=>{Object.defineProperty(FX,"__esModule",{value:!0});var qV=S9(),EV=kX(),OV=X0(),kZ=(0,EV.createStripe)(new qV.NodePlatformFunctions);sJ.exports=kZ;sJ.exports.Stripe=kZ;sJ.exports.default=kZ;sJ.exports.Decimal=OV.Decimal});var AX=_Z(FZ(),1);import{services as CX}from"@stacksjs/config";var CZ=null,H=new Proxy({},{get(J,Z){if(!CZ){let $=CX?.stripe?.secretKey;if(!$)throw Error("Stripe secret key is not configured. Set STRIPE_SECRET_KEY in your .env file.");let Q="2026-03-25.dahlia",G=CX?.stripe?.apiVersion;if(G&&G!==Q)throw Error(`Stripe API version ${G} does not match the installed SDK version ${Q}`);CZ=new AX.default($,{apiVersion:Q})}return CZ[Z]}});import{config as FV}from"@stacksjs/config";import{log as CV}from"@stacksjs/logging";import{createHash as bX}from"crypto";var AZ="stacks",bZ="v1",kV=255;function c(J,...Z){let $=Z.filter((z)=>z!==null&&z!==void 0&&z!=="").map((z)=>String(z)).join(":"),Q=$?`${AZ}:${J}:${$}:${bZ}`:`${AZ}:${J}:${bZ}`;if(Q.length<=kV)return Q;let G=bX("sha256").update($).digest("hex").slice(0,32);return`${AZ}:${J}:${G}:${bZ}`}function GJ(J,...Z){let $=bX("sha256").update(`${Date.now()}:${Math.random()}`).digest("hex").slice(0,16);return c(J,...Z,$)}function vX(){let J=FV||{};return(J.payment?.currency||J.billing?.currency||process.env.STRIPE_CURRENCY||"usd").toLowerCase()}var g0=(()=>{async function J(G,z,w){let X={currency:vX(),amount:z};if(G.hasStripeId())X.customer=G.stripe_id??void 0;let K={...X,...w};return await H.paymentIntents.create(K,{idempotencyKey:GJ("payment_intent.create",G.id,z)})}async function Z(G){try{return await H.paymentIntents.retrieve(G)}catch(z){return CV.error(z),null}}async function $(G,z={}){if(!G||typeof G!=="string")throw Error("[payments/refund] paymentIntentId is required");if(z.amount!=null){if(typeof z.amount!=="number"||!Number.isFinite(z.amount)||z.amount<=0)throw Error("[payments/refund] amount must be a positive finite number");try{let Y=await H.paymentIntents.retrieve(G),V=Y.amount_received??Y.amount;if(V&&z.amount>V)throw Error(`[payments/refund] amount ${z.amount} exceeds captured amount ${V}`)}catch(Y){if(Y instanceof Error&&Y.message.startsWith("[payments/refund]"))throw Y}}let{idempotencyKey:w,...X}=z,K={payment_intent:G,...X},T={idempotencyKey:w||`refund:${G}:${X.amount??"full"}`};return await H.refunds.create(K,T)}async function Q(G,z,w,X){let T={...{confirmation_method:"automatic",confirm:!0,payment_method:w,currency:vX(),amount:z},...X};return await J(G,z,T)}return{createPayment:J,charge:Q,findPayment:Z,refund:$}})();import{config as AV}from"@stacksjs/config";function xX(J,Z){if(!J)return;let $;try{$=new URL(J)}catch{throw Error(`[payments/checkout] ${Z} is not a valid URL: ${J}`)}let Q=AV?.app?.url;if(!Q)return;let G;try{G=new URL(Q.startsWith("http")?Q:`https://${Q}`).origin}catch{return}if($.origin!==G)throw Error(`[payments/checkout] ${Z} origin (${$.origin}) does not match app origin (${G})`)}var vZ=(()=>{async function J(Z,$){let Q=$.customer||Z.stripe_id;if(!Q)throw Error("User has no Stripe customer");xX($.success_url,"success_url"),xX($.cancel_url,"cancel_url");let z={...{customer:Q,mode:"payment",success_url:$.success_url,cancel_url:$.cancel_url},...$};return await H.checkout.sessions.create(z,{idempotencyKey:GJ("checkout.session.create",Z.id)})}return{create:J}})();var d=(()=>{function J(L){return L.stripe_id||""}function Z(L){return{line1:L.address?.line1,city:L.address?.city,state:L.address?.state,postal_code:L.address?.postal_code,country:L.address?.country}}function $(){return[]}function Q(L){return L}function G(L){return Boolean(L.stripe_id)}async function z(L,N={}){if(G(L))throw Error("Customer already created");if(!N.name&&W(L))N.name=W(L);if(!N.email&&D(L))N.email=D(L);let q=await H.customers.create(N,{idempotencyKey:c("customer.create",L.id)});return await L.update({stripe_id:q.id}),q}async function w(L,N={}){if(!L.stripe_id)throw Error("User does not have a Stripe customer ID. Create a customer first.");return await H.customers.update(L.stripe_id,N,{idempotencyKey:c("customer.update",L.id,L.stripe_id)})}async function X(L){if(!G(L))throw Error("User does not have a Stripe ID");try{if(!L.stripe_id)throw Error("User has no Stripe ID");let N=await H.customers.del(L.stripe_id);return await L.update({stripe_id:""}),N}catch(N){if(N.statusCode===404)throw Error("Customer not found in Stripe");throw N}}async function K(L,N={}){if(!G(L))return await z(L,N);try{let q=await H.customers.retrieve(L.stripe_id);if(q.deleted)throw Error("Customer was deleted");return q}catch(q){if(q.statusCode===404)return await z(L,N);throw q}}async function T(L){if(!G(L))return;try{let N=await H.customers.retrieve(L.stripe_id);if(N.deleted)throw Error("Customer was deleted in Stripe");return N}catch(N){if(N.statusCode===404)throw Error("Customer not found in Stripe");throw N}}async function Y(L,N){if(!G(L))return await z(L,N);try{if((await H.customers.retrieve(L.stripe_id)).deleted)return await z(L,N);return await w(L,N)}catch(q){if(q.statusCode===404)return await z(L,N);throw q}}async function V(L,N){return await w(L,{name:W(L),email:D(L),address:Z(N),preferred_locales:$(),metadata:N.metadata?Q(N.metadata):{}})}function W(L){return L.name||""}function D(L){return L.email||""}return{stripeId:J,hasStripeId:G,createStripeCustomer:z,updateStripeCustomer:w,createOrGetStripeUser:K,createOrUpdateStripeUser:Y,deleteStripeUser:X,retrieveStripeUser:T,syncStripeCustomerDetails:V}})();var xZ=(()=>{async function J(Z){if(!Z.hasStripeId())throw Error("Customer does not exist in Stripe");if(!Z.stripe_id)throw Error("User has no Stripe ID");return await H.invoices.list({customer:Z.stripe_id,expand:["data.payment_intent.payment_method"]})}return{list:J}})();import{db as s}from"@stacksjs/database";import{PaymentMethod as PZ}from"@stacksjs/orm";var rJ=(()=>{async function J(Y,V){if(!Y.hasStripeId())throw Error("Customer does not exist in Stripe");let W;if(typeof V==="string")W=await H.paymentMethods.retrieve(V);else W=V;if(W.customer!==Y.stripe_id)W=await H.paymentMethods.attach(W.id,{customer:Y.stripe_id});return await Q(Y,W),W}async function Z(Y,V){if(!Y.hasStripeId())throw Error("Customer does not exist in Stripe");let W=await H.paymentMethods.retrieve(V),D=await s.selectFrom("payment_methods").where("provider_id","=",V).selectAll().executeTakeFirst();if(!Y.stripe_id)throw Error("User has no Stripe ID");if(W.customer!==Y.stripe_id)await H.paymentMethods.attach(W.id,{customer:Y.stripe_id});let L=await H.customers.update(Y.stripe_id,{invoice_settings:{default_payment_method:V}});if(await s.updateTable("payment_methods").set({is_default:!1}).where("user_id","=",Y.id).executeTakeFirst(),D)await G(D);return L}async function $(Y,V){if(!Y.hasStripeId())throw Error("Customer does not exist in Stripe");let W=await s.selectFrom("payment_methods").where("id","=",V).selectAll().executeTakeFirst();if(!W?.provider_id)throw Error(`Payment method with id ${V} not found`);let D=await H.paymentMethods.retrieve(String(W.provider_id));if(D.customer!==Y.stripe_id)await H.paymentMethods.attach(D.id,{customer:Y.stripe_id});if(!Y.stripe_id)throw Error("User has no Stripe ID");let L=await H.customers.update(Y.stripe_id,{invoice_settings:{default_payment_method:String(W.provider_id)}});return await s.updateTable("payment_methods").set({is_default:!1}).where("user_id","=",Y.id).executeTakeFirst(),await s.updateTable("payment_methods").set({is_default:!0}).where("id","=",V).executeTakeFirst(),L}async function Q(Y,V){if(!Y.hasStripeId())throw Error("Customer does not exist in Stripe");if(!V.card?.brand||!V.card?.exp_year||!V.card?.exp_month)throw Error("Invalid payment method: missing required card details");let W={type:"card",last_four:String(V.card.last4),brand:V.card.brand,exp_year:V.card.exp_year,exp_month:V.card.exp_month,user_id:Y.id,provider_id:V.id};if(V.customer!==Y.stripe_id)await H.paymentMethods.attach(V.id,{customer:Y.stripe_id});return await PZ.create(W)}async function G(Y){return await Y.update({is_default:!0})}async function z(Y,V){if(!Y.hasStripeId())throw Error("Customer does not exist in Stripe");let W=typeof V==="string"?await s.selectFrom("payment_methods").where("provider_id","=",V).selectAll().executeTakeFirst():await PZ.find(V);if(!W?.provider_id)throw Error(`Payment method with id ${V} not found`);if((await H.paymentMethods.retrieve(String(W.provider_id))).customer!==Y.stripe_id)throw Error("Payment method does not belong to this customer");return await W.delete(),await H.paymentMethods.detach(String(W.provider_id))}async function w(Y,V,W){if(!Y.hasStripeId())throw Error("Customer does not exist in Stripe");if((await H.paymentMethods.retrieve(V)).customer!==Y.stripe_id)throw Error("Payment method does not belong to this customer");return await H.paymentMethods.update(V,W)}async function X(Y){if(!Y.hasStripeId())throw Error("Customer does not exist in Stripe");return await s.selectFrom("payment_methods").selectAll().where("user_id","=",Y.id).execute()}async function K(Y,V){if(!Y.hasStripeId())throw Error("Customer does not exist in Stripe");return await s.selectFrom("payment_methods").where("id","=",V).selectAll().executeTakeFirst()}async function T(Y){if(!Y.hasStripeId())throw Error("Customer does not exist in Stripe");return await PZ.where("user_id",Y.id).where("is_default",!0).first()}return{addPaymentMethod:J,deletePaymentMethod:z,retrieveDefaultPaymentMethod:T,updatePaymentMethod:w,listPaymentMethods:X,setDefaultPaymentMethod:$,storePaymentMethod:Q,retrievePaymentMethod:K,setUserDefaultPayment:Z}})();var tJ=(()=>{async function J($){let Q=await H.prices.list({lookup_keys:[$]});if(!Q.data.length)return;return Q.data[0]}async function Z($,Q){let G=await J($);if(G)return G;return await H.prices.create({...Q,lookup_key:$})}return{retrieveByLookupKey:J,createOrGet:Z}})();var R0=(()=>{async function J(X){return await H.products.create(X)}async function Z(X){return await H.products.retrieve(X)}async function $(X,K){return await H.products.update(X,K)}async function Q(X={}){return await H.products.list({active:!0,...X})}async function G(X){return await H.products.update(X,{active:!1})}async function z(X,K){let T=await H.products.create(X),Y=await H.prices.create({...K,product:T.id});return{product:T,price:Y}}async function w(X,K={query:""}){return await H.products.search({...K,query:X})}return{create:J,retrieve:Z,update:$,list:Q,archive:G,createWithPrice:z,search:w}})(),PX=(()=>{async function J(X){return await H.prices.create(X)}async function Z(X){return await H.prices.retrieve(X)}async function $(X,K){return await H.prices.update(X,K)}async function Q(X={}){return await H.prices.list({active:!0,...X})}async function G(X,K={}){return await H.prices.list({product:X,active:!0,...K})}async function z(X,K={query:""}){return await H.prices.search({...K,query:X})}async function w(X){return await H.prices.update(X,{active:!1})}return{create:J,retrieve:Z,update:$,list:Q,listByProduct:G,search:z,archive:w}})(),eJ=(()=>{async function J(X){return await H.coupons.create(X)}async function Z(X){return await H.coupons.retrieve(X)}async function $(X,K){return await H.coupons.update(X,K)}async function Q(X){return await H.coupons.del(X)}async function G(X={}){return await H.coupons.list(X)}async function z(X){return await H.promotionCodes.create(X)}async function w(X){try{let K=await H.promotionCodes.list({code:X,active:!0});if(K.data.length>0)return K.data[0]??null;return null}catch{return null}}return{create:J,retrieve:Z,update:$,delete:Q,list:G,createPromotionCode:z,retrievePromotionCode:w}})();import{db as zJ}from"@stacksjs/database";import{HttpError as bV}from"@stacksjs/error-handling";import{isUniqueViolation as vV}from"@stacksjs/orm";var qJ=(()=>{async function J(W,D,L,N){let q=await tJ.retrieveByLookupKey(L);if(!q)throw Error("Price does not exist in Stripe");let O=[{price:q.id,quantity:1}],I={...{customer:await d.createOrGetStripeUser(W,{}).then((y)=>{if(!y||!y.id)throw Error("Customer does not exist in Stripe");return y.id}),payment_behavior:"allow_incomplete",expand:["latest_invoice.payment_intent"],items:O},...N},f=await H.subscriptions.create(I,{idempotencyKey:c("subscription.create",W.id,D,L)});return await T(W,D,L,f),f}async function Z(W,D,L,N={}){let q=await tJ.retrieveByLookupKey(L),O=await W?.activeSubscription();if(!q)throw Error("New price does not exist in Stripe");if(!O)throw Error("No active subscription for user!");let k=O.subscription?.provider_id;if(!k)throw Error("Active subscription has no provider ID");let b=await H.subscriptions.retrieve(k);if(!b)throw Error("Subscription does not exist in Stripe");let I=b.items.data[0]?.id;if(!I)throw Error("No subscription items found in the subscription");await H.subscriptions.update(k,{items:[{id:I,price:q.id,quantity:1}],proration_behavior:"create_prorations"},{idempotencyKey:c("subscription.update",k,q.id)});let f=await H.subscriptions.retrieve(k);if(!O.subscription?.id)throw Error("Active subscription has no database ID");return await Y(O.subscription.id,D,f),f}async function $(W,D){if(!await H.subscriptions.retrieve(W))throw Error("Subscription does not exist or does not belong to the user");let N=await H.subscriptions.cancel(W,D,{idempotencyKey:c("subscription.cancel",W)});return await G(W),N}async function Q(W,D){if(!W.hasStripeId())throw Error("Customer does not exist in Stripe");return await H.subscriptions.retrieve(D)}async function G(W){await zJ.updateTable("subscriptions").set({provider_status:"canceled"}).where("provider_id","=",W).executeTakeFirst()}function z(W){return W.provider_status==="active"}function w(W){return W.provider_status==="trialing"}async function X(W,D){let L=await zJ.selectFrom("subscriptions").where("user_id","=",W.id).where("type","=",D).selectAll().executeTakeFirst();if(!L)return!1;return L.provider_status==="incomplete"}async function K(W,D){let L=await zJ.selectFrom("subscriptions").where("user_id","=",W.id).where("type","=",D).selectAll().executeTakeFirst();if(!L)return!1;let N=await z(L),q=await w(L);return N||q}async function T(W,D,L,N){let q=N.items.data[0];if(!q)throw Error("Stripe subscription contains no line items \u2014 cannot store subscription");let O=V({user_id:W.id,type:D,unit_price:Number(q.price.unit_amount),provider_id:N.id,provider_status:N.status,provider_price_id:q.price.id,quantity:q.quantity,trial_ends_at:N.trial_end!=null?String(N.trial_end):void 0,ends_at:N.current_period_end!=null?String(N.current_period_end):void 0,provider_type:"stripe",last_used_at:N.current_period_end!=null?String(N.current_period_end):void 0}),k;try{k=await zJ.insertInto("subscriptions").values(O).executeTakeFirst()}catch(I){if(vV(I))throw new bV(409,"A subscription with this provider ID already exists");throw I}if(!k)throw Error("Failed to insert subscription record");return await zJ.selectFrom("subscriptions").where("id","=",Number(k.insertId)).selectAll().executeTakeFirst()}async function Y(W,D,L){let N=await zJ.selectFrom("subscriptions").where("id","=",W).selectAll().executeTakeFirst(),q=L.items.data[0];if(!q)throw Error("Stripe subscription contains no line items \u2014 cannot update subscription");return await zJ?.updateTable("subscriptions").set({type:D,provider_price_id:q.price.id,unit_price:Number(q.price.unit_amount)}).where("id","=",W).executeTakeFirst(),N}function V(W){return Object.fromEntries(Object.entries(W).filter(([D,L])=>L!=null))}return{create:J,update:Z,isValid:K,isIncomplete:X,cancel:$,retrieve:Q}})();var IX=(()=>{async function J(Z,$){let z={...{customer:await d.createOrGetStripeUser(Z,{}).then((w)=>{if(!w||!w.id)throw Error("Customer does not exist in Stripe");return w.id}),payment_method_types:["card"]},...$};return await H.setupIntents.create(z,{idempotencyKey:GJ("setup_intent.create",Z.id)})}return{create:J}})();var IZ=new Map;function x(J,Z){let $=IZ.get(J)||[];$.push(Z),IZ.set(J,$)}function xV(J){for(let[Z,$]of Object.entries(J))x(Z,$)}function PV(J,Z,$,Q){if(Q!=null&&Number.isFinite(Q)&&Q>0)return H.webhooks.constructEvent(J,Z,$,Q);return H.webhooks.constructEvent(J,Z,$)}async function fX(J,Z,$,Q){if(Q!=null&&Number.isFinite(Q)&&Q>0)return await H.webhooks.constructEventAsync(J,Z,$,Q);return await H.webhooks.constructEventAsync(J,Z,$)}async function yX(J){let Z=IZ.get(J.type)||[];if(Z.length===0)return{handled:!1,eventType:J.type};let $=[];for(let Q of Z)try{await Q(J)}catch(G){$.push(G instanceof Error?G.message:String(G))}return{handled:!0,eventType:J.type,...$.length>0?{errors:$}:{}}}async function fZ(J,Z,$){try{let Q=await fX(J,Z,$.secret,$.tolerance),G=await yX(Q);if(G.errors&&G.errors.length>0)return{success:!1,eventType:G.eventType,error:G.errors.join("; ")};return{success:!0,eventType:G.eventType}}catch(Q){return{success:!1,error:Q instanceof Error?Q.message:"Unknown error"}}}function yZ(J){if(J.succeeded)x("payment_intent.succeeded",J.succeeded);if(J.failed)x("payment_intent.payment_failed",J.failed);if(J.created)x("payment_intent.created",J.created);if(J.canceled)x("payment_intent.canceled",J.canceled)}function gZ(J){if(J.created)x("customer.subscription.created",J.created);if(J.updated)x("customer.subscription.updated",J.updated);if(J.deleted)x("customer.subscription.deleted",J.deleted);if(J.trialWillEnd)x("customer.subscription.trial_will_end",J.trialWillEnd)}function RZ(J){if(J.paid)x("invoice.paid",J.paid);if(J.paymentFailed)x("invoice.payment_failed",J.paymentFailed);if(J.created)x("invoice.created",J.created);if(J.finalized)x("invoice.finalized",J.finalized)}function SZ(J){if(J.completed)x("checkout.session.completed",J.completed);if(J.expired)x("checkout.session.expired",J.expired)}function MZ(J){if(J.succeeded)x("charge.succeeded",J.succeeded);if(J.failed)x("charge.failed",J.failed);if(J.refunded)x("charge.refunded",J.refunded);if(J.disputed)x("charge.dispute.created",J.disputed)}function IV(J){if(J.type.startsWith("payment_intent."))return J.data.object;return null}function fV(J){if(J.type.startsWith("customer.subscription."))return J.data.object;return null}function yV(J){if(J.type.startsWith("invoice."))return J.data.object;return null}function gV(J){if(J.type.startsWith("checkout.session."))return J.data.object;return null}function RV(J){if(J.type.startsWith("charge."))return J.data.object;return null}function SV(J){if(J.type.startsWith("customer.")&&!J.type.includes("subscription"))return J.data.object;return null}var gX={onWebhookEvent:x,registerWebhookHandlers:xV,constructEvent:PV,constructEventAsync:fX,handleWebhookEvent:yX,processWebhook:fZ,onPaymentIntent:yZ,onSubscription:gZ,onInvoice:RZ,onCheckout:SZ,onCharge:MZ,getPaymentIntent:IV,getSubscription:fV,getInvoice:yV,getCheckoutSession:gV,getCharge:RV,getCustomer:SV};async function MV(J,Z,$,Q={}){return g0.charge(J,Z,$,Q)}async function jV(J,Z,$={}){return g0.createPayment(J,Z,$)}async function _V(J,Z,$={}){return g0.refund(J,{amount:Z,...$})}async function mV(J,Z,$={}){return vZ.create(J,{line_items:Z,mode:"payment",...$})}async function hV(J,Z,$={}){return vZ.create(J,{line_items:[{price:Z,quantity:1}],mode:"subscription",...$})}async function lV(J,Z,$={}){return qJ.create(J,"default",Z,$)}async function uV(J,Z=!1){return qJ.cancel(J,{prorate:!Z,invoice_now:Z})}async function cV(J,Z="default"){return qJ.isValid(J,Z)}async function dV(J,Z,$="default"){return qJ.update(J,$,Z,{})}async function nV(J,Z={}){return d.createOrGetStripeUser(J,Z)}async function aV(J,Z){return d.updateStripeCustomer(J,Z)}async function iV(J){return d.deleteStripeUser(J)}async function pV(J,Z){return rJ.addPaymentMethod(J,Z)}async function oV(J,Z){return rJ.setUserDefaultPayment(J,Z)}async function sV(J,Z){return rJ.deletePaymentMethod(J,Z)}async function rV(J,Z={}){return IX.create(J,Z)}async function tV(J){return xZ.list(J)}async function eV(J,Z={}){return H.invoices.create({customer:J,...Z})}async function JW(J){return H.invoices.pay(J)}async function ZW(J,Z,$={}){let{currency:Q="usd",interval:G,description:z,metadata:w}=$,X={unit_amount:Z,currency:Q};if(G)X.recurring={interval:G};return R0.createWithPrice({name:J,description:z,metadata:w},X)}async function $W(J){return tJ.retrieveByLookupKey(J)}async function QW(J={}){return R0.list(J)}async function GW(J){let Z={duration:J.duration||"once"};if(J.percentOff)Z.percent_off=J.percentOff;else if(J.amountOff)Z.amount_off=J.amountOff,Z.currency=J.currency||"usd";if(J.name)Z.name=J.name;if(J.durationInMonths)Z.duration_in_months=J.durationInMonths;if(J.maxRedemptions)Z.max_redemptions=J.maxRedemptions;return eJ.create(Z)}async function zW(J,Z,$={}){return eJ.createPromotionCode({promotion:{type:"coupon",coupon:J},code:Z,...$})}async function BW(J){return eJ.retrievePromotionCode(J)}function XW(J,Z){let $=globalThis.config||{},Q=(Z||$.payment?.currency||$.billing?.currency||process.env.STRIPE_CURRENCY||"usd").toLowerCase(),G=$.app?.locale||"en-US";return new Intl.NumberFormat(G,{style:"currency",currency:Q.toUpperCase()}).format(J/100)}function YW(J){return Math.round(J*100)}function wW(J){return J/100}var UW={charge:MV,createPayment:jV,refund:_V,checkout:mV,subscriptionCheckout:hV,subscribe:lV,cancelSubscription:uV,hasActiveSubscription:cV,changeSubscription:dV,getOrCreateCustomer:nV,updateCustomer:aV,deleteCustomer:iV,addPaymentMethod:pV,setDefaultPaymentMethod:oV,removePaymentMethod:sV,createSetupIntent:rV,getInvoices:tV,createInvoice:eV,payInvoice:JW,createProduct:ZW,getPrice:$W,listProducts:QW,createCoupon:GW,createPromoCode:zW,validatePromoCode:BW,formatAmount:XW,toCents:YW,toDollars:wW,webhook:gX,onPaymentIntent:yZ,onSubscription:gZ,onInvoice:RZ,onCheckout:SZ,onCharge:MZ,processWebhook:fZ,stripe:H,customer:d,subscription:qJ,invoice:xZ,paymentMethod:rJ,product:R0,price:PX,coupon:eJ},LW=UW;import{saas as VW}from"@stacksjs/config";import{err as WW,ok as KW}from"@stacksjs/error-handling";import{log as TW}from"@stacksjs/logging";import{stripe as RX}from"@stacksjs/payments";async function HD(){let J=VW.plans;try{if(J!==void 0&&J.length)for(let Z of J){let $=await RX.products.create({name:Z.productName,description:Z.description,metadata:Z.metadata});for(let Q of Z.pricing)if($){let G={unit_amount:Q.price,currency:Q.currency,product:$.id,lookup_key:Q.key};if(Q.interval)G.recurring={interval:Q.interval};await RX.prices.create(G)}}return KW("Migrations generated")}catch(Z){let $=Z instanceof Error?Z:Error(String(Z));return TW.error($),WW($)}}import{db as S0}from"@stacksjs/database";var ED=(()=>{async function J($,Q,G){let z=await S0.selectFrom("payment_products").where("id","=",Q).selectAll().executeTakeFirst();if(!z)throw Error(`Payment product with id ${Q} not found.`);let w={name:z.name,description:G.description??"",amount:z.unit_price,brand:G.brand,type:G.type??"one-time",provider_id:G.provider_id,user_id:$.id},X=await S0.insertInto("payment_transactions").values(w).executeTakeFirst();if(!X)throw Error("Failed to insert payment transaction");return await S0.selectFrom("payment_transactions").where("id","=",Number(X.insertId)).selectAll().executeTakeFirst()}async function Z($){return await S0.selectFrom("payment_transactions").where("user_id","=",$.id).selectAll().execute()}return{store:J,list:Z}})();var hD=_Z(FZ(),1);export{BW as validatePromoCode,aV as updateCustomer,wW as toDollars,YW as toCents,hV as subscriptionCheckout,lV as subscribe,H as stripe,c as stacksIdempotencyKey,oV as setDefaultPaymentMethod,sV as removePaymentMethod,xV as registerWebhookHandlers,_V as refund,fZ as processWebhook,JW as payInvoice,x as onWebhookEvent,gZ as onSubscription,yZ as onPaymentIntent,RZ as onInvoice,SZ as onCheckout,MZ as onCharge,gX as manageWebhook,ED as manageTransaction,qJ as manageSubscription,IX as manageSetupIntent,R0 as manageProduct,PX as managePriceExtended,tJ as managePrice,rJ as managePaymentMethod,xZ as manageInvoice,d as manageCustomer,eJ as manageCoupon,vZ as manageCheckout,g0 as manageCharge,QW as listProducts,cV as hasActiveSubscription,yX as handleWebhookEvent,fV as getSubscription,$W as getPrice,IV as getPaymentIntent,nV as getOrCreateCustomer,tV as getInvoices,yV as getInvoice,SV as getCustomer,gV as getCheckoutSession,RV as getCharge,GJ as freshIdempotencyKey,XW as formatAmount,iV as deleteCustomer,HD as createStripeProduct,rV as createSetupIntent,zW as createPromoCode,ZW as createProduct,jV as createPayment,eV as createInvoice,GW as createCoupon,fX as constructEventAsync,PV as constructEvent,mV as checkout,MV as charge,dV as changeSubscription,uV as cancelSubscription,pV as addPaymentMethod,hD as Stripe,LW as Payment};
package/dist/payment.d.ts CHANGED
@@ -135,7 +135,42 @@ export declare function toDollars(cents: number): number;
135
135
  // Payment Facade Object
136
136
  // =============================================================================
137
137
  export declare const Payment: {
138
+ charge: typeof charge;
139
+ createPayment: typeof createPayment;
140
+ refund: typeof refund;
141
+ checkout: typeof checkout;
142
+ subscriptionCheckout: typeof subscriptionCheckout;
143
+ subscribe: typeof subscribe;
144
+ cancelSubscription: typeof cancelSubscription;
145
+ hasActiveSubscription: typeof hasActiveSubscription;
146
+ changeSubscription: typeof changeSubscription;
147
+ getOrCreateCustomer: typeof getOrCreateCustomer;
148
+ updateCustomer: typeof updateCustomer;
149
+ deleteCustomer: typeof deleteCustomer;
150
+ addPaymentMethod: typeof addPaymentMethod;
151
+ setDefaultPaymentMethod: typeof setDefaultPaymentMethod;
152
+ removePaymentMethod: typeof removePaymentMethod;
153
+ createSetupIntent: typeof createSetupIntent;
154
+ getInvoices: typeof getInvoices;
155
+ createInvoice: typeof createInvoice;
156
+ payInvoice: typeof payInvoice;
157
+ createProduct: typeof createProduct;
158
+ getPrice: typeof getPrice;
159
+ listProducts: typeof listProducts;
160
+ createCoupon: typeof createCoupon;
161
+ createPromoCode: typeof createPromoCode;
162
+ validatePromoCode: typeof validatePromoCode;
163
+ formatAmount: typeof formatAmount;
164
+ toCents: typeof toCents;
165
+ toDollars: typeof toDollars;
138
166
  webhook: unknown;
167
+ onPaymentIntent: typeof onPaymentIntent;
168
+ onSubscription: typeof onSubscription;
169
+ onInvoice: typeof onInvoice;
170
+ onCheckout: typeof onCheckout;
171
+ onCharge: typeof onCharge;
172
+ processWebhook: typeof processWebhook;
173
+ stripe: typeof stripe;
139
174
  customer: unknown;
140
175
  subscription: unknown;
141
176
  invoice: unknown;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/payments",
3
3
  "type": "module",
4
- "version": "0.70.73",
4
+ "version": "0.70.75",
5
5
  "description": "The Stacks payments package. Currently supporting Stripe.",
6
6
  "author": "Chris Breuer",
7
7
  "contributors": [
@@ -54,9 +54,9 @@
54
54
  "prepublishOnly": "bun run build"
55
55
  },
56
56
  "devDependencies": {
57
- "@stacksjs/config": "0.70.73",
58
- "better-dx": "^0.2.12",
59
- "@stacksjs/utils": "0.70.73",
57
+ "@stacksjs/config": "0.70.75",
58
+ "better-dx": "^0.2.16",
59
+ "@stacksjs/utils": "0.70.75",
60
60
  "@stripe/stripe-js": "^8.7.0",
61
61
  "stripe": "^21.0.1"
62
62
  }