🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

gocardless-nodejs

Package Overview
Dependencies
Maintainers
1
Versions
67
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gocardless-nodejs - npm Package Compare versions

Comparing version

to
1.4.2

services/payerAuthorisationService.d.ts

4

api/api.js

@@ -90,5 +90,5 @@ 'use strict';

'GoCardless-Version': '2015-07-06',
'GoCardless-Client-Version': '1.4.1',
'GoCardless-Client-Version': '1.4.2',
'GoCardless-Client-Library': 'gocardless-nodejs',
'User-Agent': `gocardless-nodejs/1.4.1 node/${this.processVersion} ${this.osPlatform}/${this.osRelease}`,
'User-Agent': `gocardless-nodejs/1.4.2 node/${this.processVersion} ${this.osPlatform}/${this.osRelease}`,
};

@@ -95,0 +95,0 @@ return { ...customHeaders, ...mandatoryHeaders };

@@ -15,2 +15,3 @@ import { Environments } from './constants';

import { MandatePdfService } from './services/mandatePdfService';
import { PayerAuthorisationService } from './services/payerAuthorisationService';
import { PaymentService } from './services/paymentService';

@@ -38,2 +39,3 @@ import { PayoutService } from './services/payoutService';

private _mandatePdfs;
private _payerAuthorisations;
private _payments;

@@ -60,2 +62,3 @@ private _payouts;

get mandatePdfs(): MandatePdfService;
get payerAuthorisations(): PayerAuthorisationService;
get payments(): PaymentService;

@@ -62,0 +65,0 @@ get payouts(): PayoutService;

@@ -19,2 +19,3 @@ 'use strict';

const mandatePdfService_1 = require("./services/mandatePdfService");
const payerAuthorisationService_1 = require("./services/payerAuthorisationService");
const paymentService_1 = require("./services/paymentService");

@@ -43,2 +44,3 @@ const payoutService_1 = require("./services/payoutService");

this._mandatePdfs = undefined;
this._payerAuthorisations = undefined;
this._payments = undefined;

