connect-sdk-nodejs 4.13.0 → 4.15.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.
package/lib/index.js CHANGED
@@ -15,6 +15,7 @@ const services = require("./services");
15
15
  const tokens = require("./tokens");
16
16
  const mandates = require("./mandates");
17
17
  const sessions = require("./sessions");
18
+ const installments = require("./installments");
18
19
  const files = require("./files");
19
20
  const webhooks = require("./webhooks");
20
21
  let _logger;
@@ -78,6 +79,7 @@ const connectSdk = {
78
79
  tokens: tokens,
79
80
  mandates: mandates,
80
81
  sessions: sessions,
82
+ installments: installments,
81
83
  files: files,
82
84
  context: sdkcontext,
83
85
  webhooks: webhooks,
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAMA,8CAA+C;AAC/C,+CAAgD;AAEhD,qDAAsD;AACtD,uEAAwE;AACxE,uCAAwC;AACxC,uCAAwC;AACxC,qCAAsC;AACtC,uCAAwC;AACxC,qCAAsC;AACtC,iDAAkD;AAClD,uCAAwC;AACxC,qDAAsD;AACtD,uCAAwC;AACxC,mCAAoC;AACpC,uCAAwC;AACxC,uCAAwC;AACxC,iCAAkC;AAElC,uCAAwC;AAExC,IAAI,OAAuC,CAAC;AAC5C,IAAI,QAAiB,CAAC;AAEtB,MAAM,WAAW,GAAyB;IACxC,IAAI,EAAE,SAAS;IACf,QAAQ,EAAE,SAAS;IACnB,MAAM,EAAE,SAAS;IACjB,IAAI,EAAE,SAAS;IACf,OAAO,EAAE;QACP,cAAc,EAAE,kBAAkB;KACnC;CACF,CAAC;AAEF,MAAM,eAAe,GAAG,GAAS,EAAE;IACjC,WAAW,CAAC,IAAI,GAAG,QAAQ,CAAC,IAAI,CAAC;IACjC,WAAW,CAAC,IAAI,GAAG,QAAQ,CAAC,IAAI,CAAC;IACjC,WAAW,CAAC,QAAQ,GAAG,QAAQ,CAAC,MAAM,GAA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IAClB,QAAQ,EAAE,QAAQ;IAClB,OAAO,EAAE,OAAO;IAChB,QAAQ,EAAE,QAAQ;IAClB,OAAO,EAAE,OAAO;IAChB,aAAa,EAAE,aAAa;IAC5B,QAAQ,EAAE,QAAQ;IAClB,eAAe,EAAE,eAAe;IAChC,QAAQ,EAAE,QAAQ;IAClB,MAAM,EAAE,MAAM;IACd,QAAQ,EAAE,QAAQ;IAClB,QAAQ,EAAE,QAAQ;IAClB,YAAY,EAAE,YAAY;IAC1B,KAAK,EAAE,KAAK;IACZ,OAAO,EAAE,UAAU;IAEnB,QAAQ,EAAE,QAAQ;IAElB,SAAS,EAAE;QACT,GAAG,EAAE,SAAS,CAAC,GAAG;QAClB,UAAU,EAAE,SAAS,CAAC,UAAU;QAChC,WAAW,EAAE,SAAS,CAAC,WAAW;QAClC,eAAe,EAAE,SAAS,CAAC,eAAe;KAC3C;CACF,CAAC;AACF,iBAAS,UAAU,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { PaymentContext, SdkCallback } from "../model";
2
+ import { GetInstallmentRequest } from "../model/domain/installments";
3
+ declare const getInstallmentsInfo: (merchantId: string, postData: GetInstallmentRequest, paymentContext: PaymentContext | null, cb: SdkCallback) => void;
4
+ export = getInstallmentsInfo;
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ /*
3
+ * This file was auto-generated from the API references found at
4
+ * https://epayments-api.developer-ingenico.com/s2sapi/v1/
5
+ */
6
+ const jsonschema_1 = require("jsonschema");
7
+ const communicator = require("../utils/communicator");
8
+ const sdkcontext = require("../utils/context");
9
+ // eslint-disable-next-line @typescript-eslint/no-var-requires
10
+ const requestSchema = require("../../schemas/installments/GetInstallmentRequest.json");
11
+ const getInstallmentsInfo = function (merchantId, postData, paymentContext, cb) {
12
+ // validate postData
13
+ const isValidRequest = jsonschema_1.validate(postData, requestSchema);
14
+ if (!isValidRequest.valid) {
15
+ const logger = sdkcontext.getLogger();
16
+ if (sdkcontext.isLoggingEnabled()) {
17
+ logger("error", isValidRequest.errors);
18
+ }
19
+ throw new Error(isValidRequest.errors.toString());
20
+ }
21
+ communicator.json({
22
+ method: "POST",
23
+ modulePath: "/v1/" + merchantId + "/installments/getInstallmentsInfo",
24
+ body: postData,
25
+ paymentContext: paymentContext,
26
+ cb: cb
27
+ });
28
+ };
29
+ module.exports = getInstallmentsInfo;
30
+ //# sourceMappingURL=getInstallmentsInfo.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getInstallmentsInfo.js","sourceRoot":"","sources":["../../src/installments/getInstallmentsInfo.ts"],"names":[],"mappings":";AAAA;;;GAGG;AACH,2CAAsC;AACtC,sDAAuD;AACvD,+CAAgD;AAIhD,8DAA8D;AAC9D,MAAM,aAAa,GAAG,OAAO,CAAC,uDAAuD,CAAC,CAAC;AAEvF,MAAM,mBAAmB,GAAG,UAAS,UAAkB,EAAE,QAA+B,EAAE,cAAqC,EAAE,EAAe;IAC9I,oBAAoB;IACpB,MAAM,cAAc,GAAG,qBAAQ,CAAC,QAAQ,EAAE,aAAa,CAAC,CAAC;IACzD,IAAI,CAAC,cAAc,CAAC,KAAK,EAAE;QACzB,MAAM,MAAM,GAAG,UAAU,CAAC,SAAS,EAAE,CAAC;QACtC,IAAI,UAAU,CAAC,gBAAgB,EAAE,EAAE;YACjC,MAAM,CAAC,OAAO,EAAE,cAAc,CAAC,MAAM,CAAC,CAAC;SACxC;QACD,MAAM,IAAI,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC,CAAC;KACnD;IACD,YAAY,CAAC,IAAI,CAAC;QAChB,MAAM,EAAE,MAAM;QACd,UAAU,EAAE,MAAM,GAAG,UAAU,GAAG,mCAAmC;QACrE,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE,cAAc;QAC9B,EAAE,EAAE,EAAE;KACP,CAAC,CAAC;AACL,CAAC,CAAC;AACF,iBAAS,mBAAmB,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { InstallmentsClient } from "../model/installments";
2
+ declare const installmentsClient: InstallmentsClient;
3
+ export = installmentsClient;
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ /*
3
+ * This file was auto-generated from the API references found at
4
+ * https://epayments-api.developer-ingenico.com/s2sapi/v1/
5
+ */
6
+ const getInstallmentsInfo = require("./getInstallmentsInfo");
7
+ const installmentsClient = {
8
+ getInstallmentsInfo: getInstallmentsInfo
9
+ };
10
+ module.exports = installmentsClient;
11
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/installments/index.ts"],"names":[],"mappings":";AAAA;;;GAGG;AACH,6DAA8D;AAG9D,MAAM,kBAAkB,GAAuB;IAC7C,mBAAmB,EAAE,mBAAmB;CACzC,CAAC;AACF,iBAAS,kBAAkB,CAAC"}
@@ -1,4 +1,4 @@
1
- import { AbstractPaymentMethodSpecificInput, KeyValuePair, PaymentProductFilter } from "../../definitions";
1
+ import { AbstractPaymentMethodSpecificInput, AmountOfMoney, KeyValuePair, PaymentProductFilter } from "../../definitions";
2
2
  import { GPayThreeDSecure, Payment, PaymentCreationReferences } from "../../payment/definitions";
3
3
  export interface CreatedPaymentOutput {
4
4
  displayedData?: DisplayedData | null;
@@ -17,10 +17,15 @@ export interface DisplayedData {
17
17
  renderingData?: string | null;
18
18
  showData?: KeyValuePair[] | null;
19
19
  }
20
+ export interface Frequency {
21
+ interval?: string | null;
22
+ intervalFrequency?: number | null;
23
+ }
20
24
  export interface HostedCheckoutSpecificInput {
21
25
  isRecurring?: boolean | null;
22
26
  locale?: string | null;
23
27
  paymentProductFilters?: PaymentProductFiltersHostedCheckout | null;
28
+ recurringPaymentsData?: RecurringPaymentsData | null;
24
29
  returnCancelState?: boolean | null;
25
30
  returnUrl?: string | null;
26
31
  showResultPage?: boolean | null;
@@ -49,3 +54,18 @@ export interface PaymentProductFiltersHostedCheckout {
49
54
  restrictTo?: PaymentProductFilter | null;
50
55
  tokensOnly?: boolean | null;
51
56
  }
57
+ export interface RecurringPaymentsData {
58
+ recurringInterval?: Frequency | null;
59
+ trialInformation?: TrialInformation | null;
60
+ }
61
+ export interface TrialInformation {
62
+ amountOfMoneyAfterTrial?: AmountOfMoney | null;
63
+ endDate?: string | null;
64
+ isRecurring?: boolean | null;
65
+ trialPeriod?: TrialPeriod | null;
66
+ trialPeriodRecurring?: Frequency | null;
67
+ }
68
+ export interface TrialPeriod {
69
+ duration?: number | null;
70
+ interval?: string | null;
71
+ }
@@ -0,0 +1,11 @@
1
+ import { Installments } from "../../payment/definitions";
2
+ export interface InstallmentDisplayHints {
3
+ displayOrder?: number | null;
4
+ label?: string | null;
5
+ logo?: string | null;
6
+ }
7
+ export interface InstallmentOptions {
8
+ displayHints?: InstallmentDisplayHints | null;
9
+ id?: string | null;
10
+ installmentPlans?: Installments[] | null;
11
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/model/domain/installments/definitions/index.ts"],"names":[],"mappings":""}
@@ -0,0 +1,11 @@
1
+ import { AmountOfMoney } from "../definitions";
2
+ import { InstallmentOptions } from "./definitions";
3
+ export interface GetInstallmentRequest {
4
+ amountOfMoney?: AmountOfMoney | null;
5
+ bin?: string | null;
6
+ countryCode?: string | null;
7
+ paymentProductId?: number | null;
8
+ }
9
+ export interface InstallmentOptionsResponse {
10
+ installmentOptions?: InstallmentOptions[] | null;
11
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/model/domain/installments/index.ts"],"names":[],"mappings":""}
@@ -343,6 +343,7 @@ export interface HostedCheckoutSpecificOutput {
343
343
  }
344
344
  export interface Installments {
345
345
  amountOfMoneyPerInstallment?: AmountOfMoney | null;
346
+ amountOfMoneyTotal?: AmountOfMoney | null;
346
347
  frequencyOfInstallments?: string | null;
347
348
  installmentPlanCode?: number | null;
348
349
  interestRate?: string | null;
@@ -716,6 +717,7 @@ export interface RefundBankMethodSpecificOutput extends RefundMethodSpecificOutp
716
717
  }
717
718
  export interface RefundCardMethodSpecificOutput extends RefundMethodSpecificOutput {
718
719
  authorisationCode?: string | null;
720
+ card?: CardEssentials | null;
719
721
  }
720
722
  export interface RefundCashMethodSpecificOutput extends RefundMethodSpecificOutput {
721
723
  }
@@ -13,6 +13,7 @@ import { ServicesClient } from "./services";
13
13
  import { TokensClient } from "./tokens";
14
14
  import { MandatesClient } from "./mandates";
15
15
  import { SessionsClient } from "./sessions";
16
+ import { InstallmentsClient } from "./installments";
16
17
  import { FilesClient } from "./files";
17
18
  import { WebhooksHelper } from "./webhooks";
18
19
  export interface ConnectSdk {
@@ -31,6 +32,7 @@ export interface ConnectSdk {
31
32
  readonly tokens: TokensClient;
32
33
  readonly mandates: MandatesClient;
33
34
  readonly sessions: SessionsClient;
35
+ readonly installments: InstallmentsClient;
34
36
  readonly files: FilesClient;
35
37
  readonly context: SdkContext;
36
38
  readonly webhooks: WebhooksHelper;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/model/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAgDA,0CAAwB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/model/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAkDA,0CAAwB"}
@@ -0,0 +1,11 @@
1
+ import { GetInstallmentRequest } from "../domain/installments";
2
+ import { PaymentContext, SdkCallback } from "../types";
3
+ export interface InstallmentsClient {
4
+ /**
5
+ * Resource /{merchantId}/installments/getInstallmentsInfo - <a href="https://epayments-api.developer-ingenico.com/s2sapi/v1/en_US/nodejs/installments/getInstallmentsInfo.html">Get Installment Info</a>
6
+ * @param cb The callback for the response.
7
+ * If the call was successfull, the response body type will be {@link InstallmentOptionsResponse}.
8
+ * If the call was not successful, the response body type will be {@link ErrorResponse}.
9
+ */
10
+ getInstallmentsInfo(merchantId: string, postData: GetInstallmentRequest, paymentContext: PaymentContext | null, cb: SdkCallback): void;
11
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/model/installments/index.ts"],"names":[],"mappings":""}
@@ -9,7 +9,7 @@ exports.date = date;
9
9
  function serverMetaInfo(sdkContext) {
10
10
  const info = {
11
11
  sdkCreator: "Ingenico",
12
- sdkIdentifier: "NodejsServerSDK/v4.13.0",
12
+ sdkIdentifier: "NodejsServerSDK/v4.15.0",
13
13
  platformIdentifier: process.env["OS"] + " Node.js/" + process.versions.node
14
14
  };
15
15
  if (sdkContext.getIntegrator() !== null) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "connect-sdk-nodejs",
3
- "version": "4.13.0",
3
+ "version": "4.15.0",
4
4
  "description": "SDK to communicate with the Ingenico ePayments platform using the Ingenico Connect Server API",
5
5
  "homepage": "https://github.com/Ingenico-ePayments/connect-sdk-nodejs#readme",
6
6
  "bugs": {
@@ -802,6 +802,19 @@
802
802
  },
803
803
  "additionalProperties" : false
804
804
  },
805
+ "Frequency" : {
806
+ "type" : "object",
807
+ "properties" : {
808
+ "interval" : {
809
+ "type" : "string"
810
+ },
811
+ "intervalFrequency" : {
812
+ "type" : "integer",
813
+ "maximum" : 2147483647
814
+ }
815
+ },
816
+ "additionalProperties" : false
817
+ },
805
818
  "GPayThreeDSecure" : {
806
819
  "type" : "object",
807
820
  "properties" : {
@@ -848,6 +861,9 @@
848
861
  "paymentProductFilters" : {
849
862
  "$ref" : "#/definitions/PaymentProductFiltersHostedCheckout"
850
863
  },
864
+ "recurringPaymentsData" : {
865
+ "$ref" : "#/definitions/RecurringPaymentsData"
866
+ },
851
867
  "returnCancelState" : {
852
868
  "type" : "boolean"
853
869
  },
@@ -875,6 +891,9 @@
875
891
  "amountOfMoneyPerInstallment" : {
876
892
  "$ref" : "#/definitions/AmountOfMoney"
877
893
  },
894
+ "amountOfMoneyTotal" : {
895
+ "$ref" : "#/definitions/AmountOfMoney"
896
+ },
878
897
  "frequencyOfInstallments" : {
879
898
  "type" : "string"
880
899
  },
@@ -1498,6 +1517,18 @@
1498
1517
  },
1499
1518
  "additionalProperties" : false
1500
1519
  },
1520
+ "RecurringPaymentsData" : {
1521
+ "type" : "object",
1522
+ "properties" : {
1523
+ "recurringInterval" : {
1524
+ "$ref" : "#/definitions/Frequency"
1525
+ },
1526
+ "trialInformation" : {
1527
+ "$ref" : "#/definitions/TrialInformation"
1528
+ }
1529
+ },
1530
+ "additionalProperties" : false
1531
+ },
1501
1532
  "RedirectPaymentMethodSpecificInputBase" : {
1502
1533
  "type" : "object",
1503
1534
  "properties" : {
@@ -1771,6 +1802,40 @@
1771
1802
  }
1772
1803
  },
1773
1804
  "additionalProperties" : false
1805
+ },
1806
+ "TrialInformation" : {
1807
+ "type" : "object",
1808
+ "properties" : {
1809
+ "amountOfMoneyAfterTrial" : {
1810
+ "$ref" : "#/definitions/AmountOfMoney"
1811
+ },
1812
+ "endDate" : {
1813
+ "type" : "string"
1814
+ },
1815
+ "isRecurring" : {
1816
+ "type" : "boolean"
1817
+ },
1818
+ "trialPeriod" : {
1819
+ "$ref" : "#/definitions/TrialPeriod"
1820
+ },
1821
+ "trialPeriodRecurring" : {
1822
+ "$ref" : "#/definitions/Frequency"
1823
+ }
1824
+ },
1825
+ "additionalProperties" : false
1826
+ },
1827
+ "TrialPeriod" : {
1828
+ "type" : "object",
1829
+ "properties" : {
1830
+ "duration" : {
1831
+ "type" : "integer",
1832
+ "maximum" : 2147483647
1833
+ },
1834
+ "interval" : {
1835
+ "type" : "string"
1836
+ }
1837
+ },
1838
+ "additionalProperties" : false
1774
1839
  }
1775
1840
  }
1776
1841
  }
@@ -0,0 +1,35 @@
1
+ {
2
+ "$schema" : "http://json-schema.org/draft-04/schema#",
3
+ "type" : "object",
4
+ "properties" : {
5
+ "amountOfMoney" : {
6
+ "$ref" : "#/definitions/AmountOfMoney"
7
+ },
8
+ "bin" : {
9
+ "type" : "string"
10
+ },
11
+ "countryCode" : {
12
+ "type" : "string"
13
+ },
14
+ "paymentProductId" : {
15
+ "type" : "integer",
16
+ "maximum" : 2147483647
17
+ }
18
+ },
19
+ "additionalProperties" : false,
20
+ "definitions" : {
21
+ "AmountOfMoney" : {
22
+ "type" : "object",
23
+ "properties" : {
24
+ "amount" : {
25
+ "type" : "integer",
26
+ "maximum" : 9223372036854775807
27
+ },
28
+ "currencyCode" : {
29
+ "type" : "string"
30
+ }
31
+ },
32
+ "additionalProperties" : false
33
+ }
34
+ }
35
+ }
@@ -576,6 +576,9 @@
576
576
  "amountOfMoneyPerInstallment" : {
577
577
  "$ref" : "#/definitions/AmountOfMoney"
578
578
  },
579
+ "amountOfMoneyTotal" : {
580
+ "$ref" : "#/definitions/AmountOfMoney"
581
+ },
579
582
  "frequencyOfInstallments" : {
580
583
  "type" : "string"
581
584
  },
@@ -1094,6 +1094,9 @@
1094
1094
  "amountOfMoneyPerInstallment" : {
1095
1095
  "$ref" : "#/definitions/AmountOfMoney"
1096
1096
  },
1097
+ "amountOfMoneyTotal" : {
1098
+ "$ref" : "#/definitions/AmountOfMoney"
1099
+ },
1097
1100
  "frequencyOfInstallments" : {
1098
1101
  "type" : "string"
1099
1102
  },