/* eslint-disable */ /* tslint:disable */ /** * This is an autogenerated file created by the Stencil compiler. * It contains typing information for all components that exist in this project. */ import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime"; import { StatusType } from "./enums/status-type"; export { StatusType } from "./enums/status-type"; export namespace Components { /** * button component */ interface SalableButton { } interface SalableCancellationButton { "environment"?: string; /** * The generated token for this session from the Salable API */ "sessionToken": string; /** * The uuid of the license or subscription to cancel */ "uuid": string; } interface SalableCheckout { /** * The short name of the currency used in the checkout e.g. USD */ "currency": string; /** * A user's email address to be used for the checkout. Providing the user's email skips the provide email step during checkout */ "email": string; /** * A unique identifier used in licensing that represents the entity to which a license is granted */ "granteeId": string; /** * A unique identifier for a member or user. Deprecated. Use owner instead. */ "member": string; /** * The owner of the subscription. If owner is not provided it is set by the member field. */ "owner": string; /** * A unique identifier for a specific plan */ "planUuid": string; /** * The generated token for this session from the Salable API */ "sessionToken": string; /** * The URL the user is sent to if they successfully completed a payment */ "successUrl": string; } interface SalableDate { /** * The date to display */ "date": string | number; } interface SalableInvoices { /** * The number of rows to display per page */ "limit": number; /** * The generated token for this session */ "sessionToken": string; /** * The uuid of the subscription that you want to display invoices for. */ "subscriptionUuid": string; } interface SalablePricingTable { /** * Enables the promo code field in Stripe checkout. Accepts 'true' or 'false'. Cannot be used with promoCode. */ "allowPromoCode": string; /** * Automatically calculate tax on checkout based on the customer's location and your Stripe settings. */ "automaticTax": string; /** * Uses the currency short name (e.g. USD). Required if pricing table contains paid plans */ "currency": string; /** * Pre-fills the customer email in Stripe checkout. */ "customerEmail": string; /** * The ID of an existing customer in your payment integration. This pre-fills the email, card details, and postcode at checkout. */ "customerId": string; "environment"?: string; /** * The URL to send users to if the transaction fails. Must be an absolute URL. */ "globalCancelUrl": string; /** * The URL to send users for coming soon plans. */ "globalContactUrl": string; /** * The unique identifier for the grantee for all plan checkouts links. */ "globalGranteeId": string; /** * The URL to send users to after a successful purchase. Must be an absolute URL. */ "globalSuccessUrl": string; /** * If you provided the uuid of a custom pricing table set this to true */ "isCustomPricingTable": boolean; /** * The ID of the member who will manage the license. Deprecated. Use owner instead. */ "member": string; /** * The owner of the subscription. If the owner field is not provided it is set by the member field */ "owner": string; /** * Configure cancelUrls per plan, string format `{'plan-uuid-one':'https://example.com/cancel-one','plan-uuid-two':'https://example.com/cancel-two'}` */ "perPlanCancelUrls": Record | string; /** * Configure granteeIds per plan, string format `{'plan-uuid-one': 'granteeIdOne', 'plan-uuid-two': 'granteeIdTwo'}` */ "perPlanGranteeIds": Record | string; /** * Configure successUrls per plan, string format `{'plan-uuid-one': 'https://example.com/success-one' , 'plan-uuid-two': 'https://example.com/success-two'}` */ "perPlanSuccessUrls": Record | string; /** * Used to pre-fill the promo code in Stripe checkout. Use the promo code ID from Stripe dashboard. Customers cannot edit this field during checkout. */ "promoCode": string; /** * The generated token for this session from the Salable API */ "sessionToken": string; /** * The uuid of the pricing table that you want to display. */ "uuid": string; } interface SalableStatus { /** * The status type */ "statusType": StatusType; } } declare global { /** * button component */ interface HTMLSalableButtonElement extends Components.SalableButton, HTMLStencilElement { } var HTMLSalableButtonElement: { prototype: HTMLSalableButtonElement; new (): HTMLSalableButtonElement; }; interface HTMLSalableCancellationButtonElement extends Components.SalableCancellationButton, HTMLStencilElement { } var HTMLSalableCancellationButtonElement: { prototype: HTMLSalableCancellationButtonElement; new (): HTMLSalableCancellationButtonElement; }; interface HTMLSalableCheckoutElement extends Components.SalableCheckout, HTMLStencilElement { } var HTMLSalableCheckoutElement: { prototype: HTMLSalableCheckoutElement; new (): HTMLSalableCheckoutElement; }; interface HTMLSalableDateElement extends Components.SalableDate, HTMLStencilElement { } var HTMLSalableDateElement: { prototype: HTMLSalableDateElement; new (): HTMLSalableDateElement; }; interface HTMLSalableInvoicesElement extends Components.SalableInvoices, HTMLStencilElement { } var HTMLSalableInvoicesElement: { prototype: HTMLSalableInvoicesElement; new (): HTMLSalableInvoicesElement; }; interface HTMLSalablePricingTableElement extends Components.SalablePricingTable, HTMLStencilElement { } var HTMLSalablePricingTableElement: { prototype: HTMLSalablePricingTableElement; new (): HTMLSalablePricingTableElement; }; interface HTMLSalableStatusElement extends Components.SalableStatus, HTMLStencilElement { } var HTMLSalableStatusElement: { prototype: HTMLSalableStatusElement; new (): HTMLSalableStatusElement; }; interface HTMLElementTagNameMap { "salable-button": HTMLSalableButtonElement; "salable-cancellation-button": HTMLSalableCancellationButtonElement; "salable-checkout": HTMLSalableCheckoutElement; "salable-date": HTMLSalableDateElement; "salable-invoices": HTMLSalableInvoicesElement; "salable-pricing-table": HTMLSalablePricingTableElement; "salable-status": HTMLSalableStatusElement; } } declare namespace LocalJSX { /** * button component */ interface SalableButton { } interface SalableCancellationButton { "environment"?: string; /** * The generated token for this session from the Salable API */ "sessionToken": string; /** * The uuid of the license or subscription to cancel */ "uuid": string; } interface SalableCheckout { /** * The short name of the currency used in the checkout e.g. USD */ "currency": string; /** * A user's email address to be used for the checkout. Providing the user's email skips the provide email step during checkout */ "email"?: string; /** * A unique identifier used in licensing that represents the entity to which a license is granted */ "granteeId": string; /** * A unique identifier for a member or user. Deprecated. Use owner instead. */ "member"?: string; /** * The owner of the subscription. If owner is not provided it is set by the member field. */ "owner"?: string; /** * A unique identifier for a specific plan */ "planUuid": string; /** * The generated token for this session from the Salable API */ "sessionToken": string; /** * The URL the user is sent to if they successfully completed a payment */ "successUrl": string; } interface SalableDate { /** * The date to display */ "date"?: string | number; } interface SalableInvoices { /** * The number of rows to display per page */ "limit"?: number; /** * The generated token for this session */ "sessionToken": string; /** * The uuid of the subscription that you want to display invoices for. */ "subscriptionUuid": string; } interface SalablePricingTable { /** * Enables the promo code field in Stripe checkout. Accepts 'true' or 'false'. Cannot be used with promoCode. */ "allowPromoCode"?: string; /** * Automatically calculate tax on checkout based on the customer's location and your Stripe settings. */ "automaticTax"?: string; /** * Uses the currency short name (e.g. USD). Required if pricing table contains paid plans */ "currency"?: string; /** * Pre-fills the customer email in Stripe checkout. */ "customerEmail"?: string; /** * The ID of an existing customer in your payment integration. This pre-fills the email, card details, and postcode at checkout. */ "customerId"?: string; "environment"?: string; /** * The URL to send users to if the transaction fails. Must be an absolute URL. */ "globalCancelUrl": string; /** * The URL to send users for coming soon plans. */ "globalContactUrl"?: string; /** * The unique identifier for the grantee for all plan checkouts links. */ "globalGranteeId": string; /** * The URL to send users to after a successful purchase. Must be an absolute URL. */ "globalSuccessUrl": string; /** * If you provided the uuid of a custom pricing table set this to true */ "isCustomPricingTable"?: boolean; /** * The ID of the member who will manage the license. Deprecated. Use owner instead. */ "member"?: string; /** * The owner of the subscription. If the owner field is not provided it is set by the member field */ "owner"?: string; /** * Configure cancelUrls per plan, string format `{'plan-uuid-one':'https://example.com/cancel-one','plan-uuid-two':'https://example.com/cancel-two'}` */ "perPlanCancelUrls"?: Record | string; /** * Configure granteeIds per plan, string format `{'plan-uuid-one': 'granteeIdOne', 'plan-uuid-two': 'granteeIdTwo'}` */ "perPlanGranteeIds"?: Record | string; /** * Configure successUrls per plan, string format `{'plan-uuid-one': 'https://example.com/success-one' , 'plan-uuid-two': 'https://example.com/success-two'}` */ "perPlanSuccessUrls"?: Record | string; /** * Used to pre-fill the promo code in Stripe checkout. Use the promo code ID from Stripe dashboard. Customers cannot edit this field during checkout. */ "promoCode"?: string; /** * The generated token for this session from the Salable API */ "sessionToken": string; /** * The uuid of the pricing table that you want to display. */ "uuid": string; } interface SalableStatus { /** * The status type */ "statusType"?: StatusType; } interface IntrinsicElements { "salable-button": SalableButton; "salable-cancellation-button": SalableCancellationButton; "salable-checkout": SalableCheckout; "salable-date": SalableDate; "salable-invoices": SalableInvoices; "salable-pricing-table": SalablePricingTable; "salable-status": SalableStatus; } } export { LocalJSX as JSX }; declare module "@stencil/core" { export namespace JSX { interface IntrinsicElements { /** * button component */ "salable-button": LocalJSX.SalableButton & JSXBase.HTMLAttributes; "salable-cancellation-button": LocalJSX.SalableCancellationButton & JSXBase.HTMLAttributes; "salable-checkout": LocalJSX.SalableCheckout & JSXBase.HTMLAttributes; "salable-date": LocalJSX.SalableDate & JSXBase.HTMLAttributes; "salable-invoices": LocalJSX.SalableInvoices & JSXBase.HTMLAttributes; "salable-pricing-table": LocalJSX.SalablePricingTable & JSXBase.HTMLAttributes; "salable-status": LocalJSX.SalableStatus & JSXBase.HTMLAttributes; } } }