connect-sdk-nodejs 6.4.0 → 6.5.0

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 @@ exports.date = date;
9
9
  function serverMetaInfo(sdkContext) {
10
10
  const info = {
11
11
  sdkCreator: "Worldline",
12
- sdkIdentifier: "NodejsServerSDK/v6.4.0",
12
+ sdkIdentifier: "NodejsServerSDK/v6.5.0",
13
13
  platformIdentifier: `${process.env["OS"]} Node.js/${process.versions.node}`,
14
14
  integrator: sdkContext.getIntegrator()
15
15
  };
@@ -467,6 +467,7 @@ export interface CardWithoutCvv extends CardEssentials {
467
467
  issueNumber?: string | null;
468
468
  }
469
469
  export interface CashPaymentMethodSpecificInput extends AbstractCashPaymentMethodSpecificInput {
470
+ paymentProduct1502SpecificInput?: CashPaymentProduct1502SpecificInput | null;
470
471
  /**
471
472
  * @deprecated No replacement
472
473
  */
@@ -478,6 +479,7 @@ export interface CashPaymentMethodSpecificInput extends AbstractCashPaymentMetho
478
479
  paymentProduct1522SpecificInput?: CashPaymentProduct1522SpecificInput | null;
479
480
  paymentProduct1523SpecificInput?: CashPaymentProduct1523SpecificInput | null;
480
481
  paymentProduct1524SpecificInput?: CashPaymentProduct1524SpecificInput | null;
482
+ paymentProduct1525SpecificInput?: CashPaymentProduct1525SpecificInput | null;
481
483
  paymentProduct1526SpecificInput?: CashPaymentProduct1526SpecificInput | null;
482
484
  }
483
485
  export interface CashPaymentMethodSpecificInputBase extends AbstractCashPaymentMethodSpecificInput {
@@ -485,6 +487,8 @@ export interface CashPaymentMethodSpecificInputBase extends AbstractCashPaymentM
485
487
  export interface CashPaymentMethodSpecificOutput extends AbstractPaymentMethodSpecificOutput {
486
488
  fraudResults?: FraudResults | null;
487
489
  }
490
+ export interface CashPaymentProduct1502SpecificInput extends CashPaymentProductWithRedirectSpecificInputBase {
491
+ }
488
492
  /**
489
493
  * @deprecated No replacement
490
494
  */
@@ -508,6 +512,8 @@ export interface CashPaymentProduct1523SpecificInput extends CashPaymentProductW
508
512
  }
509
513
  export interface CashPaymentProduct1524SpecificInput extends CashPaymentProductWithRedirectSpecificInputBase {
510
514
  }
515
+ export interface CashPaymentProduct1525SpecificInput extends CashPaymentProductWithRedirectSpecificInputBase {
516
+ }
511
517
  export interface CashPaymentProduct1526SpecificInput extends CashPaymentProductWithRedirectSpecificInputBase {
512
518
  }
513
519
  export interface CashPaymentProductWithRedirectSpecificInputBase {
@@ -37,6 +37,10 @@ export interface PaymentsClient {
37
37
  * Resource /{merchantId}/payments/{paymentId}/capture - <a href="https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/nodejs/payments/capture.html">Capture payment</a>
38
38
  */
39
39
  capture(merchantId: string, paymentId: string, postData: CapturePaymentRequest, paymentContext?: PaymentContext | null): Promise<SdkResponse<CaptureResponse, ErrorResponse>>;
40
+ /**
41
+ * Resource /{merchantId}/payments/{paymentId}/finalizecapture - <a href="https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/nodejs/payments/finalizecapture.html">Finalize capture</a>
42
+ */
43
+ finalizecapture(merchantId: string, paymentId: string, paymentContext?: PaymentContext | null): Promise<SdkResponse<PaymentResponse, ErrorResponse>>;
40
44
  /**
41
45
  * Resource /{merchantId}/payments/{paymentId}/cancelapproval - <a href="https://apireference.connect.worldline-solutions.com/s2sapi/v1/en_US/nodejs/payments/cancelapproval.html">Undo capture payment</a>
42
46
  */
@@ -0,0 +1,3 @@
1
+ import { PaymentContext, SdkContext, SdkResponse } from "../../model";
2
+ import { ErrorResponse, PaymentResponse } from "../model/domain";
3
+ export declare function finalizecapture(sdkContext: SdkContext): (merchantId: string, paymentId: string, paymentContext?: PaymentContext | null) => Promise<SdkResponse<PaymentResponse, ErrorResponse>>;
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.finalizecapture = void 0;
4
+ /*
5
+ * This file was auto-generated from the API references found at
6
+ * https://apireference.connect.worldline-solutions.com/
7
+ */
8
+ const communicator_1 = require("../../utils/communicator");
9
+ function finalizecapture(sdkContext) {
10
+ return function (merchantId, paymentId, paymentContext) {
11
+ return (0, communicator_1.json)({
12
+ method: "POST",
13
+ modulePath: `/v1/${merchantId}/payments/${paymentId}/finalizecapture`,
14
+ body: null,
15
+ paymentContext: paymentContext
16
+ }, sdkContext);
17
+ };
18
+ }
19
+ exports.finalizecapture = finalizecapture;
20
+ //# sourceMappingURL=finalizecapture.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"finalizecapture.js","sourceRoot":"","sources":["../../../src/v1/payments/finalizecapture.ts"],"names":[],"mappings":";;;AAAA;;;GAGG;AACH,2DAAgD;AAIhD,SAAgB,eAAe,CAC7B,UAAsB;IAEtB,OAAO,UAAS,UAAU,EAAE,SAAS,EAAE,cAAc;QACnD,OAAO,IAAA,mBAAI,EACT;YACE,MAAM,EAAE,MAAM;YACd,UAAU,EAAE,OAAO,UAAU,aAAa,SAAS,kBAAkB;YACrE,IAAI,EAAE,IAAI;YACV,cAAc,EAAE,cAAc;SAC/B,EACD,UAAU,CAC6C,CAAC;IAC5D,CAAC,CAAC;AACJ,CAAC;AAdD,0CAcC"}
@@ -14,6 +14,7 @@ const tokenize_1 = require("./tokenize");
14
14
  const processchallenged_1 = require("./processchallenged");
15
15
  const approve_1 = require("./approve");
16
16
  const capture_1 = require("./capture");
17
+ const finalizecapture_1 = require("./finalizecapture");
17
18
  const cancelapproval_1 = require("./cancelapproval");
18
19
  const captures_1 = require("./captures");
19
20
  const refund_1 = require("./refund");
@@ -33,6 +34,7 @@ function newPaymentsClient(sdkContext) {
33
34
  processchallenged: (0, processchallenged_1.processchallenged)(sdkContext),
34
35
  approve: (0, approve_1.approve)(sdkContext),
35
36
  capture: (0, capture_1.capture)(sdkContext),
37
+ finalizecapture: (0, finalizecapture_1.finalizecapture)(sdkContext),
36
38
  cancelapproval: (0, cancelapproval_1.cancelapproval)(sdkContext),
37
39
  captures: (0, captures_1.captures)(sdkContext),
38
40
  refund: (0, refund_1.refund)(sdkContext),
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/v1/payments/index.ts"],"names":[],"mappings":";;;AAAA;;;GAGG;AACH,qCAAkC;AAClC,iCAA8B;AAC9B,+BAA4B;AAC5B,yCAAsC;AACtC,yDAAsD;AACtD,yCAAsC;AACtC,2DAAwD;AACxD,uCAAoC;AACpC,uCAAoC;AACpC,qDAAkD;AAClD,yCAAsC;AACtC,qCAAkC;AAClC,uCAAoC;AACpC,qCAAkC;AAClC,uCAAoC;AACpC,yCAAsC;AACtC,2DAAwD;AAIxD,SAAgB,iBAAiB,CAAC,UAAsB;IACtD,OAAO;QACL,MAAM,EAAE,IAAA,eAAM,EAAC,UAAU,CAAC;QAC1B,IAAI,EAAE,IAAA,WAAI,EAAC,UAAU,CAAC;QACtB,GAAG,EAAE,IAAA,SAAG,EAAC,UAAU,CAAC;QACpB,QAAQ,EAAE,IAAA,mBAAQ,EAAC,UAAU,CAAC;QAC9B,gBAAgB,EAAE,IAAA,mCAAgB,EAAC,UAAU,CAAC;QAC9C,QAAQ,EAAE,IAAA,mBAAQ,EAAC,UAAU,CAAC;QAC9B,iBAAiB,EAAE,IAAA,qCAAiB,EAAC,UAAU,CAAC;QAChD,OAAO,EAAE,IAAA,iBAAO,EAAC,UAAU,CAAC;QAC5B,OAAO,EAAE,IAAA,iBAAO,EAAC,UAAU,CAAC;QAC5B,cAAc,EAAE,IAAA,+BAAc,EAAC,UAAU,CAAC;QAC1C,QAAQ,EAAE,IAAA,mBAAQ,EAAC,UAAU,CAAC;QAC9B,MAAM,EAAE,IAAA,eAAM,EAAC,UAAU,CAAC;QAC1B,OAAO,EAAE,IAAA,iBAAO,EAAC,UAAU,CAAC;QAC5B,MAAM,EAAE,IAAA,eAAM,EAAC,UAAU,CAAC;QAC1B,OAAO,EAAE,IAAA,iBAAO,EAAC,UAAU,CAAC;QAC5B,QAAQ,EAAE,IAAA,m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5B,MAAM,EAAE,IAAA,eAAM,EAAC,UAAU,CAAC;QAC1B,OAAO,EAAE,IAAA,iBAAO,EAAC,UAAU,CAAC;QAC5B,QAAQ,EAAE,IAAA,mBAAQ,EAAC,UAAU,CAAC;QAC9B,iBAAiB,EAAE,IAAA,qCAAiB,EAAC,UAAU,CAAC;KACjD,CAAC;AACJ,CAAC;AArBD,8CAqBC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "connect-sdk-nodejs",
3
- "version": "6.4.0",
3
+ "version": "6.5.0",
4
4
  "description": "SDK to communicate with the Worldline Global Collect platform using the Worldline Connect Server API",
5
5
  "homepage": "https://github.com/Worldline-Global-Collect/connect-sdk-nodejs#readme",
6
6
  "bugs": {
@@ -584,6 +584,9 @@
584
584
  "CashPaymentMethodSpecificInput" : {
585
585
  "type" : "object",
586
586
  "properties" : {
587
+ "paymentProduct1502SpecificInput" : {
588
+ "$ref" : "#/definitions/CashPaymentProduct1502SpecificInput"
589
+ },
587
590
  "paymentProduct1503SpecificInput" : {
588
591
  "$ref" : "#/definitions/CashPaymentProduct1503SpecificInput"
589
592
  },
@@ -608,6 +611,9 @@
608
611
  "paymentProduct1524SpecificInput" : {
609
612
  "$ref" : "#/definitions/CashPaymentProduct1524SpecificInput"
610
613
  },
614
+ "paymentProduct1525SpecificInput" : {
615
+ "$ref" : "#/definitions/CashPaymentProduct1525SpecificInput"
616
+ },
611
617
  "paymentProduct1526SpecificInput" : {
612
618
  "$ref" : "#/definitions/CashPaymentProduct1526SpecificInput"
613
619
  },
@@ -618,6 +624,15 @@
618
624
  },
619
625
  "additionalProperties" : false
620
626
  },
627
+ "CashPaymentProduct1502SpecificInput" : {
628
+ "type" : "object",
629
+ "properties" : {
630
+ "returnUrl" : {
631
+ "type" : "string"
632
+ }
633
+ },
634
+ "additionalProperties" : false
635
+ },
621
636
  "CashPaymentProduct1503SpecificInput" : {
622
637
  "type" : "object",
623
638
  "properties" : {
@@ -690,6 +705,15 @@
690
705
  },
691
706
  "additionalProperties" : false
692
707
  },
708
+ "CashPaymentProduct1525SpecificInput" : {
709
+ "type" : "object",
710
+ "properties" : {
711
+ "returnUrl" : {
712
+ "type" : "string"
713
+ }
714
+ },
715
+ "additionalProperties" : false
716
+ },
693
717
  "CashPaymentProduct1526SpecificInput" : {
694
718
  "type" : "object",
695
719
  "properties" : {