gocardless-nodejs
Advanced tools
Comparing version 1.4.3 to 2.0.0
@@ -36,4 +36,3 @@ import { Environments } from '../constants'; | ||
private formatQueryParameters; | ||
private isIdempotencyConflict; | ||
} | ||
export {}; |
@@ -33,3 +33,3 @@ 'use strict'; | ||
const constants_1 = require("../constants"); | ||
const GoCardlessException_1 = require("../GoCardlessException"); | ||
const GoCardlessErrors = __importStar(require("../errors")); | ||
class Api { | ||
@@ -57,2 +57,7 @@ constructor(token, environment = constants_1.Environments.Live, options) { | ||
}); | ||
// `got` adds a slash to the end of `prefix_url` so we don't want one at the | ||
// start of the path | ||
if (path[0] === '/') { | ||
path = path.slice(1); | ||
} | ||
const requestOptions = this.createRequestOptions(method, requestParameters, payloadKey, idempotencyKey, customHeaders); | ||
@@ -71,16 +76,15 @@ try { | ||
} | ||
catch (error) { | ||
const { response } = error; | ||
if (!response) { | ||
throw error; | ||
catch (e) { | ||
if (e instanceof got_1.default.ParseError) { | ||
throw new GoCardlessErrors.MalformedResponseError('Malformed JSON received from GoCardless API', e.response); | ||
} | ||
if (this.isIdempotencyConflict(response) && | ||
!this.raiseOnIdempotencyConflict) { | ||
const resourceId = response.body.error.errors[0].links.conflicting_resource_id; | ||
return fetch(resourceId); | ||
if (e instanceof got_1.default.HTTPError) { | ||
const err = GoCardlessErrors.ApiError.buildFromResponse(e.response); | ||
if (err instanceof GoCardlessErrors.IdempotentCreationConflictError && | ||
!this.raiseOnIdempotencyConflict) { | ||
return fetch(err.conflictingResourceId); | ||
} | ||
throw err; | ||
} | ||
if (response) { | ||
throw new GoCardlessException_1.GoCardlessException(response); | ||
} | ||
throw error; | ||
throw e; | ||
} | ||
@@ -92,6 +96,6 @@ } | ||
Authorization: `Bearer ${token}`, | ||
'GoCardless-Version': '2015-07-06', | ||
'GoCardless-Client-Version': '1.4.3', | ||
'GoCardless-Version': `${constants_1.API_VERSION}`, | ||
'GoCardless-Client-Version': `${constants_1.CLIENT_VERSION}`, | ||
'GoCardless-Client-Library': 'gocardless-nodejs', | ||
'User-Agent': `gocardless-nodejs/1.4.3 node/${this.processVersion} ${this.osPlatform}/${this.osRelease}`, | ||
'User-Agent': `gocardless-nodejs/${constants_1.CLIENT_VERSION} node/${this.processVersion} ${this.osPlatform}/${this.osRelease}`, | ||
}; | ||
@@ -149,12 +153,4 @@ return { ...customHeaders, ...mandatoryHeaders }; | ||
} | ||
isIdempotencyConflict(response) { | ||
return (response.statusCode === 409 && | ||
response.body && | ||
response.body.error && | ||
response.body.error.errors && | ||
response.body.error.errors[0] && | ||
response.body.error.errors[0].reason === 'idempotent_creation_conflict'); | ||
} | ||
} | ||
exports.Api = Api; | ||
//# sourceMappingURL=api.js.map |
import { Environments } from './constants'; | ||
import { BankAuthorisationService } from './services/bankAuthorisationService'; | ||
import { BankDetailsLookupService } from './services/bankDetailsLookupService'; | ||
import { BillingRequestService } from './services/billingRequestService'; | ||
import { BillingRequestFlowService } from './services/billingRequestFlowService'; | ||
import { CreditorService } from './services/creditorService'; | ||
@@ -11,2 +14,3 @@ import { CreditorBankAccountService } from './services/creditorBankAccountService'; | ||
import { InstalmentScheduleService } from './services/instalmentScheduleService'; | ||
import { InstitutionService } from './services/institutionService'; | ||
import { MandateService } from './services/mandateService'; | ||
@@ -22,7 +26,12 @@ import { MandateImportService } from './services/mandateImportService'; | ||
import { RefundService } from './services/refundService'; | ||
import { ScenarioSimulatorService } from './services/scenarioSimulatorService'; | ||
import { SubscriptionService } from './services/subscriptionService'; | ||
import { TaxRateService } from './services/taxRateService'; | ||
import { WebhookService } from './services/webhookService'; | ||
export declare class GoCardlessClient { | ||
private _api; | ||
private _bankAuthorisations; | ||
private _bankDetailsLookups; | ||
private _billingRequests; | ||
private _billingRequestFlows; | ||
private _creditors; | ||
@@ -36,2 +45,3 @@ private _creditorBankAccounts; | ||
private _instalmentSchedules; | ||
private _institutions; | ||
private _mandates; | ||
@@ -47,6 +57,11 @@ private _mandateImports; | ||
private _refunds; | ||
private _scenarioSimulators; | ||
private _subscriptions; | ||
private _taxRates; | ||
private _webhooks; | ||
constructor(token: string, environment?: Environments, options?: {}); | ||
get bankAuthorisations(): BankAuthorisationService; | ||
get bankDetailsLookups(): BankDetailsLookupService; | ||
get billingRequests(): BillingRequestService; | ||
get billingRequestFlows(): BillingRequestFlowService; | ||
get creditors(): CreditorService; | ||
@@ -60,2 +75,3 @@ get creditorBankAccounts(): CreditorBankAccountService; | ||
get instalmentSchedules(): InstalmentScheduleService; | ||
get institutions(): InstitutionService; | ||
get mandates(): MandateService; | ||
@@ -71,4 +87,6 @@ get mandateImports(): MandateImportService; | ||
get refunds(): RefundService; | ||
get scenarioSimulators(): ScenarioSimulatorService; | ||
get subscriptions(): SubscriptionService; | ||
get taxRates(): TaxRateService; | ||
get webhooks(): WebhookService; | ||
} |
@@ -6,3 +6,6 @@ 'use strict'; | ||
const api_1 = require("./api/api"); | ||
const bankAuthorisationService_1 = require("./services/bankAuthorisationService"); | ||
const bankDetailsLookupService_1 = require("./services/bankDetailsLookupService"); | ||
const billingRequestService_1 = require("./services/billingRequestService"); | ||
const billingRequestFlowService_1 = require("./services/billingRequestFlowService"); | ||
const creditorService_1 = require("./services/creditorService"); | ||
@@ -16,2 +19,3 @@ const creditorBankAccountService_1 = require("./services/creditorBankAccountService"); | ||
const instalmentScheduleService_1 = require("./services/instalmentScheduleService"); | ||
const institutionService_1 = require("./services/institutionService"); | ||
const mandateService_1 = require("./services/mandateService"); | ||
@@ -27,8 +31,13 @@ const mandateImportService_1 = require("./services/mandateImportService"); | ||
const refundService_1 = require("./services/refundService"); | ||
const scenarioSimulatorService_1 = require("./services/scenarioSimulatorService"); | ||
const subscriptionService_1 = require("./services/subscriptionService"); | ||
const taxRateService_1 = require("./services/taxRateService"); | ||
const webhookService_1 = require("./services/webhookService"); | ||
class GoCardlessClient { | ||
constructor(token, environment = constants_1.Environments.Live, options = {}) { | ||
this._api = new api_1.Api(token, environment, options); | ||
this._bankAuthorisations = undefined; | ||
this._bankDetailsLookups = undefined; | ||
this._billingRequests = undefined; | ||
this._billingRequestFlows = undefined; | ||
this._creditors = undefined; | ||
@@ -42,2 +51,3 @@ this._creditorBankAccounts = undefined; | ||
this._instalmentSchedules = undefined; | ||
this._institutions = undefined; | ||
this._mandates = undefined; | ||
@@ -53,5 +63,13 @@ this._mandateImports = undefined; | ||
this._refunds = undefined; | ||
this._scenarioSimulators = undefined; | ||
this._subscriptions = undefined; | ||
this._taxRates = undefined; | ||
this._webhooks = undefined; | ||
} | ||
get bankAuthorisations() { | ||
if (!this._bankAuthorisations) { | ||
this._bankAuthorisations = new bankAuthorisationService_1.BankAuthorisationService(this._api); | ||
} | ||
return this._bankAuthorisations; | ||
} | ||
get bankDetailsLookups() { | ||
@@ -63,2 +81,14 @@ if (!this._bankDetailsLookups) { | ||
} | ||
get billingRequests() { | ||
if (!this._billingRequests) { | ||
this._billingRequests = new billingRequestService_1.BillingRequestService(this._api); | ||
} | ||
return this._billingRequests; | ||
} | ||
get billingRequestFlows() { | ||
if (!this._billingRequestFlows) { | ||
this._billingRequestFlows = new billingRequestFlowService_1.BillingRequestFlowService(this._api); | ||
} | ||
return this._billingRequestFlows; | ||
} | ||
get creditors() { | ||
@@ -112,2 +142,8 @@ if (!this._creditors) { | ||
} | ||
get institutions() { | ||
if (!this._institutions) { | ||
this._institutions = new institutionService_1.InstitutionService(this._api); | ||
} | ||
return this._institutions; | ||
} | ||
get mandates() { | ||
@@ -173,2 +209,8 @@ if (!this._mandates) { | ||
} | ||
get scenarioSimulators() { | ||
if (!this._scenarioSimulators) { | ||
this._scenarioSimulators = new scenarioSimulatorService_1.ScenarioSimulatorService(this._api); | ||
} | ||
return this._scenarioSimulators; | ||
} | ||
get subscriptions() { | ||
@@ -186,4 +228,10 @@ if (!this._subscriptions) { | ||
} | ||
get webhooks() { | ||
if (!this._webhooks) { | ||
this._webhooks = new webhookService_1.WebhookService(this._api); | ||
} | ||
return this._webhooks; | ||
} | ||
} | ||
exports.GoCardlessClient = GoCardlessClient; | ||
//# sourceMappingURL=client.js.map |
@@ -1,4 +0,7 @@ | ||
export declare enum Environments { | ||
declare enum Environments { | ||
Live = "LIVE", | ||
Sandbox = "SANDBOX" | ||
} | ||
declare const CLIENT_VERSION = "2.0.0"; | ||
declare const API_VERSION = "2015-07-06"; | ||
export { Environments, CLIENT_VERSION, API_VERSION }; |
'use strict'; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Environments = void 0; | ||
exports.API_VERSION = exports.CLIENT_VERSION = exports.Environments = void 0; | ||
var Environments; | ||
@@ -8,3 +8,8 @@ (function (Environments) { | ||
Environments["Sandbox"] = "SANDBOX"; | ||
})(Environments = exports.Environments || (exports.Environments = {})); | ||
})(Environments || (Environments = {})); | ||
exports.Environments = Environments; | ||
const CLIENT_VERSION = '2.0.0'; | ||
exports.CLIENT_VERSION = CLIENT_VERSION; | ||
const API_VERSION = '2015-07-06'; | ||
exports.API_VERSION = API_VERSION; | ||
//# sourceMappingURL=constants.js.map |
{ | ||
"name": "gocardless-nodejs", | ||
"version": "1.4.3", | ||
"version": "2.0.0", | ||
"description": "Node.js client for the GoCardless API - a powerful, simple solution for the collection of recurring bank-to-bank payments", | ||
@@ -36,4 +36,7 @@ "author": "GoCardless Ltd <client-libraries@gocardless.com>", | ||
"@types/jest": "^25.1.4", | ||
"@types/nock": "^11.1.0", | ||
"jest": "^25.1.0", | ||
"ts-jest": "25.2.1" | ||
"ts-jest": "25.2.1", | ||
"nock": "^13.0.11", | ||
"typescript": "^4.2.4" | ||
}, | ||
@@ -40,0 +43,0 @@ "main": "src/index.js", |
@@ -32,2 +32,4 @@ import * as Types from '../types/Types'; | ||
limit?: string; | ||
sort_direction?: Types.CustomerSortDirection; | ||
sort_field?: Types.CustomerSortField; | ||
} | ||
@@ -34,0 +36,0 @@ interface CustomerUpdateRequest { |
@@ -24,2 +24,3 @@ import * as Types from '../types/Types'; | ||
reference?: string; | ||
scheme?: string[]; | ||
status?: Types.MandateStatus[]; | ||
@@ -26,0 +27,0 @@ } |
@@ -29,2 +29,4 @@ import * as Types from '../types/Types'; | ||
mandate?: string; | ||
sort_direction?: Types.PaymentSortDirection; | ||
sort_field?: Types.PaymentSortField; | ||
status?: Types.PaymentStatus; | ||
@@ -31,0 +33,0 @@ subscription?: string; |
@@ -0,1 +1,29 @@ | ||
/** Type for a bankauthorisation resource. */ | ||
export interface BankAuthorisation { | ||
authorisation_type: BankAuthorisationAuthorisationType; | ||
created_at: string; | ||
expires_at: string; | ||
id: string; | ||
last_visited_at?: string; | ||
links: BankAuthorisationLinks; | ||
redirect_uri: string; | ||
short_url: string; | ||
url: string; | ||
} | ||
/** Type for a bankauthorisationcreaterequestlinks resource. */ | ||
export interface BankAuthorisationCreateRequestLinks { | ||
billing_request: string; | ||
institution: string; | ||
payment_request: string; | ||
} | ||
export declare enum BankAuthorisationAuthorisationType { | ||
Mandate = "mandate", | ||
Payment = "payment" | ||
} | ||
/** Type for a bankauthorisationlinks resource. */ | ||
export interface BankAuthorisationLinks { | ||
billing_request: string; | ||
institution: string; | ||
payment_request: string; | ||
} | ||
/** Type for a bankdetailslookup resource. */ | ||
@@ -17,2 +45,181 @@ export interface BankDetailsLookup { | ||
} | ||
/** Type for a billingrequest resource. */ | ||
export interface BillingRequest { | ||
actions: BillingRequestAction[]; | ||
auto_fulfil: boolean; | ||
created_at: string; | ||
id: string; | ||
links: BillingRequestLinks; | ||
mandate_request: BillingRequestMandateRequest; | ||
metadata: JsonMap; | ||
payment_request: BillingRequestPaymentRequest; | ||
resources: BillingRequestResources; | ||
status: BillingRequestStatus; | ||
} | ||
/** Type for a billingrequestcreaterequestlinks resource. */ | ||
export interface BillingRequestCreateRequestLinks { | ||
customer: string; | ||
customer_bank_account: string; | ||
} | ||
/** Type for a billingrequestmandaterequest resource. */ | ||
export interface BillingRequestMandateRequest { | ||
currency: string; | ||
scheme?: string; | ||
} | ||
/** Type for a billingrequestpaymentrequest resource. */ | ||
export interface BillingRequestPaymentRequest { | ||
amount: string; | ||
currency: string; | ||
description?: string; | ||
} | ||
/** Type for a billingrequestcustomer resource. */ | ||
export interface BillingRequestCustomer { | ||
company_name?: string; | ||
email?: string; | ||
family_name?: string; | ||
given_name?: string; | ||
language?: string; | ||
metadata: JsonMap; | ||
phone_number?: string; | ||
} | ||
/** Type for a billingrequestcustomerbillingdetail resource. */ | ||
export interface BillingRequestCustomerBillingDetail { | ||
address_line1?: string; | ||
address_line2?: string; | ||
address_line3?: string; | ||
city?: string; | ||
country_code?: string; | ||
danish_identity_number?: string; | ||
postal_code?: string; | ||
region?: string; | ||
swedish_identity_number?: string; | ||
} | ||
export declare enum BillingRequestAccountType { | ||
Savings = "savings", | ||
Checking = "checking" | ||
} | ||
export declare enum BillingRequestNotificationType { | ||
Email = "email" | ||
} | ||
/** Type for a billingrequestaction resource. */ | ||
export interface BillingRequestAction { | ||
completes_actions: string[]; | ||
required: boolean; | ||
requires_actions: string[]; | ||
type: BillingRequestActionType; | ||
} | ||
export declare enum BillingRequestActionType { | ||
ChooseCurrency = "choose_currency", | ||
CollectCustomerDetails = "collect_customer_details", | ||
CollectBankAccountDetails = "collect_bank_account_details", | ||
PaymentBankAuthorisation = "payment_bank_authorisation", | ||
MandateBankAuthorisation = "mandate_bank_authorisation" | ||
} | ||
/** Type for a billingrequestlinks resource. */ | ||
export interface BillingRequestLinks { | ||
customer: string; | ||
customer_bank_account: string; | ||
customer_billing_detail: string; | ||
mandate_bank_authorisation: string; | ||
payment_bank_authorisation: string; | ||
} | ||
/** Type for a billingrequestmandaterequest resource. */ | ||
export interface BillingRequestMandateRequest { | ||
currency: string; | ||
links: BillingRequestMandateRequestLinks; | ||
scheme?: string; | ||
} | ||
/** Type for a billingrequestmandaterequestlinks resource. */ | ||
export interface BillingRequestMandateRequestLinks { | ||
mandate: string; | ||
} | ||
/** Type for a billingrequestpaymentrequest resource. */ | ||
export interface BillingRequestPaymentRequest { | ||
amount: string; | ||
currency: string; | ||
description?: string; | ||
links: BillingRequestPaymentRequestLinks; | ||
scheme?: string; | ||
} | ||
/** Type for a billingrequestpaymentrequestlinks resource. */ | ||
export interface BillingRequestPaymentRequestLinks { | ||
payment: string; | ||
} | ||
/** Type for a billingrequestresources resource. */ | ||
export interface BillingRequestResources { | ||
customer: BillingRequestResourcesCustomer; | ||
customer_bank_account?: BillingRequestResourcesCustomerBankAccount; | ||
customer_billing_detail: BillingRequestResourcesCustomerBillingDetail; | ||
} | ||
/** Type for a billingrequestresourcescustomer resource. */ | ||
export interface BillingRequestResourcesCustomer { | ||
company_name?: string; | ||
created_at: string; | ||
email?: string; | ||
family_name?: string; | ||
given_name?: string; | ||
id: string; | ||
language?: string; | ||
metadata: JsonMap; | ||
phone_number?: string; | ||
} | ||
/** Type for a billingrequestresourcescustomerbankaccount resource. */ | ||
export interface BillingRequestResourcesCustomerBankAccount { | ||
account_holder_name: string; | ||
account_number_ending: string; | ||
account_type: BillingRequestResourcesCustomerBankAccountAccountType; | ||
bank_name: string; | ||
country_code?: string; | ||
created_at: string; | ||
currency?: string; | ||
enabled: boolean; | ||
id: string; | ||
links: BillingRequestResourcesCustomerBankAccountLinks; | ||
metadata: JsonMap; | ||
} | ||
export declare enum BillingRequestResourcesCustomerBankAccountAccountType { | ||
Savings = "savings", | ||
Checking = "checking" | ||
} | ||
/** Type for a billingrequestresourcescustomerbankaccountlinks resource. */ | ||
export interface BillingRequestResourcesCustomerBankAccountLinks { | ||
customer: string; | ||
} | ||
/** Type for a billingrequestresourcescustomerbillingdetail resource. */ | ||
export interface BillingRequestResourcesCustomerBillingDetail { | ||
address_line1?: string; | ||
address_line2?: string; | ||
address_line3?: string; | ||
city?: string; | ||
country_code?: string; | ||
created_at: string; | ||
danish_identity_number?: string; | ||
id: string; | ||
postal_code?: string; | ||
region?: string; | ||
schemes: string[]; | ||
swedish_identity_number?: string; | ||
} | ||
export declare enum BillingRequestStatus { | ||
Pending = "pending", | ||
ReadyToFulfil = "ready_to_fulfil", | ||
Fulfilled = "fulfilled", | ||
Cancelled = "cancelled" | ||
} | ||
/** Type for a billingrequestflow resource. */ | ||
export interface BillingRequestFlow { | ||
authorisation_url: string; | ||
created_at: string; | ||
expires_at: string; | ||
links: BillingRequestFlowLinks; | ||
redirect_uri: string; | ||
} | ||
/** Type for a billingrequestflowcreaterequestlinks resource. */ | ||
export interface BillingRequestFlowCreateRequestLinks { | ||
billing_request: string; | ||
} | ||
/** Type for a billingrequestflowlinks resource. */ | ||
export interface BillingRequestFlowLinks { | ||
billing_request: string; | ||
} | ||
/** Type for a creditor resource. */ | ||
@@ -107,2 +314,3 @@ export interface Creditor { | ||
Betalingsservice = "betalingsservice", | ||
FasterPayments = "faster_payments", | ||
Pad = "pad", | ||
@@ -180,2 +388,11 @@ Sepa = "sepa" | ||
} | ||
export declare enum CustomerSortDirection { | ||
Asc = "asc", | ||
Desc = "desc" | ||
} | ||
export declare enum CustomerSortField { | ||
Name = "name", | ||
CompanyName = "company_name", | ||
CreatedAt = "created_at" | ||
} | ||
/** Type for a customerbankaccount resource. */ | ||
@@ -390,2 +607,9 @@ export interface CustomerBankAccount { | ||
} | ||
/** Type for a institution resource. */ | ||
export interface Institution { | ||
icon_url: string; | ||
id: string; | ||
logo_url: string; | ||
name: string; | ||
} | ||
/** Type for a mandate resource. */ | ||
@@ -422,3 +646,4 @@ export interface Mandate { | ||
Cancelled = "cancelled", | ||
Expired = "expired" | ||
Expired = "expired", | ||
Consumed = "consumed" | ||
} | ||
@@ -532,2 +757,3 @@ /** Type for a mandateimport resource. */ | ||
account_number?: string; | ||
account_number_ending: string; | ||
account_number_suffix?: string; | ||
@@ -627,2 +853,10 @@ account_type: PayerAuthorisationBankAccountAccountType; | ||
} | ||
export declare enum PaymentSortDirection { | ||
Asc = "asc", | ||
Desc = "desc" | ||
} | ||
export declare enum PaymentSortField { | ||
ChargeDate = "charge_date", | ||
Amount = "amount" | ||
} | ||
export declare enum PaymentCurrency { | ||
@@ -890,2 +1124,20 @@ AUD = "AUD", | ||
} | ||
/** Type for a scenariosimulator resource. */ | ||
export interface ScenarioSimulator { | ||
id: string; | ||
} | ||
export declare enum ScenarioSimulatorCurrency { | ||
AUD = "AUD", | ||
CAD = "CAD", | ||
DKK = "DKK", | ||
EUR = "EUR", | ||
GBP = "GBP", | ||
NZD = "NZD", | ||
SEK = "SEK", | ||
USD = "USD" | ||
} | ||
/** Type for a scenariosimulatorrunrequestlinks resource. */ | ||
export interface ScenarioSimulatorRunRequestLinks { | ||
resource: string; | ||
} | ||
declare type JsonField = boolean | number | string | null; | ||
@@ -1002,2 +1254,18 @@ export interface JsonMap { | ||
} | ||
/** Type for a webhook resource. */ | ||
export interface Webhook { | ||
created_at: string; | ||
id: string; | ||
is_test: boolean; | ||
request_body: string; | ||
request_headers: JsonMap; | ||
response_body: string; | ||
response_body_truncated: boolean; | ||
response_code: number; | ||
response_headers: JsonMap; | ||
response_headers_content_truncated: boolean; | ||
response_headers_count_truncated: boolean; | ||
successful: boolean; | ||
url: string; | ||
} | ||
export {}; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.SubscriptionStatus = exports.SubscriptionMonth = exports.SubscriptionIntervalUnit = exports.FxCurrency = exports.RefundStatus = exports.RefundFxFxCurrency = exports.RefundRefundType = exports.RedirectFlowScheme = exports.RedirectFlowPrefilledBankAccountAccountType = exports.PayoutItemType = exports.PayoutItemTaxisCurrency = exports.PayoutItemInclude2020TaxCutover = exports.PayoutStatus = exports.PayoutPayoutType = exports.PayoutFxFxCurrency = exports.PayoutCurrency = exports.PaymentStatus = exports.PaymentFxFxCurrency = exports.PaymentCurrency = exports.PayerAuthorisationStatus = exports.PayerAuthorisationMandateScheme = exports.PayerAuthorisationBankAccountAccountType = exports.MandatePdfSubscriptionFrequency = exports.MandatePdfAccountType = exports.MandateImportStatus = exports.MandateImportScheme = exports.MandateStatus = exports.InstalmentScheduleStatus = exports.InstalmentScheduleCurrency = exports.InstalmentScheduleInstalmentsIntervalUnit = exports.EventResourceType = exports.EventDetailsScheme = exports.EventDetailsOrigin = exports.EventCustomerNotificationType = exports.EventInclude = exports.CustomerNotificationType = exports.CustomerNotificationActionTaken = exports.CustomerBankAccountAccountType = exports.CustomerCurrency = exports.CreditorBankAccountAccountType = exports.CreditorVerificationStatus = exports.CreditorSchemeIdentifierScheme = exports.CreditorSchemeIdentifierCurrency = exports.CreditorFxPayoutCurrency = exports.BankDetailsLookupAvailableDebitScheme = void 0; | ||
exports.RefundFxFxCurrency = exports.RefundRefundType = exports.RedirectFlowScheme = exports.RedirectFlowPrefilledBankAccountAccountType = exports.PayoutItemType = exports.PayoutItemTaxisCurrency = exports.PayoutItemInclude2020TaxCutover = exports.PayoutStatus = exports.PayoutPayoutType = exports.PayoutFxFxCurrency = exports.PayoutCurrency = exports.PaymentStatus = exports.PaymentFxFxCurrency = exports.PaymentCurrency = exports.PaymentSortField = exports.PaymentSortDirection = exports.PayerAuthorisationStatus = exports.PayerAuthorisationMandateScheme = exports.PayerAuthorisationBankAccountAccountType = exports.MandatePdfSubscriptionFrequency = exports.MandatePdfAccountType = exports.MandateImportStatus = exports.MandateImportScheme = exports.MandateStatus = exports.InstalmentScheduleStatus = exports.InstalmentScheduleCurrency = exports.InstalmentScheduleInstalmentsIntervalUnit = exports.EventResourceType = exports.EventDetailsScheme = exports.EventDetailsOrigin = exports.EventCustomerNotificationType = exports.EventInclude = exports.CustomerNotificationType = exports.CustomerNotificationActionTaken = exports.CustomerBankAccountAccountType = exports.CustomerSortField = exports.CustomerSortDirection = exports.CustomerCurrency = exports.CreditorBankAccountAccountType = exports.CreditorVerificationStatus = exports.CreditorSchemeIdentifierScheme = exports.CreditorSchemeIdentifierCurrency = exports.CreditorFxPayoutCurrency = exports.BillingRequestStatus = exports.BillingRequestResourcesCustomerBankAccountAccountType = exports.BillingRequestActionType = exports.BillingRequestNotificationType = exports.BillingRequestAccountType = exports.BankDetailsLookupAvailableDebitScheme = exports.BankAuthorisationAuthorisationType = void 0; | ||
exports.SubscriptionStatus = exports.SubscriptionMonth = exports.SubscriptionIntervalUnit = exports.FxCurrency = exports.ScenarioSimulatorCurrency = exports.RefundStatus = void 0; | ||
var BankAuthorisationAuthorisationType; | ||
(function (BankAuthorisationAuthorisationType) { | ||
BankAuthorisationAuthorisationType["Mandate"] = "mandate"; | ||
BankAuthorisationAuthorisationType["Payment"] = "payment"; | ||
})(BankAuthorisationAuthorisationType = exports.BankAuthorisationAuthorisationType || (exports.BankAuthorisationAuthorisationType = {})); | ||
var BankDetailsLookupAvailableDebitScheme; | ||
@@ -15,2 +21,31 @@ (function (BankDetailsLookupAvailableDebitScheme) { | ||
})(BankDetailsLookupAvailableDebitScheme = exports.BankDetailsLookupAvailableDebitScheme || (exports.BankDetailsLookupAvailableDebitScheme = {})); | ||
var BillingRequestAccountType; | ||
(function (BillingRequestAccountType) { | ||
BillingRequestAccountType["Savings"] = "savings"; | ||
BillingRequestAccountType["Checking"] = "checking"; | ||
})(BillingRequestAccountType = exports.BillingRequestAccountType || (exports.BillingRequestAccountType = {})); | ||
var BillingRequestNotificationType; | ||
(function (BillingRequestNotificationType) { | ||
BillingRequestNotificationType["Email"] = "email"; | ||
})(BillingRequestNotificationType = exports.BillingRequestNotificationType || (exports.BillingRequestNotificationType = {})); | ||
var BillingRequestActionType; | ||
(function (BillingRequestActionType) { | ||
BillingRequestActionType["ChooseCurrency"] = "choose_currency"; | ||
BillingRequestActionType["CollectCustomerDetails"] = "collect_customer_details"; | ||
BillingRequestActionType["CollectBankAccountDetails"] = "collect_bank_account_details"; | ||
BillingRequestActionType["PaymentBankAuthorisation"] = "payment_bank_authorisation"; | ||
BillingRequestActionType["MandateBankAuthorisation"] = "mandate_bank_authorisation"; | ||
})(BillingRequestActionType = exports.BillingRequestActionType || (exports.BillingRequestActionType = {})); | ||
var BillingRequestResourcesCustomerBankAccountAccountType; | ||
(function (BillingRequestResourcesCustomerBankAccountAccountType) { | ||
BillingRequestResourcesCustomerBankAccountAccountType["Savings"] = "savings"; | ||
BillingRequestResourcesCustomerBankAccountAccountType["Checking"] = "checking"; | ||
})(BillingRequestResourcesCustomerBankAccountAccountType = exports.BillingRequestResourcesCustomerBankAccountAccountType || (exports.BillingRequestResourcesCustomerBankAccountAccountType = {})); | ||
var BillingRequestStatus; | ||
(function (BillingRequestStatus) { | ||
BillingRequestStatus["Pending"] = "pending"; | ||
BillingRequestStatus["ReadyToFulfil"] = "ready_to_fulfil"; | ||
BillingRequestStatus["Fulfilled"] = "fulfilled"; | ||
BillingRequestStatus["Cancelled"] = "cancelled"; | ||
})(BillingRequestStatus = exports.BillingRequestStatus || (exports.BillingRequestStatus = {})); | ||
var CreditorFxPayoutCurrency; | ||
@@ -46,2 +81,3 @@ (function (CreditorFxPayoutCurrency) { | ||
CreditorSchemeIdentifierScheme["Betalingsservice"] = "betalingsservice"; | ||
CreditorSchemeIdentifierScheme["FasterPayments"] = "faster_payments"; | ||
CreditorSchemeIdentifierScheme["Pad"] = "pad"; | ||
@@ -72,2 +108,13 @@ CreditorSchemeIdentifierScheme["Sepa"] = "sepa"; | ||
})(CustomerCurrency = exports.CustomerCurrency || (exports.CustomerCurrency = {})); | ||
var CustomerSortDirection; | ||
(function (CustomerSortDirection) { | ||
CustomerSortDirection["Asc"] = "asc"; | ||
CustomerSortDirection["Desc"] = "desc"; | ||
})(CustomerSortDirection = exports.CustomerSortDirection || (exports.CustomerSortDirection = {})); | ||
var CustomerSortField; | ||
(function (CustomerSortField) { | ||
CustomerSortField["Name"] = "name"; | ||
CustomerSortField["CompanyName"] = "company_name"; | ||
CustomerSortField["CreatedAt"] = "created_at"; | ||
})(CustomerSortField = exports.CustomerSortField || (exports.CustomerSortField = {})); | ||
var CustomerBankAccountAccountType; | ||
@@ -179,2 +226,3 @@ (function (CustomerBankAccountAccountType) { | ||
MandateStatus["Expired"] = "expired"; | ||
MandateStatus["Consumed"] = "consumed"; | ||
})(MandateStatus = exports.MandateStatus || (exports.MandateStatus = {})); | ||
@@ -235,2 +283,12 @@ var MandateImportScheme; | ||
})(PayerAuthorisationStatus = exports.PayerAuthorisationStatus || (exports.PayerAuthorisationStatus = {})); | ||
var PaymentSortDirection; | ||
(function (PaymentSortDirection) { | ||
PaymentSortDirection["Asc"] = "asc"; | ||
PaymentSortDirection["Desc"] = "desc"; | ||
})(PaymentSortDirection = exports.PaymentSortDirection || (exports.PaymentSortDirection = {})); | ||
var PaymentSortField; | ||
(function (PaymentSortField) { | ||
PaymentSortField["ChargeDate"] = "charge_date"; | ||
PaymentSortField["Amount"] = "amount"; | ||
})(PaymentSortField = exports.PaymentSortField || (exports.PaymentSortField = {})); | ||
var PaymentCurrency; | ||
@@ -373,2 +431,13 @@ (function (PaymentCurrency) { | ||
})(RefundStatus = exports.RefundStatus || (exports.RefundStatus = {})); | ||
var ScenarioSimulatorCurrency; | ||
(function (ScenarioSimulatorCurrency) { | ||
ScenarioSimulatorCurrency["AUD"] = "AUD"; | ||
ScenarioSimulatorCurrency["CAD"] = "CAD"; | ||
ScenarioSimulatorCurrency["DKK"] = "DKK"; | ||
ScenarioSimulatorCurrency["EUR"] = "EUR"; | ||
ScenarioSimulatorCurrency["GBP"] = "GBP"; | ||
ScenarioSimulatorCurrency["NZD"] = "NZD"; | ||
ScenarioSimulatorCurrency["SEK"] = "SEK"; | ||
ScenarioSimulatorCurrency["USD"] = "USD"; | ||
})(ScenarioSimulatorCurrency = exports.ScenarioSimulatorCurrency || (exports.ScenarioSimulatorCurrency = {})); | ||
// [ISO 4217](http://en.wikipedia.org/wiki/ISO_4217#Active_codes) code for the currency in | ||
@@ -375,0 +444,0 @@ // which amounts will be paid out (after foreign exchange). Currently "AUD", "CAD", "DKK", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
277018
107
5343
7