import { k as GetCheckoutSettingsRequest$1, G as GetCheckoutSettingsResponse$1, a as GetCheckoutSettingsResponseNonNullableFields$1, l as UpdateCheckoutSettingsRequest$1, U as UpdateCheckoutSettingsResponse$1, b as UpdateCheckoutSettingsResponseNonNullableFields$1 } from './ecom-v1-checkout-settings-checkout-settings.universal-3Mg416Jj.js';
interface CheckoutSettings {
/** Checkout policies. */
checkoutPolicies?: CheckoutPolicies;
/** Settings that apply to checkout fields and the checkout process. */
checkoutFields?: CheckoutFields;
/** Checkout brand settings. */
checkoutBrand?: CheckoutBrand;
/**
* Date and time the checkout settings were created.
* @readonly
*/
createdDate?: Date | null;
/**
* Date and time the checkout settings were updated.
* @readonly
*/
updatedDate?: Date | null;
}
interface CheckoutPolicies {
/** Terms and conditions. */
termsAndConditions?: TermsAndConditionsPolicy;
/** Privacy policy. */
privacyPolicy?: PrivacyPolicy;
/** Return policy. */
returnPolicy?: ReturnPolicy;
/** Digital item policy. */
digitalItemPolicy?: DigitalItemPolicy;
/** "Contact us" information. */
contactUs?: ContactUsPolicy;
/** Custom policy. */
customPolicy?: CustomCheckoutPolicy;
}
interface TermsAndConditionsPolicy {
/**
* Whether the terms & conditions policy is visible to the customer in the checkout page.
*
* Default: `false`
*/
visible?: boolean | null;
/** Terms and conditions policy content. */
content?: string | null;
}
interface PrivacyPolicy {
/**
* Whether the privacy policy is visible to the customer in the checkout page.
*
* Default: `false`
*/
visible?: boolean | null;
/** Privacy policy content. */
content?: string | null;
}
interface ReturnPolicy {
/**
* Whether the return policy is visible to the customer in the checkout page.
*
* Default: `false`
*/
visible?: boolean | null;
/** Return policy content. */
content?: string | null;
}
interface DigitalItemPolicy {
/**
* Whether the digital item policy is visible to the customer in the checkout page.
*
* Default: `false`
*/
visible?: boolean | null;
/** Digital item policy content. */
content?: string | null;
}
interface ContactUsPolicy {
/**
* Whether the contact us policy is visible to the customer in the checkout page.
*
* Default: `false`
*/
visible?: boolean | null;
/** Contact us policy content. */
content?: string | null;
}
interface CustomCheckoutPolicy {
/**
* Whether the policy is visible to the customer in the checkout page.
*
* Default: `false`
*/
visible?: boolean | null;
/** Policy content. */
content?: string | null;
/** Policy title. */
title?: string | null;
}
interface CheckoutFields {
/**
* Subscription checkbox.
*
* Defaults:
* + `visible`: `false`
* + `checkedByDefault`: `false`
*/
subscriptionCheckbox?: CheckboxField;
/**
* Policy agreement checkbox.
*
* Defaults:
* + `visible`: `true`
* + `checkedByDefault`: `true`
*/
policyAgreementCheckbox?: CheckboxField;
/**
* Whether the ability to redeem a gift card is enabled.
*
* Default: `false`
*/
giftCardRedeemEnabled?: boolean | null;
/**
* Whether to allow for MIT transactions.
*
* Default: `false`
*/
mitEnabled?: boolean | null;
/**
* Whether to allow for Auth & Capture transactions.
*
* Default: `false`
*/
delayCaptureEnabled?: boolean | null;
/**
* Whether to automatically capture the transaction before the authorization expires.
*
* Default: `true`
* >**Note:** this setting is only relevant when `delay_capture_enabled: true`.
*/
captureBeforeExpiryEnabled?: boolean | null;
}
interface CheckboxField {
/** Whether the checkbox is visible to the customer. */
visible?: boolean | null;
/** Whether the checkbox is checked by default. */
checkedByDefault?: boolean | null;
}
interface CheckoutBrand {
/** Checkout header. */
header?: CheckoutHeader;
}
interface CheckoutHeader {
/**
* Textual content to be included in the header (e.g. Business Name)
* TODO: update maxLength validation once limitation is known
*/
text?: string | null;
/** Specifications for when a logo is included in the header. */
logo?: Logo;
/**
* Alignment within the header.
*
* >**Note:** `SIDE` alignment is decided depending on the locale's language. For example, scripts like Hebrew and Arabic will automatically align right-to-left.
*/
alignment?: Alignment;
/**
* Whether to display the 'Checkout' label within the header.
* Depending on the locale, the label may be translated.
*/
displayCheckoutLabel?: boolean | null;
}
interface Logo {
/** Size of the logo. */
size?: LogoSize;
}
declare enum LogoSize {
UNKNOWN_LOGO_SIZE = "UNKNOWN_LOGO_SIZE",
SMALL = "SMALL",
MEDIUM = "MEDIUM",
LARGE = "LARGE"
}
declare enum Alignment {
UNKNOWN_ALIGNMENT = "UNKNOWN_ALIGNMENT",
SIDE = "SIDE",
CENTER = "CENTER"
}
interface GetCheckoutSettingsRequest {
}
interface GetCheckoutSettingsResponse {
/** Checkout settings. */
checkoutSettings?: CheckoutSettings;
}
interface UpdateCheckoutSettingsRequest {
/** Checkout settings to update. */
checkoutSettings: CheckoutSettings;
}
interface UpdateCheckoutSettingsResponse {
/** The updated checkout settings. */
checkoutSettings?: CheckoutSettings;
}
interface LogoNonNullableFields {
size: LogoSize;
}
interface CheckoutHeaderNonNullableFields {
logo?: LogoNonNullableFields;
alignment: Alignment;
}
interface CheckoutBrandNonNullableFields {
header?: CheckoutHeaderNonNullableFields;
}
interface CheckoutSettingsNonNullableFields {
checkoutBrand?: CheckoutBrandNonNullableFields;
}
interface GetCheckoutSettingsResponseNonNullableFields {
checkoutSettings?: CheckoutSettingsNonNullableFields;
}
interface UpdateCheckoutSettingsResponseNonNullableFields {
checkoutSettings?: CheckoutSettingsNonNullableFields;
}
type __PublicMethodMetaInfo = {
getUrl: (context: any) => string;
httpMethod: K;
path: string;
pathParams: M;
__requestType: T;
__originalRequestType: S;
__responseType: Q;
__originalResponseType: R;
};
declare function getCheckoutSettings(): __PublicMethodMetaInfo<'GET', {}, GetCheckoutSettingsRequest$1, GetCheckoutSettingsRequest, GetCheckoutSettingsResponse$1 & GetCheckoutSettingsResponseNonNullableFields$1, GetCheckoutSettingsResponse & GetCheckoutSettingsResponseNonNullableFields>;
declare function updateCheckoutSettings(): __PublicMethodMetaInfo<'PATCH', {}, UpdateCheckoutSettingsRequest$1, UpdateCheckoutSettingsRequest, UpdateCheckoutSettingsResponse$1 & UpdateCheckoutSettingsResponseNonNullableFields$1, UpdateCheckoutSettingsResponse & UpdateCheckoutSettingsResponseNonNullableFields>;
export { type __PublicMethodMetaInfo, getCheckoutSettings, updateCheckoutSettings };