/* Options: Date: 2025-10-28 12:28:53 Version: 8.80 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://duengageapi.uat.scadsoftware.com //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: GetStripeSession.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:collection */ import 'package:servicestack/servicestack.dart'; import 'dart:collection'; abstract class StripeEntity implements IStripeEntity { StripeEntity(); StripeEntity.fromJson(Map json) : super(); fromMap(Map json) { return this; } Map toJson() => {}; getTypeName() => "StripeEntity"; TypeContext? context = _ctx; } abstract class StripeEntity1 extends StripeEntity { StripeEntity1(); StripeEntity1.fromJson(Map json) : super.fromJson(json); fromMap(Map json) { super.fromMap(json); return this; } Map toJson() => super.toJson(); getTypeName() => "StripeEntity<$T>"; TypeContext? context = _ctx; } class SessionAfterExpirationRecovery extends StripeEntity1 implements IConvertible { bool? AllowPromotionCodes; bool? Enabled; DateTime? ExpiresAt; String? Url; SessionAfterExpirationRecovery({this.AllowPromotionCodes,this.Enabled,this.ExpiresAt,this.Url}); SessionAfterExpirationRecovery.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); AllowPromotionCodes = json['AllowPromotionCodes']; Enabled = json['Enabled']; ExpiresAt = JsonConverters.fromJson(json['ExpiresAt'],'DateTime',context!); Url = json['Url']; return this; } Map toJson() => super.toJson()..addAll({ 'AllowPromotionCodes': AllowPromotionCodes, 'Enabled': Enabled, 'ExpiresAt': JsonConverters.toJson(ExpiresAt,'DateTime',context!), 'Url': Url }); getTypeName() => "SessionAfterExpirationRecovery"; TypeContext? context = _ctx; } class SessionAfterExpiration extends StripeEntity1 implements IConvertible { SessionAfterExpirationRecovery? Recovery; SessionAfterExpiration({this.Recovery}); SessionAfterExpiration.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); Recovery = JsonConverters.fromJson(json['Recovery'],'SessionAfterExpirationRecovery',context!); return this; } Map toJson() => super.toJson()..addAll({ 'Recovery': JsonConverters.toJson(Recovery,'SessionAfterExpirationRecovery',context!) }); getTypeName() => "SessionAfterExpiration"; TypeContext? context = _ctx; } class SessionAutomaticTax extends StripeEntity1 implements IConvertible { bool? Enabled; String? Status; SessionAutomaticTax({this.Enabled,this.Status}); SessionAutomaticTax.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); Enabled = json['Enabled']; Status = json['Status']; return this; } Map toJson() => super.toJson()..addAll({ 'Enabled': Enabled, 'Status': Status }); getTypeName() => "SessionAutomaticTax"; TypeContext? context = _ctx; } class SessionConsent extends StripeEntity1 implements IConvertible { String? Promotions; String? TermsOfService; SessionConsent({this.Promotions,this.TermsOfService}); SessionConsent.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); Promotions = json['Promotions']; TermsOfService = json['TermsOfService']; return this; } Map toJson() => super.toJson()..addAll({ 'Promotions': Promotions, 'TermsOfService': TermsOfService }); getTypeName() => "SessionConsent"; TypeContext? context = _ctx; } class SessionConsentCollection extends StripeEntity1 implements IConvertible { String? Promotions; String? TermsOfService; SessionConsentCollection({this.Promotions,this.TermsOfService}); SessionConsentCollection.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); Promotions = json['Promotions']; TermsOfService = json['TermsOfService']; return this; } Map toJson() => super.toJson()..addAll({ 'Promotions': Promotions, 'TermsOfService': TermsOfService }); getTypeName() => "SessionConsentCollection"; TypeContext? context = _ctx; } class SessionCustomFieldDropdownOption extends StripeEntity1 implements IConvertible { String? Label; String? Value; SessionCustomFieldDropdownOption({this.Label,this.Value}); SessionCustomFieldDropdownOption.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); Label = json['Label']; Value = json['Value']; return this; } Map toJson() => super.toJson()..addAll({ 'Label': Label, 'Value': Value }); getTypeName() => "SessionCustomFieldDropdownOption"; TypeContext? context = _ctx; } class SessionCustomFieldDropdown extends StripeEntity1 implements IConvertible { List? Options; String? Value; SessionCustomFieldDropdown({this.Options,this.Value}); SessionCustomFieldDropdown.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); Options = JsonConverters.fromJson(json['Options'],'List',context!); Value = json['Value']; return this; } Map toJson() => super.toJson()..addAll({ 'Options': JsonConverters.toJson(Options,'List',context!), 'Value': Value }); getTypeName() => "SessionCustomFieldDropdown"; TypeContext? context = _ctx; } class SessionCustomFieldLabel extends StripeEntity1 implements IConvertible { String? Custom; String? Type; SessionCustomFieldLabel({this.Custom,this.Type}); SessionCustomFieldLabel.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); Custom = json['Custom']; Type = json['Type']; return this; } Map toJson() => super.toJson()..addAll({ 'Custom': Custom, 'Type': Type }); getTypeName() => "SessionCustomFieldLabel"; TypeContext? context = _ctx; } class SessionCustomFieldNumeric extends StripeEntity1 implements IConvertible { String? Value; SessionCustomFieldNumeric({this.Value}); SessionCustomFieldNumeric.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); Value = json['Value']; return this; } Map toJson() => super.toJson()..addAll({ 'Value': Value }); getTypeName() => "SessionCustomFieldNumeric"; TypeContext? context = _ctx; } class SessionCustomFieldText extends StripeEntity1 implements IConvertible { String? Value; SessionCustomFieldText({this.Value}); SessionCustomFieldText.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); Value = json['Value']; return this; } Map toJson() => super.toJson()..addAll({ 'Value': Value }); getTypeName() => "SessionCustomFieldText"; TypeContext? context = _ctx; } class SessionCustomField extends StripeEntity1 implements IConvertible { SessionCustomFieldDropdown? Dropdown; String? Key; SessionCustomFieldLabel? Label; SessionCustomFieldNumeric? Numeric; bool? Optional; SessionCustomFieldText? Text; String? Type; SessionCustomField({this.Dropdown,this.Key,this.Label,this.Numeric,this.Optional,this.Text,this.Type}); SessionCustomField.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); Dropdown = JsonConverters.fromJson(json['Dropdown'],'SessionCustomFieldDropdown',context!); Key = json['Key']; Label = JsonConverters.fromJson(json['Label'],'SessionCustomFieldLabel',context!); Numeric = JsonConverters.fromJson(json['Numeric'],'SessionCustomFieldNumeric',context!); Optional = json['Optional']; Text = JsonConverters.fromJson(json['Text'],'SessionCustomFieldText',context!); Type = json['Type']; return this; } Map toJson() => super.toJson()..addAll({ 'Dropdown': JsonConverters.toJson(Dropdown,'SessionCustomFieldDropdown',context!), 'Key': Key, 'Label': JsonConverters.toJson(Label,'SessionCustomFieldLabel',context!), 'Numeric': JsonConverters.toJson(Numeric,'SessionCustomFieldNumeric',context!), 'Optional': Optional, 'Text': JsonConverters.toJson(Text,'SessionCustomFieldText',context!), 'Type': Type }); getTypeName() => "SessionCustomField"; TypeContext? context = _ctx; } class SessionCustomTextShippingAddress extends StripeEntity1 implements IConvertible { String? Message; SessionCustomTextShippingAddress({this.Message}); SessionCustomTextShippingAddress.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); Message = json['Message']; return this; } Map toJson() => super.toJson()..addAll({ 'Message': Message }); getTypeName() => "SessionCustomTextShippingAddress"; TypeContext? context = _ctx; } class SessionCustomTextSubmit extends StripeEntity1 implements IConvertible { String? Message; SessionCustomTextSubmit({this.Message}); SessionCustomTextSubmit.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); Message = json['Message']; return this; } Map toJson() => super.toJson()..addAll({ 'Message': Message }); getTypeName() => "SessionCustomTextSubmit"; TypeContext? context = _ctx; } class SessionCustomText extends StripeEntity1 implements IConvertible { SessionCustomTextShippingAddress? ShippingAddress; SessionCustomTextSubmit? Submit; SessionCustomText({this.ShippingAddress,this.Submit}); SessionCustomText.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); ShippingAddress = JsonConverters.fromJson(json['ShippingAddress'],'SessionCustomTextShippingAddress',context!); Submit = JsonConverters.fromJson(json['Submit'],'SessionCustomTextSubmit',context!); return this; } Map toJson() => super.toJson()..addAll({ 'ShippingAddress': JsonConverters.toJson(ShippingAddress,'SessionCustomTextShippingAddress',context!), 'Submit': JsonConverters.toJson(Submit,'SessionCustomTextSubmit',context!) }); getTypeName() => "SessionCustomText"; TypeContext? context = _ctx; } class Address extends StripeEntity1
implements IConvertible { String? City; String? Country; String? Line1; String? Line2; String? PostalCode; String? State; Address({this.City,this.Country,this.Line1,this.Line2,this.PostalCode,this.State}); Address.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); City = json['City']; Country = json['Country']; Line1 = json['Line1']; Line2 = json['Line2']; PostalCode = json['PostalCode']; State = json['State']; return this; } Map toJson() => super.toJson()..addAll({ 'City': City, 'Country': Country, 'Line1': Line1, 'Line2': Line2, 'PostalCode': PostalCode, 'State': State }); getTypeName() => "Address"; TypeContext? context = _ctx; } class SessionCustomerDetailsTaxId extends StripeEntity1 implements IConvertible { String? Type; String? Value; SessionCustomerDetailsTaxId({this.Type,this.Value}); SessionCustomerDetailsTaxId.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); Type = json['Type']; Value = json['Value']; return this; } Map toJson() => super.toJson()..addAll({ 'Type': Type, 'Value': Value }); getTypeName() => "SessionCustomerDetailsTaxId"; TypeContext? context = _ctx; } class SessionCustomerDetails extends StripeEntity1 implements IConvertible { Address? Address; String? Email; String? Name; String? Phone; String? TaxExempt; List? TaxIds; SessionCustomerDetails({this.Address,this.Email,this.Name,this.Phone,this.TaxExempt,this.TaxIds}); SessionCustomerDetails.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); Address = JsonConverters.fromJson(json['Address'],'Address',context!); Email = json['Email']; Name = json['Name']; Phone = json['Phone']; TaxExempt = json['TaxExempt']; TaxIds = JsonConverters.fromJson(json['TaxIds'],'List',context!); return this; } Map toJson() => super.toJson()..addAll({ 'Address': JsonConverters.toJson(Address,'Address',context!), 'Email': Email, 'Name': Name, 'Phone': Phone, 'TaxExempt': TaxExempt, 'TaxIds': JsonConverters.toJson(TaxIds,'List',context!) }); getTypeName() => "SessionCustomerDetails"; TypeContext? context = _ctx; } class SessionInvoiceCreationInvoiceDataCustomField extends StripeEntity1 implements IConvertible { String? Name; String? Value; SessionInvoiceCreationInvoiceDataCustomField({this.Name,this.Value}); SessionInvoiceCreationInvoiceDataCustomField.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); Name = json['Name']; Value = json['Value']; return this; } Map toJson() => super.toJson()..addAll({ 'Name': Name, 'Value': Value }); getTypeName() => "SessionInvoiceCreationInvoiceDataCustomField"; TypeContext? context = _ctx; } class SessionInvoiceCreationInvoiceDataRenderingOptions extends StripeEntity1 implements IConvertible { String? AmountTaxDisplay; SessionInvoiceCreationInvoiceDataRenderingOptions({this.AmountTaxDisplay}); SessionInvoiceCreationInvoiceDataRenderingOptions.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); AmountTaxDisplay = json['AmountTaxDisplay']; return this; } Map toJson() => super.toJson()..addAll({ 'AmountTaxDisplay': AmountTaxDisplay }); getTypeName() => "SessionInvoiceCreationInvoiceDataRenderingOptions"; TypeContext? context = _ctx; } class SessionInvoiceCreationInvoiceData extends StripeEntity1 implements IHasMetadata, IConvertible { List? CustomFields; String? Description; String? Footer; Map? Metadata; SessionInvoiceCreationInvoiceDataRenderingOptions? RenderingOptions; SessionInvoiceCreationInvoiceData({this.CustomFields,this.Description,this.Footer,this.Metadata,this.RenderingOptions}); SessionInvoiceCreationInvoiceData.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); CustomFields = JsonConverters.fromJson(json['CustomFields'],'List',context!); Description = json['Description']; Footer = json['Footer']; Metadata = JsonConverters.toStringMap(json['Metadata']); RenderingOptions = JsonConverters.fromJson(json['RenderingOptions'],'SessionInvoiceCreationInvoiceDataRenderingOptions',context!); return this; } Map toJson() => super.toJson()..addAll({ 'CustomFields': JsonConverters.toJson(CustomFields,'List',context!), 'Description': Description, 'Footer': Footer, 'Metadata': Metadata, 'RenderingOptions': JsonConverters.toJson(RenderingOptions,'SessionInvoiceCreationInvoiceDataRenderingOptions',context!) }); getTypeName() => "SessionInvoiceCreationInvoiceData"; TypeContext? context = _ctx; } class SessionInvoiceCreation extends StripeEntity1 implements IConvertible { bool? Enabled; SessionInvoiceCreationInvoiceData? InvoiceData; SessionInvoiceCreation({this.Enabled,this.InvoiceData}); SessionInvoiceCreation.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); Enabled = json['Enabled']; InvoiceData = JsonConverters.fromJson(json['InvoiceData'],'SessionInvoiceCreationInvoiceData',context!); return this; } Map toJson() => super.toJson()..addAll({ 'Enabled': Enabled, 'InvoiceData': JsonConverters.toJson(InvoiceData,'SessionInvoiceCreationInvoiceData',context!) }); getTypeName() => "SessionInvoiceCreation"; TypeContext? context = _ctx; } class StripeList extends StripeEntity1> implements IHasObject, IConvertible { StripeList(); StripeList.fromJson(Map json) : super.fromJson(json); fromMap(Map json) { super.fromMap(json); return this; } Map toJson() => super.toJson(); getTypeName() => "StripeList<$T>"; TypeContext? context = _ctx; } class CouponAppliesTo extends StripeEntity1 implements IConvertible { List? Products; CouponAppliesTo({this.Products}); CouponAppliesTo.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); Products = JsonConverters.fromJson(json['Products'],'List',context!); return this; } Map toJson() => super.toJson()..addAll({ 'Products': JsonConverters.toJson(Products,'List',context!) }); getTypeName() => "CouponAppliesTo"; TypeContext? context = _ctx; } class CouponCurrencyOptions extends StripeEntity1 implements IConvertible { int? AmountOff; CouponCurrencyOptions({this.AmountOff}); CouponCurrencyOptions.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); AmountOff = json['AmountOff']; return this; } Map toJson() => super.toJson()..addAll({ 'AmountOff': AmountOff }); getTypeName() => "CouponCurrencyOptions"; TypeContext? context = _ctx; } class Coupon extends StripeEntity1 implements IHasId, IHasMetadata, IHasObject, IConvertible { String? Id; String? Object; int? AmountOff; CouponAppliesTo? AppliesTo; DateTime? Created; String? Currency; Map? CurrencyOptions; bool? Deleted; String? Duration; int? DurationInMonths; bool? Livemode; int? MaxRedemptions; Map? Metadata; String? Name; double? PercentOff; DateTime? RedeemBy; int? TimesRedeemed; bool? Valid; Coupon({this.Id,this.Object,this.AmountOff,this.AppliesTo,this.Created,this.Currency,this.CurrencyOptions,this.Deleted,this.Duration,this.DurationInMonths,this.Livemode,this.MaxRedemptions,this.Metadata,this.Name,this.PercentOff,this.RedeemBy,this.TimesRedeemed,this.Valid}); Coupon.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); Id = json['Id']; Object = json['Object']; AmountOff = json['AmountOff']; AppliesTo = JsonConverters.fromJson(json['AppliesTo'],'CouponAppliesTo',context!); Created = JsonConverters.fromJson(json['Created'],'DateTime',context!); Currency = json['Currency']; CurrencyOptions = JsonConverters.fromJson(json['CurrencyOptions'],'Map',context!); Deleted = json['Deleted']; Duration = json['Duration']; DurationInMonths = json['DurationInMonths']; Livemode = json['Livemode']; MaxRedemptions = json['MaxRedemptions']; Metadata = JsonConverters.toStringMap(json['Metadata']); Name = json['Name']; PercentOff = JsonConverters.toDouble(json['PercentOff']); RedeemBy = JsonConverters.fromJson(json['RedeemBy'],'DateTime',context!); TimesRedeemed = json['TimesRedeemed']; Valid = json['Valid']; return this; } Map toJson() => super.toJson()..addAll({ 'Id': Id, 'Object': Object, 'AmountOff': AmountOff, 'AppliesTo': JsonConverters.toJson(AppliesTo,'CouponAppliesTo',context!), 'Created': JsonConverters.toJson(Created,'DateTime',context!), 'Currency': Currency, 'CurrencyOptions': JsonConverters.toJson(CurrencyOptions,'Map',context!), 'Deleted': Deleted, 'Duration': Duration, 'DurationInMonths': DurationInMonths, 'Livemode': Livemode, 'MaxRedemptions': MaxRedemptions, 'Metadata': Metadata, 'Name': Name, 'PercentOff': PercentOff, 'RedeemBy': JsonConverters.toJson(RedeemBy,'DateTime',context!), 'TimesRedeemed': TimesRedeemed, 'Valid': Valid }); getTypeName() => "Coupon"; TypeContext? context = _ctx; } class Discount extends StripeEntity1 implements IHasId, IHasObject, IConvertible { String? Id; String? Object; String? CheckoutSession; Coupon? Coupon; bool? Deleted; DateTime? End; String? Invoice; String? InvoiceItem; DateTime? Start; Discount({this.Id,this.Object,this.CheckoutSession,this.Coupon,this.Deleted,this.End,this.Invoice,this.InvoiceItem,this.Start}); Discount.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); Id = json['Id']; Object = json['Object']; CheckoutSession = json['CheckoutSession']; Coupon = JsonConverters.fromJson(json['Coupon'],'Coupon',context!); Deleted = json['Deleted']; End = JsonConverters.fromJson(json['End'],'DateTime',context!); Invoice = json['Invoice']; InvoiceItem = json['InvoiceItem']; Start = JsonConverters.fromJson(json['Start'],'DateTime',context!); return this; } Map toJson() => super.toJson()..addAll({ 'Id': Id, 'Object': Object, 'CheckoutSession': CheckoutSession, 'Coupon': JsonConverters.toJson(Coupon,'Coupon',context!), 'Deleted': Deleted, 'End': JsonConverters.toJson(End,'DateTime',context!), 'Invoice': Invoice, 'InvoiceItem': InvoiceItem, 'Start': JsonConverters.toJson(Start,'DateTime',context!) }); getTypeName() => "Discount"; TypeContext? context = _ctx; } class LineItemDiscount extends StripeEntity1 implements IConvertible { int? Amount; Discount? Discount; LineItemDiscount({this.Amount,this.Discount}); LineItemDiscount.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); Amount = json['Amount']; Discount = JsonConverters.fromJson(json['Discount'],'Discount',context!); return this; } Map toJson() => super.toJson()..addAll({ 'Amount': Amount, 'Discount': JsonConverters.toJson(Discount,'Discount',context!) }); getTypeName() => "LineItemDiscount"; TypeContext? context = _ctx; } class PriceCurrencyOptionsCustomUnitAmount extends StripeEntity1 implements IConvertible { int? Maximum; int? Minimum; int? Preset; PriceCurrencyOptionsCustomUnitAmount({this.Maximum,this.Minimum,this.Preset}); PriceCurrencyOptionsCustomUnitAmount.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); Maximum = json['Maximum']; Minimum = json['Minimum']; Preset = json['Preset']; return this; } Map toJson() => super.toJson()..addAll({ 'Maximum': Maximum, 'Minimum': Minimum, 'Preset': Preset }); getTypeName() => "PriceCurrencyOptionsCustomUnitAmount"; TypeContext? context = _ctx; } class PriceCurrencyOptionsTier extends StripeEntity1 implements IConvertible { int? FlatAmount; double? FlatAmountDecimal; int? UnitAmount; double? UnitAmountDecimal; int? UpTo; PriceCurrencyOptionsTier({this.FlatAmount,this.FlatAmountDecimal,this.UnitAmount,this.UnitAmountDecimal,this.UpTo}); PriceCurrencyOptionsTier.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); FlatAmount = json['FlatAmount']; FlatAmountDecimal = JsonConverters.toDouble(json['FlatAmountDecimal']); UnitAmount = json['UnitAmount']; UnitAmountDecimal = JsonConverters.toDouble(json['UnitAmountDecimal']); UpTo = json['UpTo']; return this; } Map toJson() => super.toJson()..addAll({ 'FlatAmount': FlatAmount, 'FlatAmountDecimal': FlatAmountDecimal, 'UnitAmount': UnitAmount, 'UnitAmountDecimal': UnitAmountDecimal, 'UpTo': UpTo }); getTypeName() => "PriceCurrencyOptionsTier"; TypeContext? context = _ctx; } class PriceCurrencyOptions extends StripeEntity1 implements IConvertible { PriceCurrencyOptionsCustomUnitAmount? CustomUnitAmount; String? TaxBehavior; List? Tiers; int? UnitAmount; double? UnitAmountDecimal; PriceCurrencyOptions({this.CustomUnitAmount,this.TaxBehavior,this.Tiers,this.UnitAmount,this.UnitAmountDecimal}); PriceCurrencyOptions.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); CustomUnitAmount = JsonConverters.fromJson(json['CustomUnitAmount'],'PriceCurrencyOptionsCustomUnitAmount',context!); TaxBehavior = json['TaxBehavior']; Tiers = JsonConverters.fromJson(json['Tiers'],'List',context!); UnitAmount = json['UnitAmount']; UnitAmountDecimal = JsonConverters.toDouble(json['UnitAmountDecimal']); return this; } Map toJson() => super.toJson()..addAll({ 'CustomUnitAmount': JsonConverters.toJson(CustomUnitAmount,'PriceCurrencyOptionsCustomUnitAmount',context!), 'TaxBehavior': TaxBehavior, 'Tiers': JsonConverters.toJson(Tiers,'List',context!), 'UnitAmount': UnitAmount, 'UnitAmountDecimal': UnitAmountDecimal }); getTypeName() => "PriceCurrencyOptions"; TypeContext? context = _ctx; } class PriceCustomUnitAmount extends StripeEntity1 implements IConvertible { int? Maximum; int? Minimum; int? Preset; PriceCustomUnitAmount({this.Maximum,this.Minimum,this.Preset}); PriceCustomUnitAmount.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); Maximum = json['Maximum']; Minimum = json['Minimum']; Preset = json['Preset']; return this; } Map toJson() => super.toJson()..addAll({ 'Maximum': Maximum, 'Minimum': Minimum, 'Preset': Preset }); getTypeName() => "PriceCustomUnitAmount"; TypeContext? context = _ctx; } class PriceRecurring extends StripeEntity1 implements IConvertible { String? AggregateUsage; String? Interval; int? IntervalCount; int? TrialPeriodDays; String? UsageType; PriceRecurring({this.AggregateUsage,this.Interval,this.IntervalCount,this.TrialPeriodDays,this.UsageType}); PriceRecurring.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); AggregateUsage = json['AggregateUsage']; Interval = json['Interval']; IntervalCount = json['IntervalCount']; TrialPeriodDays = json['TrialPeriodDays']; UsageType = json['UsageType']; return this; } Map toJson() => super.toJson()..addAll({ 'AggregateUsage': AggregateUsage, 'Interval': Interval, 'IntervalCount': IntervalCount, 'TrialPeriodDays': TrialPeriodDays, 'UsageType': UsageType }); getTypeName() => "PriceRecurring"; TypeContext? context = _ctx; } class PriceTier extends StripeEntity1 implements IConvertible { int? FlatAmount; double? FlatAmountDecimal; int? UnitAmount; double? UnitAmountDecimal; int? UpTo; PriceTier({this.FlatAmount,this.FlatAmountDecimal,this.UnitAmount,this.UnitAmountDecimal,this.UpTo}); PriceTier.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); FlatAmount = json['FlatAmount']; FlatAmountDecimal = JsonConverters.toDouble(json['FlatAmountDecimal']); UnitAmount = json['UnitAmount']; UnitAmountDecimal = JsonConverters.toDouble(json['UnitAmountDecimal']); UpTo = json['UpTo']; return this; } Map toJson() => super.toJson()..addAll({ 'FlatAmount': FlatAmount, 'FlatAmountDecimal': FlatAmountDecimal, 'UnitAmount': UnitAmount, 'UnitAmountDecimal': UnitAmountDecimal, 'UpTo': UpTo }); getTypeName() => "PriceTier"; TypeContext? context = _ctx; } class PriceTransformQuantity extends StripeEntity1 implements IConvertible { int? DivideBy; String? Round; PriceTransformQuantity({this.DivideBy,this.Round}); PriceTransformQuantity.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); DivideBy = json['DivideBy']; Round = json['Round']; return this; } Map toJson() => super.toJson()..addAll({ 'DivideBy': DivideBy, 'Round': Round }); getTypeName() => "PriceTransformQuantity"; TypeContext? context = _ctx; } class Price extends StripeEntity1 implements IHasId, IHasMetadata, IHasObject, IConvertible { String? Id; String? Object; bool? Active; String? BillingScheme; DateTime? Created; String? Currency; Map? CurrencyOptions; PriceCustomUnitAmount? CustomUnitAmount; bool? Deleted; bool? Livemode; String? LookupKey; Map? Metadata; String? Nickname; PriceRecurring? Recurring; String? TaxBehavior; List? Tiers; String? TiersMode; PriceTransformQuantity? TransformQuantity; String? Type; int? UnitAmount; double? UnitAmountDecimal; Price({this.Id,this.Object,this.Active,this.BillingScheme,this.Created,this.Currency,this.CurrencyOptions,this.CustomUnitAmount,this.Deleted,this.Livemode,this.LookupKey,this.Metadata,this.Nickname,this.Recurring,this.TaxBehavior,this.Tiers,this.TiersMode,this.TransformQuantity,this.Type,this.UnitAmount,this.UnitAmountDecimal}); Price.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); Id = json['Id']; Object = json['Object']; Active = json['Active']; BillingScheme = json['BillingScheme']; Created = JsonConverters.fromJson(json['Created'],'DateTime',context!); Currency = json['Currency']; CurrencyOptions = JsonConverters.fromJson(json['CurrencyOptions'],'Map',context!); CustomUnitAmount = JsonConverters.fromJson(json['CustomUnitAmount'],'PriceCustomUnitAmount',context!); Deleted = json['Deleted']; Livemode = json['Livemode']; LookupKey = json['LookupKey']; Metadata = JsonConverters.toStringMap(json['Metadata']); Nickname = json['Nickname']; Recurring = JsonConverters.fromJson(json['Recurring'],'PriceRecurring',context!); TaxBehavior = json['TaxBehavior']; Tiers = JsonConverters.fromJson(json['Tiers'],'List',context!); TiersMode = json['TiersMode']; TransformQuantity = JsonConverters.fromJson(json['TransformQuantity'],'PriceTransformQuantity',context!); Type = json['Type']; UnitAmount = json['UnitAmount']; UnitAmountDecimal = JsonConverters.toDouble(json['UnitAmountDecimal']); return this; } Map toJson() => super.toJson()..addAll({ 'Id': Id, 'Object': Object, 'Active': Active, 'BillingScheme': BillingScheme, 'Created': JsonConverters.toJson(Created,'DateTime',context!), 'Currency': Currency, 'CurrencyOptions': JsonConverters.toJson(CurrencyOptions,'Map',context!), 'CustomUnitAmount': JsonConverters.toJson(CustomUnitAmount,'PriceCustomUnitAmount',context!), 'Deleted': Deleted, 'Livemode': Livemode, 'LookupKey': LookupKey, 'Metadata': Metadata, 'Nickname': Nickname, 'Recurring': JsonConverters.toJson(Recurring,'PriceRecurring',context!), 'TaxBehavior': TaxBehavior, 'Tiers': JsonConverters.toJson(Tiers,'List',context!), 'TiersMode': TiersMode, 'TransformQuantity': JsonConverters.toJson(TransformQuantity,'PriceTransformQuantity',context!), 'Type': Type, 'UnitAmount': UnitAmount, 'UnitAmountDecimal': UnitAmountDecimal }); getTypeName() => "Price"; TypeContext? context = _ctx; } class TaxRate extends StripeEntity1 implements IHasId, IHasMetadata, IHasObject, IConvertible { String? Id; String? Object; bool? Active; String? Country; DateTime? Created; String? Description; String? DisplayName; bool? Inclusive; String? Jurisdiction; bool? Livemode; Map? Metadata; double? Percentage; String? State; String? TaxType; TaxRate({this.Id,this.Object,this.Active,this.Country,this.Created,this.Description,this.DisplayName,this.Inclusive,this.Jurisdiction,this.Livemode,this.Metadata,this.Percentage,this.State,this.TaxType}); TaxRate.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); Id = json['Id']; Object = json['Object']; Active = json['Active']; Country = json['Country']; Created = JsonConverters.fromJson(json['Created'],'DateTime',context!); Description = json['Description']; DisplayName = json['DisplayName']; Inclusive = json['Inclusive']; Jurisdiction = json['Jurisdiction']; Livemode = json['Livemode']; Metadata = JsonConverters.toStringMap(json['Metadata']); Percentage = JsonConverters.toDouble(json['Percentage']); State = json['State']; TaxType = json['TaxType']; return this; } Map toJson() => super.toJson()..addAll({ 'Id': Id, 'Object': Object, 'Active': Active, 'Country': Country, 'Created': JsonConverters.toJson(Created,'DateTime',context!), 'Description': Description, 'DisplayName': DisplayName, 'Inclusive': Inclusive, 'Jurisdiction': Jurisdiction, 'Livemode': Livemode, 'Metadata': Metadata, 'Percentage': Percentage, 'State': State, 'TaxType': TaxType }); getTypeName() => "TaxRate"; TypeContext? context = _ctx; } class LineItemTax extends StripeEntity1 implements IConvertible { int? Amount; TaxRate? Rate; LineItemTax({this.Amount,this.Rate}); LineItemTax.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); Amount = json['Amount']; Rate = JsonConverters.fromJson(json['Rate'],'TaxRate',context!); return this; } Map toJson() => super.toJson()..addAll({ 'Amount': Amount, 'Rate': JsonConverters.toJson(Rate,'TaxRate',context!) }); getTypeName() => "LineItemTax"; TypeContext? context = _ctx; } class LineItem extends StripeEntity1 implements IHasId, IHasObject, IConvertible { String? Id; String? Object; int? AmountDiscount; int? AmountSubtotal; int? AmountTax; int? AmountTotal; String? Currency; bool? Deleted; String? Description; List? Discounts; Price? Price; int? Quantity; List? Taxes; LineItem({this.Id,this.Object,this.AmountDiscount,this.AmountSubtotal,this.AmountTax,this.AmountTotal,this.Currency,this.Deleted,this.Description,this.Discounts,this.Price,this.Quantity,this.Taxes}); LineItem.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); Id = json['Id']; Object = json['Object']; AmountDiscount = json['AmountDiscount']; AmountSubtotal = json['AmountSubtotal']; AmountTax = json['AmountTax']; AmountTotal = json['AmountTotal']; Currency = json['Currency']; Deleted = json['Deleted']; Description = json['Description']; Discounts = JsonConverters.fromJson(json['Discounts'],'List',context!); Price = JsonConverters.fromJson(json['Price'],'Price',context!); Quantity = json['Quantity']; Taxes = JsonConverters.fromJson(json['Taxes'],'List',context!); return this; } Map toJson() => super.toJson()..addAll({ 'Id': Id, 'Object': Object, 'AmountDiscount': AmountDiscount, 'AmountSubtotal': AmountSubtotal, 'AmountTax': AmountTax, 'AmountTotal': AmountTotal, 'Currency': Currency, 'Deleted': Deleted, 'Description': Description, 'Discounts': JsonConverters.toJson(Discounts,'List',context!), 'Price': JsonConverters.toJson(Price,'Price',context!), 'Quantity': Quantity, 'Taxes': JsonConverters.toJson(Taxes,'List',context!) }); getTypeName() => "LineItem"; TypeContext? context = _ctx; } class SessionPaymentMethodOptionsAcssDebitMandateOptions extends StripeEntity1 implements IConvertible { String? CustomMandateUrl; List? DefaultFor; String? IntervalDescription; String? PaymentSchedule; String? TransactionType; SessionPaymentMethodOptionsAcssDebitMandateOptions({this.CustomMandateUrl,this.DefaultFor,this.IntervalDescription,this.PaymentSchedule,this.TransactionType}); SessionPaymentMethodOptionsAcssDebitMandateOptions.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); CustomMandateUrl = json['CustomMandateUrl']; DefaultFor = JsonConverters.fromJson(json['DefaultFor'],'List',context!); IntervalDescription = json['IntervalDescription']; PaymentSchedule = json['PaymentSchedule']; TransactionType = json['TransactionType']; return this; } Map toJson() => super.toJson()..addAll({ 'CustomMandateUrl': CustomMandateUrl, 'DefaultFor': JsonConverters.toJson(DefaultFor,'List',context!), 'IntervalDescription': IntervalDescription, 'PaymentSchedule': PaymentSchedule, 'TransactionType': TransactionType }); getTypeName() => "SessionPaymentMethodOptionsAcssDebitMandateOptions"; TypeContext? context = _ctx; } class SessionPaymentMethodOptionsAcssDebit extends StripeEntity1 implements IConvertible { String? Currency; SessionPaymentMethodOptionsAcssDebitMandateOptions? MandateOptions; String? SetupFutureUsage; String? VerificationMethod; SessionPaymentMethodOptionsAcssDebit({this.Currency,this.MandateOptions,this.SetupFutureUsage,this.VerificationMethod}); SessionPaymentMethodOptionsAcssDebit.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); Currency = json['Currency']; MandateOptions = JsonConverters.fromJson(json['MandateOptions'],'SessionPaymentMethodOptionsAcssDebitMandateOptions',context!); SetupFutureUsage = json['SetupFutureUsage']; VerificationMethod = json['VerificationMethod']; return this; } Map toJson() => super.toJson()..addAll({ 'Currency': Currency, 'MandateOptions': JsonConverters.toJson(MandateOptions,'SessionPaymentMethodOptionsAcssDebitMandateOptions',context!), 'SetupFutureUsage': SetupFutureUsage, 'VerificationMethod': VerificationMethod }); getTypeName() => "SessionPaymentMethodOptionsAcssDebit"; TypeContext? context = _ctx; } class SessionPaymentMethodOptionsAffirm extends StripeEntity1 implements IConvertible { String? SetupFutureUsage; SessionPaymentMethodOptionsAffirm({this.SetupFutureUsage}); SessionPaymentMethodOptionsAffirm.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); SetupFutureUsage = json['SetupFutureUsage']; return this; } Map toJson() => super.toJson()..addAll({ 'SetupFutureUsage': SetupFutureUsage }); getTypeName() => "SessionPaymentMethodOptionsAffirm"; TypeContext? context = _ctx; } class SessionPaymentMethodOptionsAfterpayClearpay extends StripeEntity1 implements IConvertible { String? SetupFutureUsage; SessionPaymentMethodOptionsAfterpayClearpay({this.SetupFutureUsage}); SessionPaymentMethodOptionsAfterpayClearpay.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); SetupFutureUsage = json['SetupFutureUsage']; return this; } Map toJson() => super.toJson()..addAll({ 'SetupFutureUsage': SetupFutureUsage }); getTypeName() => "SessionPaymentMethodOptionsAfterpayClearpay"; TypeContext? context = _ctx; } class SessionPaymentMethodOptionsAlipay extends StripeEntity1 implements IConvertible { String? SetupFutureUsage; SessionPaymentMethodOptionsAlipay({this.SetupFutureUsage}); SessionPaymentMethodOptionsAlipay.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); SetupFutureUsage = json['SetupFutureUsage']; return this; } Map toJson() => super.toJson()..addAll({ 'SetupFutureUsage': SetupFutureUsage }); getTypeName() => "SessionPaymentMethodOptionsAlipay"; TypeContext? context = _ctx; } class SessionPaymentMethodOptionsAuBecsDebit extends StripeEntity1 implements IConvertible { String? SetupFutureUsage; SessionPaymentMethodOptionsAuBecsDebit({this.SetupFutureUsage}); SessionPaymentMethodOptionsAuBecsDebit.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); SetupFutureUsage = json['SetupFutureUsage']; return this; } Map toJson() => super.toJson()..addAll({ 'SetupFutureUsage': SetupFutureUsage }); getTypeName() => "SessionPaymentMethodOptionsAuBecsDebit"; TypeContext? context = _ctx; } class SessionPaymentMethodOptionsBacsDebit extends StripeEntity1 implements IConvertible { String? SetupFutureUsage; SessionPaymentMethodOptionsBacsDebit({this.SetupFutureUsage}); SessionPaymentMethodOptionsBacsDebit.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); SetupFutureUsage = json['SetupFutureUsage']; return this; } Map toJson() => super.toJson()..addAll({ 'SetupFutureUsage': SetupFutureUsage }); getTypeName() => "SessionPaymentMethodOptionsBacsDebit"; TypeContext? context = _ctx; } class SessionPaymentMethodOptionsBancontact extends StripeEntity1 implements IConvertible { String? SetupFutureUsage; SessionPaymentMethodOptionsBancontact({this.SetupFutureUsage}); SessionPaymentMethodOptionsBancontact.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); SetupFutureUsage = json['SetupFutureUsage']; return this; } Map toJson() => super.toJson()..addAll({ 'SetupFutureUsage': SetupFutureUsage }); getTypeName() => "SessionPaymentMethodOptionsBancontact"; TypeContext? context = _ctx; } class SessionPaymentMethodOptionsBoleto extends StripeEntity1 implements IConvertible { int? ExpiresAfterDays; String? SetupFutureUsage; SessionPaymentMethodOptionsBoleto({this.ExpiresAfterDays,this.SetupFutureUsage}); SessionPaymentMethodOptionsBoleto.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); ExpiresAfterDays = json['ExpiresAfterDays']; SetupFutureUsage = json['SetupFutureUsage']; return this; } Map toJson() => super.toJson()..addAll({ 'ExpiresAfterDays': ExpiresAfterDays, 'SetupFutureUsage': SetupFutureUsage }); getTypeName() => "SessionPaymentMethodOptionsBoleto"; TypeContext? context = _ctx; } class SessionPaymentMethodOptionsCardInstallments extends StripeEntity1 implements IConvertible { bool? Enabled; SessionPaymentMethodOptionsCardInstallments({this.Enabled}); SessionPaymentMethodOptionsCardInstallments.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); Enabled = json['Enabled']; return this; } Map toJson() => super.toJson()..addAll({ 'Enabled': Enabled }); getTypeName() => "SessionPaymentMethodOptionsCardInstallments"; TypeContext? context = _ctx; } class SessionPaymentMethodOptionsCard extends StripeEntity1 implements IConvertible { SessionPaymentMethodOptionsCardInstallments? Installments; String? SetupFutureUsage; String? StatementDescriptorSuffixKana; String? StatementDescriptorSuffixKanji; SessionPaymentMethodOptionsCard({this.Installments,this.SetupFutureUsage,this.StatementDescriptorSuffixKana,this.StatementDescriptorSuffixKanji}); SessionPaymentMethodOptionsCard.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); Installments = JsonConverters.fromJson(json['Installments'],'SessionPaymentMethodOptionsCardInstallments',context!); SetupFutureUsage = json['SetupFutureUsage']; StatementDescriptorSuffixKana = json['StatementDescriptorSuffixKana']; StatementDescriptorSuffixKanji = json['StatementDescriptorSuffixKanji']; return this; } Map toJson() => super.toJson()..addAll({ 'Installments': JsonConverters.toJson(Installments,'SessionPaymentMethodOptionsCardInstallments',context!), 'SetupFutureUsage': SetupFutureUsage, 'StatementDescriptorSuffixKana': StatementDescriptorSuffixKana, 'StatementDescriptorSuffixKanji': StatementDescriptorSuffixKanji }); getTypeName() => "SessionPaymentMethodOptionsCard"; TypeContext? context = _ctx; } class SessionPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer extends StripeEntity1 implements IConvertible { String? Country; SessionPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer({this.Country}); SessionPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); Country = json['Country']; return this; } Map toJson() => super.toJson()..addAll({ 'Country': Country }); getTypeName() => "SessionPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer"; TypeContext? context = _ctx; } class SessionPaymentMethodOptionsCustomerBalanceBankTransfer extends StripeEntity1 implements IConvertible { SessionPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer? EuBankTransfer; List? RequestedAddressTypes; String? Type; SessionPaymentMethodOptionsCustomerBalanceBankTransfer({this.EuBankTransfer,this.RequestedAddressTypes,this.Type}); SessionPaymentMethodOptionsCustomerBalanceBankTransfer.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); EuBankTransfer = JsonConverters.fromJson(json['EuBankTransfer'],'SessionPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer',context!); RequestedAddressTypes = JsonConverters.fromJson(json['RequestedAddressTypes'],'List',context!); Type = json['Type']; return this; } Map toJson() => super.toJson()..addAll({ 'EuBankTransfer': JsonConverters.toJson(EuBankTransfer,'SessionPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer',context!), 'RequestedAddressTypes': JsonConverters.toJson(RequestedAddressTypes,'List',context!), 'Type': Type }); getTypeName() => "SessionPaymentMethodOptionsCustomerBalanceBankTransfer"; TypeContext? context = _ctx; } class SessionPaymentMethodOptionsCustomerBalance extends StripeEntity1 implements IConvertible { SessionPaymentMethodOptionsCustomerBalanceBankTransfer? BankTransfer; String? FundingType; String? SetupFutureUsage; SessionPaymentMethodOptionsCustomerBalance({this.BankTransfer,this.FundingType,this.SetupFutureUsage}); SessionPaymentMethodOptionsCustomerBalance.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); BankTransfer = JsonConverters.fromJson(json['BankTransfer'],'SessionPaymentMethodOptionsCustomerBalanceBankTransfer',context!); FundingType = json['FundingType']; SetupFutureUsage = json['SetupFutureUsage']; return this; } Map toJson() => super.toJson()..addAll({ 'BankTransfer': JsonConverters.toJson(BankTransfer,'SessionPaymentMethodOptionsCustomerBalanceBankTransfer',context!), 'FundingType': FundingType, 'SetupFutureUsage': SetupFutureUsage }); getTypeName() => "SessionPaymentMethodOptionsCustomerBalance"; TypeContext? context = _ctx; } class SessionPaymentMethodOptionsEps extends StripeEntity1 implements IConvertible { String? SetupFutureUsage; SessionPaymentMethodOptionsEps({this.SetupFutureUsage}); SessionPaymentMethodOptionsEps.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); SetupFutureUsage = json['SetupFutureUsage']; return this; } Map toJson() => super.toJson()..addAll({ 'SetupFutureUsage': SetupFutureUsage }); getTypeName() => "SessionPaymentMethodOptionsEps"; TypeContext? context = _ctx; } class SessionPaymentMethodOptionsFpx extends StripeEntity1 implements IConvertible { String? SetupFutureUsage; SessionPaymentMethodOptionsFpx({this.SetupFutureUsage}); SessionPaymentMethodOptionsFpx.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); SetupFutureUsage = json['SetupFutureUsage']; return this; } Map toJson() => super.toJson()..addAll({ 'SetupFutureUsage': SetupFutureUsage }); getTypeName() => "SessionPaymentMethodOptionsFpx"; TypeContext? context = _ctx; } class SessionPaymentMethodOptionsGiropay extends StripeEntity1 implements IConvertible { String? SetupFutureUsage; SessionPaymentMethodOptionsGiropay({this.SetupFutureUsage}); SessionPaymentMethodOptionsGiropay.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); SetupFutureUsage = json['SetupFutureUsage']; return this; } Map toJson() => super.toJson()..addAll({ 'SetupFutureUsage': SetupFutureUsage }); getTypeName() => "SessionPaymentMethodOptionsGiropay"; TypeContext? context = _ctx; } class SessionPaymentMethodOptionsGrabpay extends StripeEntity1 implements IConvertible { String? SetupFutureUsage; SessionPaymentMethodOptionsGrabpay({this.SetupFutureUsage}); SessionPaymentMethodOptionsGrabpay.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); SetupFutureUsage = json['SetupFutureUsage']; return this; } Map toJson() => super.toJson()..addAll({ 'SetupFutureUsage': SetupFutureUsage }); getTypeName() => "SessionPaymentMethodOptionsGrabpay"; TypeContext? context = _ctx; } class SessionPaymentMethodOptionsIdeal extends StripeEntity1 implements IConvertible { String? SetupFutureUsage; SessionPaymentMethodOptionsIdeal({this.SetupFutureUsage}); SessionPaymentMethodOptionsIdeal.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); SetupFutureUsage = json['SetupFutureUsage']; return this; } Map toJson() => super.toJson()..addAll({ 'SetupFutureUsage': SetupFutureUsage }); getTypeName() => "SessionPaymentMethodOptionsIdeal"; TypeContext? context = _ctx; } class SessionPaymentMethodOptionsKlarna extends StripeEntity1 implements IConvertible { String? SetupFutureUsage; SessionPaymentMethodOptionsKlarna({this.SetupFutureUsage}); SessionPaymentMethodOptionsKlarna.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); SetupFutureUsage = json['SetupFutureUsage']; return this; } Map toJson() => super.toJson()..addAll({ 'SetupFutureUsage': SetupFutureUsage }); getTypeName() => "SessionPaymentMethodOptionsKlarna"; TypeContext? context = _ctx; } class SessionPaymentMethodOptionsKonbini extends StripeEntity1 implements IConvertible { int? ExpiresAfterDays; String? SetupFutureUsage; SessionPaymentMethodOptionsKonbini({this.ExpiresAfterDays,this.SetupFutureUsage}); SessionPaymentMethodOptionsKonbini.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); ExpiresAfterDays = json['ExpiresAfterDays']; SetupFutureUsage = json['SetupFutureUsage']; return this; } Map toJson() => super.toJson()..addAll({ 'ExpiresAfterDays': ExpiresAfterDays, 'SetupFutureUsage': SetupFutureUsage }); getTypeName() => "SessionPaymentMethodOptionsKonbini"; TypeContext? context = _ctx; } class SessionPaymentMethodOptionsOxxo extends StripeEntity1 implements IConvertible { int? ExpiresAfterDays; String? SetupFutureUsage; SessionPaymentMethodOptionsOxxo({this.ExpiresAfterDays,this.SetupFutureUsage}); SessionPaymentMethodOptionsOxxo.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); ExpiresAfterDays = json['ExpiresAfterDays']; SetupFutureUsage = json['SetupFutureUsage']; return this; } Map toJson() => super.toJson()..addAll({ 'ExpiresAfterDays': ExpiresAfterDays, 'SetupFutureUsage': SetupFutureUsage }); getTypeName() => "SessionPaymentMethodOptionsOxxo"; TypeContext? context = _ctx; } class SessionPaymentMethodOptionsP24 extends StripeEntity1 implements IConvertible { String? SetupFutureUsage; SessionPaymentMethodOptionsP24({this.SetupFutureUsage}); SessionPaymentMethodOptionsP24.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); SetupFutureUsage = json['SetupFutureUsage']; return this; } Map toJson() => super.toJson()..addAll({ 'SetupFutureUsage': SetupFutureUsage }); getTypeName() => "SessionPaymentMethodOptionsP24"; TypeContext? context = _ctx; } class SessionPaymentMethodOptionsPaynow extends StripeEntity1 implements IConvertible { String? SetupFutureUsage; SessionPaymentMethodOptionsPaynow({this.SetupFutureUsage}); SessionPaymentMethodOptionsPaynow.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); SetupFutureUsage = json['SetupFutureUsage']; return this; } Map toJson() => super.toJson()..addAll({ 'SetupFutureUsage': SetupFutureUsage }); getTypeName() => "SessionPaymentMethodOptionsPaynow"; TypeContext? context = _ctx; } class SessionPaymentMethodOptionsPix extends StripeEntity1 implements IConvertible { int? ExpiresAfterSeconds; SessionPaymentMethodOptionsPix({this.ExpiresAfterSeconds}); SessionPaymentMethodOptionsPix.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); ExpiresAfterSeconds = json['ExpiresAfterSeconds']; return this; } Map toJson() => super.toJson()..addAll({ 'ExpiresAfterSeconds': ExpiresAfterSeconds }); getTypeName() => "SessionPaymentMethodOptionsPix"; TypeContext? context = _ctx; } class SessionPaymentMethodOptionsSepaDebit extends StripeEntity1 implements IConvertible { String? SetupFutureUsage; SessionPaymentMethodOptionsSepaDebit({this.SetupFutureUsage}); SessionPaymentMethodOptionsSepaDebit.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); SetupFutureUsage = json['SetupFutureUsage']; return this; } Map toJson() => super.toJson()..addAll({ 'SetupFutureUsage': SetupFutureUsage }); getTypeName() => "SessionPaymentMethodOptionsSepaDebit"; TypeContext? context = _ctx; } class SessionPaymentMethodOptionsSofort extends StripeEntity1 implements IConvertible { String? SetupFutureUsage; SessionPaymentMethodOptionsSofort({this.SetupFutureUsage}); SessionPaymentMethodOptionsSofort.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); SetupFutureUsage = json['SetupFutureUsage']; return this; } Map toJson() => super.toJson()..addAll({ 'SetupFutureUsage': SetupFutureUsage }); getTypeName() => "SessionPaymentMethodOptionsSofort"; TypeContext? context = _ctx; } class SessionPaymentMethodOptionsUsBankAccountFinancialConnections extends StripeEntity1 implements IConvertible { List? Permissions; String? ReturnUrl; SessionPaymentMethodOptionsUsBankAccountFinancialConnections({this.Permissions,this.ReturnUrl}); SessionPaymentMethodOptionsUsBankAccountFinancialConnections.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); Permissions = JsonConverters.fromJson(json['Permissions'],'List',context!); ReturnUrl = json['ReturnUrl']; return this; } Map toJson() => super.toJson()..addAll({ 'Permissions': JsonConverters.toJson(Permissions,'List',context!), 'ReturnUrl': ReturnUrl }); getTypeName() => "SessionPaymentMethodOptionsUsBankAccountFinancialConnections"; TypeContext? context = _ctx; } class SessionPaymentMethodOptionsUsBankAccount extends StripeEntity1 implements IConvertible { SessionPaymentMethodOptionsUsBankAccountFinancialConnections? FinancialConnections; String? SetupFutureUsage; String? VerificationMethod; SessionPaymentMethodOptionsUsBankAccount({this.FinancialConnections,this.SetupFutureUsage,this.VerificationMethod}); SessionPaymentMethodOptionsUsBankAccount.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); FinancialConnections = JsonConverters.fromJson(json['FinancialConnections'],'SessionPaymentMethodOptionsUsBankAccountFinancialConnections',context!); SetupFutureUsage = json['SetupFutureUsage']; VerificationMethod = json['VerificationMethod']; return this; } Map toJson() => super.toJson()..addAll({ 'FinancialConnections': JsonConverters.toJson(FinancialConnections,'SessionPaymentMethodOptionsUsBankAccountFinancialConnections',context!), 'SetupFutureUsage': SetupFutureUsage, 'VerificationMethod': VerificationMethod }); getTypeName() => "SessionPaymentMethodOptionsUsBankAccount"; TypeContext? context = _ctx; } class SessionPaymentMethodOptions extends StripeEntity1 implements IConvertible { SessionPaymentMethodOptionsAcssDebit? AcssDebit; SessionPaymentMethodOptionsAffirm? Affirm; SessionPaymentMethodOptionsAfterpayClearpay? AfterpayClearpay; SessionPaymentMethodOptionsAlipay? Alipay; SessionPaymentMethodOptionsAuBecsDebit? AuBecsDebit; SessionPaymentMethodOptionsBacsDebit? BacsDebit; SessionPaymentMethodOptionsBancontact? Bancontact; SessionPaymentMethodOptionsBoleto? Boleto; SessionPaymentMethodOptionsCard? Card; SessionPaymentMethodOptionsCustomerBalance? CustomerBalance; SessionPaymentMethodOptionsEps? Eps; SessionPaymentMethodOptionsFpx? Fpx; SessionPaymentMethodOptionsGiropay? Giropay; SessionPaymentMethodOptionsGrabpay? Grabpay; SessionPaymentMethodOptionsIdeal? Ideal; SessionPaymentMethodOptionsKlarna? Klarna; SessionPaymentMethodOptionsKonbini? Konbini; SessionPaymentMethodOptionsOxxo? Oxxo; SessionPaymentMethodOptionsP24? P24; SessionPaymentMethodOptionsPaynow? Paynow; SessionPaymentMethodOptionsPix? Pix; SessionPaymentMethodOptionsSepaDebit? SepaDebit; SessionPaymentMethodOptionsSofort? Sofort; SessionPaymentMethodOptionsUsBankAccount? UsBankAccount; SessionPaymentMethodOptions({this.AcssDebit,this.Affirm,this.AfterpayClearpay,this.Alipay,this.AuBecsDebit,this.BacsDebit,this.Bancontact,this.Boleto,this.Card,this.CustomerBalance,this.Eps,this.Fpx,this.Giropay,this.Grabpay,this.Ideal,this.Klarna,this.Konbini,this.Oxxo,this.P24,this.Paynow,this.Pix,this.SepaDebit,this.Sofort,this.UsBankAccount}); SessionPaymentMethodOptions.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); AcssDebit = JsonConverters.fromJson(json['AcssDebit'],'SessionPaymentMethodOptionsAcssDebit',context!); Affirm = JsonConverters.fromJson(json['Affirm'],'SessionPaymentMethodOptionsAffirm',context!); AfterpayClearpay = JsonConverters.fromJson(json['AfterpayClearpay'],'SessionPaymentMethodOptionsAfterpayClearpay',context!); Alipay = JsonConverters.fromJson(json['Alipay'],'SessionPaymentMethodOptionsAlipay',context!); AuBecsDebit = JsonConverters.fromJson(json['AuBecsDebit'],'SessionPaymentMethodOptionsAuBecsDebit',context!); BacsDebit = JsonConverters.fromJson(json['BacsDebit'],'SessionPaymentMethodOptionsBacsDebit',context!); Bancontact = JsonConverters.fromJson(json['Bancontact'],'SessionPaymentMethodOptionsBancontact',context!); Boleto = JsonConverters.fromJson(json['Boleto'],'SessionPaymentMethodOptionsBoleto',context!); Card = JsonConverters.fromJson(json['Card'],'SessionPaymentMethodOptionsCard',context!); CustomerBalance = JsonConverters.fromJson(json['CustomerBalance'],'SessionPaymentMethodOptionsCustomerBalance',context!); Eps = JsonConverters.fromJson(json['Eps'],'SessionPaymentMethodOptionsEps',context!); Fpx = JsonConverters.fromJson(json['Fpx'],'SessionPaymentMethodOptionsFpx',context!); Giropay = JsonConverters.fromJson(json['Giropay'],'SessionPaymentMethodOptionsGiropay',context!); Grabpay = JsonConverters.fromJson(json['Grabpay'],'SessionPaymentMethodOptionsGrabpay',context!); Ideal = JsonConverters.fromJson(json['Ideal'],'SessionPaymentMethodOptionsIdeal',context!); Klarna = JsonConverters.fromJson(json['Klarna'],'SessionPaymentMethodOptionsKlarna',context!); Konbini = JsonConverters.fromJson(json['Konbini'],'SessionPaymentMethodOptionsKonbini',context!); Oxxo = JsonConverters.fromJson(json['Oxxo'],'SessionPaymentMethodOptionsOxxo',context!); P24 = JsonConverters.fromJson(json['P24'],'SessionPaymentMethodOptionsP24',context!); Paynow = JsonConverters.fromJson(json['Paynow'],'SessionPaymentMethodOptionsPaynow',context!); Pix = JsonConverters.fromJson(json['Pix'],'SessionPaymentMethodOptionsPix',context!); SepaDebit = JsonConverters.fromJson(json['SepaDebit'],'SessionPaymentMethodOptionsSepaDebit',context!); Sofort = JsonConverters.fromJson(json['Sofort'],'SessionPaymentMethodOptionsSofort',context!); UsBankAccount = JsonConverters.fromJson(json['UsBankAccount'],'SessionPaymentMethodOptionsUsBankAccount',context!); return this; } Map toJson() => super.toJson()..addAll({ 'AcssDebit': JsonConverters.toJson(AcssDebit,'SessionPaymentMethodOptionsAcssDebit',context!), 'Affirm': JsonConverters.toJson(Affirm,'SessionPaymentMethodOptionsAffirm',context!), 'AfterpayClearpay': JsonConverters.toJson(AfterpayClearpay,'SessionPaymentMethodOptionsAfterpayClearpay',context!), 'Alipay': JsonConverters.toJson(Alipay,'SessionPaymentMethodOptionsAlipay',context!), 'AuBecsDebit': JsonConverters.toJson(AuBecsDebit,'SessionPaymentMethodOptionsAuBecsDebit',context!), 'BacsDebit': JsonConverters.toJson(BacsDebit,'SessionPaymentMethodOptionsBacsDebit',context!), 'Bancontact': JsonConverters.toJson(Bancontact,'SessionPaymentMethodOptionsBancontact',context!), 'Boleto': JsonConverters.toJson(Boleto,'SessionPaymentMethodOptionsBoleto',context!), 'Card': JsonConverters.toJson(Card,'SessionPaymentMethodOptionsCard',context!), 'CustomerBalance': JsonConverters.toJson(CustomerBalance,'SessionPaymentMethodOptionsCustomerBalance',context!), 'Eps': JsonConverters.toJson(Eps,'SessionPaymentMethodOptionsEps',context!), 'Fpx': JsonConverters.toJson(Fpx,'SessionPaymentMethodOptionsFpx',context!), 'Giropay': JsonConverters.toJson(Giropay,'SessionPaymentMethodOptionsGiropay',context!), 'Grabpay': JsonConverters.toJson(Grabpay,'SessionPaymentMethodOptionsGrabpay',context!), 'Ideal': JsonConverters.toJson(Ideal,'SessionPaymentMethodOptionsIdeal',context!), 'Klarna': JsonConverters.toJson(Klarna,'SessionPaymentMethodOptionsKlarna',context!), 'Konbini': JsonConverters.toJson(Konbini,'SessionPaymentMethodOptionsKonbini',context!), 'Oxxo': JsonConverters.toJson(Oxxo,'SessionPaymentMethodOptionsOxxo',context!), 'P24': JsonConverters.toJson(P24,'SessionPaymentMethodOptionsP24',context!), 'Paynow': JsonConverters.toJson(Paynow,'SessionPaymentMethodOptionsPaynow',context!), 'Pix': JsonConverters.toJson(Pix,'SessionPaymentMethodOptionsPix',context!), 'SepaDebit': JsonConverters.toJson(SepaDebit,'SessionPaymentMethodOptionsSepaDebit',context!), 'Sofort': JsonConverters.toJson(Sofort,'SessionPaymentMethodOptionsSofort',context!), 'UsBankAccount': JsonConverters.toJson(UsBankAccount,'SessionPaymentMethodOptionsUsBankAccount',context!) }); getTypeName() => "SessionPaymentMethodOptions"; TypeContext? context = _ctx; } class SessionPhoneNumberCollection extends StripeEntity1 implements IConvertible { bool? Enabled; SessionPhoneNumberCollection({this.Enabled}); SessionPhoneNumberCollection.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); Enabled = json['Enabled']; return this; } Map toJson() => super.toJson()..addAll({ 'Enabled': Enabled }); getTypeName() => "SessionPhoneNumberCollection"; TypeContext? context = _ctx; } class SessionShippingAddressCollection extends StripeEntity1 implements IConvertible { List? AllowedCountries; SessionShippingAddressCollection({this.AllowedCountries}); SessionShippingAddressCollection.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); AllowedCountries = JsonConverters.fromJson(json['AllowedCountries'],'List',context!); return this; } Map toJson() => super.toJson()..addAll({ 'AllowedCountries': JsonConverters.toJson(AllowedCountries,'List',context!) }); getTypeName() => "SessionShippingAddressCollection"; TypeContext? context = _ctx; } class SessionShippingCostTax extends StripeEntity1 implements IConvertible { int? Amount; TaxRate? Rate; SessionShippingCostTax({this.Amount,this.Rate}); SessionShippingCostTax.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); Amount = json['Amount']; Rate = JsonConverters.fromJson(json['Rate'],'TaxRate',context!); return this; } Map toJson() => super.toJson()..addAll({ 'Amount': Amount, 'Rate': JsonConverters.toJson(Rate,'TaxRate',context!) }); getTypeName() => "SessionShippingCostTax"; TypeContext? context = _ctx; } class SessionShippingCost extends StripeEntity1 implements IConvertible { int? AmountSubtotal; int? AmountTax; int? AmountTotal; List? Taxes; SessionShippingCost({this.AmountSubtotal,this.AmountTax,this.AmountTotal,this.Taxes}); SessionShippingCost.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); AmountSubtotal = json['AmountSubtotal']; AmountTax = json['AmountTax']; AmountTotal = json['AmountTotal']; Taxes = JsonConverters.fromJson(json['Taxes'],'List',context!); return this; } Map toJson() => super.toJson()..addAll({ 'AmountSubtotal': AmountSubtotal, 'AmountTax': AmountTax, 'AmountTotal': AmountTotal, 'Taxes': JsonConverters.toJson(Taxes,'List',context!) }); getTypeName() => "SessionShippingCost"; TypeContext? context = _ctx; } class SessionShippingDetails extends StripeEntity1 implements IConvertible { Address? Address; String? Carrier; String? Name; String? Phone; String? TrackingNumber; SessionShippingDetails({this.Address,this.Carrier,this.Name,this.Phone,this.TrackingNumber}); SessionShippingDetails.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); Address = JsonConverters.fromJson(json['Address'],'Address',context!); Carrier = json['Carrier']; Name = json['Name']; Phone = json['Phone']; TrackingNumber = json['TrackingNumber']; return this; } Map toJson() => super.toJson()..addAll({ 'Address': JsonConverters.toJson(Address,'Address',context!), 'Carrier': Carrier, 'Name': Name, 'Phone': Phone, 'TrackingNumber': TrackingNumber }); getTypeName() => "SessionShippingDetails"; TypeContext? context = _ctx; } class SessionShippingOption extends StripeEntity1 implements IConvertible { int? ShippingAmount; SessionShippingOption({this.ShippingAmount}); SessionShippingOption.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); ShippingAmount = json['ShippingAmount']; return this; } Map toJson() => super.toJson()..addAll({ 'ShippingAmount': ShippingAmount }); getTypeName() => "SessionShippingOption"; TypeContext? context = _ctx; } class SessionTaxIdCollection extends StripeEntity1 implements IConvertible { bool? Enabled; SessionTaxIdCollection({this.Enabled}); SessionTaxIdCollection.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); Enabled = json['Enabled']; return this; } Map toJson() => super.toJson()..addAll({ 'Enabled': Enabled }); getTypeName() => "SessionTaxIdCollection"; TypeContext? context = _ctx; } class SessionTotalDetailsBreakdownDiscount extends StripeEntity1 implements IConvertible { int? Amount; Discount? Discount; SessionTotalDetailsBreakdownDiscount({this.Amount,this.Discount}); SessionTotalDetailsBreakdownDiscount.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); Amount = json['Amount']; Discount = JsonConverters.fromJson(json['Discount'],'Discount',context!); return this; } Map toJson() => super.toJson()..addAll({ 'Amount': Amount, 'Discount': JsonConverters.toJson(Discount,'Discount',context!) }); getTypeName() => "SessionTotalDetailsBreakdownDiscount"; TypeContext? context = _ctx; } class SessionTotalDetailsBreakdownTax extends StripeEntity1 implements IConvertible { int? Amount; TaxRate? Rate; SessionTotalDetailsBreakdownTax({this.Amount,this.Rate}); SessionTotalDetailsBreakdownTax.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); Amount = json['Amount']; Rate = JsonConverters.fromJson(json['Rate'],'TaxRate',context!); return this; } Map toJson() => super.toJson()..addAll({ 'Amount': Amount, 'Rate': JsonConverters.toJson(Rate,'TaxRate',context!) }); getTypeName() => "SessionTotalDetailsBreakdownTax"; TypeContext? context = _ctx; } class SessionTotalDetailsBreakdown extends StripeEntity1 implements IConvertible { List? Discounts; List? Taxes; SessionTotalDetailsBreakdown({this.Discounts,this.Taxes}); SessionTotalDetailsBreakdown.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); Discounts = JsonConverters.fromJson(json['Discounts'],'List',context!); Taxes = JsonConverters.fromJson(json['Taxes'],'List',context!); return this; } Map toJson() => super.toJson()..addAll({ 'Discounts': JsonConverters.toJson(Discounts,'List',context!), 'Taxes': JsonConverters.toJson(Taxes,'List',context!) }); getTypeName() => "SessionTotalDetailsBreakdown"; TypeContext? context = _ctx; } class SessionTotalDetails extends StripeEntity1 implements IConvertible { int? AmountDiscount; int? AmountShipping; int? AmountTax; SessionTotalDetailsBreakdown? Breakdown; SessionTotalDetails({this.AmountDiscount,this.AmountShipping,this.AmountTax,this.Breakdown}); SessionTotalDetails.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); AmountDiscount = json['AmountDiscount']; AmountShipping = json['AmountShipping']; AmountTax = json['AmountTax']; Breakdown = JsonConverters.fromJson(json['Breakdown'],'SessionTotalDetailsBreakdown',context!); return this; } Map toJson() => super.toJson()..addAll({ 'AmountDiscount': AmountDiscount, 'AmountShipping': AmountShipping, 'AmountTax': AmountTax, 'Breakdown': JsonConverters.toJson(Breakdown,'SessionTotalDetailsBreakdown',context!) }); getTypeName() => "SessionTotalDetails"; TypeContext? context = _ctx; } abstract class StripeResponseBase { HttpStatusCode? StatusCode; HttpResponseHeaders? Headers; DateTime? Date; String? IdempotencyKey; String? RequestId; StripeResponseBase({this.StatusCode,this.Headers,this.Date,this.IdempotencyKey,this.RequestId}); StripeResponseBase.fromJson(Map json) { fromMap(json); } fromMap(Map json) { StatusCode = JsonConverters.fromJson(json['StatusCode'],'HttpStatusCode',context!); Headers = JsonConverters.fromJson(json['Headers'],'HttpResponseHeaders',context!); Date = JsonConverters.fromJson(json['Date'],'DateTime',context!); IdempotencyKey = json['IdempotencyKey']; RequestId = json['RequestId']; return this; } Map toJson() => { 'StatusCode': JsonConverters.toJson(StatusCode,'HttpStatusCode',context!), 'Headers': JsonConverters.toJson(Headers,'HttpResponseHeaders',context!), 'Date': JsonConverters.toJson(Date,'DateTime',context!), 'IdempotencyKey': IdempotencyKey, 'RequestId': RequestId }; getTypeName() => "StripeResponseBase"; TypeContext? context = _ctx; } class StripeResponse extends StripeResponseBase implements IConvertible { String? Content; StripeResponse({this.Content}); StripeResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); Content = json['Content']; return this; } Map toJson() => super.toJson()..addAll({ 'Content': Content }); getTypeName() => "StripeResponse"; TypeContext? context = _ctx; } abstract class IStripeEntity { StripeResponse? StripeResponse; } abstract class IHasId { String? Id; } abstract class IHasMetadata { Map? Metadata; } abstract class IHasObject { String? Object; } class Session extends StripeEntity1 implements IHasId, IHasMetadata, IHasObject, IConvertible { String? Id; String? Object; SessionAfterExpiration? AfterExpiration; bool? AllowPromotionCodes; int? AmountSubtotal; int? AmountTotal; SessionAutomaticTax? AutomaticTax; String? BillingAddressCollection; String? CancelUrl; String? ClientReferenceId; SessionConsent? Consent; SessionConsentCollection? ConsentCollection; DateTime? Created; String? Currency; List? CustomFields; SessionCustomText? CustomText; String? CustomerCreation; SessionCustomerDetails? CustomerDetails; String? CustomerEmail; DateTime? ExpiresAt; SessionInvoiceCreation? InvoiceCreation; StripeList? LineItems; bool? Livemode; String? Locale; Map? Metadata; String? Mode; String? PaymentMethodCollection; SessionPaymentMethodOptions? PaymentMethodOptions; List? PaymentMethodTypes; String? PaymentStatus; SessionPhoneNumberCollection? PhoneNumberCollection; String? RecoveredFrom; SessionShippingAddressCollection? ShippingAddressCollection; SessionShippingCost? ShippingCost; SessionShippingDetails? ShippingDetails; List? ShippingOptions; String? Status; String? SubmitType; String? SuccessUrl; SessionTaxIdCollection? TaxIdCollection; SessionTotalDetails? TotalDetails; String? Url; Session({this.Id,this.Object,this.AfterExpiration,this.AllowPromotionCodes,this.AmountSubtotal,this.AmountTotal,this.AutomaticTax,this.BillingAddressCollection,this.CancelUrl,this.ClientReferenceId,this.Consent,this.ConsentCollection,this.Created,this.Currency,this.CustomFields,this.CustomText,this.CustomerCreation,this.CustomerDetails,this.CustomerEmail,this.ExpiresAt,this.InvoiceCreation,this.LineItems,this.Livemode,this.Locale,this.Metadata,this.Mode,this.PaymentMethodCollection,this.PaymentMethodOptions,this.PaymentMethodTypes,this.PaymentStatus,this.PhoneNumberCollection,this.RecoveredFrom,this.ShippingAddressCollection,this.ShippingCost,this.ShippingDetails,this.ShippingOptions,this.Status,this.SubmitType,this.SuccessUrl,this.TaxIdCollection,this.TotalDetails,this.Url}); Session.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); Id = json['Id']; Object = json['Object']; AfterExpiration = JsonConverters.fromJson(json['AfterExpiration'],'SessionAfterExpiration',context!); AllowPromotionCodes = json['AllowPromotionCodes']; AmountSubtotal = json['AmountSubtotal']; AmountTotal = json['AmountTotal']; AutomaticTax = JsonConverters.fromJson(json['AutomaticTax'],'SessionAutomaticTax',context!); BillingAddressCollection = json['BillingAddressCollection']; CancelUrl = json['CancelUrl']; ClientReferenceId = json['ClientReferenceId']; Consent = JsonConverters.fromJson(json['Consent'],'SessionConsent',context!); ConsentCollection = JsonConverters.fromJson(json['ConsentCollection'],'SessionConsentCollection',context!); Created = JsonConverters.fromJson(json['Created'],'DateTime',context!); Currency = json['Currency']; CustomFields = JsonConverters.fromJson(json['CustomFields'],'List',context!); CustomText = JsonConverters.fromJson(json['CustomText'],'SessionCustomText',context!); CustomerCreation = json['CustomerCreation']; CustomerDetails = JsonConverters.fromJson(json['CustomerDetails'],'SessionCustomerDetails',context!); CustomerEmail = json['CustomerEmail']; ExpiresAt = JsonConverters.fromJson(json['ExpiresAt'],'DateTime',context!); InvoiceCreation = JsonConverters.fromJson(json['InvoiceCreation'],'SessionInvoiceCreation',context!); LineItems = JsonConverters.fromJson(json['LineItems'],'StripeList',context!); Livemode = json['Livemode']; Locale = json['Locale']; Metadata = JsonConverters.toStringMap(json['Metadata']); Mode = json['Mode']; PaymentMethodCollection = json['PaymentMethodCollection']; PaymentMethodOptions = JsonConverters.fromJson(json['PaymentMethodOptions'],'SessionPaymentMethodOptions',context!); PaymentMethodTypes = JsonConverters.fromJson(json['PaymentMethodTypes'],'List',context!); PaymentStatus = json['PaymentStatus']; PhoneNumberCollection = JsonConverters.fromJson(json['PhoneNumberCollection'],'SessionPhoneNumberCollection',context!); RecoveredFrom = json['RecoveredFrom']; ShippingAddressCollection = JsonConverters.fromJson(json['ShippingAddressCollection'],'SessionShippingAddressCollection',context!); ShippingCost = JsonConverters.fromJson(json['ShippingCost'],'SessionShippingCost',context!); ShippingDetails = JsonConverters.fromJson(json['ShippingDetails'],'SessionShippingDetails',context!); ShippingOptions = JsonConverters.fromJson(json['ShippingOptions'],'List',context!); Status = json['Status']; SubmitType = json['SubmitType']; SuccessUrl = json['SuccessUrl']; TaxIdCollection = JsonConverters.fromJson(json['TaxIdCollection'],'SessionTaxIdCollection',context!); TotalDetails = JsonConverters.fromJson(json['TotalDetails'],'SessionTotalDetails',context!); Url = json['Url']; return this; } Map toJson() => super.toJson()..addAll({ 'Id': Id, 'Object': Object, 'AfterExpiration': JsonConverters.toJson(AfterExpiration,'SessionAfterExpiration',context!), 'AllowPromotionCodes': AllowPromotionCodes, 'AmountSubtotal': AmountSubtotal, 'AmountTotal': AmountTotal, 'AutomaticTax': JsonConverters.toJson(AutomaticTax,'SessionAutomaticTax',context!), 'BillingAddressCollection': BillingAddressCollection, 'CancelUrl': CancelUrl, 'ClientReferenceId': ClientReferenceId, 'Consent': JsonConverters.toJson(Consent,'SessionConsent',context!), 'ConsentCollection': JsonConverters.toJson(ConsentCollection,'SessionConsentCollection',context!), 'Created': JsonConverters.toJson(Created,'DateTime',context!), 'Currency': Currency, 'CustomFields': JsonConverters.toJson(CustomFields,'List',context!), 'CustomText': JsonConverters.toJson(CustomText,'SessionCustomText',context!), 'CustomerCreation': CustomerCreation, 'CustomerDetails': JsonConverters.toJson(CustomerDetails,'SessionCustomerDetails',context!), 'CustomerEmail': CustomerEmail, 'ExpiresAt': JsonConverters.toJson(ExpiresAt,'DateTime',context!), 'InvoiceCreation': JsonConverters.toJson(InvoiceCreation,'SessionInvoiceCreation',context!), 'LineItems': JsonConverters.toJson(LineItems,'StripeList',context!), 'Livemode': Livemode, 'Locale': Locale, 'Metadata': Metadata, 'Mode': Mode, 'PaymentMethodCollection': PaymentMethodCollection, 'PaymentMethodOptions': JsonConverters.toJson(PaymentMethodOptions,'SessionPaymentMethodOptions',context!), 'PaymentMethodTypes': JsonConverters.toJson(PaymentMethodTypes,'List',context!), 'PaymentStatus': PaymentStatus, 'PhoneNumberCollection': JsonConverters.toJson(PhoneNumberCollection,'SessionPhoneNumberCollection',context!), 'RecoveredFrom': RecoveredFrom, 'ShippingAddressCollection': JsonConverters.toJson(ShippingAddressCollection,'SessionShippingAddressCollection',context!), 'ShippingCost': JsonConverters.toJson(ShippingCost,'SessionShippingCost',context!), 'ShippingDetails': JsonConverters.toJson(ShippingDetails,'SessionShippingDetails',context!), 'ShippingOptions': JsonConverters.toJson(ShippingOptions,'List',context!), 'Status': Status, 'SubmitType': SubmitType, 'SuccessUrl': SuccessUrl, 'TaxIdCollection': JsonConverters.toJson(TaxIdCollection,'SessionTaxIdCollection',context!), 'TotalDetails': JsonConverters.toJson(TotalDetails,'SessionTotalDetails',context!), 'Url': Url }); getTypeName() => "Session"; TypeContext? context = _ctx; } // @Route("/stripe-session/{Id}") class GetStripeSession implements IReturn, IConvertible, IGet { String? Id; GetStripeSession({this.Id}); GetStripeSession.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Id = json['Id']; return this; } Map toJson() => { 'Id': Id }; createResponse() => Session(); getResponseTypeName() => "Session"; getTypeName() => "GetStripeSession"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'duengageapi.uat.scadsoftware.com', types: { 'StripeEntity': TypeInfo(TypeOf.AbstractClass), 'StripeEntity1': TypeInfo(TypeOf.GenericDef,create:() => StripeEntity1()), 'SessionAfterExpirationRecovery': TypeInfo(TypeOf.Class, create:() => SessionAfterExpirationRecovery()), 'SessionAfterExpiration': TypeInfo(TypeOf.Class, create:() => SessionAfterExpiration()), 'SessionAutomaticTax': TypeInfo(TypeOf.Class, create:() => SessionAutomaticTax()), 'SessionConsent': TypeInfo(TypeOf.Class, create:() => SessionConsent()), 'SessionConsentCollection': TypeInfo(TypeOf.Class, create:() => SessionConsentCollection()), 'SessionCustomFieldDropdownOption': TypeInfo(TypeOf.Class, create:() => SessionCustomFieldDropdownOption()), 'SessionCustomFieldDropdown': TypeInfo(TypeOf.Class, create:() => SessionCustomFieldDropdown()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'SessionCustomFieldLabel': TypeInfo(TypeOf.Class, create:() => SessionCustomFieldLabel()), 'SessionCustomFieldNumeric': TypeInfo(TypeOf.Class, create:() => SessionCustomFieldNumeric()), 'SessionCustomFieldText': TypeInfo(TypeOf.Class, create:() => SessionCustomFieldText()), 'SessionCustomField': TypeInfo(TypeOf.Class, create:() => SessionCustomField()), 'SessionCustomTextShippingAddress': TypeInfo(TypeOf.Class, create:() => SessionCustomTextShippingAddress()), 'SessionCustomTextSubmit': TypeInfo(TypeOf.Class, create:() => SessionCustomTextSubmit()), 'SessionCustomText': TypeInfo(TypeOf.Class, create:() => SessionCustomText()), 'Address': TypeInfo(TypeOf.Class, create:() => Address()), 'SessionCustomerDetailsTaxId': TypeInfo(TypeOf.Class, create:() => SessionCustomerDetailsTaxId()), 'SessionCustomerDetails': TypeInfo(TypeOf.Class, create:() => SessionCustomerDetails()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'SessionInvoiceCreationInvoiceDataCustomField': TypeInfo(TypeOf.Class, create:() => SessionInvoiceCreationInvoiceDataCustomField()), 'SessionInvoiceCreationInvoiceDataRenderingOptions': TypeInfo(TypeOf.Class, create:() => SessionInvoiceCreationInvoiceDataRenderingOptions()), 'SessionInvoiceCreationInvoiceData': TypeInfo(TypeOf.Class, create:() => SessionInvoiceCreationInvoiceData()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'SessionInvoiceCreation': TypeInfo(TypeOf.Class, create:() => SessionInvoiceCreation()), 'StripeList': TypeInfo(TypeOf.GenericDef,create:() => StripeList()), 'CouponAppliesTo': TypeInfo(TypeOf.Class, create:() => CouponAppliesTo()), 'CouponCurrencyOptions': TypeInfo(TypeOf.Class, create:() => CouponCurrencyOptions()), 'Coupon': TypeInfo(TypeOf.Class, create:() => Coupon()), 'Map': TypeInfo(TypeOf.Class, create:() => Map()), 'Discount': TypeInfo(TypeOf.Class, create:() => Discount()), 'LineItemDiscount': TypeInfo(TypeOf.Class, create:() => LineItemDiscount()), 'PriceCurrencyOptionsCustomUnitAmount': TypeInfo(TypeOf.Class, create:() => PriceCurrencyOptionsCustomUnitAmount()), 'PriceCurrencyOptionsTier': TypeInfo(TypeOf.Class, create:() => PriceCurrencyOptionsTier()), 'PriceCurrencyOptions': TypeInfo(TypeOf.Class, create:() => PriceCurrencyOptions()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'PriceCustomUnitAmount': TypeInfo(TypeOf.Class, create:() => PriceCustomUnitAmount()), 'PriceRecurring': TypeInfo(TypeOf.Class, create:() => PriceRecurring()), 'PriceTier': TypeInfo(TypeOf.Class, create:() => PriceTier()), 'PriceTransformQuantity': TypeInfo(TypeOf.Class, create:() => PriceTransformQuantity()), 'Price': TypeInfo(TypeOf.Class, create:() => Price()), 'Map': TypeInfo(TypeOf.Class, create:() => Map()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'TaxRate': TypeInfo(TypeOf.Class, create:() => TaxRate()), 'LineItemTax': TypeInfo(TypeOf.Class, create:() => LineItemTax()), 'LineItem': TypeInfo(TypeOf.Class, create:() => LineItem()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'SessionPaymentMethodOptionsAcssDebitMandateOptions': TypeInfo(TypeOf.Class, create:() => SessionPaymentMethodOptionsAcssDebitMandateOptions()), 'SessionPaymentMethodOptionsAcssDebit': TypeInfo(TypeOf.Class, create:() => SessionPaymentMethodOptionsAcssDebit()), 'SessionPaymentMethodOptionsAffirm': TypeInfo(TypeOf.Class, create:() => SessionPaymentMethodOptionsAffirm()), 'SessionPaymentMethodOptionsAfterpayClearpay': TypeInfo(TypeOf.Class, create:() => SessionPaymentMethodOptionsAfterpayClearpay()), 'SessionPaymentMethodOptionsAlipay': TypeInfo(TypeOf.Class, create:() => SessionPaymentMethodOptionsAlipay()), 'SessionPaymentMethodOptionsAuBecsDebit': TypeInfo(TypeOf.Class, create:() => SessionPaymentMethodOptionsAuBecsDebit()), 'SessionPaymentMethodOptionsBacsDebit': TypeInfo(TypeOf.Class, create:() => SessionPaymentMethodOptionsBacsDebit()), 'SessionPaymentMethodOptionsBancontact': TypeInfo(TypeOf.Class, create:() => SessionPaymentMethodOptionsBancontact()), 'SessionPaymentMethodOptionsBoleto': TypeInfo(TypeOf.Class, create:() => SessionPaymentMethodOptionsBoleto()), 'SessionPaymentMethodOptionsCardInstallments': TypeInfo(TypeOf.Class, create:() => SessionPaymentMethodOptionsCardInstallments()), 'SessionPaymentMethodOptionsCard': TypeInfo(TypeOf.Class, create:() => SessionPaymentMethodOptionsCard()), 'SessionPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer': TypeInfo(TypeOf.Class, create:() => SessionPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer()), 'SessionPaymentMethodOptionsCustomerBalanceBankTransfer': TypeInfo(TypeOf.Class, create:() => SessionPaymentMethodOptionsCustomerBalanceBankTransfer()), 'SessionPaymentMethodOptionsCustomerBalance': TypeInfo(TypeOf.Class, create:() => SessionPaymentMethodOptionsCustomerBalance()), 'SessionPaymentMethodOptionsEps': TypeInfo(TypeOf.Class, create:() => SessionPaymentMethodOptionsEps()), 'SessionPaymentMethodOptionsFpx': TypeInfo(TypeOf.Class, create:() => SessionPaymentMethodOptionsFpx()), 'SessionPaymentMethodOptionsGiropay': TypeInfo(TypeOf.Class, create:() => SessionPaymentMethodOptionsGiropay()), 'SessionPaymentMethodOptionsGrabpay': TypeInfo(TypeOf.Class, create:() => SessionPaymentMethodOptionsGrabpay()), 'SessionPaymentMethodOptionsIdeal': TypeInfo(TypeOf.Class, create:() => SessionPaymentMethodOptionsIdeal()), 'SessionPaymentMethodOptionsKlarna': TypeInfo(TypeOf.Class, create:() => SessionPaymentMethodOptionsKlarna()), 'SessionPaymentMethodOptionsKonbini': TypeInfo(TypeOf.Class, create:() => SessionPaymentMethodOptionsKonbini()), 'SessionPaymentMethodOptionsOxxo': TypeInfo(TypeOf.Class, create:() => SessionPaymentMethodOptionsOxxo()), 'SessionPaymentMethodOptionsP24': TypeInfo(TypeOf.Class, create:() => SessionPaymentMethodOptionsP24()), 'SessionPaymentMethodOptionsPaynow': TypeInfo(TypeOf.Class, create:() => SessionPaymentMethodOptionsPaynow()), 'SessionPaymentMethodOptionsPix': TypeInfo(TypeOf.Class, create:() => SessionPaymentMethodOptionsPix()), 'SessionPaymentMethodOptionsSepaDebit': TypeInfo(TypeOf.Class, create:() => SessionPaymentMethodOptionsSepaDebit()), 'SessionPaymentMethodOptionsSofort': TypeInfo(TypeOf.Class, create:() => SessionPaymentMethodOptionsSofort()), 'SessionPaymentMethodOptionsUsBankAccountFinancialConnections': TypeInfo(TypeOf.Class, create:() => SessionPaymentMethodOptionsUsBankAccountFinancialConnections()), 'SessionPaymentMethodOptionsUsBankAccount': TypeInfo(TypeOf.Class, create:() => SessionPaymentMethodOptionsUsBankAccount()), 'SessionPaymentMethodOptions': TypeInfo(TypeOf.Class, create:() => SessionPaymentMethodOptions()), 'SessionPhoneNumberCollection': TypeInfo(TypeOf.Class, create:() => SessionPhoneNumberCollection()), 'SessionShippingAddressCollection': TypeInfo(TypeOf.Class, create:() => SessionShippingAddressCollection()), 'SessionShippingCostTax': TypeInfo(TypeOf.Class, create:() => SessionShippingCostTax()), 'SessionShippingCost': TypeInfo(TypeOf.Class, create:() => SessionShippingCost()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'SessionShippingDetails': TypeInfo(TypeOf.Class, create:() => SessionShippingDetails()), 'SessionShippingOption': TypeInfo(TypeOf.Class, create:() => SessionShippingOption()), 'SessionTaxIdCollection': TypeInfo(TypeOf.Class, create:() => SessionTaxIdCollection()), 'SessionTotalDetailsBreakdownDiscount': TypeInfo(TypeOf.Class, create:() => SessionTotalDetailsBreakdownDiscount()), 'SessionTotalDetailsBreakdownTax': TypeInfo(TypeOf.Class, create:() => SessionTotalDetailsBreakdownTax()), 'SessionTotalDetailsBreakdown': TypeInfo(TypeOf.Class, create:() => SessionTotalDetailsBreakdown()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'SessionTotalDetails': TypeInfo(TypeOf.Class, create:() => SessionTotalDetails()), 'StripeResponseBase': TypeInfo(TypeOf.AbstractClass), 'HttpStatusCode': TypeInfo(TypeOf.Class, create:() => HttpStatusCode()), 'HttpResponseHeaders': TypeInfo(TypeOf.Class, create:() => HttpResponseHeaders()), 'StripeResponse': TypeInfo(TypeOf.Class, create:() => StripeResponse()), 'IStripeEntity': TypeInfo(TypeOf.Interface), 'IHasId': TypeInfo(TypeOf.Interface), 'IHasMetadata': TypeInfo(TypeOf.Interface), 'IHasObject': TypeInfo(TypeOf.Interface), 'Session': TypeInfo(TypeOf.Class, create:() => Session()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'StripeList': TypeInfo(TypeOf.Class, create:() => StripeList()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'GetStripeSession': TypeInfo(TypeOf.Class, create:() => GetStripeSession()), });