New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

gocardless-nodejs

Package Overview
Dependencies
Maintainers
1
Versions
56
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 2.4.0 to 3.0.0

2

constants.d.ts

@@ -5,4 +5,4 @@ declare enum Environments {

}
declare const CLIENT_VERSION = "2.4.0";
declare const CLIENT_VERSION = "3.0.0";
declare const API_VERSION = "2015-07-06";
export { Environments, CLIENT_VERSION, API_VERSION };

@@ -10,3 +10,3 @@ 'use strict';

exports.Environments = Environments;
const CLIENT_VERSION = '2.4.0';
const CLIENT_VERSION = '3.0.0';
exports.CLIENT_VERSION = CLIENT_VERSION;

@@ -13,0 +13,0 @@ const API_VERSION = '2015-07-06';

{
"name": "gocardless-nodejs",
"version": "2.4.0",
"version": "3.0.0",
"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>",

@@ -59,6 +59,6 @@ import * as Types from '../types/Types';

find(identity: string): Promise<BillingRequestResponse>;
collect_customer_details(identity: string, requestParameters: BillingRequestCollectCustomerDetailsRequest): Promise<BillingRequestResponse>;
collect_bank_account(identity: string, requestParameters: BillingRequestCollectBankAccountRequest): Promise<BillingRequestResponse>;
collectCustomerDetails(identity: string, requestParameters: BillingRequestCollectCustomerDetailsRequest): Promise<BillingRequestResponse>;
collectBankAccount(identity: string, requestParameters: BillingRequestCollectBankAccountRequest): Promise<BillingRequestResponse>;
fulfil(identity: string, requestParameters: BillingRequestFulfilRequest): Promise<BillingRequestResponse>;
confirm_payer_details(identity: string, requestParameters: BillingRequestConfirmPayerDetailsRequest): Promise<BillingRequestResponse>;
confirmPayerDetails(identity: string, requestParameters: BillingRequestConfirmPayerDetailsRequest): Promise<BillingRequestResponse>;
cancel(identity: string, requestParameters: BillingRequestCancelRequest): Promise<BillingRequestResponse>;

@@ -65,0 +65,0 @@ notify(identity: string, requestParameters: BillingRequestNotifyRequest): Promise<BillingRequestResponse>;

@@ -71,3 +71,3 @@ 'use strict';

}
async collect_customer_details(identity, requestParameters) {
async collectCustomerDetails(identity, requestParameters) {
const urlParameters = [{ key: 'identity', value: identity }];

@@ -89,3 +89,3 @@ const requestParams = {

}
async collect_bank_account(identity, requestParameters) {
async collectBankAccount(identity, requestParameters) {
const urlParameters = [{ key: 'identity', value: identity }];

@@ -124,3 +124,3 @@ const requestParams = {

}
async confirm_payer_details(identity, requestParameters) {
async confirmPayerDetails(identity, requestParameters) {
const urlParameters = [{ key: 'identity', value: identity }];

@@ -127,0 +127,0 @@ const requestParams = {

/** Type for a bankauthorisation resource. */
export interface BankAuthorisation {
authorisation_type: BankAuthorisationAuthorisationType;
authorised_at?: string;
created_at: string;
expires_at: string;
id: string;
last_visited_at?: string;
links: BankAuthorisationLinks;
redirect_uri: string;
url: string;
authorisation_type?: BankAuthorisationAuthorisationType;
authorised_at?: string | null;
created_at?: string;
expires_at?: string;
id?: string;
last_visited_at?: string | null;
links?: BankAuthorisationLinks;
redirect_uri?: string;
url?: string;
}
/** Type for a bankauthorisationcreaterequestlinks resource. */
export interface BankAuthorisationCreateRequestLinks {
billing_request: string;
institution: string;
billing_request?: string;
institution?: string;
}

@@ -24,10 +24,10 @@ export declare enum BankAuthorisationAuthorisationType {

export interface BankAuthorisationLinks {
billing_request: string;
institution: string;
billing_request?: string;
institution?: string;
}
/** Type for a bankdetailslookup resource. */
export interface BankDetailsLookup {
available_debit_schemes: BankDetailsLookupAvailableDebitScheme[];
bank_name?: string;
bic?: string;
available_debit_schemes?: BankDetailsLookupAvailableDebitScheme[];
bank_name?: string | null;
bic?: string | null;
}

@@ -46,40 +46,40 @@ export declare enum BankDetailsLookupAvailableDebitScheme {

export interface BillingRequest {
actions: BillingRequestAction[];
created_at: string;
fallback_enabled: boolean;
id: string;
links: BillingRequestLinks;
mandate_request: BillingRequestMandateRequest;
metadata: JsonMap;
payment_request: BillingRequestPaymentRequest;
resources: BillingRequestResources;
status: BillingRequestStatus;
actions?: BillingRequestAction[];
created_at?: string;
fallback_enabled?: boolean;
id?: string;
links?: BillingRequestLinks;
mandate_request?: BillingRequestMandateRequest;
metadata?: JsonMap;
payment_request?: BillingRequestPaymentRequest;
resources?: BillingRequestResources;
status?: BillingRequestStatus;
}
/** Type for a billingrequestcreaterequestlinks resource. */
export interface BillingRequestCreateRequestLinks {
creditor: string;
customer: string;
customer_bank_account: string;
creditor?: string;
customer?: string;
customer_bank_account?: 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;
company_name?: string | null;
email?: string | null;
family_name?: string | null;
given_name?: string | null;
language?: string | null;
metadata?: JsonMap;
phone_number?: string | null;
}
/** 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;
address_line1?: string | null;
address_line2?: string | null;
address_line3?: string | null;
city?: string | null;
country_code?: string | null;
danish_identity_number?: string | null;
postal_code?: string | null;
region?: string | null;
swedish_identity_number?: string | null;
}

@@ -95,15 +95,15 @@ export declare enum BillingRequestAccountType {

export interface BillingRequestAction {
bank_authorisation: BillingRequestActionBankAuthorisation;
collect_customer_details: BillingRequestActionCollectCustomerDetails;
completes_actions: string[];
required: boolean;
requires_actions: string[];
status: BillingRequestActionStatus;
type: BillingRequestActionType;
bank_authorisation?: BillingRequestActionBankAuthorisation;
collect_customer_details?: BillingRequestActionCollectCustomerDetails;
completes_actions?: string[];
required?: boolean;
requires_actions?: string[];
status?: BillingRequestActionStatus;
type?: BillingRequestActionType;
}
/** Type for a billingrequestactionbankauthorisation resource. */
export interface BillingRequestActionBankAuthorisation {
adapter: BillingRequestActionBankAuthorisationAdapter;
authorisation_type: BillingRequestActionBankAuthorisationAuthorisationType;
requires_institution: boolean;
adapter?: BillingRequestActionBankAuthorisationAdapter;
authorisation_type?: BillingRequestActionBankAuthorisationAuthorisationType;
requires_institution?: boolean;
}

@@ -122,3 +122,3 @@ export declare enum BillingRequestActionBankAuthorisationAdapter {

export interface BillingRequestActionCollectCustomerDetails {
default_country_code: string;
default_country_code?: string;
}

@@ -139,23 +139,23 @@ export declare enum BillingRequestActionStatus {

export interface BillingRequestLinks {
bank_authorisation: string;
creditor: string;
customer: string;
customer_bank_account: string;
customer_billing_detail: string;
mandate_request: string;
mandate_request_mandate: string;
payment_request: string;
payment_request_payment: string;
bank_authorisation?: string;
creditor?: string;
customer?: string;
customer_bank_account?: string;
customer_billing_detail?: string;
mandate_request?: string;
mandate_request_mandate?: string;
payment_request?: string;
payment_request_payment?: string;
}
/** Type for a billingrequestmandaterequest resource. */
export interface BillingRequestMandateRequest {
currency: string;
links: BillingRequestMandateRequestLinks;
metadata: JsonMap;
scheme?: string;
verify: BillingRequestMandateRequestVerify;
currency?: string;
links?: BillingRequestMandateRequestLinks;
metadata?: JsonMap;
scheme?: string | null;
verify?: BillingRequestMandateRequestVerify;
}
/** Type for a billingrequestmandaterequestlinks resource. */
export interface BillingRequestMandateRequestLinks {
mandate: string;
mandate?: string;
}

@@ -170,45 +170,45 @@ export declare enum BillingRequestMandateRequestVerify {

export interface BillingRequestPaymentRequest {
amount: string;
app_fee?: string;
currency: string;
description?: string;
links: BillingRequestPaymentRequestLinks;
metadata: JsonMap;
scheme?: string;
amount?: string;
app_fee?: string | null;
currency?: string;
description?: string | null;
links?: BillingRequestPaymentRequestLinks;
metadata?: JsonMap;
scheme?: string | null;
}
/** Type for a billingrequestpaymentrequestlinks resource. */
export interface BillingRequestPaymentRequestLinks {
payment: string;
payment?: string;
}
/** Type for a billingrequestresources resource. */
export interface BillingRequestResources {
customer: BillingRequestResourcesCustomer;
customer_bank_account?: BillingRequestResourcesCustomerBankAccount;
customer_billing_detail: BillingRequestResourcesCustomerBillingDetail;
customer?: BillingRequestResourcesCustomer;
customer_bank_account?: BillingRequestResourcesCustomerBankAccount | null;
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;
company_name?: string | null;
created_at?: string;
email?: string | null;
family_name?: string | null;
given_name?: string | null;
id?: string;
language?: string | null;
metadata?: JsonMap;
phone_number?: string | null;
}
/** 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;
account_holder_name?: string;
account_number_ending?: string;
account_type?: BillingRequestResourcesCustomerBankAccountAccountType;
bank_name?: string;
country_code?: string | null;
created_at?: string;
currency?: string | null;
enabled?: boolean;
id?: string;
links?: BillingRequestResourcesCustomerBankAccountLinks;
metadata?: JsonMap;
}

@@ -221,19 +221,19 @@ export declare enum BillingRequestResourcesCustomerBankAccountAccountType {

export interface BillingRequestResourcesCustomerBankAccountLinks {
customer: string;
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;
ip_address?: string;
postal_code?: string;
region?: string;
schemes: string[];
swedish_identity_number?: string;
address_line1?: string | null;
address_line2?: string | null;
address_line3?: string | null;
city?: string | null;
country_code?: string | null;
created_at?: string;
danish_identity_number?: string | null;
id?: string;
ip_address?: string | null;
postal_code?: string | null;
region?: string | null;
schemes?: string[];
swedish_identity_number?: string | null;
}

@@ -248,14 +248,14 @@ export declare enum BillingRequestStatus {

export interface BillingRequestFlow {
authorisation_url: string;
auto_fulfil: boolean;
created_at: string;
exit_uri?: string;
expires_at: string;
id: string;
links: BillingRequestFlowLinks;
lock_bank_account: boolean;
lock_customer_details: boolean;
redirect_uri?: string;
session_token?: string;
show_redirect_buttons: boolean;
authorisation_url?: string;
auto_fulfil?: boolean;
created_at?: string;
exit_uri?: string | null;
expires_at?: string;
id?: string;
links?: BillingRequestFlowLinks;
lock_bank_account?: boolean;
lock_customer_details?: boolean;
redirect_uri?: string | null;
session_token?: string | null;
show_redirect_buttons?: boolean;
}

@@ -272,22 +272,22 @@ /** Type for a billingrequestflowcreaterequestlinks resource. */

export interface BillingRequestTemplate {
authorisation_url: string;
created_at: string;
id: string;
mandate_request_currency: string;
mandate_request_metadata?: JsonMap;
mandate_request_scheme?: string;
mandate_request_verify: BillingRequestTemplateMandateRequestVerify;
metadata: JsonMap;
name: string;
payment_request_amount: string;
payment_request_currency: string;
payment_request_description?: string;
payment_request_metadata?: JsonMap;
payment_request_scheme?: string;
redirect_uri?: string;
updated_at: string;
authorisation_url?: string;
created_at?: string;
id?: string;
mandate_request_currency?: string;
mandate_request_metadata?: JsonMap | null;
mandate_request_scheme?: string | null;
mandate_request_verify?: BillingRequestTemplateMandateRequestVerify;
metadata?: JsonMap;
name?: string;
payment_request_amount?: string;
payment_request_currency?: string;
payment_request_description?: string | null;
payment_request_metadata?: JsonMap | null;
payment_request_scheme?: string | null;
redirect_uri?: string | null;
updated_at?: string;
}
/** Type for a billingrequesttemplatecreaterequestlinks resource. */
export interface BillingRequestTemplateCreateRequestLinks {
creditor: string;
creditor?: string;
}

@@ -302,10 +302,10 @@ export declare enum BillingRequestTemplateMandateRequestVerify {

export interface Block {
active?: boolean;
block_type: BlockBlockType;
created_at: string;
id: string;
reason_description?: string;
reason_type: BlockReasonType;
resource_reference: string;
updated_at: string;
active?: boolean | null;
block_type?: BlockBlockType;
created_at?: string;
id?: string;
reason_description?: string | null;
reason_type?: BlockReasonType;
resource_reference?: string;
updated_at?: string;
}

@@ -329,32 +329,32 @@ export declare enum BlockReferenceType {

export interface Creditor {
address_line1?: string;
address_line2?: string;
address_line3?: string;
can_create_refunds: boolean;
city?: string;
country_code?: string;
created_at: string;
custom_payment_pages_enabled: boolean;
fx_payout_currency: CreditorFxPayoutCurrency;
id: string;
links: CreditorLinks;
logo_url?: string;
mandate_imports_enabled: boolean;
merchant_responsible_for_notifications: boolean;
name: string;
postal_code?: string;
region?: string;
scheme_identifiers: CreditorSchemeIdentifier[];
verification_status: CreditorVerificationStatus;
address_line1?: string | null;
address_line2?: string | null;
address_line3?: string | null;
can_create_refunds?: boolean;
city?: string | null;
country_code?: string | null;
created_at?: string;
custom_payment_pages_enabled?: boolean;
fx_payout_currency?: CreditorFxPayoutCurrency;
id?: string;
links?: CreditorLinks;
logo_url?: string | null;
mandate_imports_enabled?: boolean;
merchant_responsible_for_notifications?: boolean;
name?: string;
postal_code?: string | null;
region?: string | null;
scheme_identifiers?: CreditorSchemeIdentifier[];
verification_status?: CreditorVerificationStatus;
}
/** Type for a creditorupdaterequestlinks resource. */
export interface CreditorUpdateRequestLinks {
default_aud_payout_account?: string;
default_cad_payout_account?: string;
default_dkk_payout_account?: string;
default_eur_payout_account?: string;
default_gbp_payout_account?: string;
default_nzd_payout_account?: string;
default_sek_payout_account?: string;
default_usd_payout_account?: string;
default_aud_payout_account?: string | null;
default_cad_payout_account?: string | null;
default_dkk_payout_account?: string | null;
default_eur_payout_account?: string | null;
default_gbp_payout_account?: string | null;
default_nzd_payout_account?: string | null;
default_sek_payout_account?: string | null;
default_usd_payout_account?: string | null;
}

@@ -373,28 +373,28 @@ export declare enum CreditorFxPayoutCurrency {

export interface CreditorLinks {
default_aud_payout_account?: string;
default_cad_payout_account?: string;
default_dkk_payout_account?: string;
default_eur_payout_account?: string;
default_gbp_payout_account?: string;
default_nzd_payout_account?: string;
default_sek_payout_account?: string;
default_usd_payout_account?: string;
default_aud_payout_account?: string | null;
default_cad_payout_account?: string | null;
default_dkk_payout_account?: string | null;
default_eur_payout_account?: string | null;
default_gbp_payout_account?: string | null;
default_nzd_payout_account?: string | null;
default_sek_payout_account?: string | null;
default_usd_payout_account?: string | null;
}
/** Type for a creditorschemeidentifier resource. */
export interface CreditorSchemeIdentifier {
address_line1: string;
address_line2?: string;
address_line3?: string;
can_specify_mandate_reference: boolean;
city: string;
country_code: string;
currency: CreditorSchemeIdentifierCurrency;
email: string;
minimum_advance_notice: number;
name: string;
phone_number: string;
postal_code: string;
reference: string;
region?: string;
scheme: CreditorSchemeIdentifierScheme;
address_line1?: string;
address_line2?: string | null;
address_line3?: string | null;
can_specify_mandate_reference?: boolean;
city?: string;
country_code?: string;
currency?: CreditorSchemeIdentifierCurrency;
email?: string;
minimum_advance_notice?: number;
name?: string;
phone_number?: string;
postal_code?: string;
reference?: string;
region?: string | null;
scheme?: CreditorSchemeIdentifierScheme;
}

@@ -431,13 +431,13 @@ export declare enum CreditorSchemeIdentifierCurrency {

export interface CreditorBankAccount {
account_holder_name: string;
account_number_ending: string;
account_type: CreditorBankAccountAccountType;
bank_name: string;
country_code?: string;
created_at: string;
currency?: string;
enabled: boolean;
id: string;
links: CreditorBankAccountLinks;
metadata: JsonMap;
account_holder_name?: string;
account_number_ending?: string;
account_type?: CreditorBankAccountAccountType;
bank_name?: string;
country_code?: string | null;
created_at?: string;
currency?: string | null;
enabled?: boolean;
id?: string;
links?: CreditorBankAccountLinks;
metadata?: JsonMap;
}

@@ -454,31 +454,31 @@ /** Type for a creditorbankaccountcreaterequestlinks resource. */

export interface CreditorBankAccountLinks {
creditor: string;
creditor?: string;
}
/** Type for a currencyexchangerate resource. */
export interface CurrencyExchangeRate {
rate: string;
source: string;
target: string;
time: string;
rate?: string;
source?: string;
target?: string;
time?: string;
}
/** Type for a customer resource. */
export interface Customer {
address_line1?: string;
address_line2?: string;
address_line3?: string;
city?: string;
company_name?: string;
country_code?: string;
created_at: string;
danish_identity_number?: string;
email?: string;
family_name?: string;
given_name?: string;
id: string;
language?: string;
metadata: JsonMap;
phone_number?: string;
postal_code?: string;
region?: string;
swedish_identity_number?: string;
address_line1?: string | null;
address_line2?: string | null;
address_line3?: string | null;
city?: string | null;
company_name?: string | null;
country_code?: string | null;
created_at?: string;
danish_identity_number?: string | null;
email?: string | null;
family_name?: string | null;
given_name?: string | null;
id?: string;
language?: string | null;
metadata?: JsonMap;
phone_number?: string | null;
postal_code?: string | null;
region?: string | null;
swedish_identity_number?: string | null;
}

@@ -506,13 +506,13 @@ export declare enum CustomerCurrency {

export interface CustomerBankAccount {
account_holder_name: string;
account_number_ending: string;
account_type: CustomerBankAccountAccountType;
bank_name: string;
country_code?: string;
created_at: string;
currency?: string;
enabled: boolean;
id: string;
links: CustomerBankAccountLinks;
metadata: JsonMap;
account_holder_name?: string;
account_number_ending?: string;
account_type?: CustomerBankAccountAccountType;
bank_name?: string;
country_code?: string | null;
created_at?: string;
currency?: string | null;
enabled?: boolean;
id?: string;
links?: CustomerBankAccountLinks;
metadata?: JsonMap;
}

@@ -522,3 +522,3 @@ /** Type for a customerbankaccountcreaterequestlinks resource. */

customer: string;
customer_bank_account_token: string;
customer_bank_account_token?: string;
}

@@ -531,12 +531,12 @@ export declare enum CustomerBankAccountAccountType {

export interface CustomerBankAccountLinks {
customer: string;
customer?: string;
}
/** Type for a customernotification resource. */
export interface CustomerNotification {
action_taken: CustomerNotificationActionTaken;
action_taken_at?: string;
action_taken_by?: string;
id: string;
links: CustomerNotificationLinks;
type: CustomerNotificationType;
action_taken?: CustomerNotificationActionTaken;
action_taken_at?: string | null;
action_taken_by?: string | null;
id?: string;
links?: CustomerNotificationLinks;
type?: CustomerNotificationType;
}

@@ -550,6 +550,6 @@ export declare enum CustomerNotificationActionTaken {

event: string;
mandate: string;
payment: string;
refund: string;
subscription: string;
mandate?: string;
payment?: string;
refund?: string;
subscription?: string;
}

@@ -568,10 +568,10 @@ export declare enum CustomerNotificationType {

export interface Event {
action: string;
created_at: string;
customer_notifications?: EventCustomerNotification[];
details: EventDetails;
id: string;
links: EventLinks;
metadata: JsonMap;
resource_type: EventResourceType;
action?: string;
created_at?: string;
customer_notifications?: EventCustomerNotification[] | null;
details?: EventDetails;
id?: string;
links?: EventLinks;
metadata?: JsonMap;
resource_type?: EventResourceType;
}

@@ -591,6 +591,6 @@ export declare enum EventInclude {

export interface EventCustomerNotification {
deadline: string;
id: string;
mandatory: boolean;
type: EventCustomerNotificationType;
deadline?: string;
id?: string;
mandatory?: boolean;
type?: EventCustomerNotificationType;
}

@@ -609,12 +609,12 @@ export declare enum EventCustomerNotificationType {

export interface EventDetails {
bank_account_id: string;
cause: string;
currency: string;
description: string;
not_retried_reason: string;
origin: EventDetailsOrigin;
property: string;
reason_code: string;
scheme: EventDetailsScheme;
will_attempt_retry: boolean;
bank_account_id?: string;
cause?: string;
currency?: string;
description?: string;
not_retried_reason?: string;
origin?: EventDetailsOrigin;
property?: string;
reason_code?: string;
scheme?: EventDetailsScheme;
will_attempt_retry?: boolean;
}

@@ -641,22 +641,22 @@ export declare enum EventDetailsOrigin {

export interface EventLinks {
bank_authorisation: string;
billing_request: string;
billing_request_flow: string;
creditor: string;
customer: string;
customer_bank_account: string;
instalment_schedule: string;
mandate: string;
mandate_request_mandate: string;
new_customer_bank_account: string;
new_mandate: string;
organisation: string;
parent_event: string;
payer_authorisation: string;
payment: string;
payment_request_payment: string;
payout: string;
previous_customer_bank_account: string;
refund: string;
subscription: string;
bank_authorisation?: string;
billing_request?: string;
billing_request_flow?: string;
creditor?: string;
customer?: string;
customer_bank_account?: string;
instalment_schedule?: string;
mandate?: string;
mandate_request_mandate?: string;
new_customer_bank_account?: string;
new_mandate?: string;
organisation?: string;
parent_event?: string;
payer_authorisation?: string;
payment?: string;
payment_request_payment?: string;
payout?: string;
previous_customer_bank_account?: string;
refund?: string;
subscription?: string;
}

@@ -677,11 +677,11 @@ export declare enum EventResourceType {

export interface InstalmentSchedule {
created_at: string;
currency: InstalmentScheduleCurrency;
id: string;
links: InstalmentScheduleLinks;
metadata: JsonMap;
name: string;
payment_errors: JsonMap;
status: InstalmentScheduleStatus;
total_amount: string;
created_at?: string;
currency?: InstalmentScheduleCurrency;
id?: string;
links?: InstalmentScheduleLinks;
metadata?: JsonMap;
name?: string;
payment_errors?: JsonMap;
status?: InstalmentScheduleStatus;
total_amount?: string;
}

@@ -697,3 +697,3 @@ /** Type for a instalmentschedulecreatewithdatesrequestlinks resource. */

interval_unit: InstalmentScheduleInstalmentsIntervalUnit;
start_date?: string;
start_date?: string | null;
}

@@ -723,3 +723,3 @@ export declare enum InstalmentScheduleInstalmentsIntervalUnit {

mandate: string;
payments: string[];
payments?: string[];
}

@@ -736,23 +736,23 @@ export declare enum InstalmentScheduleStatus {

export interface Institution {
country_code: string;
icon_url: string;
id: string;
logo_url: string;
name: string;
country_code?: string;
icon_url?: string;
id?: string;
logo_url?: string;
name?: string;
}
/** Type for a mandate resource. */
export interface Mandate {
created_at: string;
id: string;
links: MandateLinks;
metadata: JsonMap;
next_possible_charge_date?: string;
payments_require_approval: boolean;
reference?: string;
scheme?: string;
status: MandateStatus;
created_at?: string;
id?: string;
links?: MandateLinks;
metadata?: JsonMap;
next_possible_charge_date?: string | null;
payments_require_approval?: boolean;
reference?: string | null;
scheme?: string | null;
status?: MandateStatus;
}
/** Type for a mandatecreaterequestlinks resource. */
export interface MandateCreateRequestLinks {
creditor: string;
creditor?: string;
customer_bank_account: string;

@@ -762,6 +762,6 @@ }

export interface MandateLinks {
creditor: string;
customer: string;
customer_bank_account: string;
new_mandate: string;
creditor?: string;
customer?: string;
customer_bank_account?: string;
new_mandate?: string;
}

@@ -781,6 +781,6 @@ export declare enum MandateStatus {

export interface MandateImport {
created_at: string;
id: string;
scheme: MandateImportScheme;
status: MandateImportStatus;
created_at?: string;
id?: string;
scheme?: MandateImportScheme;
status?: MandateImportStatus;
}

@@ -806,5 +806,5 @@ export declare enum MandateImportScheme {

export interface MandateImportEntry {
created_at: string;
links: MandateImportEntryLinks;
record_identifier?: string;
created_at?: string;
links?: MandateImportEntryLinks;
record_identifier?: string | null;
}

@@ -820,25 +820,25 @@ /** Type for a mandateimportentryamendment resource. */

account_holder_name: string;
account_number?: string;
bank_code?: string;
branch_code?: string;
country_code?: string;
iban?: string;
account_number?: string | null;
bank_code?: string | null;
branch_code?: string | null;
country_code?: string | null;
iban?: string | null;
}
/** Type for a mandateimportentrycustomer resource. */
export interface MandateImportEntryCustomer {
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;
language?: string;
phone_number?: string;
postal_code: string;
region?: string;
swedish_identity_number?: string;
address_line1?: string;
address_line2?: string | null;
address_line3?: string | null;
city?: string | null;
company_name?: string | null;
country_code?: string | null;
danish_identity_number?: string | null;
email: string | null;
family_name?: string | null;
given_name?: string | null;
language?: string | null;
phone_number?: string | null;
postal_code?: string;
region?: string | null;
swedish_identity_number?: string | null;
}

@@ -851,5 +851,5 @@ /** Type for a mandateimportentrycreaterequestlinks resource. */

export interface MandateImportEntryLinks {
customer: string;
customer_bank_account: string;
mandate: string;
customer?: string;
customer_bank_account?: string;
mandate?: string;
mandate_import: string;

@@ -859,4 +859,4 @@ }

export interface MandatePdf {
expires_at: string;
url: string;
expires_at?: string;
url?: string;
}

@@ -869,3 +869,3 @@ export declare enum MandatePdfAccountType {

export interface MandatePdfCreateRequestLinks {
mandate: string;
mandate?: string;
}

@@ -879,24 +879,24 @@ export declare enum MandatePdfSubscriptionFrequency {

export interface PayerAuthorisation {
bank_account: PayerAuthorisationBankAccount;
created_at?: string;
customer: PayerAuthorisationCustomer;
id: string;
incomplete_fields: PayerAuthorisationIncompleteField[];
links: PayerAuthorisationLinks;
mandate: PayerAuthorisationMandate;
status: PayerAuthorisationStatus;
bank_account?: PayerAuthorisationBankAccount;
created_at?: string | null;
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_ending: string;
account_number_suffix?: string;
account_type: PayerAuthorisationBankAccountAccountType;
bank_code?: string;
branch_code?: string;
country_code?: string;
currency?: string;
iban?: string;
metadata: JsonMap;
account_holder_name?: string;
account_number?: string | null;
account_number_ending?: string;
account_number_suffix?: string | null;
account_type?: PayerAuthorisationBankAccountAccountType;
bank_code?: string | null;
branch_code?: string | null;
country_code?: string | null;
currency?: string | null;
iban?: string | null;
metadata?: JsonMap;
}

@@ -909,36 +909,36 @@ export declare enum PayerAuthorisationBankAccountAccountType {

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;
address_line1?: string | null;
address_line2?: string | null;
address_line3?: string | null;
city?: string | null;
company_name?: string | null;
country_code?: string | null;
danish_identity_number?: string | null;
email?: string | null;
family_name?: string | null;
given_name?: string | null;
locale?: string | null;
metadata?: JsonMap;
postal_code?: string | null;
region?: string | null;
swedish_identity_number?: string | null;
}
/** Type for a payerauthorisationincompletefield resource. */
export interface PayerAuthorisationIncompleteField {
field: string;
message: string;
request_pointer: string;
field?: string;
message?: string;
request_pointer?: string;
}
/** Type for a payerauthorisationlinks resource. */
export interface PayerAuthorisationLinks {
bank_account: string;
customer: string;
mandate: string;
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;
metadata?: JsonMap;
payer_ip_address?: string | null;
reference?: string | null;
scheme?: PayerAuthorisationMandateScheme;
}

@@ -964,15 +964,15 @@ export declare enum PayerAuthorisationMandateScheme {

export interface Payment {
amount: string;
amount_refunded: string;
charge_date?: string;
created_at: string;
currency: PaymentCurrency;
description?: string;
fx: PaymentFx;
id: string;
links: PaymentLinks;
metadata: JsonMap;
reference?: string;
retry_if_possible: boolean;
status: PaymentStatus;
amount?: string;
amount_refunded?: string;
charge_date?: string | null;
created_at?: string;
currency?: PaymentCurrency;
description?: string | null;
fx?: PaymentFx;
id?: string;
links?: PaymentLinks;
metadata?: JsonMap;
reference?: string | null;
retry_if_possible?: boolean;
status?: PaymentStatus;
}

@@ -985,6 +985,6 @@ /** Type for a paymentcreaterequestlinks resource. */

export interface PaymentChargeDate {
gt: string;
gte: string;
lt: string;
lte: string;
gt?: string;
gte?: string;
lt?: string;
lte?: string;
}

@@ -1011,6 +1011,6 @@ export declare enum PaymentSortDirection {

export interface PaymentFx {
estimated_exchange_rate?: string;
exchange_rate?: string;
fx_amount?: string;
fx_currency: PaymentFxFxCurrency;
estimated_exchange_rate?: string | null;
exchange_rate?: string | null;
fx_amount?: string | null;
fx_currency?: PaymentFxFxCurrency;
}

@@ -1029,7 +1029,7 @@ export declare enum PaymentFxFxCurrency {

export interface PaymentLinks {
creditor: string;
instalment_schedule: string;
mandate: string;
payout: string;
subscription: string;
creditor?: string;
instalment_schedule?: string;
mandate?: string;
payout?: string;
subscription?: string;
}

@@ -1049,15 +1049,15 @@ export declare enum PaymentStatus {

export interface Payout {
amount: string;
arrival_date?: string;
created_at: string;
currency: PayoutCurrency;
deducted_fees: string;
fx: PayoutFx;
id: string;
links: PayoutLinks;
metadata: JsonMap;
payout_type: PayoutPayoutType;
reference: string;
status: PayoutStatus;
tax_currency?: string;
amount?: string;
arrival_date?: string | null;
created_at?: string;
currency?: PayoutCurrency;
deducted_fees?: string;
fx?: PayoutFx;
id?: string;
links?: PayoutLinks;
metadata?: JsonMap;
payout_type?: PayoutPayoutType;
reference?: string;
status?: PayoutStatus;
tax_currency?: string | null;
}

@@ -1076,6 +1076,6 @@ export declare enum PayoutCurrency {

export interface PayoutFx {
estimated_exchange_rate?: string;
exchange_rate?: string;
fx_amount?: string;
fx_currency: PayoutFxFxCurrency;
estimated_exchange_rate?: string | null;
exchange_rate?: string | null;
fx_amount?: string | null;
fx_currency?: PayoutFxFxCurrency;
}

@@ -1094,4 +1094,4 @@ export declare enum PayoutFxFxCurrency {

export interface PayoutLinks {
creditor: string;
creditor_bank_account: string;
creditor?: string;
creditor_bank_account?: string;
}

@@ -1109,6 +1109,6 @@ export declare enum PayoutPayoutType {

export interface PayoutItem {
amount: string;
links: PayoutItemLinks;
taxes: PayoutItemTaxis[];
type: PayoutItemType;
amount?: string;
links?: PayoutItemLinks;
taxes?: PayoutItemTaxis[];
type?: PayoutItemType;
}

@@ -1121,14 +1121,14 @@ export declare enum PayoutItemInclude2020TaxCutover {

export interface PayoutItemLinks {
mandate: string;
payment: string;
refund: string;
mandate?: string;
payment?: string;
refund?: string;
}
/** Type for a payoutitemtaxis resource. */
export interface PayoutItemTaxis {
amount: string;
currency: PayoutItemTaxisCurrency;
destination_amount?: string;
destination_currency: string;
exchange_rate?: string;
tax_rate_id: string;
amount?: string;
currency?: PayoutItemTaxisCurrency;
destination_amount?: string | null;
destination_currency?: string;
exchange_rate?: string | null;
tax_rate_id?: string;
}

@@ -1158,21 +1158,21 @@ export declare enum PayoutItemTaxisCurrency {

export interface RedirectFlow {
confirmation_url: string;
created_at: string;
description: string;
id: string;
links: RedirectFlowLinks;
mandate_reference: string;
metadata: JsonMap;
redirect_url: string;
scheme: RedirectFlowScheme;
session_token: string;
success_redirect_url: string;
confirmation_url?: string;
created_at?: string;
description?: string;
id?: string;
links?: RedirectFlowLinks;
mandate_reference?: string;
metadata?: JsonMap;
redirect_url?: string;
scheme?: RedirectFlowScheme;
session_token?: string;
success_redirect_url?: string;
}
/** Type for a redirectflowcreaterequestlinks resource. */
export interface RedirectFlowCreateRequestLinks {
creditor: string;
creditor?: string;
}
/** Type for a redirectflowprefilledbankaccount resource. */
export interface RedirectFlowPrefilledBankAccount {
account_type: RedirectFlowPrefilledBankAccountAccountType;
account_type?: RedirectFlowPrefilledBankAccountAccountType;
}

@@ -1185,25 +1185,25 @@ export declare enum RedirectFlowPrefilledBankAccountAccountType {

export interface RedirectFlowPrefilledCustomer {
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;
language?: string;
phone_number?: string;
postal_code?: string;
region?: string;
swedish_identity_number?: string;
address_line1?: string | null;
address_line2?: string | null;
address_line3?: string | null;
city?: string | null;
company_name?: string | null;
country_code?: string | null;
danish_identity_number?: string | null;
email?: string | null;
family_name?: string | null;
given_name?: string | null;
language?: string | null;
phone_number?: string | null;
postal_code?: string | null;
region?: string | null;
swedish_identity_number?: string | null;
}
/** Type for a redirectflowlinks resource. */
export interface RedirectFlowLinks {
billing_request: string;
creditor: string;
customer: string;
customer_bank_account: string;
mandate: string;
billing_request?: string;
creditor?: string;
customer?: string;
customer_bank_account?: string;
mandate?: string;
}

@@ -1222,16 +1222,16 @@ export declare enum RedirectFlowScheme {

export interface Refund {
amount: string;
created_at: string;
currency: string;
fx: RefundFx;
id: string;
links: RefundLinks;
metadata: JsonMap;
reference?: string;
status: RefundStatus;
amount?: string;
created_at?: string;
currency?: string;
fx?: RefundFx;
id?: string;
links?: RefundLinks;
metadata?: JsonMap;
reference?: string | null;
status?: RefundStatus;
}
/** Type for a refundcreaterequestlinks resource. */
export interface RefundCreateRequestLinks {
mandate: string;
payment: string;
mandate?: string;
payment?: string;
}

@@ -1244,6 +1244,6 @@ export declare enum RefundRefundType {

export interface RefundFx {
estimated_exchange_rate?: string;
exchange_rate?: string;
fx_amount?: string;
fx_currency: RefundFxFxCurrency;
estimated_exchange_rate?: string | null;
exchange_rate?: string | null;
fx_amount?: string | null;
fx_currency?: RefundFxFxCurrency;
}

@@ -1262,4 +1262,4 @@ export declare enum RefundFxFxCurrency {

export interface RefundLinks {
mandate: string;
payment: string;
mandate?: string;
payment?: string;
}

@@ -1277,3 +1277,3 @@ export declare enum RefundStatus {

export interface ScenarioSimulator {
id: string;
id?: string;
}

@@ -1320,27 +1320,27 @@ /** Type for a scenariosimulatorrunrequestlinks resource. */

export interface ListMetaCursor {
before: string;
after: string;
before: string | null;
after: string | null;
}
/** Type for a subscription resource. */
export interface Subscription {
amount: string;
app_fee?: string;
count?: string;
created_at: string;
currency: string;
day_of_month?: string;
earliest_charge_date_after_resume?: string;
end_date?: string;
id: string;
interval: string;
interval_unit: SubscriptionIntervalUnit;
links: SubscriptionLinks;
metadata: JsonMap;
month: SubscriptionMonth;
name?: string;
payment_reference?: string;
retry_if_possible: boolean;
start_date?: string;
status: SubscriptionStatus;
upcoming_payments: SubscriptionUpcomingPayment[];
amount?: string;
app_fee?: string | null;
count?: string | null;
created_at?: string;
currency?: string;
day_of_month?: string | null;
earliest_charge_date_after_resume?: string | null;
end_date?: string | null;
id?: string;
interval?: string;
interval_unit?: SubscriptionIntervalUnit;
links?: SubscriptionLinks;
metadata?: JsonMap;
month?: SubscriptionMonth;
name?: string | null;
payment_reference?: string | null;
retry_if_possible?: boolean;
start_date?: string | null;
status?: SubscriptionStatus;
upcoming_payments?: SubscriptionUpcomingPayment[];
}

@@ -1358,3 +1358,3 @@ /** Type for a subscriptioncreaterequestlinks resource. */

export interface SubscriptionLinks {
mandate: string;
mandate?: string;
}

@@ -1385,30 +1385,30 @@ export declare enum SubscriptionMonth {

export interface SubscriptionUpcomingPayment {
amount: string;
charge_date: string;
amount?: string;
charge_date?: string;
}
/** Type for a taxrate resource. */
export interface TaxRate {
end_date?: string;
id: string;
jurisdiction: string;
percentage: string;
start_date: string;
type: string;
end_date?: string | null;
id?: string;
jurisdiction?: string;
percentage?: string;
start_date?: string;
type?: string;
}
/** 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;
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 {};

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc