bankson-js-mb 2.0.5 → 2.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -9,7 +9,7 @@ interface OutboundPaymentFilters extends PaginationOptions {
|
|
|
9
9
|
type OutboundPaymentData = Pick<OutboundPaymentResponse, 'source' | 'recipient_name' | 'recipient_iban' | 'recipient_bic' | 'amount' | 'reference_number' | 'message' | 'payment_date' | 'vendor_reference'>;
|
|
10
10
|
export default class Payments extends BaseSubClient {
|
|
11
11
|
fetchV2(opts: OutboundPaymentFilters): Promise<BaseResponse<OutboundPaymentResponse>>;
|
|
12
|
-
addV2(data: OutboundPaymentData): Promise<{
|
|
12
|
+
addV2(data: OutboundPaymentData[]): Promise<{
|
|
13
13
|
failed: OutboundPaymentData[];
|
|
14
14
|
succeeded: OutboundPaymentResponse[];
|
|
15
15
|
failed_count: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"outbound-payments.d.ts","sourceRoot":"","sources":["../../src/ext/outbound-payments.ts"],"names":[],"mappings":"AAEA,OAAO,aAAa,MAAM,qBAAqB,CAAA;AAC/C,OAAO,KAAK,EAAE,YAAY,EAAE,uBAAuB,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAA;AAE3F,UAAU,sBAAuB,SAAQ,iBAAiB;IACxD,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC7B,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC5B,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAChC,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CACjC;AAED,KAAK,mBAAmB,GAAG,IAAI,CAAC,uBAAuB,EAAE,QAAQ,GAAG,gBAAgB,GAAG,gBAAgB,GAAG,eAAe,GAAG,QAAQ,GAAG,kBAAkB,GAAG,SAAS,GAAG,cAAc,GAAG,kBAAkB,CAAC,CAAA;AAE5M,MAAM,CAAC,OAAO,OAAO,QAAS,SAAQ,aAAa;IACjD,OAAO,CAAC,IAAI,EAAE,sBAAsB;IAIpC,KAAK,CAAC,IAAI,EAAE,mBAAmB;
|
|
1
|
+
{"version":3,"file":"outbound-payments.d.ts","sourceRoot":"","sources":["../../src/ext/outbound-payments.ts"],"names":[],"mappings":"AAEA,OAAO,aAAa,MAAM,qBAAqB,CAAA;AAC/C,OAAO,KAAK,EAAE,YAAY,EAAE,uBAAuB,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAA;AAE3F,UAAU,sBAAuB,SAAQ,iBAAiB;IACxD,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC7B,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC5B,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAChC,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CACjC;AAED,KAAK,mBAAmB,GAAG,IAAI,CAAC,uBAAuB,EAAE,QAAQ,GAAG,gBAAgB,GAAG,gBAAgB,GAAG,eAAe,GAAG,QAAQ,GAAG,kBAAkB,GAAG,SAAS,GAAG,cAAc,GAAG,kBAAkB,CAAC,CAAA;AAE5M,MAAM,CAAC,OAAO,OAAO,QAAS,SAAQ,aAAa;IACjD,OAAO,CAAC,IAAI,EAAE,sBAAsB;IAIpC,KAAK,CAAC,IAAI,EAAE,mBAAmB,EAAE;gBAErB,mBAAmB,EAAE;mBAClB,uBAAuB,EAAE;sBACtB,MAAM;yBACH,MAAM;;IAI3B,QAAQ,CAAC,EAAE,EAAE,MAAM;IAInB,eAAe;CAGhB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"outbound-payments.js","sourceRoot":"","sources":["../../src/ext/outbound-payments.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,CAAA;AAEnB,OAAO,aAAa,MAAM,qBAAqB,CAAA;AAY/C,MAAM,CAAC,OAAO,OAAO,QAAS,SAAQ,aAAa;IACjD,OAAO,CAAC,IAA4B;QAClC,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,CAAwC,wBAAwB,GAAG,EAAE,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAA;IAC5G,CAAC;IAED,KAAK,CAAC,
|
|
1
|
+
{"version":3,"file":"outbound-payments.js","sourceRoot":"","sources":["../../src/ext/outbound-payments.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,CAAA;AAEnB,OAAO,aAAa,MAAM,qBAAqB,CAAA;AAY/C,MAAM,CAAC,OAAO,OAAO,QAAS,SAAQ,aAAa;IACjD,OAAO,CAAC,IAA4B;QAClC,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,CAAwC,wBAAwB,GAAG,EAAE,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAA;IAC5G,CAAC;IAED,KAAK,CAAC,IAA2B;QAC/B,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CAKlB,uBAAuB,EAAE,IAAI,CAAC,CAAA;IACnC,CAAC;IAED,QAAQ,CAAC,EAAU;QACjB,OAAO,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,yBAAyB,EAAE,EAAE,CAAC,CAAA;IACxD,CAAC;IAED,eAAe;QACb,MAAM,IAAI,KAAK,CAAC,iBAAiB,CAAC,CAAA;IACpC,CAAC;CACF","sourcesContent":["import Qs from 'qs'\n\nimport BaseSubClient from '../baseSubClient.js'\nimport type { BaseResponse, OutboundPaymentResponse, PaginationOptions } from '../types.js'\n\ninterface OutboundPaymentFilters extends PaginationOptions {\n updated_after?: string | null\n bank_account?: string | null\n payment_date_min?: string | null\n payment_date_max?: string | null\n}\n\ntype OutboundPaymentData = Pick<OutboundPaymentResponse, 'source' | 'recipient_name' | 'recipient_iban' | 'recipient_bic' | 'amount' | 'reference_number' | 'message' | 'payment_date' | 'vendor_reference'>\n\nexport default class Payments extends BaseSubClient {\n fetchV2(opts: OutboundPaymentFilters) {\n return this.base.get<BaseResponse<OutboundPaymentResponse>>('/v2/outbound-payments?' + Qs.stringify(opts))\n }\n\n addV2(data: OutboundPaymentData[]) {\n return this.base.post<OutboundPaymentData[], {\n failed: OutboundPaymentData[]\n succeeded: OutboundPaymentResponse[]\n failed_count: number\n succeeded_count: number\n }>('/v2/outbound-payments', data)\n }\n\n removeV2(id: string) {\n return this.base.delete(`/v2/outbound-payments/${id}`)\n }\n\n fetchFeedbackV2() {\n throw new Error('Not implemented')\n }\n}\n"]}
|
package/package.json
CHANGED
|
@@ -17,8 +17,8 @@ export default class Payments extends BaseSubClient {
|
|
|
17
17
|
return this.base.get<BaseResponse<OutboundPaymentResponse>>('/v2/outbound-payments?' + Qs.stringify(opts))
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
addV2(data: OutboundPaymentData) {
|
|
21
|
-
return this.base.post<OutboundPaymentData, {
|
|
20
|
+
addV2(data: OutboundPaymentData[]) {
|
|
21
|
+
return this.base.post<OutboundPaymentData[], {
|
|
22
22
|
failed: OutboundPaymentData[]
|
|
23
23
|
succeeded: OutboundPaymentResponse[]
|
|
24
24
|
failed_count: number
|