wallee
Version:
TypeScript/JavaScript client for wallee
100 lines (99 loc) • 2.83 kB
TypeScript
import { Subscriber } from "./Subscriber";
import { SubscriptionAffiliate } from "./SubscriptionAffiliate";
import { SubscriptionProductVersion } from "./SubscriptionProductVersion";
import { SubscriptionState } from "./SubscriptionState";
import { Token } from "./Token";
declare class Subscription {
/**
* The date and time when the subscription was activate.
*/
'activatedOn'?: Date;
/**
* The affiliate that led to the creation of the subscription.
*/
'affiliate'?: SubscriptionAffiliate;
/**
* The date and time when the subscription was created.
*/
'createdOn'?: Date;
/**
* The version of the product that the subscription is currently linked to.
*/
'currentProductVersion'?: SubscriptionProductVersion;
/**
* A description used to identify the subscription.
*/
'description'?: string;
/**
* A unique identifier for the object.
*/
'id'?: number;
/**
* The date and time when the subscription was initialized.
*/
'initializedOn'?: Date;
/**
* The language that is linked to the object.
*/
'language'?: string;
/**
* The ID of the space this object belongs to.
*/
'linkedSpaceId'?: number;
/**
* The date and time when the object is planned to be permanently removed. If the value is empty, the object will not be removed.
*/
'plannedPurgeDate'?: Date;
/**
* The date and time when the subscription is planned to be terminated.
*/
'plannedTerminationDate'?: Date;
/**
* The merchant's reference used to identify the subscription.
*/
'reference'?: string;
/**
* The object's current state.
*/
'state'?: SubscriptionState;
/**
* The subscriber that the subscription belongs to.
*/
'subscriber'?: Subscriber;
/**
* The ID of the user the subscription was terminated by.
*/
'terminatedBy'?: number;
/**
* The date and time when the subscription was terminated.
*/
'terminatedOn'?: Date;
/**
* The date and time when the termination of the subscription started.
*/
'terminatingOn'?: Date;
/**
* The date and time when the subscription was scheduled to be terminated.
*/
'terminationScheduledOn'?: Date;
/**
* The payment token that is used to charge the customer.
*/
'token'?: Token;
/**
* The version is used for optimistic locking and incremented whenever the object is updated.
*/
'version'?: number;
static discriminator: string | undefined;
static attributeTypeMap: Array<{
name: string;
baseName: string;
type: string;
}>;
static getAttributeTypeMap(): {
name: string;
baseName: string;
type: string;
}[];
}
export { Subscription };