| All Verbs | /stripe-session/{Id} |
|---|
"use strict";
export class StripeEntity {
constructor(init) { Object.assign(this, init) }
}
/** @typedef T {any} */
export class StripeEntity_1 extends StripeEntity {
constructor(init) { super(init); Object.assign(this, init) }
}
export class SessionAfterExpirationRecovery extends StripeEntity_1 {
/** @param {{AllowPromotionCodes?:boolean,Enabled?:boolean,ExpiresAt?:string,Url?:string}} [init] */
constructor(init) { super(init); Object.assign(this, init) }
/** @type {boolean} */
AllowPromotionCodes;
/** @type {boolean} */
Enabled;
/** @type {?string} */
ExpiresAt;
/** @type {string} */
Url;
}
export class SessionAfterExpiration extends StripeEntity_1 {
/** @param {{Recovery?:SessionAfterExpirationRecovery}} [init] */
constructor(init) { super(init); Object.assign(this, init) }
/** @type {SessionAfterExpirationRecovery} */
Recovery;
}
export class SessionAutomaticTax extends StripeEntity_1 {
/** @param {{Enabled?:boolean,Status?:string}} [init] */
constructor(init) { super(init); Object.assign(this, init) }
/** @type {boolean} */
Enabled;
/** @type {string} */
Status;
}
export class SessionConsent extends StripeEntity_1 {
/** @param {{Promotions?:string,TermsOfService?:string}} [init] */
constructor(init) { super(init); Object.assign(this, init) }
/** @type {string} */
Promotions;
/** @type {string} */
TermsOfService;
}
export class SessionConsentCollection extends StripeEntity_1 {
/** @param {{Promotions?:string,TermsOfService?:string}} [init] */
constructor(init) { super(init); Object.assign(this, init) }
/** @type {string} */
Promotions;
/** @type {string} */
TermsOfService;
}
export class SessionCustomFieldDropdownOption extends StripeEntity_1 {
/** @param {{Label?:string,Value?:string}} [init] */
constructor(init) { super(init); Object.assign(this, init) }
/** @type {string} */
Label;
/** @type {string} */
Value;
}
export class SessionCustomFieldDropdown extends StripeEntity_1 {
/** @param {{Options?:SessionCustomFieldDropdownOption[],Value?:string}} [init] */
constructor(init) { super(init); Object.assign(this, init) }
/** @type {SessionCustomFieldDropdownOption[]} */
Options;
/** @type {string} */
Value;
}
export class SessionCustomFieldLabel extends StripeEntity_1 {
/** @param {{Custom?:string,Type?:string}} [init] */
constructor(init) { super(init); Object.assign(this, init) }
/** @type {string} */
Custom;
/** @type {string} */
Type;
}
export class SessionCustomFieldNumeric extends StripeEntity_1 {
/** @param {{Value?:string}} [init] */
constructor(init) { super(init); Object.assign(this, init) }
/** @type {string} */
Value;
}
export class SessionCustomFieldText extends StripeEntity_1 {
/** @param {{Value?:string}} [init] */
constructor(init) { super(init); Object.assign(this, init) }
/** @type {string} */
Value;
}
export class SessionCustomField extends StripeEntity_1 {
/** @param {{Dropdown?:SessionCustomFieldDropdown,Key?:string,Label?:SessionCustomFieldLabel,Numeric?:SessionCustomFieldNumeric,Optional?:boolean,Text?:SessionCustomFieldText,Type?:string}} [init] */
constructor(init) { super(init); Object.assign(this, init) }
/** @type {SessionCustomFieldDropdown} */
Dropdown;
/** @type {string} */
Key;
/** @type {SessionCustomFieldLabel} */
Label;
/** @type {SessionCustomFieldNumeric} */
Numeric;
/** @type {boolean} */
Optional;
/** @type {SessionCustomFieldText} */
Text;
/** @type {string} */
Type;
}
export class SessionCustomTextShippingAddress extends StripeEntity_1 {
/** @param {{Message?:string}} [init] */
constructor(init) { super(init); Object.assign(this, init) }
/** @type {string} */
Message;
}
export class SessionCustomTextSubmit extends StripeEntity_1 {
/** @param {{Message?:string}} [init] */
constructor(init) { super(init); Object.assign(this, init) }
/** @type {string} */
Message;
}
export class SessionCustomText extends StripeEntity_1 {
/** @param {{ShippingAddress?:SessionCustomTextShippingAddress,Submit?:SessionCustomTextSubmit}} [init] */
constructor(init) { super(init); Object.assign(this, init) }
/** @type {SessionCustomTextShippingAddress} */
ShippingAddress;
/** @type {SessionCustomTextSubmit} */
Submit;
}
export class Address extends StripeEntity_1 {
/** @param {{City?:string,Country?:string,Line1?:string,Line2?:string,PostalCode?:string,State?:string}} [init] */
constructor(init) { super(init); Object.assign(this, init) }
/** @type {string} */
City;
/** @type {string} */
Country;
/** @type {string} */
Line1;
/** @type {string} */
Line2;
/** @type {string} */
PostalCode;
/** @type {string} */
State;
}
export class SessionCustomerDetailsTaxId extends StripeEntity_1 {
/** @param {{Type?:string,Value?:string}} [init] */
constructor(init) { super(init); Object.assign(this, init) }
/** @type {string} */
Type;
/** @type {string} */
Value;
}
export class SessionCustomerDetails extends StripeEntity_1 {
/** @param {{Address?:Address,Email?:string,Name?:string,Phone?:string,TaxExempt?:string,TaxIds?:SessionCustomerDetailsTaxId[]}} [init] */
constructor(init) { super(init); Object.assign(this, init) }
/** @type {Address} */
Address;
/** @type {string} */
Email;
/** @type {string} */
Name;
/** @type {string} */
Phone;
/** @type {string} */
TaxExempt;
/** @type {SessionCustomerDetailsTaxId[]} */
TaxIds;
}
export class SessionInvoiceCreationInvoiceDataCustomField extends StripeEntity_1 {
/** @param {{Name?:string,Value?:string}} [init] */
constructor(init) { super(init); Object.assign(this, init) }
/** @type {string} */
Name;
/** @type {string} */
Value;
}
export class SessionInvoiceCreationInvoiceDataRenderingOptions extends StripeEntity_1 {
/** @param {{AmountTaxDisplay?:string}} [init] */
constructor(init) { super(init); Object.assign(this, init) }
/** @type {string} */
AmountTaxDisplay;
}
export class SessionInvoiceCreationInvoiceData extends StripeEntity_1 {
/** @param {{CustomFields?:SessionInvoiceCreationInvoiceDataCustomField[],Description?:string,Footer?:string,Metadata?:{ [index:string]: string; },RenderingOptions?:SessionInvoiceCreationInvoiceDataRenderingOptions}} [init] */
constructor(init) { super(init); Object.assign(this, init) }
/** @type {SessionInvoiceCreationInvoiceDataCustomField[]} */
CustomFields;
/** @type {string} */
Description;
/** @type {string} */
Footer;
/** @type {{ [index:string]: string; }} */
Metadata;
/** @type {SessionInvoiceCreationInvoiceDataRenderingOptions} */
RenderingOptions;
}
export class SessionInvoiceCreation extends StripeEntity_1 {
/** @param {{Enabled?:boolean,InvoiceData?:SessionInvoiceCreationInvoiceData}} [init] */
constructor(init) { super(init); Object.assign(this, init) }
/** @type {boolean} */
Enabled;
/** @type {SessionInvoiceCreationInvoiceData} */
InvoiceData;
}
export class CouponAppliesTo extends StripeEntity_1 {
/** @param {{Products?:string[]}} [init] */
constructor(init) { super(init); Object.assign(this, init) }
/** @type {string[]} */
Products;
}
export class CouponCurrencyOptions extends StripeEntity_1 {
/** @param {{AmountOff?:number}} [init] */
constructor(init) { super(init); Object.assign(this, init) }
/** @type {number} */
AmountOff;
}
export class Coupon extends StripeEntity_1 {
/** @param {{Id?:string,Object?:string,AmountOff?:number,AppliesTo?:CouponAppliesTo,Created?:string,Currency?:string,CurrencyOptions?:{ [index:string]: CouponCurrencyOptions; },Deleted?:boolean,Duration?:string,DurationInMonths?:number,Livemode?:boolean,MaxRedemptions?:number,Metadata?:{ [index:string]: string; },Name?:string,PercentOff?:number,RedeemBy?:string,TimesRedeemed?:number,Valid?:boolean}} [init] */
constructor(init) { super(init); Object.assign(this, init) }
/** @type {string} */
Id;
/** @type {string} */
Object;
/** @type {?number} */
AmountOff;
/** @type {CouponAppliesTo} */
AppliesTo;
/** @type {string} */
Created;
/** @type {string} */
Currency;
/** @type {{ [index:string]: CouponCurrencyOptions; }} */
CurrencyOptions;
/** @type {?boolean} */
Deleted;
/** @type {string} */
Duration;
/** @type {?number} */
DurationInMonths;
/** @type {boolean} */
Livemode;
/** @type {?number} */
MaxRedemptions;
/** @type {{ [index:string]: string; }} */
Metadata;
/** @type {string} */
Name;
/** @type {?number} */
PercentOff;
/** @type {?string} */
RedeemBy;
/** @type {number} */
TimesRedeemed;
/** @type {boolean} */
Valid;
}
export class Discount extends StripeEntity_1 {
/** @param {{Id?:string,Object?:string,CheckoutSession?:string,Coupon?:Coupon,Deleted?:boolean,End?:string,Invoice?:string,InvoiceItem?:string,Start?:string}} [init] */
constructor(init) { super(init); Object.assign(this, init) }
/** @type {string} */
Id;
/** @type {string} */
Object;
/** @type {string} */
CheckoutSession;
/** @type {Coupon} */
Coupon;
/** @type {?boolean} */
Deleted;
/** @type {?string} */
End;
/** @type {string} */
Invoice;
/** @type {string} */
InvoiceItem;
/** @type {?string} */
Start;
}
export class LineItemDiscount extends StripeEntity_1 {
/** @param {{Amount?:number,Discount?:Discount}} [init] */
constructor(init) { super(init); Object.assign(this, init) }
/** @type {number} */
Amount;
/** @type {Discount} */
Discount;
}
export class PriceCurrencyOptionsCustomUnitAmount extends StripeEntity_1 {
/** @param {{Maximum?:number,Minimum?:number,Preset?:number}} [init] */
constructor(init) { super(init); Object.assign(this, init) }
/** @type {?number} */
Maximum;
/** @type {?number} */
Minimum;
/** @type {?number} */
Preset;
}
export class PriceCurrencyOptionsTier extends StripeEntity_1 {
/** @param {{FlatAmount?:number,FlatAmountDecimal?:number,UnitAmount?:number,UnitAmountDecimal?:number,UpTo?:number}} [init] */
constructor(init) { super(init); Object.assign(this, init) }
/** @type {?number} */
FlatAmount;
/** @type {?number} */
FlatAmountDecimal;
/** @type {?number} */
UnitAmount;
/** @type {?number} */
UnitAmountDecimal;
/** @type {?number} */
UpTo;
}
export class PriceCurrencyOptions extends StripeEntity_1 {
/** @param {{CustomUnitAmount?:PriceCurrencyOptionsCustomUnitAmount,TaxBehavior?:string,Tiers?:PriceCurrencyOptionsTier[],UnitAmount?:number,UnitAmountDecimal?:number}} [init] */
constructor(init) { super(init); Object.assign(this, init) }
/** @type {PriceCurrencyOptionsCustomUnitAmount} */
CustomUnitAmount;
/** @type {string} */
TaxBehavior;
/** @type {PriceCurrencyOptionsTier[]} */
Tiers;
/** @type {?number} */
UnitAmount;
/** @type {?number} */
UnitAmountDecimal;
}
export class PriceCustomUnitAmount extends StripeEntity_1 {
/** @param {{Maximum?:number,Minimum?:number,Preset?:number}} [init] */
constructor(init) { super(init); Object.assign(this, init) }
/** @type {?number} */
Maximum;
/** @type {?number} */
Minimum;
/** @type {?number} */
Preset;
}
export class PriceRecurring extends StripeEntity_1 {
/** @param {{AggregateUsage?:string,Interval?:string,IntervalCount?:number,TrialPeriodDays?:number,UsageType?:string}} [init] */
constructor(init) { super(init); Object.assign(this, init) }
/** @type {string} */
AggregateUsage;
/** @type {string} */
Interval;
/** @type {number} */
IntervalCount;
/** @type {?number} */
TrialPeriodDays;
/** @type {string} */
UsageType;
}
export class PriceTier extends StripeEntity_1 {
/** @param {{FlatAmount?:number,FlatAmountDecimal?:number,UnitAmount?:number,UnitAmountDecimal?:number,UpTo?:number}} [init] */
constructor(init) { super(init); Object.assign(this, init) }
/** @type {?number} */
FlatAmount;
/** @type {?number} */
FlatAmountDecimal;
/** @type {?number} */
UnitAmount;
/** @type {?number} */
UnitAmountDecimal;
/** @type {?number} */
UpTo;
}
export class PriceTransformQuantity extends StripeEntity_1 {
/** @param {{DivideBy?:number,Round?:string}} [init] */
constructor(init) { super(init); Object.assign(this, init) }
/** @type {number} */
DivideBy;
/** @type {string} */
Round;
}
export class Price extends StripeEntity_1 {
/** @param {{Id?:string,Object?:string,Active?:boolean,BillingScheme?:string,Created?:string,Currency?:string,CurrencyOptions?:{ [index:string]: PriceCurrencyOptions; },CustomUnitAmount?:PriceCustomUnitAmount,Deleted?:boolean,Livemode?:boolean,LookupKey?:string,Metadata?:{ [index:string]: string; },Nickname?:string,Recurring?:PriceRecurring,TaxBehavior?:string,Tiers?:PriceTier[],TiersMode?:string,TransformQuantity?:PriceTransformQuantity,Type?:string,UnitAmount?:number,UnitAmountDecimal?:number}} [init] */
constructor(init) { super(init); Object.assign(this, init) }
/** @type {string} */
Id;
/** @type {string} */
Object;
/** @type {boolean} */
Active;
/** @type {string} */
BillingScheme;
/** @type {string} */
Created;
/** @type {string} */
Currency;
/** @type {{ [index:string]: PriceCurrencyOptions; }} */
CurrencyOptions;
/** @type {PriceCustomUnitAmount} */
CustomUnitAmount;
/** @type {?boolean} */
Deleted;
/** @type {boolean} */
Livemode;
/** @type {string} */
LookupKey;
/** @type {{ [index:string]: string; }} */
Metadata;
/** @type {string} */
Nickname;
/** @type {PriceRecurring} */
Recurring;
/** @type {string} */
TaxBehavior;
/** @type {PriceTier[]} */
Tiers;
/** @type {string} */
TiersMode;
/** @type {PriceTransformQuantity} */
TransformQuantity;
/** @type {string} */
Type;
/** @type {?number} */
UnitAmount;
/** @type {?number} */
UnitAmountDecimal;
}
export class TaxRate extends StripeEntity_1 {
/** @param {{Id?:string,Object?:string,Active?:boolean,Country?:string,Created?:string,Description?:string,DisplayName?:string,Inclusive?:boolean,Jurisdiction?:string,Livemode?:boolean,Metadata?:{ [index:string]: string; },Percentage?:number,State?:string,TaxType?:string}} [init] */
constructor(init) { super(init); Object.assign(this, init) }
/** @type {string} */
Id;
/** @type {string} */
Object;
/** @type {boolean} */
Active;
/** @type {string} */
Country;
/** @type {string} */
Created;
/** @type {string} */
Description;
/** @type {string} */
DisplayName;
/** @type {boolean} */
Inclusive;
/** @type {string} */
Jurisdiction;
/** @type {boolean} */
Livemode;
/** @type {{ [index:string]: string; }} */
Metadata;
/** @type {number} */
Percentage;
/** @type {string} */
State;
/** @type {string} */
TaxType;
}
export class LineItemTax extends StripeEntity_1 {
/** @param {{Amount?:number,Rate?:TaxRate}} [init] */
constructor(init) { super(init); Object.assign(this, init) }
/** @type {number} */
Amount;
/** @type {TaxRate} */
Rate;
}
export class LineItem extends StripeEntity_1 {
/** @param {{Id?:string,Object?:string,AmountDiscount?:number,AmountSubtotal?:number,AmountTax?:number,AmountTotal?:number,Currency?:string,Deleted?:boolean,Description?:string,Discounts?:LineItemDiscount[],Price?:Price,Quantity?:number,Taxes?:LineItemTax[]}} [init] */
constructor(init) { super(init); Object.assign(this, init) }
/** @type {string} */
Id;
/** @type {string} */
Object;
/** @type {number} */
AmountDiscount;
/** @type {number} */
AmountSubtotal;
/** @type {number} */
AmountTax;
/** @type {number} */
AmountTotal;
/** @type {string} */
Currency;
/** @type {?boolean} */
Deleted;
/** @type {string} */
Description;
/** @type {LineItemDiscount[]} */
Discounts;
/** @type {Price} */
Price;
/** @type {?number} */
Quantity;
/** @type {LineItemTax[]} */
Taxes;
}
export class SessionPaymentMethodOptionsAcssDebitMandateOptions extends StripeEntity_1 {
/** @param {{CustomMandateUrl?:string,DefaultFor?:string[],IntervalDescription?:string,PaymentSchedule?:string,TransactionType?:string}} [init] */
constructor(init) { super(init); Object.assign(this, init) }
/** @type {string} */
CustomMandateUrl;
/** @type {string[]} */
DefaultFor;
/** @type {string} */
IntervalDescription;
/** @type {string} */
PaymentSchedule;
/** @type {string} */
TransactionType;
}
export class SessionPaymentMethodOptionsAcssDebit extends StripeEntity_1 {
/** @param {{Currency?:string,MandateOptions?:SessionPaymentMethodOptionsAcssDebitMandateOptions,SetupFutureUsage?:string,VerificationMethod?:string}} [init] */
constructor(init) { super(init); Object.assign(this, init) }
/** @type {string} */
Currency;
/** @type {SessionPaymentMethodOptionsAcssDebitMandateOptions} */
MandateOptions;
/** @type {string} */
SetupFutureUsage;
/** @type {string} */
VerificationMethod;
}
export class SessionPaymentMethodOptionsAffirm extends StripeEntity_1 {
/** @param {{SetupFutureUsage?:string}} [init] */
constructor(init) { super(init); Object.assign(this, init) }
/** @type {string} */
SetupFutureUsage;
}
export class SessionPaymentMethodOptionsAfterpayClearpay extends StripeEntity_1 {
/** @param {{SetupFutureUsage?:string}} [init] */
constructor(init) { super(init); Object.assign(this, init) }
/** @type {string} */
SetupFutureUsage;
}
export class SessionPaymentMethodOptionsAlipay extends StripeEntity_1 {
/** @param {{SetupFutureUsage?:string}} [init] */
constructor(init) { super(init); Object.assign(this, init) }
/** @type {string} */
SetupFutureUsage;
}
export class SessionPaymentMethodOptionsAuBecsDebit extends StripeEntity_1 {
/** @param {{SetupFutureUsage?:string}} [init] */
constructor(init) { super(init); Object.assign(this, init) }
/** @type {string} */
SetupFutureUsage;
}
export class SessionPaymentMethodOptionsBacsDebit extends StripeEntity_1 {
/** @param {{SetupFutureUsage?:string}} [init] */
constructor(init) { super(init); Object.assign(this, init) }
/** @type {string} */
SetupFutureUsage;
}
export class SessionPaymentMethodOptionsBancontact extends StripeEntity_1 {
/** @param {{SetupFutureUsage?:string}} [init] */
constructor(init) { super(init); Object.assign(this, init) }
/** @type {string} */
SetupFutureUsage;
}
export class SessionPaymentMethodOptionsBoleto extends StripeEntity_1 {
/** @param {{ExpiresAfterDays?:number,SetupFutureUsage?:string}} [init] */
constructor(init) { super(init); Object.assign(this, init) }
/** @type {number} */
ExpiresAfterDays;
/** @type {string} */
SetupFutureUsage;
}
export class SessionPaymentMethodOptionsCardInstallments extends StripeEntity_1 {
/** @param {{Enabled?:boolean}} [init] */
constructor(init) { super(init); Object.assign(this, init) }
/** @type {boolean} */
Enabled;
}
export class SessionPaymentMethodOptionsCard extends StripeEntity_1 {
/** @param {{Installments?:SessionPaymentMethodOptionsCardInstallments,SetupFutureUsage?:string,StatementDescriptorSuffixKana?:string,StatementDescriptorSuffixKanji?:string}} [init] */
constructor(init) { super(init); Object.assign(this, init) }
/** @type {SessionPaymentMethodOptionsCardInstallments} */
Installments;
/** @type {string} */
SetupFutureUsage;
/** @type {string} */
StatementDescriptorSuffixKana;
/** @type {string} */
StatementDescriptorSuffixKanji;
}
export class SessionPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer extends StripeEntity_1 {
/** @param {{Country?:string}} [init] */
constructor(init) { super(init); Object.assign(this, init) }
/** @type {string} */
Country;
}
export class SessionPaymentMethodOptionsCustomerBalanceBankTransfer extends StripeEntity_1 {
/** @param {{EuBankTransfer?:SessionPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer,RequestedAddressTypes?:string[],Type?:string}} [init] */
constructor(init) { super(init); Object.assign(this, init) }
/** @type {SessionPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer} */
EuBankTransfer;
/** @type {string[]} */
RequestedAddressTypes;
/** @type {string} */
Type;
}
export class SessionPaymentMethodOptionsCustomerBalance extends StripeEntity_1 {
/** @param {{BankTransfer?:SessionPaymentMethodOptionsCustomerBalanceBankTransfer,FundingType?:string,SetupFutureUsage?:string}} [init] */
constructor(init) { super(init); Object.assign(this, init) }
/** @type {SessionPaymentMethodOptionsCustomerBalanceBankTransfer} */
BankTransfer;
/** @type {string} */
FundingType;
/** @type {string} */
SetupFutureUsage;
}
export class SessionPaymentMethodOptionsEps extends StripeEntity_1 {
/** @param {{SetupFutureUsage?:string}} [init] */
constructor(init) { super(init); Object.assign(this, init) }
/** @type {string} */
SetupFutureUsage;
}
export class SessionPaymentMethodOptionsFpx extends StripeEntity_1 {
/** @param {{SetupFutureUsage?:string}} [init] */
constructor(init) { super(init); Object.assign(this, init) }
/** @type {string} */
SetupFutureUsage;
}
export class SessionPaymentMethodOptionsGiropay extends StripeEntity_1 {
/** @param {{SetupFutureUsage?:string}} [init] */
constructor(init) { super(init); Object.assign(this, init) }
/** @type {string} */
SetupFutureUsage;
}
export class SessionPaymentMethodOptionsGrabpay extends StripeEntity_1 {
/** @param {{SetupFutureUsage?:string}} [init] */
constructor(init) { super(init); Object.assign(this, init) }
/** @type {string} */
SetupFutureUsage;
}
export class SessionPaymentMethodOptionsIdeal extends StripeEntity_1 {
/** @param {{SetupFutureUsage?:string}} [init] */
constructor(init) { super(init); Object.assign(this, init) }
/** @type {string} */
SetupFutureUsage;
}
export class SessionPaymentMethodOptionsKlarna extends StripeEntity_1 {
/** @param {{SetupFutureUsage?:string}} [init] */
constructor(init) { super(init); Object.assign(this, init) }
/** @type {string} */
SetupFutureUsage;
}
export class SessionPaymentMethodOptionsKonbini extends StripeEntity_1 {
/** @param {{ExpiresAfterDays?:number,SetupFutureUsage?:string}} [init] */
constructor(init) { super(init); Object.assign(this, init) }
/** @type {?number} */
ExpiresAfterDays;
/** @type {string} */
SetupFutureUsage;
}
export class SessionPaymentMethodOptionsOxxo extends StripeEntity_1 {
/** @param {{ExpiresAfterDays?:number,SetupFutureUsage?:string}} [init] */
constructor(init) { super(init); Object.assign(this, init) }
/** @type {number} */
ExpiresAfterDays;
/** @type {string} */
SetupFutureUsage;
}
export class SessionPaymentMethodOptionsP24 extends StripeEntity_1 {
/** @param {{SetupFutureUsage?:string}} [init] */
constructor(init) { super(init); Object.assign(this, init) }
/** @type {string} */
SetupFutureUsage;
}
export class SessionPaymentMethodOptionsPaynow extends StripeEntity_1 {
/** @param {{SetupFutureUsage?:string}} [init] */
constructor(init) { super(init); Object.assign(this, init) }
/** @type {string} */
SetupFutureUsage;
}
export class SessionPaymentMethodOptionsPix extends StripeEntity_1 {
/** @param {{ExpiresAfterSeconds?:number}} [init] */
constructor(init) { super(init); Object.assign(this, init) }
/** @type {?number} */
ExpiresAfterSeconds;
}
export class SessionPaymentMethodOptionsSepaDebit extends StripeEntity_1 {
/** @param {{SetupFutureUsage?:string}} [init] */
constructor(init) { super(init); Object.assign(this, init) }
/** @type {string} */
SetupFutureUsage;
}
export class SessionPaymentMethodOptionsSofort extends StripeEntity_1 {
/** @param {{SetupFutureUsage?:string}} [init] */
constructor(init) { super(init); Object.assign(this, init) }
/** @type {string} */
SetupFutureUsage;
}
export class SessionPaymentMethodOptionsUsBankAccountFinancialConnections extends StripeEntity_1 {
/** @param {{Permissions?:string[],ReturnUrl?:string}} [init] */
constructor(init) { super(init); Object.assign(this, init) }
/** @type {string[]} */
Permissions;
/** @type {string} */
ReturnUrl;
}
export class SessionPaymentMethodOptionsUsBankAccount extends StripeEntity_1 {
/** @param {{FinancialConnections?:SessionPaymentMethodOptionsUsBankAccountFinancialConnections,SetupFutureUsage?:string,VerificationMethod?:string}} [init] */
constructor(init) { super(init); Object.assign(this, init) }
/** @type {SessionPaymentMethodOptionsUsBankAccountFinancialConnections} */
FinancialConnections;
/** @type {string} */
SetupFutureUsage;
/** @type {string} */
VerificationMethod;
}
export class SessionPaymentMethodOptions extends StripeEntity_1 {
/** @param {{AcssDebit?:SessionPaymentMethodOptionsAcssDebit,Affirm?:SessionPaymentMethodOptionsAffirm,AfterpayClearpay?:SessionPaymentMethodOptionsAfterpayClearpay,Alipay?:SessionPaymentMethodOptionsAlipay,AuBecsDebit?:SessionPaymentMethodOptionsAuBecsDebit,BacsDebit?:SessionPaymentMethodOptionsBacsDebit,Bancontact?:SessionPaymentMethodOptionsBancontact,Boleto?:SessionPaymentMethodOptionsBoleto,Card?:SessionPaymentMethodOptionsCard,CustomerBalance?:SessionPaymentMethodOptionsCustomerBalance,Eps?:SessionPaymentMethodOptionsEps,Fpx?:SessionPaymentMethodOptionsFpx,Giropay?:SessionPaymentMethodOptionsGiropay,Grabpay?:SessionPaymentMethodOptionsGrabpay,Ideal?:SessionPaymentMethodOptionsIdeal,Klarna?:SessionPaymentMethodOptionsKlarna,Konbini?:SessionPaymentMethodOptionsKonbini,Oxxo?:SessionPaymentMethodOptionsOxxo,P24?:SessionPaymentMethodOptionsP24,Paynow?:SessionPaymentMethodOptionsPaynow,Pix?:SessionPaymentMethodOptionsPix,SepaDebit?:SessionPaymentMethodOptionsSepaDebit,Sofort?:SessionPaymentMethodOptionsSofort,UsBankAccount?:SessionPaymentMethodOptionsUsBankAccount}} [init] */
constructor(init) { super(init); Object.assign(this, init) }
/** @type {SessionPaymentMethodOptionsAcssDebit} */
AcssDebit;
/** @type {SessionPaymentMethodOptionsAffirm} */
Affirm;
/** @type {SessionPaymentMethodOptionsAfterpayClearpay} */
AfterpayClearpay;
/** @type {SessionPaymentMethodOptionsAlipay} */
Alipay;
/** @type {SessionPaymentMethodOptionsAuBecsDebit} */
AuBecsDebit;
/** @type {SessionPaymentMethodOptionsBacsDebit} */
BacsDebit;
/** @type {SessionPaymentMethodOptionsBancontact} */
Bancontact;
/** @type {SessionPaymentMethodOptionsBoleto} */
Boleto;
/** @type {SessionPaymentMethodOptionsCard} */
Card;
/** @type {SessionPaymentMethodOptionsCustomerBalance} */
CustomerBalance;
/** @type {SessionPaymentMethodOptionsEps} */
Eps;
/** @type {SessionPaymentMethodOptionsFpx} */
Fpx;
/** @type {SessionPaymentMethodOptionsGiropay} */
Giropay;
/** @type {SessionPaymentMethodOptionsGrabpay} */
Grabpay;
/** @type {SessionPaymentMethodOptionsIdeal} */
Ideal;
/** @type {SessionPaymentMethodOptionsKlarna} */
Klarna;
/** @type {SessionPaymentMethodOptionsKonbini} */
Konbini;
/** @type {SessionPaymentMethodOptionsOxxo} */
Oxxo;
/** @type {SessionPaymentMethodOptionsP24} */
P24;
/** @type {SessionPaymentMethodOptionsPaynow} */
Paynow;
/** @type {SessionPaymentMethodOptionsPix} */
Pix;
/** @type {SessionPaymentMethodOptionsSepaDebit} */
SepaDebit;
/** @type {SessionPaymentMethodOptionsSofort} */
Sofort;
/** @type {SessionPaymentMethodOptionsUsBankAccount} */
UsBankAccount;
}
export class SessionPhoneNumberCollection extends StripeEntity_1 {
/** @param {{Enabled?:boolean}} [init] */
constructor(init) { super(init); Object.assign(this, init) }
/** @type {boolean} */
Enabled;
}
export class SessionShippingAddressCollection extends StripeEntity_1 {
/** @param {{AllowedCountries?:string[]}} [init] */
constructor(init) { super(init); Object.assign(this, init) }
/** @type {string[]} */
AllowedCountries;
}
export class SessionShippingCostTax extends StripeEntity_1 {
/** @param {{Amount?:number,Rate?:TaxRate}} [init] */
constructor(init) { super(init); Object.assign(this, init) }
/** @type {number} */
Amount;
/** @type {TaxRate} */
Rate;
}
export class SessionShippingCost extends StripeEntity_1 {
/** @param {{AmountSubtotal?:number,AmountTax?:number,AmountTotal?:number,Taxes?:SessionShippingCostTax[]}} [init] */
constructor(init) { super(init); Object.assign(this, init) }
/** @type {number} */
AmountSubtotal;
/** @type {number} */
AmountTax;
/** @type {number} */
AmountTotal;
/** @type {SessionShippingCostTax[]} */
Taxes;
}
export class SessionShippingDetails extends StripeEntity_1 {
/** @param {{Address?:Address,Carrier?:string,Name?:string,Phone?:string,TrackingNumber?:string}} [init] */
constructor(init) { super(init); Object.assign(this, init) }
/** @type {Address} */
Address;
/** @type {string} */
Carrier;
/** @type {string} */
Name;
/** @type {string} */
Phone;
/** @type {string} */
TrackingNumber;
}
export class SessionShippingOption extends StripeEntity_1 {
/** @param {{ShippingAmount?:number}} [init] */
constructor(init) { super(init); Object.assign(this, init) }
/** @type {number} */
ShippingAmount;
}
export class SessionTaxIdCollection extends StripeEntity_1 {
/** @param {{Enabled?:boolean}} [init] */
constructor(init) { super(init); Object.assign(this, init) }
/** @type {boolean} */
Enabled;
}
export class SessionTotalDetailsBreakdownDiscount extends StripeEntity_1 {
/** @param {{Amount?:number,Discount?:Discount}} [init] */
constructor(init) { super(init); Object.assign(this, init) }
/** @type {number} */
Amount;
/** @type {Discount} */
Discount;
}
export class SessionTotalDetailsBreakdownTax extends StripeEntity_1 {
/** @param {{Amount?:number,Rate?:TaxRate}} [init] */
constructor(init) { super(init); Object.assign(this, init) }
/** @type {number} */
Amount;
/** @type {TaxRate} */
Rate;
}
export class SessionTotalDetailsBreakdown extends StripeEntity_1 {
/** @param {{Discounts?:SessionTotalDetailsBreakdownDiscount[],Taxes?:SessionTotalDetailsBreakdownTax[]}} [init] */
constructor(init) { super(init); Object.assign(this, init) }
/** @type {SessionTotalDetailsBreakdownDiscount[]} */
Discounts;
/** @type {SessionTotalDetailsBreakdownTax[]} */
Taxes;
}
export class SessionTotalDetails extends StripeEntity_1 {
/** @param {{AmountDiscount?:number,AmountShipping?:number,AmountTax?:number,Breakdown?:SessionTotalDetailsBreakdown}} [init] */
constructor(init) { super(init); Object.assign(this, init) }
/** @type {number} */
AmountDiscount;
/** @type {?number} */
AmountShipping;
/** @type {number} */
AmountTax;
/** @type {SessionTotalDetailsBreakdown} */
Breakdown;
}
export class Session extends StripeEntity_1 {
/** @param {{Id?:string,Object?:string,AfterExpiration?:SessionAfterExpiration,AllowPromotionCodes?:boolean,AmountSubtotal?:number,AmountTotal?:number,AutomaticTax?:SessionAutomaticTax,BillingAddressCollection?:string,CancelUrl?:string,ClientReferenceId?:string,Consent?:SessionConsent,ConsentCollection?:SessionConsentCollection,Created?:string,Currency?:string,CustomFields?:SessionCustomField[],CustomText?:SessionCustomText,CustomerCreation?:string,CustomerDetails?:SessionCustomerDetails,CustomerEmail?:string,ExpiresAt?:string,InvoiceCreation?:SessionInvoiceCreation,LineItems?:StripeList<LineItem>,Livemode?:boolean,Locale?:string,Metadata?:{ [index:string]: string; },Mode?:string,PaymentMethodCollection?:string,PaymentMethodOptions?:SessionPaymentMethodOptions,PaymentMethodTypes?:string[],PaymentStatus?:string,PhoneNumberCollection?:SessionPhoneNumberCollection,RecoveredFrom?:string,ShippingAddressCollection?:SessionShippingAddressCollection,ShippingCost?:SessionShippingCost,ShippingDetails?:SessionShippingDetails,ShippingOptions?:SessionShippingOption[],Status?:string,SubmitType?:string,SuccessUrl?:string,TaxIdCollection?:SessionTaxIdCollection,TotalDetails?:SessionTotalDetails,Url?:string}} [init] */
constructor(init) { super(init); Object.assign(this, init) }
/** @type {string} */
Id;
/** @type {string} */
Object;
/** @type {SessionAfterExpiration} */
AfterExpiration;
/** @type {?boolean} */
AllowPromotionCodes;
/** @type {?number} */
AmountSubtotal;
/** @type {?number} */
AmountTotal;
/** @type {SessionAutomaticTax} */
AutomaticTax;
/** @type {string} */
BillingAddressCollection;
/** @type {string} */
CancelUrl;
/** @type {string} */
ClientReferenceId;
/** @type {SessionConsent} */
Consent;
/** @type {SessionConsentCollection} */
ConsentCollection;
/** @type {string} */
Created;
/** @type {string} */
Currency;
/** @type {SessionCustomField[]} */
CustomFields;
/** @type {SessionCustomText} */
CustomText;
/** @type {string} */
CustomerCreation;
/** @type {SessionCustomerDetails} */
CustomerDetails;
/** @type {string} */
CustomerEmail;
/** @type {string} */
ExpiresAt;
/** @type {SessionInvoiceCreation} */
InvoiceCreation;
/** @type {StripeList<LineItem>} */
LineItems;
/** @type {boolean} */
Livemode;
/** @type {string} */
Locale;
/** @type {{ [index:string]: string; }} */
Metadata;
/** @type {string} */
Mode;
/** @type {string} */
PaymentMethodCollection;
/** @type {SessionPaymentMethodOptions} */
PaymentMethodOptions;
/** @type {string[]} */
PaymentMethodTypes;
/** @type {string} */
PaymentStatus;
/** @type {SessionPhoneNumberCollection} */
PhoneNumberCollection;
/** @type {string} */
RecoveredFrom;
/** @type {SessionShippingAddressCollection} */
ShippingAddressCollection;
/** @type {SessionShippingCost} */
ShippingCost;
/** @type {SessionShippingDetails} */
ShippingDetails;
/** @type {SessionShippingOption[]} */
ShippingOptions;
/** @type {string} */
Status;
/** @type {string} */
SubmitType;
/** @type {string} */
SuccessUrl;
/** @type {SessionTaxIdCollection} */
TaxIdCollection;
/** @type {SessionTotalDetails} */
TotalDetails;
/** @type {string} */
Url;
}
export class GetStripeSession {
/** @param {{Id?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
Id;
}
/** @typedef T {any} */
export class StripeList extends StripeEntity_1 {
constructor(init) { super(init); Object.assign(this, init) }
}
JavaScript GetStripeSession DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /stripe-session/{Id} HTTP/1.1
Host: duengageapi.uat.scadsoftware.com
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{"Id":"String"}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length
{Unable to show example output for type 'Session' using the custom 'other' filter}Exception has been thrown by the target of an invocation.