@getopenpay/client
Version:
OpenPay API TypeScript SDK
163 lines (162 loc) • 4.26 kB
TypeScript
/**
* 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 { CheckoutPreferencesOutput } from './CheckoutPreferencesOutput';
import type { PaymentLinkLineItemExternal } from './PaymentLinkLineItemExternal';
import type { CheckoutMode } from './CheckoutMode';
import type { ObjectName } from './ObjectName';
/**
*
* @export
* @interface PaymentLinkExternal
*/
export interface PaymentLinkExternal {
/**
* Unique Identifier of the account.
* @type {string}
* @memberof PaymentLinkExternal
*/
accountId: string;
/**
* Name of the account.
* @type {string}
* @memberof PaymentLinkExternal
*/
accountName: string;
/**
* Whether a payment link is active or not.
* @type {boolean}
* @memberof PaymentLinkExternal
*/
active: boolean;
/**
*
* @type {CheckoutPreferencesOutput}
* @memberof PaymentLinkExternal
*/
checkoutPreferences: CheckoutPreferencesOutput | null;
/**
*
* @type {string}
* @memberof PaymentLinkExternal
*/
couponId?: string | null;
/**
* DateTime at which the object was created, in 'ISO 8601' format.
* @type {Date}
* @memberof PaymentLinkExternal
*/
createdAt: Date;
/**
*
* @type {string}
* @memberof PaymentLinkExternal
*/
currency: string | null;
/**
*
* @type {object}
* @memberof PaymentLinkExternal
*/
customFields?: object | null;
/**
*
* @type {string}
* @memberof PaymentLinkExternal
*/
customerEmail: string | null;
/**
*
* @type {string}
* @memberof PaymentLinkExternal
*/
customerId: string | null;
/**
* Unique Identifier of the checkout session.
* @type {string}
* @memberof PaymentLinkExternal
*/
id: string;
/**
* If true, indicates that this object has been deleted
* @type {boolean}
* @memberof PaymentLinkExternal
*/
isDeleted?: boolean;
/**
* The line items purchased by the customers.
* @type {Array<PaymentLinkLineItemExternal>}
* @memberof PaymentLinkExternal
*/
lineItems: Array<PaymentLinkLineItemExternal>;
/**
* The mode of the checkout sessions created by this payment link.
* @type {CheckoutMode}
* @memberof PaymentLinkExternal
*/
mode: CheckoutMode;
/**
*
* @type {ObjectName}
* @memberof PaymentLinkExternal
*/
object?: ObjectName;
/**
* The random secure token associated with the payment link.
* @type {string}
* @memberof PaymentLinkExternal
*/
secureToken: string;
/**
*
* @type {string}
* @memberof PaymentLinkExternal
*/
successUrl: string | null;
/**
*
* @type {Date}
* @memberof PaymentLinkExternal
*/
trialEnd: Date | null;
/**
*
* @type {boolean}
* @memberof PaymentLinkExternal
*/
trialFromPrice: boolean | null;
/**
*
* @type {number}
* @memberof PaymentLinkExternal
*/
trialPeriodDays: number | null;
/**
* DateTime at which the object was updated, in 'ISO 8601' format.
* @type {Date}
* @memberof PaymentLinkExternal
*/
updatedAt: Date;
/**
* The main URL for this payment link.
* @type {string}
* @memberof PaymentLinkExternal
*/
url: string;
}
/**
* Check if a given object implements the PaymentLinkExternal interface.
*/
export declare function instanceOfPaymentLinkExternal(value: object): value is PaymentLinkExternal;
export declare function PaymentLinkExternalFromJSON(json: any): PaymentLinkExternal;
export declare function PaymentLinkExternalFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaymentLinkExternal;
export declare function PaymentLinkExternalToJSON(json: any): PaymentLinkExternal;
export declare function PaymentLinkExternalToJSONTyped(value?: PaymentLinkExternal | null, ignoreDiscriminator?: boolean): any;