/* Options: Date: 2025-10-25 15:37:13 Version: 8.80 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.bokamera.se //Package: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: StripeV1CreateCheckout.* //ExcludeTypes: //InitializeCollections: False //TreatTypesAsStrings: //DefaultImports: java.math.*,java.util.*,java.io.InputStream,net.servicestack.client.* */ import java.math.* import java.util.* import java.io.InputStream import net.servicestack.client.* @Route(Path="/payment/stripe/v1/checkout", Verbs="POST") open class StripeV1CreateCheckout : IReturn, ICompany { /** * The company id. */ @ApiMember(Description="The company id.", IsRequired=true) override var CompanyId:UUID? = null /** * Country code for checkout */ @ApiMember(Description="Country code for checkout", IsRequired=true) open var CountryCode:String? = null /** * Articles (Could be Service, rebate code types, etc.. */ @ApiMember(Description="Articles (Could be Service, rebate code types, etc..", IsRequired=true) open var Articles:ArrayList = ArrayList() /** * An internal reference id (Could be booking, rebate code etc.) */ @ApiMember(Description="An internal reference id (Could be booking, rebate code etc.)", IsRequired=true) open var InternalReferenceId:String? = null /** * Optional to set your own confirmation url after payment completed. */ @ApiMember(Description="Optional to set your own confirmation url after payment completed.") open var ConfirmationUrl:String? = null /** * If set, Checkout displays a back button and customers will be directed to this URL if they decide to cancel payment and return to your website. This parameter is not allowed if ui_mode is embedded. */ @ApiMember(Description="If set, Checkout displays a back button and customers will be directed to this URL if they decide to cancel payment and return to your website. This parameter is not allowed if ui_mode is embedded.") open var CancelUrl:String? = null /** * The UI mode of the Session. Defaults to hosted; One of: embedded, or hosted */ @ApiMember(Description="The UI mode of the Session. Defaults to hosted; One of: embedded, or hosted", IsRequired=true) open var UiMode:String? = null companion object { private val responseType = StripeCheckoutQueryResponse::class.java } override fun getResponseType(): Any? = StripeV1CreateCheckout.responseType } open class StripeCheckoutQueryResponse { /** * The checkout session id */ @ApiMember(Description="The checkout session id") open var SessionId:String? = null /** * The url for checkout module to be placed in a iframe */ @ApiMember(Description="The url for checkout module to be placed in a iframe") open var Url:String? = null /** * The checkout status */ @ApiMember(Description="The checkout status") open var Status:String? = null /** * Client secret to be used when initializing Stripe.js embedded checkout. */ @ApiMember(Description="Client secret to be used when initializing Stripe.js embedded checkout.") open var ClientSecret:String? = null /** * (ID of the Customer) The ID of the customer for this Session. For Checkout Sessions in subscription mode or Checkout Sessions with customer_creation set as always in payment mode, Checkout will create a new customer object based on information provided during the payment flow unless an existing customer was provided when the Session was created. */ @ApiMember(Description="(ID of the Customer) The ID of the customer for this Session. For Checkout Sessions in subscription mode or Checkout Sessions with customer_creation set as always in payment mode, Checkout will create a new customer object based on information provided during the payment flow unless an existing customer was provided when the Session was created.") open var CustomerId:String? = null /** * The client secret of this PaymentIntent. Used for client-side retrieval using a publishable key. The client secret can be used to complete a payment from your frontend. It should not be stored, logged, or exposed to anyone other than the customer. Make sure that you have TLS enabled on any page that includes the client secret. Refer to our docs to accept a payment and learn about how client_secret should be handled. */ @ApiMember(Description="The client secret of this PaymentIntent. Used for client-side retrieval using a publishable key. The client secret can be used to complete a payment from your frontend. It should not be stored, logged, or exposed to anyone other than the customer. Make sure that you have TLS enabled on any page that includes the client secret. Refer to our docs to accept a payment and learn about how client_secret should be handled.") open var PaymentIntentClientSecret:String? = null open var PaymentIntentId:String? = null open var StripeAccount:String? = null } interface ICompany { var CompanyId:UUID? }