External module "src/rest/organization"
Functions
Const createApiKeyForUser
-
Parameters
Returns Promise<any>
Const createDomainForUser
-
Parameters
Const createOrganizationSourceForUser
- createOrganizationSourceForUser(userId: string | ApiKeyResponse, organizationId: string, card: any, locals?: Locals): Promise<object>
-
Parameters
-
-
organizationId: string
-
card: any
-
Optional locals: Locals
Returns Promise<object>
Const createOrganizationSubscriptionForUser
- createOrganizationSubscriptionForUser(userId: string | ApiKeyResponse, organizationId: string, params: object, locals?: Locals): Promise<object>
-
Parameters
-
-
organizationId: string
-
params: object
-
[index: string]: any
-
plan: string
-
Optional locals: Locals
Returns Promise<object>
Const createWebhookForUser
-
Parameters
Const deleteApiKeyForUser
- deleteApiKeyForUser(userId: string | ApiKeyResponse, organizationId: string, apiKeyId: string, locals: Locals): Promise<any>
-
Parameters
-
-
organizationId: string
-
apiKeyId: string
-
Returns Promise<any>
Const deleteDomainForUser
- deleteDomainForUser(userId: string | ApiKeyResponse, organizationId: string, domainId: string, locals: Locals): Promise<any>
-
Parameters
-
-
organizationId: string
-
domainId: string
-
Returns Promise<any>
Const deleteOrganizationForUser
- deleteOrganizationForUser(userId: string | ApiKeyResponse, organizationId: string, locals: Locals): Promise<void>
-
Parameters
Returns Promise<void>
Const deleteOrganizationMembershipForUser
- deleteOrganizationMembershipForUser(userId: string | ApiKeyResponse, organizationId: string, membershipId: string): Promise<any>
-
Parameters
-
-
organizationId: string
-
membershipId: string
Returns Promise<any>
Const deleteOrganizationSourceForUser
- deleteOrganizationSourceForUser(userId: string | ApiKeyResponse, organizationId: string, sourceId: string, locals?: Locals): Promise<object>
-
Parameters
-
-
organizationId: string
-
sourceId: string
-
Optional locals: Locals
Returns Promise<object>
Const deleteWebhookForUser
- deleteWebhookForUser(userId: string | ApiKeyResponse, organizationId: string, webhookId: string, locals: Locals): Promise<any>
-
Parameters
-
-
organizationId: string
-
webhookId: string
-
Returns Promise<any>
Const getAllOrganizationDataForUser
- getAllOrganizationDataForUser(userId: string | ApiKeyResponse, organizationId: string): Promise<object>
-
Parameters
Returns Promise<object>
Const getOrganizationApiKeyForUser
- getOrganizationApiKeyForUser(userId: string | ApiKeyResponse, organizationId: string, apiKeyId: string): Promise<ApiKey>
-
Parameters
-
-
organizationId: string
-
apiKeyId: string
Returns Promise<ApiKey>
Const getOrganizationApiKeyLogsForUser
- getOrganizationApiKeyLogsForUser(userId: string | ApiKeyResponse, organizationId: string, apiKeyId: string, query: KeyValue): Promise<any>
-
Parameters
-
-
organizationId: string
-
apiKeyId: string
-
Returns Promise<any>
Const getOrganizationApiKeysForUser
- getOrganizationApiKeysForUser(userId: string | ApiKeyResponse, organizationId: string, query: KeyValue): Promise<object>
-
Parameters
Returns Promise<object>
Const getOrganizationBillingForUser
- getOrganizationBillingForUser(userId: string | ApiKeyResponse, organizationId: string): Promise<ICustomer>
-
Parameters
Returns Promise<ICustomer>
Const getOrganizationDomainForUser
- getOrganizationDomainForUser(userId: string | ApiKeyResponse, organizationId: string, domainId: string): Promise<Domain>
-
Parameters
-
-
organizationId: string
-
domainId: string
Returns Promise<Domain>
Const getOrganizationDomainsForUser
- getOrganizationDomainsForUser(userId: string | ApiKeyResponse, organizationId: string, query: KeyValue): Promise<object>
-
Parameters
Returns Promise<object>
Const getOrganizationForUser
-
Parameters
Const getOrganizationInvoiceForUser
- getOrganizationInvoiceForUser(userId: string | ApiKeyResponse, organizationId: string, invoiceId: string): Promise<IInvoice>
-
Parameters
-
-
organizationId: string
-
invoiceId: string
Returns Promise<IInvoice>
Const getOrganizationInvoicesForUser
- getOrganizationInvoicesForUser(userId: string | ApiKeyResponse, organizationId: string, params: KeyValue): Promise<any>
-
Parameters
Returns Promise<any>
Const getOrganizationMembershipForUser
- getOrganizationMembershipForUser(userId: string | ApiKeyResponse, organizationId: string, membershipId: string): Promise<any>
-
Parameters
-
-
organizationId: string
-
membershipId: string
Returns Promise<any>
Const getOrganizationMembershipsForUser
- getOrganizationMembershipsForUser(userId: string | ApiKeyResponse, organizationId: string, query?: KeyValue): Promise<any>
-
Parameters
Returns Promise<any>
Const getOrganizationPricingPlansForUser
- getOrganizationPricingPlansForUser(userId: string | ApiKeyResponse, organizationId: string): Promise<IList<IPlan>>
-
Parameters
Returns Promise<IList<IPlan>>
Const getOrganizationSourceForUser
- getOrganizationSourceForUser(userId: string | ApiKeyResponse, organizationId: string, sourceId: string): Promise<ICard | IBitcoinReceiver | IBankAccount | ISource>
-
Parameters
-
-
organizationId: string
-
sourceId: string
Returns Promise<ICard | IBitcoinReceiver | IBankAccount | ISource>
Const getOrganizationSourcesForUser
- getOrganizationSourcesForUser(userId: string | ApiKeyResponse, organizationId: string, params: KeyValue): Promise<any>
-
Parameters
Returns Promise<any>
Const getOrganizationSubscriptionForUser
- getOrganizationSubscriptionForUser(userId: string | ApiKeyResponse, organizationId: string, subscriptionId: string): Promise<ISubscription>
-
Parameters
-
-
organizationId: string
-
subscriptionId: string
Returns Promise<ISubscription>
Const getOrganizationSubscriptionsForUser
- getOrganizationSubscriptionsForUser(userId: string | ApiKeyResponse, organizationId: string, params: KeyValue): Promise<any>
-
Parameters
Returns Promise<any>
Const getOrganizationWebhookForUser
- getOrganizationWebhookForUser(userId: string | ApiKeyResponse, organizationId: string, webhookId: string): Promise<Webhook>
-
Parameters
-
-
organizationId: string
-
webhookId: string
Returns Promise<Webhook>
Const getOrganizationWebhooksForUser
- getOrganizationWebhooksForUser(userId: string | ApiKeyResponse, organizationId: string, query: KeyValue): Promise<object>
-
Parameters
Returns Promise<object>
Const inviteMemberToOrganization
- inviteMemberToOrganization(userId: string | ApiKeyResponse, organizationId: string, newMemberName: string, newMemberEmail: string, role: MembershipRole, locals: Locals): Promise<void>
-
Parameters
-
-
organizationId: string
-
newMemberName: string
-
newMemberEmail: string
-
-
Returns Promise<void>
Const newOrganizationForUser
- newOrganizationForUser(userId: string, organization: Organization, locals: Locals): Promise<void>
-
Parameters
Returns Promise<void>
Const updateApiKeyForUser
- updateApiKeyForUser(userId: string | ApiKeyResponse, organizationId: string, apiKeyId: string, data: KeyValue, locals: Locals): Promise<any>
-
Parameters
-
-
organizationId: string
-
apiKeyId: string
-
-
Returns Promise<any>
Const updateDomainForUser
- updateDomainForUser(userId: string | ApiKeyResponse, organizationId: string, domainId: string, data: KeyValue, locals: Locals): Promise<any>
-
Parameters
-
-
organizationId: string
-
domainId: string
-
-
Returns Promise<any>
Const updateOrganizationBillingForUser
- updateOrganizationBillingForUser(userId: string | ApiKeyResponse, organizationId: string, data: any, locals: Locals): Promise<object>
-
Parameters
-
-
organizationId: string
-
data: any
-
Returns Promise<object>
Const updateOrganizationForUser
-
Parameters
Returns Promise<void>
Const updateOrganizationMembershipForUser
- updateOrganizationMembershipForUser(userId: string | ApiKeyResponse, organizationId: string, membershipId: string, data: KeyValue): Promise<any>
-
Parameters
-
-
organizationId: string
-
membershipId: string
-
Returns Promise<any>
Const updateOrganizationSourceForUser
- updateOrganizationSourceForUser(userId: string | ApiKeyResponse, organizationId: string, sourceId: string, data: any, locals?: Locals): Promise<object>
-
Parameters
-
-
organizationId: string
-
sourceId: string
-
data: any
-
Optional locals: Locals
Returns Promise<object>
Const updateOrganizationSubscriptionForUser
- updateOrganizationSubscriptionForUser(userId: string | ApiKeyResponse, organizationId: string, subscriptionId: string, data: KeyValue, locals?: Locals): Promise<object>
-
Parameters
-
-
organizationId: string
-
subscriptionId: string
-
-
Optional locals: Locals
Returns Promise<object>
Const updateWebhookForUser
- updateWebhookForUser(userId: string | ApiKeyResponse, organizationId: string, webhookId: string, data: KeyValue, locals: Locals): Promise<any>
-
Parameters
-
-
organizationId: string
-
webhookId: string
-
-
Returns Promise<any>
Const verifyDomainForUser
- verifyDomainForUser(userId: string | ApiKeyResponse, organizationId: string, domainId: string, method: "dns" | "file", locals: Locals): Promise<any>
-
Parameters
-
-
organizationId: string
-
domainId: string
-
method: "dns" | "file"
-
Returns Promise<any>