@getopenpay/client
Version:
OpenPay API TypeScript SDK
206 lines (205 loc) • 5.54 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 { SetupIntentExternal } from './SetupIntentExternal';
import type { CheckoutSessionLineItemExternal } from './CheckoutSessionLineItemExternal';
import type { CheckoutSessionStatus } from './CheckoutSessionStatus';
import type { CheckoutMode } from './CheckoutMode';
import type { ObjectName } from './ObjectName';
/**
*
* @export
* @interface CheckoutSessionExternal
*/
export interface CheckoutSessionExternal {
/**
* Unique Identifier of the account.
* @type {string}
* @memberof CheckoutSessionExternal
*/
accountId: string;
/**
* Name of the account.
* @type {string}
* @memberof CheckoutSessionExternal
*/
accountName: string;
/**
* The integer amount representing the subtotal amount for the line items.
* @type {number}
* @memberof CheckoutSessionExternal
*/
amountSubtotalAtom: number;
/**
* The integer amount representing the total amount for the line items, after discounts and taxes.
* @type {number}
* @memberof CheckoutSessionExternal
*/
amountTotalAtom: number;
/**
*
* @type {string}
* @memberof CheckoutSessionExternal
*/
clientReferenceId?: string | null;
/**
*
* @type {string}
* @memberof CheckoutSessionExternal
*/
couponId?: string | null;
/**
* DateTime at which the object was created, in 'ISO 8601' format.
* @type {Date}
* @memberof CheckoutSessionExternal
*/
createdAt: Date;
/**
*
* @type {string}
* @memberof CheckoutSessionExternal
*/
currency: string | null;
/**
*
* @type {object}
* @memberof CheckoutSessionExternal
*/
customFields?: object | null;
/**
*
* @type {string}
* @memberof CheckoutSessionExternal
*/
customerEmail: string | null;
/**
*
* @type {string}
* @memberof CheckoutSessionExternal
*/
customerId: string | null;
/**
* Unique Identifier of the checkout session.
* @type {string}
* @memberof CheckoutSessionExternal
*/
id: string;
/**
* If true, indicates that this object has been deleted
* @type {boolean}
* @memberof CheckoutSessionExternal
*/
isDeleted?: boolean;
/**
* The line items purchased by the customers.
* @type {Array<CheckoutSessionLineItemExternal>}
* @memberof CheckoutSessionExternal
*/
lineItems: Array<CheckoutSessionLineItemExternal>;
/**
* The mode of the Checkout Session.
* @type {CheckoutMode}
* @memberof CheckoutSessionExternal
*/
mode: CheckoutMode;
/**
*
* @type {ObjectName}
* @memberof CheckoutSessionExternal
*/
object?: ObjectName;
/**
*
* @type {string}
* @memberof CheckoutSessionExternal
*/
returnUrl: string | null;
/**
* The random secure token associated with the checkout session.
* @type {string}
* @memberof CheckoutSessionExternal
*/
secureToken: string;
/**
*
* @type {SetupIntentExternal}
* @memberof CheckoutSessionExternal
*/
setupIntent: SetupIntentExternal | null;
/**
* The current status of the checkout session.
* @type {CheckoutSessionStatus}
* @memberof CheckoutSessionExternal
*/
status: CheckoutSessionStatus;
/**
*
* @type {string}
* @memberof CheckoutSessionExternal
*/
subscriptionId?: string | null;
/**
*
* @type {Array<string>}
* @memberof CheckoutSessionExternal
*/
subscriptionIds: Array<string> | null;
/**
*
* @type {string}
* @memberof CheckoutSessionExternal
*/
successUrl: string | null;
/**
* The integer amount representing the tax amount for the line items.
* @type {number}
* @memberof CheckoutSessionExternal
*/
taxAmountAtom: number;
/**
*
* @type {Date}
* @memberof CheckoutSessionExternal
*/
trialEnd: Date | null;
/**
*
* @type {boolean}
* @memberof CheckoutSessionExternal
*/
trialFromPrice: boolean | null;
/**
*
* @type {number}
* @memberof CheckoutSessionExternal
*/
trialPeriodDays: number | null;
/**
* DateTime at which the object was updated, in 'ISO 8601' format.
* @type {Date}
* @memberof CheckoutSessionExternal
*/
updatedAt: Date;
/**
* The main URL for this checkout session.
* @type {string}
* @memberof CheckoutSessionExternal
*/
url: string;
}
/**
* Check if a given object implements the CheckoutSessionExternal interface.
*/
export declare function instanceOfCheckoutSessionExternal(value: object): value is CheckoutSessionExternal;
export declare function CheckoutSessionExternalFromJSON(json: any): CheckoutSessionExternal;
export declare function CheckoutSessionExternalFromJSONTyped(json: any, ignoreDiscriminator: boolean): CheckoutSessionExternal;
export declare function CheckoutSessionExternalToJSON(json: any): CheckoutSessionExternal;
export declare function CheckoutSessionExternalToJSONTyped(value?: CheckoutSessionExternal | null, ignoreDiscriminator?: boolean): any;