External module "rest/organization"
Functions
Const createOrganizationSourceForUser
- createOrganizationSourceForUser(userId: number, organizationId: number, card: any): Promise<object>
-
Parameters
-
userId: number
-
organizationId: number
-
card: any
Returns Promise<object>
Const createOrganizationSubscriptionForUser
- createOrganizationSubscriptionForUser(userId: number, organizationId: number, params: object): Promise<any>
-
Parameters
-
userId: number
-
organizationId: number
-
params: object
-
[index: string]: any
-
plan: string
Returns Promise<any>
Const deleteOrganizationForUser
- deleteOrganizationForUser(userId: number, organizationId: number, locals: Locals): Promise<void>
-
Parameters
-
userId: number
-
organizationId: number
-
Returns Promise<void>
Const deleteOrganizationSourceForUser
- deleteOrganizationSourceForUser(userId: number, organizationId: number, sourceId: string): Promise<object>
-
Parameters
-
userId: number
-
organizationId: number
-
sourceId: string
Returns Promise<object>
Const getAllOrganizationDataForUser
- getAllOrganizationDataForUser(userId: number, organizationId: number): Promise<object>
-
Parameters
-
userId: number
-
organizationId: number
Returns Promise<object>
Const getOrganizationBillingForUser
- getOrganizationBillingForUser(userId: number, organizationId: number): Promise<ICustomer>
-
Parameters
-
userId: number
-
organizationId: number
Returns Promise<ICustomer>
Const getOrganizationForUser
- getOrganizationForUser(userId: number, organizationId: number): Promise<Organization>
-
Parameters
-
userId: number
-
organizationId: number
Const getOrganizationInvoiceForUser
- getOrganizationInvoiceForUser(userId: number, organizationId: number, invoiceId: string): Promise<IInvoice>
-
Parameters
-
userId: number
-
organizationId: number
-
invoiceId: string
Returns Promise<IInvoice>
Const getOrganizationInvoicesForUser
- getOrganizationInvoicesForUser(userId: number, organizationId: number, params: KeyValue): Promise<any>
-
Parameters
-
userId: number
-
organizationId: number
-
Returns Promise<any>
Const getOrganizationMembershipsForUser
- getOrganizationMembershipsForUser(userId: number, organizationId: number, query?: KeyValue): Promise<any>
-
Parameters
-
userId: number
-
organizationId: number
-
Returns Promise<any>
Const getOrganizationPricingPlansForUser
- getOrganizationPricingPlansForUser(userId: number, organizationId: number, productId: string): Promise<IList<IPlan>>
-
Parameters
-
userId: number
-
organizationId: number
-
productId: string
Returns Promise<IList<IPlan>>
Const getOrganizationRecentEventsForUser
- getOrganizationRecentEventsForUser(userId: number, organizationId: number): Promise<Event[]>
-
Parameters
-
userId: number
-
organizationId: number
Returns Promise<Event[]>
Const getOrganizationSourceForUser
- getOrganizationSourceForUser(userId: number, organizationId: number, sourceId: string): Promise<ISource | ICard | IBitcoinReceiver | IBankAccount>
-
Parameters
-
userId: number
-
organizationId: number
-
sourceId: string
Returns Promise<ISource | ICard | IBitcoinReceiver | IBankAccount>
Const getOrganizationSourcesForUser
- getOrganizationSourcesForUser(userId: number, organizationId: number, params: KeyValue): Promise<any>
-
Parameters
-
userId: number
-
organizationId: number
-
Returns Promise<any>
Const getOrganizationSubscriptionForUser
- getOrganizationSubscriptionForUser(userId: number, organizationId: number, subscriptionId: string): Promise<ISubscription>
-
Parameters
-
userId: number
-
organizationId: number
-
subscriptionId: string
Returns Promise<ISubscription>
Const getOrganizationSubscriptionsForUser
- getOrganizationSubscriptionsForUser(userId: number, organizationId: number, params: KeyValue): Promise<any>
-
Parameters
-
userId: number
-
organizationId: number
-
Returns Promise<any>
Const newOrganizationForUser
- newOrganizationForUser(userId: number, organization: Organization, locals: Locals): Promise<void>
-
Parameters
Returns Promise<void>
Const updateOrganizationBillingForUser
- updateOrganizationBillingForUser(userId: number, organizationId: number, data: any, locals: Locals): Promise<object>
-
Parameters
-
userId: number
-
organizationId: number
-
data: any
-
Returns Promise<object>
Const updateOrganizationForUser
- updateOrganizationForUser(userId: number, organizationId: number, data: Organization, locals: Locals): Promise<void>
-
Parameters
-
userId: number
-
organizationId: number
-
-
Returns Promise<void>
Const updateOrganizationSourceForUser
- updateOrganizationSourceForUser(userId: number, organizationId: number, sourceId: string, data: any): Promise<object>
-
Parameters
-
userId: number
-
organizationId: number
-
sourceId: string
-
data: any
Returns Promise<object>
Const updateOrganizationSubscriptionForUser
- updateOrganizationSubscriptionForUser(userId: number, organizationId: number, subscriptionId: string, data: KeyValue): Promise<object>
-
Parameters
-
userId: number
-
organizationId: number
-
subscriptionId: string
-
Returns Promise<object>