/* Options: Date: 2024-11-07 07:30:49 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 Number = 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; public String getNumber() { return Number; } public StripeCheckoutQueryResponse setNumber(String value) { this.Number = 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 static interface ICompany { public UUID CompanyId = null; } }