@@ -130,2 +132,8 @@ this._payouts = undefined;

}
get payerAuthorisations() {
if (!this._payerAuthorisations) {
this._payerAuthorisations = new payerAuthorisationService_1.PayerAuthorisationService(this._api);
}
return this._payerAuthorisations;
}
get payments() {

@@ -132,0 +140,0 @@ if (!this._payments) {

{
"name": "gocardless-nodejs",
"version": "1.4.1",
"version": "1.4.2",
"description": "Node.js client for the GoCardless API - a powerful, simple solution for the collection of recurring bank-to-bank payments",

@@ -5,0 +5,0 @@ "author": "GoCardless Ltd <client-libraries@gocardless.com>",

@@ -9,2 +9,3 @@ import * as Types from '../types/Types';

before?: string;
include_2020_tax_cutover?: Types.PayoutItemInclude2020TaxCutover;
limit?: string;

@@ -11,0 +12,0 @@ payout: string;

@@ -512,2 +512,84 @@ /** Type for a bankdetailslookup resource. */

}
/** Type for a payerauthorisation resource. */
export interface PayerAuthorisation {
bank_account: PayerAuthorisationBankAccount;
created_at?: string;
customer: PayerAuthorisationCustomer;
id: string;
incomplete_fields: PayerAuthorisationIncompleteField[];
links: PayerAuthorisationLinks;
mandate: PayerAuthorisationMandate;
status: PayerAuthorisationStatus;
}
/** Type for a payerauthorisationbankaccount resource. */
export interface PayerAuthorisationBankAccount {
account_holder_name: string;
account_number?: string;
account_number_suffix?: string;
account_type: PayerAuthorisationBankAccountAccountType;
bank_code?: string;
branch_code?: string;
country_code?: string;
currency?: string;
iban?: string;
metadata: JsonMap;
}
export declare enum PayerAuthorisationBankAccountAccountType {
Savings = "savings",
Checking = "checking"
}
/** Type for a payerauthorisationcustomer resource. */
export interface PayerAuthorisationCustomer {
address_line1?: string;
address_line2?: string;
address_line3?: string;
city?: string;
company_name?: string;
country_code?: string;
danish_identity_number?: string;
email?: string;
family_name?: string;
given_name?: string;
locale?: string;
metadata: JsonMap;
postal_code?: string;
region?: string;
swedish_identity_number?: string;
}
/** Type for a payerauthorisationincompletefield resource. */
export interface PayerAuthorisationIncompleteField {
field: string;
message: string;
request_pointer: string;
}
/** Type for a payerauthorisationlinks resource. */
export interface PayerAuthorisationLinks {
bank_account: string;
customer: string;
mandate: string;
}
/** Type for a payerauthorisationmandate resource. */
export interface PayerAuthorisationMandate {
metadata: JsonMap;
payer_ip_address?: string;
reference?: string;
scheme: PayerAuthorisationMandateScheme;
}
export declare enum PayerAuthorisationMandateScheme {
Ach = "ach",
Autogiro = "autogiro",
Bacs = "bacs",
Becs = "becs",
BecsNz = "becs_nz",
Betalingsservice = "betalingsservice",
Pad = "pad",
SepaCore = "sepa_core"
}
export declare enum PayerAuthorisationStatus {
Created = "created",
Submitted = "submitted",
Confirmed = "confirmed",
Completed = "completed",
Failed = "failed"
}
/** Type for a payment resource. */

@@ -650,2 +732,6 @@ export interface Payment {

}
export declare enum PayoutItemInclude2020TaxCutover {
True = "true",
False = "false"
}
/** Type for a payoutitemlinks resource. */

@@ -652,0 +738,0 @@ export interface PayoutItemLinks {

"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.PayoutStatus = exports.PayoutPayoutType = exports.PayoutFxFxCurrency = exports.PayoutCurrency = exports.PaymentStatus = exports.PaymentFxFxCurrency = exports.PaymentCurrency = 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.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;
var BankDetailsLookupAvailableDebitScheme;

@@ -207,2 +207,26 @@ (function (BankDetailsLookupAvailableDebitScheme) {

})(MandatePdfSubscriptionFrequency = exports.MandatePdfSubscriptionFrequency || (exports.MandatePdfSubscriptionFrequency = {}));
var PayerAuthorisationBankAccountAccountType;
(function (PayerAuthorisationBankAccountAccountType) {
PayerAuthorisationBankAccountAccountType["Savings"] = "savings";
PayerAuthorisationBankAccountAccountType["Checking"] = "checking";
})(PayerAuthorisationBankAccountAccountType = exports.PayerAuthorisationBankAccountAccountType || (exports.PayerAuthorisationBankAccountAccountType = {}));
var PayerAuthorisationMandateScheme;
(function (PayerAuthorisationMandateScheme) {
PayerAuthorisationMandateScheme["Ach"] = "ach";
PayerAuthorisationMandateScheme["Autogiro"] = "autogiro";
PayerAuthorisationMandateScheme["Bacs"] = "bacs";
PayerAuthorisationMandateScheme["Becs"] = "becs";
PayerAuthorisationMandateScheme["BecsNz"] = "becs_nz";
PayerAuthorisationMandateScheme["Betalingsservice"] = "betalingsservice";
PayerAuthorisationMandateScheme["Pad"] = "pad";
PayerAuthorisationMandateScheme["SepaCore"] = "sepa_core";
})(PayerAuthorisationMandateScheme = exports.PayerAuthorisationMandateScheme || (exports.PayerAuthorisationMandateScheme = {}));
var PayerAuthorisationStatus;
(function (PayerAuthorisationStatus) {
PayerAuthorisationStatus["Created"] = "created";
PayerAuthorisationStatus["Submitted"] = "submitted";
PayerAuthorisationStatus["Confirmed"] = "confirmed";
PayerAuthorisationStatus["Completed"] = "completed";
PayerAuthorisationStatus["Failed"] = "failed";
})(PayerAuthorisationStatus = exports.PayerAuthorisationStatus || (exports.PayerAuthorisationStatus = {}));
var PaymentCurrency;

@@ -275,2 +299,7 @@ (function (PaymentCurrency) {

})(PayoutStatus = exports.PayoutStatus || (exports.PayoutStatus = {}));
var PayoutItemInclude2020TaxCutover;
(function (PayoutItemInclude2020TaxCutover) {
PayoutItemInclude2020TaxCutover["True"] = "true";
PayoutItemInclude2020TaxCutover["False"] = "false";
})(PayoutItemInclude2020TaxCutover = exports.PayoutItemInclude2020TaxCutover || (exports.PayoutItemInclude2020TaxCutover = {}));
var PayoutItemTaxisCurrency;

@@ -277,0 +306,0 @@ (function (PayoutItemTaxisCurrency) {

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