mangopay4-nodejs-sdk 1.67.0 → 1.68.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.
@@ -1077,123 +1077,6 @@ describe('PayIns', function () {
1077
1077
  });
1078
1078
  });
1079
1079
 
1080
- // endpoint removed
1081
- describe.skip('Payconiq Web', function () {
1082
- var payIn, wallet;
1083
-
1084
- before(function (done) {
1085
- wallet = {
1086
- Owners: [john.Id],
1087
- Currency: 'EUR',
1088
- Description: 'WALLET IN EUR'
1089
- };
1090
-
1091
- api.Wallets.create(wallet).then(function () {
1092
- payIn = {
1093
- Tag: 'custom meta',
1094
- CreditedWalletId: wallet.Id,
1095
- AuthorId: john.Id,
1096
- DebitedFunds: {
1097
- Amount: 1000,
1098
- Currency: 'EUR'
1099
- },
1100
- Fees: {
1101
- Amount: 0,
1102
- Currency: 'EUR'
1103
- },
1104
- PaymentType: 'PAYCONIQ',
1105
- ExecutionType: 'WEB',
1106
- ReturnURL: 'http://www.my-site.com/returnURL',
1107
- Country: 'BE'
1108
- };
1109
-
1110
- api.PayIns.create(payIn, function (data, response) {
1111
- payIn = data;
1112
- done();
1113
- });
1114
- });
1115
- });
1116
-
1117
- describe('Create', function () {
1118
- it('should create the PayIn', function () {
1119
- expect(payIn.Id).not.to.be.undefined;
1120
- expect(payIn.PaymentType).to.equal('PAYCONIQ');
1121
- expect(payIn.ExecutionType).to.equal('WEB');
1122
- expect(payIn.Status).to.equal('CREATED');
1123
- expect(payIn.RedirectURL).not.to.be.undefined;
1124
- expect(payIn.DeepLinkURL).not.to.be.undefined;
1125
- });
1126
- });
1127
-
1128
- describe('Get', function () {
1129
- var getPayIn;
1130
- before(function (done) {
1131
- api.PayIns.get(payIn.Id, function (data, response) {
1132
- getPayIn = data;
1133
- done()
1134
- });
1135
- });
1136
-
1137
- it('should get the PayIn', function () {
1138
- expect(getPayIn.Id).not.to.be.undefined;
1139
- expect(getPayIn.PaymentType).to.equal('PAYCONIQ');
1140
- expect(getPayIn.ExecutionType).to.equal('WEB');
1141
- expect(getPayIn.Status).to.equal('CREATED');
1142
- expect(payIn.RedirectURL).not.to.be.undefined;
1143
- expect(payIn.DeepLinkURL).not.to.be.undefined;
1144
- });
1145
- });
1146
- });
1147
-
1148
- describe('Payconiq Web V2', function () {
1149
- var payIn, wallet;
1150
-
1151
- before(function (done) {
1152
- wallet = {
1153
- Owners: [john.Id],
1154
- Currency: 'EUR',
1155
- Description: 'WALLET IN EUR'
1156
- };
1157
-
1158
- api.Wallets.create(wallet).then(function () {
1159
- payIn = {
1160
- Tag: 'custom meta',
1161
- CreditedWalletId: wallet.Id,
1162
- AuthorId: john.Id,
1163
- DebitedFunds: {
1164
- Amount: 100,
1165
- Currency: 'EUR'
1166
- },
1167
- Fees: {
1168
- Amount: 0,
1169
- Currency: 'EUR'
1170
- },
1171
- PaymentType: 'PAYCONIQ',
1172
- ExecutionType: 'WEB',
1173
- ReturnURL: 'http://www.my-site.com/returnURL',
1174
- Country: 'BE'
1175
- };
1176
-
1177
- api.PayIns.createPayconiq(payIn, function (data, response) {
1178
- payIn = data;
1179
- done();
1180
- });
1181
- });
1182
- });
1183
-
1184
- describe('Create', function () {
1185
- it('should create the PayIn', function () {
1186
- expect(payIn.Id).not.to.be.undefined;
1187
- expect(payIn.PaymentType).to.equal('PAYCONIQ');
1188
- expect(payIn.ExecutionType).to.equal('WEB');
1189
- expect(payIn.Status).to.equal('CREATED');
1190
- expect(payIn.RedirectURL).not.to.be.undefined;
1191
- expect(payIn.DeepLinkURL).not.to.be.undefined;
1192
- expect(payIn.QRCodeURL).not.to.be.undefined;
1193
- });
1194
- });
1195
- });
1196
-
1197
1080
  describe('Mbway Web', function () {
1198
1081
  var payIn;
1199
1082
 
@@ -1536,6 +1419,7 @@ describe('PayIns', function () {
1536
1419
  expect(payIn.AuthorId).to.equal(john.Id);
1537
1420
  expect(payIn.Type).to.equal('PAYIN');
1538
1421
  expect(payIn.Phone).not.to.be.null;
1422
+ expect(payIn.LineItems[1].Discount).to.equal(10);
1539
1423
  });
1540
1424
  });
