Properties
accessToken
accessToken: string
reqHeaders
reqHeaders: any
Methods
createSubscription
- createSubscription(customerId: string, offerId: string, usersQuantity: number, billingCycle: "monthly" | "annual"): Promise<any>
-
Parameters
-
customerId: string
-
offerId: string
-
usersQuantity: number
-
billingCycle: "monthly" | "annual"
Returns Promise<any>
getAllCustomers
- getAllCustomers(): Promise<any[]>
getCustomerById
- getCustomerById(customerId: string): Promise<any>
-
Parameters
Returns Promise<any>
getCustomerSubscriptionById
- getCustomerSubscriptionById(customerId: string, subscriptionId: string): Promise<any>
-
Parameters
-
customerId: string
-
subscriptionId: string
Returns Promise<any>
getCustomerSubscriptionByOfferId
- getCustomerSubscriptionByOfferId(customerId: string, offerId: string): Promise<any>
-
Parameters
-
customerId: string
-
offerId: string
Returns Promise<any>
getCustomerSubscriptions
- getCustomerSubscriptions(customerId: string): Promise<any[]>
-
Parameters
Returns Promise<any[]>
updateCustomerSubscription
- updateCustomerSubscription(customerId: string, subscriptionId: string, subscriptionObject: object): Promise<any>
-
Parameters
-
customerId: string
-
subscriptionId: string
-
subscriptionObject: object
Returns Promise<any>
updateCustomerSubscriptionUsers
- updateCustomerSubscriptionUsers(customerId: string, subscriptionId: string, usersQuantity: number): Promise<any>
-
Parameters
-
customerId: string
-
subscriptionId: string
-
usersQuantity: number
Returns Promise<any>