/* Options: Date: 2025-04-10 18:48:19 Version: 8.23 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://testapi.bokamera.se //Package: //GlobalNamespace: dtos //AddPropertyAccessors: True //SettersReturnThis: True //AddServiceStackTypes: True //AddResponseStatus: False //AddDescriptionAsComments: True //AddImplicitVersion: IncludeTypes: StripeV1CreateCheckout.* //ExcludeTypes: //TreatTypesAsStrings: //DefaultImports: java.math.*,java.util.*,net.servicestack.client.* */ import java.math.*; import java.util.*; import net.servicestack.client.*; public class dtos { @Route(Path="/payment/stripe/v1/checkout", Verbs="POST") public static class StripeV1CreateCheckout implements IReturn, ICompany { /** * The company id. */ @ApiMember(Description="The company id.", IsRequired=true) public UUID CompanyId = null; /** * Country code for checkout */ @ApiMember(Description="Country code for checkout", IsRequired=true) public String CountryCode = null; /** * Articles (Could be Service, rebate code types, etc.. */ @ApiMember(Description="Articles (Could be Service, rebate code types, etc..", IsRequired=true) public ArrayList Articles = 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) public String InternalReferenceId = null; /** * Optional to set your own confirmation url after payment completed. */ @ApiMember(Description="Optional to set your own confirmation url after payment completed.") public String ConfirmationUrl = 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.") public String CancelUrl = 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) public String UiMode = null; public UUID getCompanyId() { return CompanyId; } public StripeV1CreateCheckout setCompanyId(UUID value) { this.CompanyId = value; return this; } public String getCountryCode() { return CountryCode; } public StripeV1CreateCheckout setCountryCode(String value) { this.CountryCode = value; return this; } public ArrayList getArticles() { return Articles; } public StripeV1CreateCheckout setArticles(ArrayList value) { this.Articles = value; return this; } public String getInternalReferenceId() { return InternalReferenceId; } public StripeV1CreateCheckout setInternalReferenceId(String value) { this.InternalReferenceId = value; return this; } public String getConfirmationUrl() { return ConfirmationUrl; } public StripeV1CreateCheckout setConfirmationUrl(String value) { this.ConfirmationUrl = value; return this; } public String getCancelUrl() { return CancelUrl; } public StripeV1CreateCheckout setCancelUrl(String value) { this.CancelUrl = value; return this; } public String getUiMode() { return UiMode; } public StripeV1CreateCheckout setUiMode(String value) { this.UiMode = value; return this; } private static Object responseType = StripeCheckoutQueryResponse.class; public Object getResponseType() { return responseType; } } public static class StripeCheckoutQueryResponse { /** * The checkout session id */ @ApiMember(Description="The checkout session id") public String SessionId = 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") public String Url = null; /** * The checkout status */ @ApiMember(Description="The checkout status") public String Status = 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.") public String ClientSecret = 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.") public String CustomerId = 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.") public String PaymentIntentClientSecret = null; public String PaymentIntentId = null; public String StripeAccount = null; public String getSessionId() { return SessionId; } public StripeCheckoutQueryResponse setSessionId(String value) { this.SessionId = value; return this; } public String getUrl() { return Url; } public StripeCheckoutQueryResponse setUrl(String value) { this.Url = value; return this; } public String getStatus() { return Status; } public StripeCheckoutQueryResponse setStatus(String value) { this.Status = value; return this; } public String getClientSecret() { return ClientSecret; } public StripeCheckoutQueryResponse setClientSecret(String value) { this.ClientSecret = value; return this; } public String getCustomerId() { return CustomerId; } public StripeCheckoutQueryResponse setCustomerId(String value) { this.CustomerId = value; return this; } public String getPaymentIntentClientSecret() { return PaymentIntentClientSecret; } public StripeCheckoutQueryResponse setPaymentIntentClientSecret(String value) { this.PaymentIntentClientSecret = value; return this; } public String getPaymentIntentId() { return PaymentIntentId; } public StripeCheckoutQueryResponse setPaymentIntentId(String value) { this.PaymentIntentId = value; return this; } public String getStripeAccount() { return StripeAccount; } public StripeCheckoutQueryResponse setStripeAccount(String value) { this.StripeAccount = value; return this; } } public static interface ICompany { public UUID CompanyId = null; } }