1541
1425
 
@@ -10,7 +10,6 @@ export namespace enums {
10
10
  DirectDebit: "DIRECT_DEBIT";
11
11
  Preauthorized: "PREAUTHORIZED";
12
12
  PayPal: "PAYPAL";
13
- Payconiq: "PAYCONIQ";
14
13
  Mbway: "MBWAY";
15
14
  Multibanco: "MULTIBANCO";
16
15
  Satispay: "SATISPAY";
@@ -46,6 +46,7 @@ import { cardPreAuthorization } from "./models/cardPreauthorization";
46
46
  import { entityBase } from "./models/entityBase";
47
47
  import { user } from "./models/user";
48
48
  import { payIn } from "./models/payIn";
49
+ import { acquiring } from "./models/acquiring";
49
50
  import { refund } from "./models/refund";
50
51
  import { repudiation } from "./models/repudiation";
51
52
  import { client } from "./models/client";
@@ -76,6 +77,7 @@ import { identityVerification } from "./models/identityVerification";
76
77
  import { recipient } from "./models/recipient";
77
78
  import { Recipients } from "./services/Recipients";
78
79
  import { Settlements } from "./services/Settlements";
80
+ import { Acquiring } from "./services/Acquiring";
79
81
  import { OptionsHelper } from "./services/OptionsHelper";
80
82
 
81
83
  export = MangoPay;
@@ -116,6 +118,7 @@ declare class MangoPay {
116
118
  IdentityVerifications: IdentityVerifications;
117
119
  Recipients: Recipients;
118
120
  Settlements: Settlements;
121
+ Acquiring: Acquiring;
119
122
  OptionsHelper: OptionsHelper;
120
123
 
121
124
  models: typeof MangoPay.models;
@@ -666,10 +669,6 @@ declare namespace MangoPay {
666
669
  constructor(data: any);
667
670
  }
668
671
 
669
- class PayInPaymentDetailsPayconiq extends PayInPaymentDetails {
670
- constructor(data: any);
671
- }
672
-
673
672
  class PayInPaymentDetailsCardDirect extends PayInPaymentDetails {
674
673
  constructor(data: any);
675
674
  }
@@ -880,6 +879,7 @@ declare namespace MangoPay {
880
879
  conversion,
881
880
  virtualAccount,
882
881
  identityVerification,
883
- recipient
882
+ recipient,
883
+ acquiring
884
884
  };
885
885
  }
@@ -812,21 +812,6 @@ api.PayIns.create({
812
812
  expectType<Mangopay.payIn.BankWireDirectPayInData>(data);
813
813
  });
814
814
 
815
- // create Payconiq PayIn
816
- api.PayIns.create({
817
- PaymentType: "PAYCONIQ",
818
- ExecutionType: "WEB",
819
- Tag: "custom meta",
820
- AuthorId: "user-id",
821
- CreditedWalletId: "wallet-id",
822
- DebitedFunds: {Amount: 500, Currency: "GBP"},
823
- Fees: {Amount: 500, Currency: "GBP"},
824
- ReturnURL: "http://www.my-site.com/returnURL",
825
- Country: "BE"
826
- }).then(data => {
827
- expectType<Mangopay.payIn.PayconiqWebPayInData>(data);
828
- });
829
-
830
815
  api.PayIns.create({
831
816
  PaymentType: "DIRECT_DEBIT",
832
817
  ExecutionType: "DIRECT",