@mozaic-io/mozaic-sdk-node
Version:
The Mozaic Node SDK enables you to pay your creators easily via the Mozaic API.
1,595 lines • 1.17 MB
JavaScript
"use strict";
/* tslint:disable */
/* eslint-disable */
/**
* Mozaic.io API Documentation
* A global payment, payout and smart contract for the Creator Economy.
*
* The version of the OpenAPI document: v2
* Contact: dev@jammber.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.ActivityApi = exports.ActivityApiFactory = exports.ActivityApiFp = exports.ActivityApiAxiosParamCreator = exports.AccountApi = exports.AccountApiFactory = exports.AccountApiFp = exports.AccountApiAxiosParamCreator = exports.VerificationStatus = exports.TransactionStatusEnum = exports.TransactionDisplayStatusEnum = exports.TransactionActivityEnum = exports.TermOperationTargets = exports.TenantStatus = exports.TakeMethod = exports.ProviderAccountType = exports.PayoutStrategy = exports.PaymentSourceEnum = exports.PaymentRecordDirection = exports.PaymentDirection = exports.PaymentCycleValidationType = exports.PaymentCycleStatus = exports.PaymentCycleSortFields = exports.PaymentCycleFileType = exports.PaymentCycleFieldEnum = exports.PaymentCycleEntrySortFields = exports.PayerInviteStatus = exports.OrchestrationStatus = exports.OrchestrationMode = exports.OnBoardingTaskStatus = exports.NotificationStyleTypes = exports.ListOfSortFieldsForContact = exports.LicenseAssignmentStatuses = exports.LedgerType = exports.HubSpotLifecycle = exports.HubNotificationPlatform = exports.FundingType = exports.FeeDirection = exports.EntityType = exports.ContactStatusPersonaFilter = exports.ContactStatusPersona = exports.ColorModeEnum = exports.AvatarTypeEnum = exports.AvatarType = exports.AspnetCoreEnvironment = exports.ActivityType = exports.ActivityTaskStatus = exports.ActivityStatus = exports.AccessPerspective = exports.AcceptPaymentStatusEnum = void 0;
exports.IncomesApiFp = exports.IncomesApiAxiosParamCreator = exports.FilesApi = exports.FilesApiFactory = exports.FilesApiFp = exports.FilesApiAxiosParamCreator = exports.EndUsersApi = exports.EndUsersApiFactory = exports.EndUsersApiFp = exports.EndUsersApiAxiosParamCreator = exports.DiagnosticsApi = exports.DiagnosticsApiFactory = exports.DiagnosticsApiFp = exports.DiagnosticsApiAxiosParamCreator = exports.DeadLetterQueueApi = exports.DeadLetterQueueApiFactory = exports.DeadLetterQueueApiFp = exports.DeadLetterQueueApiAxiosParamCreator = exports.CountriesApi = exports.CountriesApiFactory = exports.CountriesApiFp = exports.CountriesApiAxiosParamCreator = exports.ContractsApi = exports.ContractsApiFactory = exports.ContractsApiFp = exports.ContractsApiAxiosParamCreator = exports.ContactsApi = exports.ContactsApiFactory = exports.ContactsApiFp = exports.ContactsApiAxiosParamCreator = exports.ConnectorsApi = exports.ConnectorsApiFactory = exports.ConnectorsApiFp = exports.ConnectorsApiAxiosParamCreator = exports.AvatarsApi = exports.AvatarsApiFactory = exports.AvatarsApiFp = exports.AvatarsApiAxiosParamCreator = exports.AppsApi = exports.AppsApiFactory = exports.AppsApiFp = exports.AppsApiAxiosParamCreator = exports.ApiKeyApi = exports.ApiKeyApiFactory = exports.ApiKeyApiFp = exports.ApiKeyApiAxiosParamCreator = exports.AnalyticsApi = exports.AnalyticsApiFactory = exports.AnalyticsApiFp = exports.AnalyticsApiAxiosParamCreator = void 0;
exports.PersonalAccessTokenApi = exports.PersonalAccessTokenApiFactory = exports.PersonalAccessTokenApiFp = exports.PersonalAccessTokenApiAxiosParamCreator = exports.PermissionsApi = exports.PermissionsApiFactory = exports.PermissionsApiFp = exports.PermissionsApiAxiosParamCreator = exports.PaymentsApi = exports.PaymentsApiFactory = exports.PaymentsApiFp = exports.PaymentsApiAxiosParamCreator = exports.PaymentTransferApi = exports.PaymentTransferApiFactory = exports.PaymentTransferApiFp = exports.PaymentTransferApiAxiosParamCreator = exports.PaymentPushesApi = exports.PaymentPushesApiFactory = exports.PaymentPushesApiFp = exports.PaymentPushesApiAxiosParamCreator = exports.PaymentCyclesApi = exports.PaymentCyclesApiFactory = exports.PaymentCyclesApiFp = exports.PaymentCyclesApiAxiosParamCreator = exports.PayerInvitesApi = exports.PayerInvitesApiFactory = exports.PayerInvitesApiFp = exports.PayerInvitesApiAxiosParamCreator = exports.OtpApi = exports.OtpApiFactory = exports.OtpApiFp = exports.OtpApiAxiosParamCreator = exports.OrchestrationsApi = exports.OrchestrationsApiFactory = exports.OrchestrationsApiFp = exports.OrchestrationsApiAxiosParamCreator = exports.NotificationsApi = exports.NotificationsApiFactory = exports.NotificationsApiFp = exports.NotificationsApiAxiosParamCreator = exports.InvoicesApi = exports.InvoicesApiFactory = exports.InvoicesApiFp = exports.InvoicesApiAxiosParamCreator = exports.InviteTokensApi = exports.InviteTokensApiFactory = exports.InviteTokensApiFp = exports.InviteTokensApiAxiosParamCreator = exports.IncomesApi = exports.IncomesApiFactory = void 0;
exports.WebhookPortalApiFp = exports.WebhookPortalApiAxiosParamCreator = exports.WalletsApi = exports.WalletsApiFactory = exports.WalletsApiFp = exports.WalletsApiAxiosParamCreator = exports.WaitlistApi = exports.WaitlistApiFactory = exports.WaitlistApiFp = exports.WaitlistApiAxiosParamCreator = exports.VersionApi = exports.VersionApiFactory = exports.VersionApiFp = exports.VersionApiAxiosParamCreator = exports.UserStatusesApi = exports.UserStatusesApiFactory = exports.UserStatusesApiFp = exports.UserStatusesApiAxiosParamCreator = exports.UserPreferencesApi = exports.UserPreferencesApiFactory = exports.UserPreferencesApiFp = exports.UserPreferencesApiAxiosParamCreator = exports.TransactionsApi = exports.TransactionsApiFactory = exports.TransactionsApiFp = exports.TransactionsApiAxiosParamCreator = exports.TipLinksApi = exports.TipLinksApiFactory = exports.TipLinksApiFp = exports.TipLinksApiAxiosParamCreator = exports.TenantsApi = exports.TenantsApiFactory = exports.TenantsApiFp = exports.TenantsApiAxiosParamCreator = exports.SimpleContractsApi = exports.SimpleContractsApiFactory = exports.SimpleContractsApiFp = exports.SimpleContractsApiAxiosParamCreator = exports.PushNotificationsApi = exports.PushNotificationsApiFactory = exports.PushNotificationsApiFp = exports.PushNotificationsApiAxiosParamCreator = exports.ProfileAvatarsApi = exports.ProfileAvatarsApiFactory = exports.ProfileAvatarsApiFp = exports.ProfileAvatarsApiAxiosParamCreator = exports.PortfolioApi = exports.PortfolioApiFactory = exports.PortfolioApiFp = exports.PortfolioApiAxiosParamCreator = void 0;
exports.WebhookPortalApi = exports.WebhookPortalApiFactory = void 0;
const axios_1 = __importDefault(require("axios"));
// Some imports not used depending on template conditions
// @ts-ignore
const common_1 = require("./common");
// @ts-ignore
const base_1 = require("./base");
/**
* pending accepted suspended
* export
* @enum {string}
*/
exports.AcceptPaymentStatusEnum = {
/**
*
*/
Pending: 'pending',
/**
*
*/
Accepted: 'accepted',
/**
*
*/
Suspended: 'suspended'
};
/**
* none self collaborators all invite admin webHook function
* export
* @enum {string}
*/
exports.AccessPerspective = {
/**
*
*/
None: 'none',
/**
*
*/
Self: 'self',
/**
*
*/
Collaborators: 'collaborators',
/**
*
*/
All: 'all',
/**
*
*/
Invite: 'invite',
/**
*
*/
Admin: 'admin',
/**
*
*/
WebHook: 'webHook',
/**
*
*/
Function: 'function'
};
/**
* unknown started pending completed needsAttention failed notStarted
* export
* @enum {string}
*/
exports.ActivityStatus = {
/**
*
*/
Unknown: 'unknown',
/**
*
*/
Started: 'started',
/**
*
*/
Pending: 'pending',
/**
*
*/
Completed: 'completed',
/**
*
*/
NeedsAttention: 'needsAttention',
/**
*
*/
Failed: 'failed',
/**
*
*/
NotStarted: 'notStarted'
};
/**
* notStarted inProgress completed
* export
* @enum {string}
*/
exports.ActivityTaskStatus = {
/**
*
*/
NotStarted: 'notStarted',
/**
*
*/
InProgress: 'inProgress',
/**
*
*/
Completed: 'completed'
};
/**
* contactCreated invited onboarded readyForPayouts firstPayout firstPayment
* export
* @enum {string}
*/
exports.ActivityType = {
/**
*
*/
ContactCreated: 'contactCreated',
/**
*
*/
Invited: 'invited',
/**
*
*/
Onboarded: 'onboarded',
/**
*
*/
ReadyForPayouts: 'readyForPayouts',
/**
*
*/
FirstPayout: 'firstPayout',
/**
*
*/
FirstPayment: 'firstPayment'
};
/**
* development stage sandbox demo production integration
* export
* @enum {string}
*/
exports.AspnetCoreEnvironment = {
/**
*
*/
Development: 'development',
/**
*
*/
Stage: 'stage',
/**
*
*/
Sandbox: 'sandbox',
/**
*
*/
Demo: 'demo',
/**
*
*/
Production: 'production',
/**
*
*/
Integration: 'integration'
};
/**
* default contact simpleContarct paymentCycle
* export
* @enum {string}
*/
exports.AvatarType = {
/**
*
*/
Default: 'default',
/**
*
*/
Contact: 'contact',
/**
*
*/
SimpleContarct: 'simpleContarct',
/**
*
*/
PaymentCycle: 'paymentCycle'
};
/**
* contact simpleContarct paymentCycle profile
* export
* @enum {string}
*/
exports.AvatarTypeEnum = {
/**
*
*/
Contact: 'contact',
/**
*
*/
SimpleContarct: 'simpleContarct',
/**
*
*/
PaymentCycle: 'paymentCycle',
/**
*
*/
Profile: 'profile'
};
/**
* system light dark notSet
* export
* @enum {string}
*/
exports.ColorModeEnum = {
/**
*
*/
System: 'system',
/**
*
*/
Light: 'light',
/**
*
*/
Dark: 'dark',
/**
*
*/
NotSet: 'notSet'
};
/**
* undefinded invited accepted rejected rejectedButKeepInvite
* export
* @enum {string}
*/
exports.ContactStatusPersona = {
/**
*
*/
Undefinded: 'undefinded',
/**
*
*/
Invited: 'invited',
/**
*
*/
Accepted: 'accepted',
/**
*
*/
Rejected: 'rejected',
/**
*
*/
RejectedButKeepInvite: 'rejectedButKeepInvite'
};
/**
* all invited accepted rejected
* export
* @enum {string}
*/
exports.ContactStatusPersonaFilter = {
/**
*
*/
All: 'all',
/**
*
*/
Invited: 'invited',
/**
*
*/
Accepted: 'accepted',
/**
*
*/
Rejected: 'rejected'
};
/**
* individual organization
* export
* @enum {string}
*/
exports.EntityType = {
/**
*
*/
Individual: 'individual',
/**
*
*/
Organization: 'organization'
};
/**
* Defines the direction in which fees are charged. default (Use the platform default fee direction which is to the Payee) payer (Fees are charged to the Payer) payee (Fees are charged to the Payee) split (Fees are split equally between Payer and Payee. Any remaineder is paid by the Payee)
* export
* @enum {string}
*/
exports.FeeDirection = {
/**
* Use the platform default fee direction which is to the Payee
*/
Default: 'default',
/**
* Fees are charged to the Payer
*/
Payer: 'payer',
/**
* Fees are charged to the Payee
*/
Payee: 'payee',
/**
* Fees are split equally between Payer and Payee.
Any remaineder is paid by the Payee
*/
Split: 'split'
};
/**
* invoice wallet balance tipLink
* export
* @enum {string}
*/
exports.FundingType = {
/**
*
*/
Invoice: 'invoice',
/**
*
*/
Wallet: 'wallet',
/**
*
*/
Balance: 'balance',
/**
*
*/
TipLink: 'tipLink'
};
/**
* apns fcm wns mpns
* export
* @enum {string}
*/
exports.HubNotificationPlatform = {
/**
*
*/
Apns: 'apns',
/**
*
*/
Fcm: 'fcm',
/**
*
*/
Wns: 'wns',
/**
*
*/
Mpns: 'mpns'
};
/**
* payerWaitlist (The user would like to become a payer.) applicationWaitlist (The user would like to log into the application.)
* export
* @enum {string}
*/
exports.HubSpotLifecycle = {
/**
* The user would like to become a payer.
*/
PayerWaitlist: 'payerWaitlist',
/**
* The user would like to log into the application.
*/
ApplicationWaitlist: 'applicationWaitlist'
};
/**
* Shows the type of the ledger entry that a Payment document in cosmos represents. active (Active: The payment was created and sent by the system (money moved between accounts).) journal (Journal: The payment was done off-platform and no money was moved between accounts.)
* export
* @enum {string}
*/
exports.LedgerType = {
/**
* Active: The payment was created and sent by the system (money moved between accounts).
*/
Active: 'active',
/**
* Journal: The payment was done off-platform and no money was moved between accounts.
*/
Journal: 'journal'
};
/**
* granted pendingRegistration claimed invited notReal deleted
* export
* @enum {string}
*/
exports.LicenseAssignmentStatuses = {
/**
*
*/
Granted: 'granted',
/**
*
*/
PendingRegistration: 'pendingRegistration',
/**
*
*/
Claimed: 'claimed',
/**
*
*/
Invited: 'invited',
/**
*
*/
NotReal: 'notReal',
/**
*
*/
Deleted: 'deleted'
};
/**
* knownName firstName lastName email status externalId
* export
* @enum {string}
*/
exports.ListOfSortFieldsForContact = {
/**
*
*/
KnownName: 'knownName',
/**
*
*/
FirstName: 'firstName',
/**
*
*/
LastName: 'lastName',
/**
*
*/
Email: 'email',
/**
*
*/
Status: 'status',
/**
*
*/
ExternalId: 'externalId'
};
/**
* information success warning critical backgroundPending attentionRequired none
* export
* @enum {string}
*/
exports.NotificationStyleTypes = {
/**
*
*/
Information: 'information',
/**
*
*/
Success: 'success',
/**
*
*/
Warning: 'warning',
/**
*
*/
Critical: 'critical',
/**
*
*/
BackgroundPending: 'backgroundPending',
/**
*
*/
AttentionRequired: 'attentionRequired',
/**
*
*/
None: 'none'
};
/**
* nonStarted inProgress completed
* export
* @enum {string}
*/
exports.OnBoardingTaskStatus = {
/**
*
*/
NonStarted: 'nonStarted',
/**
*
*/
InProgress: 'inProgress',
/**
*
*/
Completed: 'completed'
};
/**
* The payment cycle mode defines how a payment cycle behaves. continuous (Orchestrations can remain continuously listening for funding until deliberately closed. Useful for open ended payment scenarios like tip links where funding trickles in based on exposure and engagement. In this scenario, the funding step will process income, calculate contracts, and attach sent payments to the orchestration for later reporting.) batched (Batched orchestrations are for data imports. They\'re likely created as part of a backend process and are initiated via data feeds.) immediate (Orchestrations can be interactively built up and immediately executed and closed. This is useful for explicit payment grouping scenarios where you want to prepare a set of payments and explicitly define funding up front. These can be funded via invoice or instant card payment still, but they are immediately executed)
* export
* @enum {string}
*/
exports.OrchestrationMode = {
/**
* Orchestrations can remain continuously listening for funding until deliberately closed. Useful for open ended payment scenarios like tip links where funding trickles in based on exposure and engagement. In this scenario, the funding step will process income, calculate contracts, and attach sent payments to the orchestration for later reporting.
*/
Continuous: 'continuous',
/**
* Batched orchestrations are for data imports. They're likely created as part of a backend process and are initiated via data feeds.
*/
Batched: 'batched',
/**
* Orchestrations can be interactively built up and immediately executed and closed. This is useful for explicit payment grouping scenarios where you want to prepare a set of payments and explicitly define funding up front. These can be funded via invoice or instant card payment still, but they are immediately executed
*/
Immediate: 'immediate'
};
/**
* Defines a state for the general workflow of a payment cycle draft pending funding completed canceled
* export
* @enum {string}
*/
exports.OrchestrationStatus = {
/**
*
*/
Draft: 'draft',
/**
*
*/
Pending: 'pending',
/**
*
*/
Funding: 'funding',
/**
*
*/
Completed: 'completed',
/**
*
*/
Canceled: 'canceled'
};
/**
* sent accepted expired
* export
* @enum {string}
*/
exports.PayerInviteStatus = {
/**
*
*/
Sent: 'sent',
/**
*
*/
Accepted: 'accepted',
/**
*
*/
Expired: 'expired'
};
/**
* createdDate amountSent amountPaid status memo
* export
* @enum {string}
*/
exports.PaymentCycleEntrySortFields = {
/**
*
*/
CreatedDate: 'createdDate',
/**
*
*/
AmountSent: 'amountSent',
/**
*
*/
AmountPaid: 'amountPaid',
/**
*
*/
Status: 'status',
/**
*
*/
Memo: 'memo'
};
/**
* payment cycle fields none email amount phoneNumber startDate endDate startAndEndDate name countryCode currency externalId memo
* export
* @enum {string}
*/
exports.PaymentCycleFieldEnum = {
/**
*
*/
None: 'none',
/**
*
*/
Email: 'email',
/**
*
*/
Amount: 'amount',
/**
*
*/
PhoneNumber: 'phoneNumber',
/**
*
*/
StartDate: 'startDate',
/**
*
*/
EndDate: 'endDate',
/**
*
*/
StartAndEndDate: 'startAndEndDate',
/**
*
*/
Name: 'name',
/**
*
*/
CountryCode: 'countryCode',
/**
*
*/
Currency: 'currency',
/**
*
*/
ExternalId: 'externalId',
/**
*
*/
Memo: 'memo'
};
/**
* payouts
* export
* @enum {string}
*/
exports.PaymentCycleFileType = {
/**
*
*/
Payouts: 'payouts'
};
/**
* createdDate paymentDate recipientsCount amountSent amountPaid status memo
* export
* @enum {string}
*/
exports.PaymentCycleSortFields = {
/**
*
*/
CreatedDate: 'createdDate',
/**
*
*/
PaymentDate: 'paymentDate',
/**
*
*/
RecipientsCount: 'recipientsCount',
/**
*
*/
AmountSent: 'amountSent',
/**
*
*/
AmountPaid: 'amountPaid',
/**
*
*/
Status: 'status',
/**
*
*/
Memo: 'memo'
};
/**
* draft locked processing invoicing cancelled completed partiallyCompleted failed
* export
* @enum {string}
*/
exports.PaymentCycleStatus = {
/**
*
*/
Draft: 'draft',
/**
*
*/
Locked: 'locked',
/**
*
*/
Processing: 'processing',
/**
*
*/
Invoicing: 'invoicing',
/**
*
*/
Cancelled: 'cancelled',
/**
*
*/
Completed: 'completed',
/**
*
*/
PartiallyCompleted: 'partiallyCompleted',
/**
*
*/
Failed: 'failed'
};
/**
* validation type info warning error
* export
* @enum {string}
*/
exports.PaymentCycleValidationType = {
/**
*
*/
Info: 'info',
/**
*
*/
Warning: 'warning',
/**
*
*/
Error: 'error'
};
/**
* push request smartContract paymentCycle transfer payout
* export
* @enum {string}
*/
exports.PaymentDirection = {
/**
*
*/
Push: 'push',
/**
*
*/
Request: 'request',
/**
*
*/
SmartContract: 'smartContract',
/**
*
*/
PaymentCycle: 'paymentCycle',
/**
*
*/
Transfer: 'transfer',
/**
*
*/
Payout: 'payout'
};
/**
* in out
* export
* @enum {string}
*/
exports.PaymentRecordDirection = {
/**
*
*/
In: 'in',
/**
*
*/
Out: 'out'
};
/**
* push-payment contract simple-contract payment-cycle tip-link transfer
* export
* @enum {string}
*/
exports.PaymentSourceEnum = {
/**
*
*/
PushPayment: 'push-payment',
/**
*
*/
Contract: 'contract',
/**
*
*/
SimpleContract: 'simple-contract',
/**
*
*/
PaymentCycle: 'payment-cycle',
/**
*
*/
TipLink: 'tip-link',
/**
*
*/
Transfer: 'transfer'
};
/**
* automated (AUTOMATED) offPlatform (OFF_PLATFORM)
* export
* @enum {string}
*/
exports.PayoutStrategy = {
/**
* AUTOMATED
*/
Automated: 'automated',
/**
* OFF_PLATFORM
*/
OffPlatform: 'offPlatform'
};
/**
* usa-usd-1 usa-multi-1 usa-usd-2 gbr-gbp-1 usa-btc-1
* export
* @enum {string}
*/
exports.ProviderAccountType = {
/**
*
*/
Stripe: 'usa-usd-1',
/**
*
*/
Tipalti: 'usa-multi-1',
/**
*
*/
Dwolla: 'usa-usd-2',
/**
*
*/
StripeUK: 'gbr-gbp-1',
/**
*
*/
BitcoinLightning: 'usa-btc-1'
};
/**
* asRate (TAKE_RATE) asFlatFee (TAKE_FEE)
* export
* @enum {string}
*/
exports.TakeMethod = {
/**
* TAKE_RATE
*/
AsRate: 'asRate',
/**
* TAKE_FEE
*/
AsFlatFee: 'asFlatFee'
};
/**
* onboarded invited pending
* export
* @enum {string}
*/
exports.TenantStatus = {
/**
*
*/
Onboarded: 'onboarded',
/**
*
*/
Invited: 'invited',
/**
*
*/
Pending: 'pending'
};
/**
* gross (Resx.TermOperationTargets.Gross) net (Resx.TermOperationTargets.Net) income (Resx.TermOperationTargets.Income) parent (Resx.TermOperationTargets.Parent)
* export
* @enum {string}
*/
exports.TermOperationTargets = {
/**
* Resx.TermOperationTargets.Gross
*/
Gross: 'gross',
/**
* Resx.TermOperationTargets.Net
*/
Net: 'net',
/**
* Resx.TermOperationTargets.Income
*/
Income: 'income',
/**
* Resx.TermOperationTargets.Parent
*/
Parent: 'parent'
};
/**
* paymentSetupConfirmed fundsReceived paymentProcessingOffNetwork paymentProcessing paymentCompleted paymentFailed paymentPartiallyReversed reversed
* export
* @enum {string}
*/
exports.TransactionActivityEnum = {
/**
*
*/
PaymentSetupConfirmed: 'paymentSetupConfirmed',
/**
*
*/
FundsReceived: 'fundsReceived',
/**
*
*/
PaymentProcessingOffNetwork: 'paymentProcessingOffNetwork',
/**
*
*/
PaymentProcessing: 'paymentProcessing',
/**
*
*/
PaymentCompleted: 'paymentCompleted',
/**
*
*/
PaymentFailed: 'paymentFailed',
/**
*
*/
PaymentPartiallyReversed: 'paymentPartiallyReversed',
/**
*
*/
Reversed: 'reversed'
};
/**
* draft pending posted processing adjusted returned completed failed
* export
* @enum {string}
*/
exports.TransactionDisplayStatusEnum = {
/**
*
*/
Draft: 'draft',
/**
*
*/
Pending: 'pending',
/**
*
*/
Posted: 'posted',
/**
*
*/
Processing: 'processing',
/**
*
*/
Adjusted: 'adjusted',
/**
*
*/
Returned: 'returned',
/**
*
*/
Completed: 'completed',
/**
*
*/
Failed: 'failed'
};
/**
* Based on JammberMoney.dbo.TransactionStatuses draft pending posted processing sent accepted declined publicHold levied adjusted returned postedUnderThreshold paymentAssigned insufficentFunds offPlatform suspended payoutFailed awaitingPayout received payoutCompleted failed pendingBalance
* export
* @enum {string}
*/
exports.TransactionStatusEnum = {
/**
*
*/
Draft: 'draft',
/**
*
*/
Pending: 'pending',
/**
*
*/
Posted: 'posted',
/**
*
*/
Processing: 'processing',
/**
*
*/
Sent: 'sent',
/**
*
*/
Accepted: 'accepted',
/**
*
*/
Declined: 'declined',
/**
*
*/
PublicHold: 'publicHold',
/**
*
*/
Levied: 'levied',
/**
*
*/
Adjusted: 'adjusted',
/**
*
*/
Returned: 'returned',
/**
*
*/
PostedUnderThreshold: 'postedUnderThreshold',
/**
*
*/
PaymentAssigned: 'paymentAssigned',
/**
*
*/
InsufficentFunds: 'insufficentFunds',
/**
*
*/
OffPlatform: 'offPlatform',
/**
*
*/
Suspended: 'suspended',
/**
*
*/
PayoutFailed: 'payoutFailed',
/**
*
*/
AwaitingPayout: 'awaitingPayout',
/**
*
*/
Received: 'received',
/**
*
*/
PayoutCompleted: 'payoutCompleted',
/**
*
*/
Failed: 'failed',
/**
*
*/
PendingBalance: 'pendingBalance'
};
/**
* created validated verified verificationFailed errored
* export
* @enum {string}
*/
exports.VerificationStatus = {
/**
*
*/
created: 'created',
/**
*
*/
validated: 'validated',
/**
*
*/
verified: 'verified',
/**
*
*/
verificationFailed: 'verificationFailed',
/**
*
*/
errored: 'errored'
};
/**
* AccountApi - axios parameter creator
* export
*/
const AccountApiAxiosParamCreator = function (configuration) {
return {
/**
* The account block action is irreversible through the API. Users must contact support to unblock their accounts if this action was done in error.
* summary Disables a user\'s account by marking it as blocked in Auth0. The user ID is extracted from the JWT token provided in the Authorization header.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
apiAccountDelete: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
const localVarPath = `/api/account`;
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
let baseOptions;
if (configuration) {
baseOptions = configuration.baseOptions;
}
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
const localVarHeaderParameter = {};
const localVarQueryParameter = {};
// authentication ApiKeyScheme required
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-key", configuration);
// authentication oauth2 required
// oauth required
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
// authentication bearerAuth required
// http bearer authentication required
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
return {
url: (0, common_1.toPathString)(localVarUrlObj),
options: localVarRequestOptions,
};
}),
/**
*
* summary Refresh Auth Access Token
* @param {Auth0RefreshTokenRequestDeet} [auth0RefreshTokenRequestDeet]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
refreshAccessToken: (auth0RefreshTokenRequestDeet_1, ...args_1) => __awaiter(this, [auth0RefreshTokenRequestDeet_1, ...args_1], void 0, function* (auth0RefreshTokenRequestDeet, options = {}) {
const localVarPath = `/api/account/auth/refresh-token`;
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
let baseOptions;
if (configuration) {
baseOptions = configuration.baseOptions;
}
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
const localVarHeaderParameter = {};
const localVarQueryParameter = {};
// authentication ApiKeyScheme required
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-key", configuration);
// authentication oauth2 required
// oauth required
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
// authentication bearerAuth required
// http bearer authentication required
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
localVarHeaderParameter['Content-Type'] = 'application/json-patch+json';
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(auth0RefreshTokenRequestDeet, localVarRequestOptions, configuration);
return {
url: (0, common_1.toPathString)(localVarUrlObj),
options: localVarRequestOptions,
};
}),
/**
*
* summary Generate Authorized Link
* @param {AuthLinkRequestDeet} [authLinkRequestDeet]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
requestAuthLink: (authLinkRequestDeet_1, ...args_1) => __awaiter(this, [authLinkRequestDeet_1, ...args_1], void 0, function* (authLinkRequestDeet, options = {}) {
const localVarPath = `/api/account/auth/request-link`;
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
let baseOptions;
if (configuration) {
baseOptions = configuration.baseOptions;
}
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
const localVarHeaderParameter = {};
const localVarQueryParameter = {};
// authentication ApiKeyScheme required
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-key", configuration);
// authentication oauth2 required
// oauth required
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
// authentication bearerAuth required
// http bearer authentication required
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
localVarHeaderParameter['Content-Type'] = 'application/json-patch+json';
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(authLinkRequestDeet, localVarRequestOptions, configuration);
return {
url: (0, common_1.toPathString)(localVarUrlObj),
options: localVarRequestOptions,
};
}),
/**
*
* summary Generate Auth OTP
* @param {Auth0OtpGenerateDeets} [auth0OtpGenerateDeets]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
requestOtp: (auth0OtpGenerateDeets_1, ...args_1) => __awaiter(this, [auth0OtpGenerateDeets_1, ...args_1], void 0, function* (auth0OtpGenerateDeets, options = {}) {
const localVarPath = `/api/account/auth/otp`;
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
let baseOptions;
if (configuration) {
baseOptions = configuration.baseOptions;
}
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
const localVarHeaderParameter = {};
const localVarQueryParameter = {};
// authentication ApiKeyScheme required
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-key", configuration);
// authentication oauth2 required
// oauth required
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
// authentication bearerAuth required
// http bearer authentication required
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
localVarHeaderParameter['Content-Type'] = 'application/json-patch+json';
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(auth0OtpGenerateDeets, localVarRequestOptions, configuration);
return {
url: (0, common_1.toPathString)(localVarUrlObj),
options: localVarRequestOptions,
};
}),
/**
*
* summary Verify Auth OTP
* @param {Auth0OtpVerifyDeets} [auth0OtpVerifyDeets]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
verifyOtp: (auth0OtpVerifyDeets_1, ...args_1) => __awaiter(this, [auth0OtpVerifyDeets_1, ...args_1], void 0, function* (auth0OtpVerifyDeets, options = {}) {
const localVarPath = `/api/account/auth/otp-verify`;
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
let baseOptions;
if (configuration) {
baseOptions = configuration.baseOptions;
}
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
const localVarHeaderParameter = {};
const localVarQueryParameter = {};
// authentication ApiKeyScheme required
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-key", configuration);
// authentication oauth2 required
// oauth required
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["openid", "profile", "email"], configuration);
// authentication bearerAuth required
// http bearer authentication required
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
localVarHeaderParameter['Content-Type'] = 'application/json-patch+json';
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(auth0OtpVerifyDeets, localVarRequestOptions, configuration);
return {
url: (0, common_1.toPathString)(localVarUrlObj),
options: localVarRequestOptions,
};
}),
};
};
exports.AccountApiAxiosParamCreator = AccountApiAxiosParamCreator;
/**
* AccountApi - functional programming interface
* export
*/
const AccountApiFp = function (configuration) {
const localVarAxiosParamCreator = (0, exports.AccountApiAxiosParamCreator)(configuration);
return {
/**
* The account block action is irreversible through the API. Users must contact support to unblock their accounts if this action was done in error.
* summary Disables a user\'s account by marking it as blocked in Auth0. The user ID is extracted from the JWT token provided in the Authorization header.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
apiAccountDelete(options) {
return __awaiter(this, void 0, void 0, function* () {
var _a, _b, _c;
const localVarAxiosArgs = yield localVarAxiosParamCreator.apiAccountDelete(options);
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountApi.apiAccountDelete']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
});
},
/**
*
* summary Refresh Auth Access Token
* @param {Auth0RefreshTokenRequestDeet} [auth0RefreshTokenRequestDeet]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
refreshAccessToken(auth0RefreshTokenRequestDeet, options) {
return __awaiter(this, void 0, void 0, function* () {
var _a, _b, _c;
const localVarAxiosArgs = yield localVarAxiosParamCreator.refreshAccessToken(auth0RefreshTokenRequestDeet, options);
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountApi.refreshAccessToken']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
});
},
/**
*
* summary Generate Authorized Link
* @param {AuthLinkRequestDeet} [authLinkRequestDeet]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
requestAuthLink(authLinkRequestDeet, options) {
return __awaiter(this, void 0, void 0, function* () {
var _a, _b, _c;
const localVarAxiosArgs = yield localVarAxiosParamCreator.requestAuthLink(authLinkRequestDeet, options);
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountApi.requestAuthLink']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
});
},
/**
*
* summary Generate Auth OTP
* @param {Auth0OtpGenerateDeets} [auth0OtpGenerateDeets]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
requestOtp(auth0OtpGenerateDeets, options) {
return __awaiter(this, void 0, void 0, function* () {
var _a, _b, _c;
const localVarAxiosArgs = yield localVarAxiosParamCreator.requestOtp(auth0OtpGenerateDeets, options);
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountApi.requestOtp']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
});
},
/**
*
* summary Verify Auth OTP
* @param {Auth0OtpVerifyDeets} [auth0OtpVerifyDeets]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
verifyOtp(auth0OtpVerifyDeets, options) {
return __awaiter(this, void 0, void 0, function* () {
var _a, _b, _c;
const localVarAxiosArgs = yield localVarAxiosParamCreator.verifyOtp(auth0OtpVerifyDeets, options);
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountApi.verifyOtp']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
});
},
};
};
exports.AccountApiFp = AccountApiFp;
/**
* AccountApi - factory interface
* export
*/
const AccountApiFactory = function (configuration, basePath, axios) {
const localVarFp = (0, exports.AccountApiFp)(configuration);
return {
/**
* The account block action is irreversible through the API. Users must contact support to unblock their accounts if this action was done in error.
* summary Disables a user\'s account by marking it as blocked in Auth0. The user ID is extracted from the JWT token provided in the Authorization header.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
apiAccountDelete(options) {
return localVarFp.apiAccountDelete(options).then((request) => request(axios, basePath));
},
/**
*
* summary Refresh Auth Access Token
* @param {Auth0RefreshTokenRequestDeet} [auth0RefreshTokenRequestDeet]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
refreshAccessToken(auth0RefreshTokenRequestDeet, options) {
return localVarFp.refreshAccessToken(auth0RefreshTokenRequestDeet, options).then((request) => request(axios, basePath));
},
/**
*
* summary Generate Authorized Link
* @param {AuthLinkRequestDeet} [authLinkRequestDeet]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
requestAuthLink(authLinkRequestDeet, options) {
return localVarFp.requestAuthLink(authLinkRequestDeet, options).then((request) => request(axios, basePath));
},
/**
*
* summary Generate Auth OTP
* @param {Auth0OtpGenerateDeets} [auth0OtpGenerateDeets]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
requestOtp(auth0OtpGenerateDeets, options) {
return localVarFp.requestOtp(auth0OtpGenerateDeets, options).then((request) => request(axios, basePath));
},
/**
*
* summary Verify Auth OTP
* @param {Auth0OtpVerifyDeets} [auth0OtpVerifyDeets]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
verifyOtp(auth0OtpVerifyDeets, options) {
return localVarFp.verifyOtp(auth0OtpVerifyDeets, options).then((request) => request(axios, basePath));
},
};
};
exports.AccountApiFactory = AccountApiFactory;
/**
* AccountApi - object-oriented interface
* export
* @class AccountApi
* @extends {BaseAPI}
*/
class AccountApi extends base_1.BaseAPI {
/**
* The account block action is irreversible through the API. Users must contact support to unblock their accounts if this action was done in error.
* summary Disables a user\'s account by marking it as blocked in Auth0. The user ID is extracted from the JWT token provided in the Authorization header.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* memberof AccountApi
*/
apiAccountDelete(options) {
return (0, exports.AccountApiFp)(this.configuration).apiAccountDelete(options).then((request) => request(this.axios, this.basePath));
}
/**
*
* summary Refresh Auth Access Token
* @param {Auth0RefreshTokenRequestDeet} [auth0RefreshTokenRequestDeet]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* memberof AccountApi
*/
refreshAccessToken(auth0RefreshTokenRequestDeet, options) {
return (0, exports.AccountApiFp)(this.configuration).refreshAccessToken(auth0RefreshTokenRequestDeet, options).then((request) => request(this.axios, this.basePath));
}
/**
*
* summary Generate Authorized Link
* @param {AuthLinkRequestDeet} [authLinkRequestDeet]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* memberof AccountApi
*/
requestAuthLink(authLinkRequestDeet, options) {
return (0, exports.AccountApiFp)(this.configuration).requestAuthLink(authLinkRequestDeet, options).then((request) => request(this.axios, this.basePath));
}
/**
*
* summary Generate Auth OTP
* @param {Auth0OtpGenerateDeets} [auth0OtpGenerateDeets]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* memberof AccountApi
*/
requestOtp(auth0OtpGenerateDeets, options) {
return (0, exports.AccountApiFp)(this.configuration).requestOtp(auth0OtpGenerateDeets, options).then((request) => request(this.axios, this.basePath));
}
/**
*
* summary Verify Auth OTP
* @param {Auth0OtpVerifyDeets} [auth0OtpVerifyDeets]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* memberof AccountApi
*/
verifyOtp(auth0OtpVerifyDeets, options) {
return (0, exports.AccountApiFp)(this.configuration).verifyOtp(auth0OtpVerifyDeets, options).then((request) => request(this.axios, this.basePath));
}
}
exports.AccountApi = AccountApi;
/**
* ActivityApi - axios parameter creator
* export
*/
const ActivityApiAxiosParamCreator = function (configuration) {
return {
/**
*
* summary Retrieves the Activity with the specifie