UNPKG

@getopenpay/client

Version:

OpenPay API TypeScript SDK

90 lines (89 loc) 2.82 kB
/** * OpenPay API * super charge your subscription management. * * The version of the OpenAPI document: 1.2.1 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import type { CreateCheckoutLineItem } from './CreateCheckoutLineItem'; import type { CheckoutPreferences } from './CheckoutPreferences'; import type { CheckoutMode } from './CheckoutMode'; /** * * @export * @interface CreatePaymentLinkRequest */ export interface CreatePaymentLinkRequest { /** * * @type {CheckoutPreferences} * @memberof CreatePaymentLinkRequest */ checkoutPreferences?: CheckoutPreferences | null; /** * * @type {string} * @memberof CreatePaymentLinkRequest */ couponId?: string | null; /** * * @type {object} * @memberof CreatePaymentLinkRequest */ customFields?: object | null; /** * * @type {string} * @memberof CreatePaymentLinkRequest */ customerId?: string | null; /** * The line items to be purchased by the customer. If empty, the checkout sessions produced by the payment link will be in "add payment method" mode. * @type {Array<CreateCheckoutLineItem>} * @memberof CreatePaymentLinkRequest */ lineItems?: Array<CreateCheckoutLineItem>; /** * The mode of the checkout sessions created by this payment link. Possible values: payment (one-time payments), setup (not supported yet), subscription (recurring payments). * @type {CheckoutMode} * @memberof CreatePaymentLinkRequest */ mode: CheckoutMode; /** * * @type {string} * @memberof CreatePaymentLinkRequest */ successUrl: string | null; /** * * @type {Date} * @memberof CreatePaymentLinkRequest */ trialEnd?: Date | null; /** * * @type {boolean} * @memberof CreatePaymentLinkRequest */ trialFromPrice?: boolean | null; /** * * @type {number} * @memberof CreatePaymentLinkRequest */ trialPeriodDays?: number | null; } /** * Check if a given object implements the CreatePaymentLinkRequest interface. */ export declare function instanceOfCreatePaymentLinkRequest(value: object): value is CreatePaymentLinkRequest; export declare function CreatePaymentLinkRequestFromJSON(json: any): CreatePaymentLinkRequest; export declare function CreatePaymentLinkRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreatePaymentLinkRequest; export declare function CreatePaymentLinkRequestToJSON(json: any): CreatePaymentLinkRequest; export declare function CreatePaymentLinkRequestToJSONTyped(value?: CreatePaymentLinkRequest | null, ignoreDiscriminator?: boolean): any;