/* Options: Date: 2024-11-07 07:40:52 Version: 8.23 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://testapi.bokamera.se //Package: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: StripeV1CreateCheckout.* //ExcludeTypes: //InitializeCollections: True //TreatTypesAsStrings: //DefaultImports: java.math.*,java.util.*,net.servicestack.client.* */ import java.math.* import java.util.* 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) var CompanyId:UUID? = null /** * Country code for checkout */ @ApiMember(Description="Country code for checkout", IsRequired=true) var CountryCode:String? = null /** * Articles (Could be Service, rebate code types, etc.. */ @ApiMember(Description="Articles (Could be Service, rebate code types, etc..", IsRequired=true) var Articles:ArrayList? = null /** * An internal reference id (Could be booking, rebate code etc.) */ @ApiMember(Description="An internal reference id (Could be booking, rebate code etc.)", IsRequired=true) 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.") 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.") 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) 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") var Number: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") var Url:String? = null /** * The checkout status */ @ApiMember(Description="The checkout status") 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.") var ClientSecret:String? = null } open interface ICompany { var CompanyId:UUID? }