gocardless-nodejs
Advanced tools
Comparing version 1.1.2 to 1.2.0
@@ -90,5 +90,5 @@ 'use strict'; | ||
'GoCardless-Version': '2015-07-06', | ||
'GoCardless-Client-Version': '1.1.2', | ||
'GoCardless-Client-Version': '1.2.0', | ||
'GoCardless-Client-Library': 'gocardless-nodejs', | ||
'User-Agent': `gocardless-nodejs/1.1.2 node/${this.processVersion} ${this.osPlatform}/${this.osRelease}`, | ||
'User-Agent': `gocardless-nodejs/1.2.0 node/${this.processVersion} ${this.osPlatform}/${this.osRelease}`, | ||
}; | ||
@@ -95,0 +95,0 @@ return { ...customHeaders, ...mandatoryHeaders }; |
{ | ||
"name": "gocardless-nodejs", | ||
"version": "1.1.2", | ||
"version": "1.2.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>", |
@@ -38,2 +38,5 @@ import * as Types from '../types/Types'; | ||
} | ||
interface InstalmentScheduleUpdateRequest { | ||
metadata?: Types.JsonMap; | ||
} | ||
export declare class InstalmentScheduleService { | ||
@@ -47,4 +50,5 @@ private api; | ||
find(identity: string): Promise<InstalmentScheduleResponse>; | ||
update(identity: string, requestParameters: InstalmentScheduleUpdateRequest): Promise<InstalmentScheduleResponse>; | ||
cancel(identity: string): Promise<InstalmentScheduleResponse>; | ||
} | ||
export {}; |
@@ -89,2 +89,19 @@ 'use strict'; | ||
} | ||
async update(identity, requestParameters) { | ||
const urlParameters = [{ key: 'identity', value: identity }]; | ||
const requestParams = { | ||
path: '/instalment_schedules/:identity', | ||
method: 'put', | ||
urlParameters, | ||
requestParameters, | ||
payloadKey: 'instalment_schedules', | ||
fetch: null, | ||
}; | ||
const response = await this.api.request(requestParams); | ||
const formattedResponse = { | ||
...response.body['instalment_schedules'], | ||
__response__: response.__response__, | ||
}; | ||
return formattedResponse; | ||
} | ||
async cancel(identity) { | ||
@@ -91,0 +108,0 @@ const urlParameters = [{ key: 'identity', value: identity }]; |
@@ -118,3 +118,3 @@ /** Type for a bankdetailslookup resource. */ | ||
account_number_ending: string; | ||
account_type?: CreditorBankAccountAccountType; | ||
account_type: CreditorBankAccountAccountType; | ||
bank_name: string; | ||
@@ -183,3 +183,3 @@ country_code?: string; | ||
account_number_ending: string; | ||
account_type?: CustomerBankAccountAccountType; | ||
account_type: CustomerBankAccountAccountType; | ||
bank_name: string; | ||
@@ -279,2 +279,3 @@ country_code?: string; | ||
description: string; | ||
not_retried_reason: string; | ||
origin: EventDetailsOrigin; | ||
@@ -281,0 +282,0 @@ property: string; |
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
201631
3894