@channelpayments/node-sdk 1.48.0 → 1.50.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.
Files changed (33) hide show
  1. package/dist/cjs/apis/ChannelPaymentsApi.d.ts +5 -5
  2. package/dist/cjs/apis/ChannelPaymentsApi.js +4 -4
  3. package/dist/cjs/models/PaymentMethodEntity1.d.ts +29 -5
  4. package/dist/cjs/models/PaymentMethodEntity1.js +16 -8
  5. package/dist/cjs/models/TransactionEntity.d.ts +69 -26
  6. package/dist/cjs/models/TransactionEntity.js +54 -29
  7. package/dist/cjs/models/TransactionsSearchEntity.d.ts +3 -3
  8. package/dist/cjs/models/TransactionsSearchEntity.js +3 -3
  9. package/dist/cjs/models/index.d.ts +0 -3
  10. package/dist/cjs/models/index.js +0 -3
  11. package/dist/mjs/apis/ChannelPaymentsApi.d.ts +5 -5
  12. package/dist/mjs/apis/ChannelPaymentsApi.js +5 -5
  13. package/dist/mjs/models/PaymentMethodEntity1.d.ts +29 -5
  14. package/dist/mjs/models/PaymentMethodEntity1.js +16 -8
  15. package/dist/mjs/models/TransactionEntity.d.ts +69 -26
  16. package/dist/mjs/models/TransactionEntity.js +54 -29
  17. package/dist/mjs/models/TransactionsSearchEntity.d.ts +3 -3
  18. package/dist/mjs/models/TransactionsSearchEntity.js +3 -3
  19. package/dist/mjs/models/index.d.ts +0 -3
  20. package/dist/mjs/models/index.js +0 -3
  21. package/package.json +1 -1
  22. package/dist/cjs/models/PaymentMethodEntity2.d.ts +0 -113
  23. package/dist/cjs/models/PaymentMethodEntity2.js +0 -82
  24. package/dist/cjs/models/PaymentServiceDetailsEntity.d.ts +0 -50
  25. package/dist/cjs/models/PaymentServiceDetailsEntity.js +0 -54
  26. package/dist/cjs/models/TransactionEntity1.d.ts +0 -241
  27. package/dist/cjs/models/TransactionEntity1.js +0 -150
  28. package/dist/mjs/models/PaymentMethodEntity2.d.ts +0 -113
  29. package/dist/mjs/models/PaymentMethodEntity2.js +0 -75
  30. package/dist/mjs/models/PaymentServiceDetailsEntity.d.ts +0 -50
  31. package/dist/mjs/models/PaymentServiceDetailsEntity.js +0 -47
  32. package/dist/mjs/models/TransactionEntity1.d.ts +0 -241
  33. package/dist/mjs/models/TransactionEntity1.js +0 -143
@@ -5,7 +5,7 @@
5
5
  *
6
6
  */
7
7
  import * as runtime from '../runtime';
8
- import type { BuyerEntity, BuyersSearchEntity, CaptureTransactionDto, CreateBuyerDto, CreatePaymentMethodDto, CreateTransactionDto, MerchantEntity, PaymentMethodEntity, PaymentMethodsSearchEntity, RefundTransactionDto, TransactionEntity1, TransactionRefundEntity, TransactionRefundsSearchEntity, TransactionsSearchEntity, UpdateBuyerDto } from '../models';
8
+ import type { BuyerEntity, BuyersSearchEntity, CaptureTransactionDto, CreateBuyerDto, CreatePaymentMethodDto, CreateTransactionDto, MerchantEntity, PaymentMethodEntity, PaymentMethodsSearchEntity, RefundTransactionDto, TransactionEntity, TransactionRefundEntity, TransactionRefundsSearchEntity, TransactionsSearchEntity, UpdateBuyerDto } from '../models';
9
9
  export interface DeleteBuyerRequest {
10
10
  buyerId: string;
11
11
  }
@@ -90,7 +90,7 @@ export declare class ChannelPaymentsApi extends runtime.BaseAPI {
90
90
  * Attempts to capture an authorized transaction
91
91
  * Capture transaction
92
92
  */
93
- captureTransaction(requestParameters: CaptureTransactionDto): Promise<TransactionEntity1>;
93
+ captureTransaction(requestParameters: CaptureTransactionDto): Promise<TransactionEntity>;
94
94
  /**
95
95
  * Creates a new buyer.
96
96
  * Create buyer.
@@ -100,7 +100,7 @@ export declare class ChannelPaymentsApi extends runtime.BaseAPI {
100
100
  * Attempts to create a new transaction by specified intent for a given payment method
101
101
  * Create transaction
102
102
  */
103
- createTransaction(requestParameters: CreateTransactionDto): Promise<TransactionEntity1>;
103
+ createTransaction(requestParameters: CreateTransactionDto): Promise<TransactionEntity>;
104
104
  /**
105
105
  * Removes a buyer ID.
106
106
  * Remove buyer.
@@ -140,7 +140,7 @@ export declare class ChannelPaymentsApi extends runtime.BaseAPI {
140
140
  * Attempts to find a transaction by ID
141
141
  * Find transaction
142
142
  */
143
- getTransaction(requestParameters: GetTransactionRequest): Promise<TransactionEntity1>;
143
+ getTransaction(requestParameters: GetTransactionRequest): Promise<TransactionEntity>;
144
144
  /**
145
145
  * Attempts to refund a captured transaction
146
146
  * Refund a transaction
@@ -180,7 +180,7 @@ export declare class ChannelPaymentsApi extends runtime.BaseAPI {
180
180
  * Attempts to void an authorized transaction
181
181
  * Void a transaction
182
182
  */
183
- voidTransaction(requestParameters: VoidTransactionRequest): Promise<TransactionEntity1>;
183
+ voidTransaction(requestParameters: VoidTransactionRequest): Promise<TransactionEntity>;
184
184
  }
185
185
  /**
186
186
  * @export
@@ -7,7 +7,7 @@
7
7
  *
8
8
  */
9
9
  import * as runtime from '../runtime';
10
- import { BuyerEntityFromJSON, BuyersSearchEntityFromJSON, CaptureTransactionDtoToJSON, CreateBuyerDtoToJSON, CreatePaymentMethodDtoToJSON, CreateTransactionDtoToJSON, ErrorEntityFromJSON, MerchantEntityFromJSON, PaymentMethodEntityFromJSON, PaymentMethodsSearchEntityFromJSON, RefundTransactionDtoToJSON, TransactionEntity1FromJSON, TransactionRefundEntityFromJSON, TransactionRefundsSearchEntityFromJSON, TransactionsSearchEntityFromJSON, UpdateBuyerDtoToJSON, } from '../models';
10
+ import { BuyerEntityFromJSON, BuyersSearchEntityFromJSON, CaptureTransactionDtoToJSON, CreateBuyerDtoToJSON, CreatePaymentMethodDtoToJSON, CreateTransactionDtoToJSON, ErrorEntityFromJSON, MerchantEntityFromJSON, PaymentMethodEntityFromJSON, PaymentMethodsSearchEntityFromJSON, RefundTransactionDtoToJSON, TransactionEntityFromJSON, TransactionRefundEntityFromJSON, TransactionRefundsSearchEntityFromJSON, TransactionsSearchEntityFromJSON, UpdateBuyerDtoToJSON, } from '../models';
11
11
  /**
12
12
  *
13
13
  */
@@ -35,7 +35,7 @@ export class ChannelPaymentsApi extends runtime.BaseAPI {
35
35
  });
36
36
  let response;
37
37
  if (rawResponse.status === 201) {
38
- response = new runtime.JSONApiResponse(rawResponse, (jsonValue) => TransactionEntity1FromJSON(jsonValue));
38
+ response = new runtime.JSONApiResponse(rawResponse, (jsonValue) => TransactionEntityFromJSON(jsonValue));
39
39
  }
40
40
  if (rawResponse.status === 400) {
41
41
  const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
@@ -144,7 +144,7 @@ export class ChannelPaymentsApi extends runtime.BaseAPI {
144
144
  });
145
145
  let response;
146
146
  if (rawResponse.status === 201) {
147
- response = new runtime.JSONApiResponse(rawResponse, (jsonValue) => TransactionEntity1FromJSON(jsonValue));
147
+ response = new runtime.JSONApiResponse(rawResponse, (jsonValue) => TransactionEntityFromJSON(jsonValue));
148
148
  }
149
149
  if (rawResponse.status === 400) {
150
150
  const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
@@ -483,7 +483,7 @@ export class ChannelPaymentsApi extends runtime.BaseAPI {
483
483
  });
484
484
  let response;
485
485
  if (rawResponse.status === 200) {
486
- response = new runtime.JSONApiResponse(rawResponse, (jsonValue) => TransactionEntity1FromJSON(jsonValue));
486
+ response = new runtime.JSONApiResponse(rawResponse, (jsonValue) => TransactionEntityFromJSON(jsonValue));
487
487
  }
488
488
  if (rawResponse.status === 400) {
489
489
  const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
@@ -991,7 +991,7 @@ export class ChannelPaymentsApi extends runtime.BaseAPI {
991
991
  });
992
992
  let response;
993
993
  if (rawResponse.status === 201) {
994
- response = new runtime.JSONApiResponse(rawResponse, (jsonValue) => TransactionEntity1FromJSON(jsonValue));
994
+ response = new runtime.JSONApiResponse(rawResponse, (jsonValue) => TransactionEntityFromJSON(jsonValue));
995
995
  }
996
996
  if (rawResponse.status === 400) {
997
997
  const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
@@ -21,13 +21,13 @@ export interface PaymentMethodEntity1 {
21
21
  * @type {string}
22
22
  * @memberof PaymentMethodEntity1
23
23
  */
24
- paymentMethod: string;
24
+ method: string;
25
25
  /**
26
26
  *
27
27
  * @type {string}
28
28
  * @memberof PaymentMethodEntity1
29
29
  */
30
- issuedPaymentMethodId?: string;
30
+ externalPaymentMethodId?: string;
31
31
  /**
32
32
  *
33
33
  * @type {string}
@@ -70,14 +70,38 @@ export interface PaymentMethodEntity1 {
70
70
  * @memberof PaymentMethodEntity1
71
71
  */
72
72
  cardType?: PaymentMethodEntity1CardTypeEnum;
73
+ /**
74
+ *
75
+ * @type {string}
76
+ * @memberof PaymentMethodEntity1
77
+ */
78
+ accountName?: string;
79
+ /**
80
+ *
81
+ * @type {string}
82
+ * @memberof PaymentMethodEntity1
83
+ */
84
+ accountNumber?: string;
85
+ /**
86
+ *
87
+ * @type {string}
88
+ * @memberof PaymentMethodEntity1
89
+ */
90
+ accountType?: string;
91
+ /**
92
+ *
93
+ * @type {string}
94
+ * @memberof PaymentMethodEntity1
95
+ */
96
+ aBANumber?: string;
73
97
  }
74
98
  /**
75
99
  * @export
76
100
  */
77
101
  export declare const PaymentMethodEntity1CardTypeEnum: {
78
- readonly Credit: "credit";
79
- readonly Debit: "debit";
80
- readonly Prepaid: "prepaid";
102
+ readonly Credit: "CREDIT";
103
+ readonly Debit: "DEBIT";
104
+ readonly Prepaid: "PREPAID";
81
105
  };
82
106
  export type PaymentMethodEntity1CardTypeEnum = typeof PaymentMethodEntity1CardTypeEnum[keyof typeof PaymentMethodEntity1CardTypeEnum];
83
107
  /**
@@ -11,9 +11,9 @@ import { exists, removeNullUndefined } from '../runtime';
11
11
  * @export
12
12
  */
13
13
  export const PaymentMethodEntity1CardTypeEnum = {
14
- Credit: 'credit',
15
- Debit: 'debit',
16
- Prepaid: 'prepaid'
14
+ Credit: 'CREDIT',
15
+ Debit: 'DEBIT',
16
+ Prepaid: 'PREPAID'
17
17
  };
18
18
  /**
19
19
  * Check if a given object implements the PaymentMethodEntity1 interface.
@@ -21,7 +21,7 @@ export const PaymentMethodEntity1CardTypeEnum = {
21
21
  export function instanceOfPaymentMethodEntity1(value) {
22
22
  let isInstance = true;
23
23
  isInstance = isInstance && "paymentMethodId" in value;
24
- isInstance = isInstance && "paymentMethod" in value;
24
+ isInstance = isInstance && "method" in value;
25
25
  return isInstance;
26
26
  }
27
27
  export function PaymentMethodEntity1FromJSON(json) {
@@ -33,8 +33,8 @@ export function PaymentMethodEntity1FromJSONTyped(json, ignoreDiscriminator) {
33
33
  }
34
34
  const typed = {
35
35
  'paymentMethodId': json['paymentMethodId'],
36
- 'paymentMethod': json['paymentMethod'],
37
- 'issuedPaymentMethodId': !exists(json, 'issuedPaymentMethodId') ? undefined : json['issuedPaymentMethodId'],
36
+ 'method': json['method'],
37
+ 'externalPaymentMethodId': !exists(json, 'externalPaymentMethodId') ? undefined : json['externalPaymentMethodId'],
38
38
  'label': !exists(json, 'label') ? undefined : json['label'],
39
39
  'scheme': !exists(json, 'scheme') ? undefined : json['scheme'],
40
40
  'expirationDate': !exists(json, 'expirationDate') ? undefined : json['expirationDate'],
@@ -42,6 +42,10 @@ export function PaymentMethodEntity1FromJSONTyped(json, ignoreDiscriminator) {
42
42
  'country': !exists(json, 'country') ? undefined : json['country'],
43
43
  'bin': !exists(json, 'bin') ? undefined : json['bin'],
44
44
  'cardType': !exists(json, 'cardType') ? undefined : json['cardType'],
45
+ 'accountName': !exists(json, 'accountName') ? undefined : json['accountName'],
46
+ 'accountNumber': !exists(json, 'accountNumber') ? undefined : json['accountNumber'],
47
+ 'accountType': !exists(json, 'accountType') ? undefined : json['accountType'],
48
+ 'aBANumber': !exists(json, 'ABANumber') ? undefined : json['ABANumber'],
45
49
  };
46
50
  return removeNullUndefined(typed);
47
51
  }
@@ -54,8 +58,8 @@ export function PaymentMethodEntity1ToJSON(value) {
54
58
  }
55
59
  return {
56
60
  'paymentMethodId': value.paymentMethodId,
57
- 'paymentMethod': value.paymentMethod,
58
- 'issuedPaymentMethodId': value.issuedPaymentMethodId,
61
+ 'method': value.method,
62
+ 'externalPaymentMethodId': value.externalPaymentMethodId,
59
63
  'label': value.label,
60
64
  'scheme': value.scheme,
61
65
  'expirationDate': value.expirationDate,
@@ -63,5 +67,9 @@ export function PaymentMethodEntity1ToJSON(value) {
63
67
  'country': value.country,
64
68
  'bin': value.bin,
65
69
  'cardType': value.cardType,
70
+ 'accountName': value.accountName,
71
+ 'accountNumber': value.accountNumber,
72
+ 'accountType': value.accountType,
73
+ 'ABANumber': value.aBANumber,
66
74
  };
67
75
  }
@@ -5,7 +5,7 @@
5
5
  *
6
6
  */
7
7
  import type { PaymentMethodEntity1 } from './PaymentMethodEntity1';
8
- import type { PaymentServiceDetailsEntity } from './PaymentServiceDetailsEntity';
8
+ import type { PaymentsBuyerEntity } from './PaymentsBuyerEntity';
9
9
  /**
10
10
  *
11
11
  * @export
@@ -17,7 +17,7 @@ export interface TransactionEntity {
17
17
  * @type {string}
18
18
  * @memberof TransactionEntity
19
19
  */
20
- transactionRecordId: string;
20
+ transactionIntegrationId: string;
21
21
  /**
22
22
  *
23
23
  * @type {string}
@@ -29,19 +29,43 @@ export interface TransactionEntity {
29
29
  * @type {string}
30
30
  * @memberof TransactionEntity
31
31
  */
32
- status?: TransactionEntityStatusEnum;
32
+ merchantId: string;
33
33
  /**
34
34
  *
35
35
  * @type {string}
36
36
  * @memberof TransactionEntity
37
37
  */
38
- intent?: TransactionEntityIntentEnum;
38
+ status: TransactionEntityStatusEnum;
39
+ /**
40
+ *
41
+ * @type {string}
42
+ * @memberof TransactionEntity
43
+ */
44
+ intent: TransactionEntityIntentEnum;
45
+ /**
46
+ *
47
+ * @type {number}
48
+ * @memberof TransactionEntity
49
+ */
50
+ amount: number;
51
+ /**
52
+ *
53
+ * @type {number}
54
+ * @memberof TransactionEntity
55
+ */
56
+ netAmount: number;
39
57
  /**
40
58
  *
41
59
  * @type {number}
42
60
  * @memberof TransactionEntity
43
61
  */
44
- amount?: number;
62
+ fee: number;
63
+ /**
64
+ *
65
+ * @type {Array<string>}
66
+ * @memberof TransactionEntity
67
+ */
68
+ feeDetails?: Array<string>;
45
69
  /**
46
70
  *
47
71
  * @type {number}
@@ -74,28 +98,28 @@ export interface TransactionEntity {
74
98
  paymentMethod?: PaymentMethodEntity1;
75
99
  /**
76
100
  *
77
- * @type {string}
101
+ * @type {PaymentsBuyerEntity}
78
102
  * @memberof TransactionEntity
79
103
  */
80
- buyerId?: string;
104
+ buyer?: PaymentsBuyerEntity;
81
105
  /**
82
106
  *
83
- * @type {Date}
107
+ * @type {string}
84
108
  * @memberof TransactionEntity
85
109
  */
86
- transactionCreatedAt?: Date;
110
+ externalBuyerId?: string;
87
111
  /**
88
112
  *
89
113
  * @type {Date}
90
114
  * @memberof TransactionEntity
91
115
  */
92
- transactionUpdatedAt?: Date;
116
+ createdAt?: Date;
93
117
  /**
94
118
  *
95
- * @type {PaymentServiceDetailsEntity}
119
+ * @type {Date}
96
120
  * @memberof TransactionEntity
97
121
  */
98
- paymentServiceDetails?: PaymentServiceDetailsEntity;
122
+ updatedAt?: Date;
99
123
  /**
100
124
  *
101
125
  * @type {boolean}
@@ -113,7 +137,7 @@ export interface TransactionEntity {
113
137
  * @type {string}
114
138
  * @memberof TransactionEntity
115
139
  */
116
- rawResponse?: string;
140
+ rawResponseCode?: string;
117
141
  /**
118
142
  *
119
143
  * @type {string}
@@ -125,19 +149,13 @@ export interface TransactionEntity {
125
149
  * @type {string}
126
150
  * @memberof TransactionEntity
127
151
  */
128
- avsResponse?: string;
152
+ avsResponseCode?: string;
129
153
  /**
130
154
  *
131
155
  * @type {string}
132
156
  * @memberof TransactionEntity
133
157
  */
134
- cvvResponse?: string;
135
- /**
136
- *
137
- * @type {object}
138
- * @memberof TransactionEntity
139
- */
140
- metadata?: object;
158
+ cvvResponseCode?: string;
141
159
  /**
142
160
  *
143
161
  * @type {Date}
@@ -156,6 +174,24 @@ export interface TransactionEntity {
156
174
  * @memberof TransactionEntity
157
175
  */
158
176
  voidedAt?: Date;
177
+ /**
178
+ *
179
+ * @type {string}
180
+ * @memberof TransactionEntity
181
+ */
182
+ externalTransactionId?: string;
183
+ /**
184
+ *
185
+ * @type {string}
186
+ * @memberof TransactionEntity
187
+ */
188
+ buyerId?: string;
189
+ /**
190
+ *
191
+ * @type {string}
192
+ * @memberof TransactionEntity
193
+ */
194
+ sECCode?: string;
159
195
  }
160
196
  /**
161
197
  * @export
@@ -163,13 +199,18 @@ export interface TransactionEntity {
163
199
  export declare const TransactionEntityStatusEnum: {
164
200
  readonly Processing: "processing";
165
201
  readonly BuyerApprovalPending: "buyerApprovalPending";
166
- readonly AuthorizationSucceeded: "authorizationSucceeded";
202
+ readonly Authorized: "authorized";
167
203
  readonly AuthorizationFailed: "authorizationFailed";
168
- readonly AuthorizationDeclined: "authorizationDeclined";
204
+ readonly Declined: "declined";
169
205
  readonly CapturePending: "capturePending";
170
- readonly CaptureSucceeded: "captureSucceeded";
171
- readonly AuthorizationVoidPending: "authorizationVoidPending";
172
- readonly AuthorizationVoided: "authorizationVoided";
206
+ readonly Captured: "captured";
207
+ readonly VoidPending: "voidPending";
208
+ readonly Voided: "voided";
209
+ readonly Held: "held";
210
+ readonly Submitted: "submitted";
211
+ readonly Transmitted: "transmitted";
212
+ readonly Settled: "settled";
213
+ readonly Returned: "returned";
173
214
  };
174
215
  export type TransactionEntityStatusEnum = typeof TransactionEntityStatusEnum[keyof typeof TransactionEntityStatusEnum];
175
216
  /**
@@ -178,6 +219,8 @@ export type TransactionEntityStatusEnum = typeof TransactionEntityStatusEnum[key
178
219
  export declare const TransactionEntityIntentEnum: {
179
220
  readonly Capture: "capture";
180
221
  readonly Authorize: "authorize";
222
+ readonly Debit: "debit";
223
+ readonly Credit: "credit";
181
224
  };
182
225
  export type TransactionEntityIntentEnum = typeof TransactionEntityIntentEnum[keyof typeof TransactionEntityIntentEnum];
183
226
  /**
@@ -8,27 +8,34 @@
8
8
  */
9
9
  import { exists, removeNullUndefined } from '../runtime';
10
10
  import { PaymentMethodEntity1FromJSON, PaymentMethodEntity1ToJSON, } from './PaymentMethodEntity1';
11
- import { PaymentServiceDetailsEntityFromJSON, PaymentServiceDetailsEntityToJSON, } from './PaymentServiceDetailsEntity';
11
+ import { PaymentsBuyerEntityFromJSON, PaymentsBuyerEntityToJSON, } from './PaymentsBuyerEntity';
12
12
  /**
13
13
  * @export
14
14
  */
15
15
  export const TransactionEntityStatusEnum = {
16
16
  Processing: 'processing',
17
17
  BuyerApprovalPending: 'buyerApprovalPending',
18
- AuthorizationSucceeded: 'authorizationSucceeded',
18
+ Authorized: 'authorized',
19
19
  AuthorizationFailed: 'authorizationFailed',
20
- AuthorizationDeclined: 'authorizationDeclined',
20
+ Declined: 'declined',
21
21
  CapturePending: 'capturePending',
22
- CaptureSucceeded: 'captureSucceeded',
23
- AuthorizationVoidPending: 'authorizationVoidPending',
24
- AuthorizationVoided: 'authorizationVoided'
22
+ Captured: 'captured',
23
+ VoidPending: 'voidPending',
24
+ Voided: 'voided',
25
+ Held: 'held',
26
+ Submitted: 'submitted',
27
+ Transmitted: 'transmitted',
28
+ Settled: 'settled',
29
+ Returned: 'returned'
25
30
  };
26
31
  /**
27
32
  * @export
28
33
  */
29
34
  export const TransactionEntityIntentEnum = {
30
35
  Capture: 'capture',
31
- Authorize: 'authorize'
36
+ Authorize: 'authorize',
37
+ Debit: 'debit',
38
+ Credit: 'credit'
32
39
  };
33
40
  /**
34
41
  * @export
@@ -43,8 +50,14 @@ export const TransactionEntityCurrencyEnum = {
43
50
  */
44
51
  export function instanceOfTransactionEntity(value) {
45
52
  let isInstance = true;
46
- isInstance = isInstance && "transactionRecordId" in value;
53
+ isInstance = isInstance && "transactionIntegrationId" in value;
47
54
  isInstance = isInstance && "transactionId" in value;
55
+ isInstance = isInstance && "merchantId" in value;
56
+ isInstance = isInstance && "status" in value;
57
+ isInstance = isInstance && "intent" in value;
58
+ isInstance = isInstance && "amount" in value;
59
+ isInstance = isInstance && "netAmount" in value;
60
+ isInstance = isInstance && "fee" in value;
48
61
  return isInstance;
49
62
  }
50
63
  export function TransactionEntityFromJSON(json) {
@@ -55,30 +68,36 @@ export function TransactionEntityFromJSONTyped(json, ignoreDiscriminator) {
55
68
  return json;
56
69
  }
57
70
  const typed = {
58
- 'transactionRecordId': json['transactionRecordId'],
71
+ 'transactionIntegrationId': json['transactionIntegrationId'],
59
72
  'transactionId': json['transactionId'],
60
- 'status': !exists(json, 'status') ? undefined : json['status'],
61
- 'intent': !exists(json, 'intent') ? undefined : json['intent'],
62
- 'amount': !exists(json, 'amount') ? undefined : json['amount'],
73
+ 'merchantId': json['merchantId'],
74
+ 'status': json['status'],
75
+ 'intent': json['intent'],
76
+ 'amount': json['amount'],
77
+ 'netAmount': json['netAmount'],
78
+ 'fee': json['fee'],
79
+ 'feeDetails': !exists(json, 'feeDetails') ? undefined : json['feeDetails'],
63
80
  'capturedAmount': !exists(json, 'capturedAmount') ? undefined : json['capturedAmount'],
64
81
  'refundedAmount': !exists(json, 'refundedAmount') ? undefined : json['refundedAmount'],
65
82
  'currency': !exists(json, 'currency') ? undefined : json['currency'],
66
83
  'country': !exists(json, 'country') ? undefined : json['country'],
67
84
  'paymentMethod': !exists(json, 'paymentMethod') ? undefined : PaymentMethodEntity1FromJSON(json['paymentMethod']),
68
- 'buyerId': !exists(json, 'buyerId') ? undefined : json['buyerId'],
69
- 'transactionCreatedAt': !exists(json, 'transactionCreatedAt') ? undefined : (new Date(json['transactionCreatedAt'])),
70
- 'transactionUpdatedAt': !exists(json, 'transactionUpdatedAt') ? undefined : (new Date(json['transactionUpdatedAt'])),
71
- 'paymentServiceDetails': !exists(json, 'paymentServiceDetails') ? undefined : PaymentServiceDetailsEntityFromJSON(json['paymentServiceDetails']),
85
+ 'buyer': !exists(json, 'buyer') ? undefined : PaymentsBuyerEntityFromJSON(json['buyer']),
86
+ 'externalBuyerId': !exists(json, 'externalBuyerId') ? undefined : json['externalBuyerId'],
87
+ 'createdAt': !exists(json, 'createdAt') ? undefined : (new Date(json['createdAt'])),
88
+ 'updatedAt': !exists(json, 'updatedAt') ? undefined : (new Date(json['updatedAt'])),
72
89
  'merchantInitiated': !exists(json, 'merchantInitiated') ? undefined : json['merchantInitiated'],
73
90
  'schemeTransactionId': !exists(json, 'schemeTransactionId') ? undefined : json['schemeTransactionId'],
74
- 'rawResponse': !exists(json, 'rawResponse') ? undefined : json['rawResponse'],
91
+ 'rawResponseCode': !exists(json, 'rawResponseCode') ? undefined : json['rawResponseCode'],
75
92
  'rawResponseDescription': !exists(json, 'rawResponseDescription') ? undefined : json['rawResponseDescription'],
76
- 'avsResponse': !exists(json, 'avsResponse') ? undefined : json['avsResponse'],
77
- 'cvvResponse': !exists(json, 'cvvResponse') ? undefined : json['cvvResponse'],
78
- 'metadata': !exists(json, 'metadata') ? undefined : json['metadata'],
93
+ 'avsResponseCode': !exists(json, 'avsResponseCode') ? undefined : json['avsResponseCode'],
94
+ 'cvvResponseCode': !exists(json, 'cvvResponseCode') ? undefined : json['cvvResponseCode'],
79
95
  'capturedAt': !exists(json, 'capturedAt') ? undefined : (new Date(json['capturedAt'])),
80
96
  'authorizedAt': !exists(json, 'authorizedAt') ? undefined : (new Date(json['authorizedAt'])),
81
97
  'voidedAt': !exists(json, 'voidedAt') ? undefined : (new Date(json['voidedAt'])),
98
+ 'externalTransactionId': !exists(json, 'externalTransactionId') ? undefined : json['externalTransactionId'],
99
+ 'buyerId': !exists(json, 'buyerId') ? undefined : json['buyerId'],
100
+ 'sECCode': !exists(json, 'SECCode') ? undefined : json['SECCode'],
82
101
  };
83
102
  return removeNullUndefined(typed);
84
103
  }
@@ -90,29 +109,35 @@ export function TransactionEntityToJSON(value) {
90
109
  return null;
91
110
  }
92
111
  return {
93
- 'transactionRecordId': value.transactionRecordId,
112
+ 'transactionIntegrationId': value.transactionIntegrationId,
94
113
  'transactionId': value.transactionId,
114
+ 'merchantId': value.merchantId,
95
115
  'status': value.status,
96
116
  'intent': value.intent,
97
117
  'amount': value.amount,
118
+ 'netAmount': value.netAmount,
119
+ 'fee': value.fee,
120
+ 'feeDetails': value.feeDetails,
98
121
  'capturedAmount': value.capturedAmount,
99
122
  'refundedAmount': value.refundedAmount,
100
123
  'currency': value.currency,
101
124
  'country': value.country,
102
125
  'paymentMethod': PaymentMethodEntity1ToJSON(value.paymentMethod),
103
- 'buyerId': value.buyerId,
104
- 'transactionCreatedAt': value.transactionCreatedAt === undefined ? undefined : (value.transactionCreatedAt.toISOString()),
105
- 'transactionUpdatedAt': value.transactionUpdatedAt === undefined ? undefined : (value.transactionUpdatedAt.toISOString()),
106
- 'paymentServiceDetails': PaymentServiceDetailsEntityToJSON(value.paymentServiceDetails),
126
+ 'buyer': PaymentsBuyerEntityToJSON(value.buyer),
127
+ 'externalBuyerId': value.externalBuyerId,
128
+ 'createdAt': value.createdAt === undefined ? undefined : (value.createdAt.toISOString()),
129
+ 'updatedAt': value.updatedAt === undefined ? undefined : (value.updatedAt.toISOString()),
107
130
  'merchantInitiated': value.merchantInitiated,
108
131
  'schemeTransactionId': value.schemeTransactionId,
109
- 'rawResponse': value.rawResponse,
132
+ 'rawResponseCode': value.rawResponseCode,
110
133
  'rawResponseDescription': value.rawResponseDescription,
111
- 'avsResponse': value.avsResponse,
112
- 'cvvResponse': value.cvvResponse,
113
- 'metadata': value.metadata,
134
+ 'avsResponseCode': value.avsResponseCode,
135
+ 'cvvResponseCode': value.cvvResponseCode,
114
136
  'capturedAt': value.capturedAt === undefined ? undefined : (value.capturedAt.toISOString()),
115
137
  'authorizedAt': value.authorizedAt === undefined ? undefined : (value.authorizedAt.toISOString()),
116
138
  'voidedAt': value.voidedAt === undefined ? undefined : (value.voidedAt.toISOString()),
139
+ 'externalTransactionId': value.externalTransactionId,
140
+ 'buyerId': value.buyerId,
141
+ 'SECCode': value.sECCode,
117
142
  };
118
143
  }
@@ -4,7 +4,7 @@
4
4
  * NOTE: This class is auto generated. Do not edit the class manually.
5
5
  *
6
6
  */
7
- import type { TransactionEntity1 } from './TransactionEntity1';
7
+ import type { TransactionEntity } from './TransactionEntity';
8
8
  /**
9
9
  *
10
10
  * @export
@@ -19,10 +19,10 @@ export interface TransactionsSearchEntity {
19
19
  prevCursor: string;
20
20
  /**
21
21
  * The list of queried transactions
22
- * @type {Array<TransactionEntity1>}
22
+ * @type {Array<TransactionEntity>}
23
23
  * @memberof TransactionsSearchEntity
24
24
  */
25
- transactions: Array<TransactionEntity1>;
25
+ transactions: Array<TransactionEntity>;
26
26
  /**
27
27
  * The number of records returned
28
28
  * @type {number}
@@ -7,7 +7,7 @@
7
7
  *
8
8
  */
9
9
  import { exists, removeNullUndefined } from '../runtime';
10
- import { TransactionEntity1FromJSON, TransactionEntity1ToJSON, } from './TransactionEntity1';
10
+ import { TransactionEntityFromJSON, TransactionEntityToJSON, } from './TransactionEntity';
11
11
  /**
12
12
  * Check if a given object implements the TransactionsSearchEntity interface.
13
13
  */
@@ -27,7 +27,7 @@ export function TransactionsSearchEntityFromJSONTyped(json, ignoreDiscriminator)
27
27
  }
28
28
  const typed = {
29
29
  'prevCursor': json['prevCursor'],
30
- 'transactions': (json['transactions'].map(TransactionEntity1FromJSON)),
30
+ 'transactions': (json['transactions'].map(TransactionEntityFromJSON)),
31
31
  'limit': json['limit'],
32
32
  'nextCursor': !exists(json, 'nextCursor') ? undefined : json['nextCursor'],
33
33
  'page': !exists(json, 'page') ? undefined : json['page'],
@@ -43,7 +43,7 @@ export function TransactionsSearchEntityToJSON(value) {
43
43
  }
44
44
  return {
45
45
  'prevCursor': value.prevCursor,
46
- 'transactions': (value.transactions.map(TransactionEntity1ToJSON)),
46
+ 'transactions': (value.transactions.map(TransactionEntityToJSON)),
47
47
  'limit': value.limit,
48
48
  'nextCursor': value.nextCursor,
49
49
  'page': value.page,
@@ -55,11 +55,9 @@ export * from './MetadataRuleConditionEntity';
55
55
  export * from './PaymentMethodDto';
56
56
  export * from './PaymentMethodEntity';
57
57
  export * from './PaymentMethodEntity1';
58
- export * from './PaymentMethodEntity2';
59
58
  export * from './PaymentMethodEntityBuyer';
60
59
  export * from './PaymentMethodEntityCardDetails';
61
60
  export * from './PaymentMethodsSearchEntity';
62
- export * from './PaymentServiceDetailsEntity';
63
61
  export * from './PaymentsBuyerEntity';
64
62
  export * from './RefundTransactionDto';
65
63
  export * from './RuleConditionsEntity';
@@ -67,7 +65,6 @@ export * from './RuleConditionsEntityAmount';
67
65
  export * from './RuleConditionsEntityCfee';
68
66
  export * from './RuleConnectorsEntity';
69
67
  export * from './TransactionEntity';
70
- export * from './TransactionEntity1';
71
68
  export * from './TransactionRefundEntity';
72
69
  export * from './TransactionRefundsSearchEntity';
73
70
  export * from './TransactionsSearchEntity';
@@ -57,11 +57,9 @@ export * from './MetadataRuleConditionEntity';
57
57
  export * from './PaymentMethodDto';
58
58
  export * from './PaymentMethodEntity';
59
59
  export * from './PaymentMethodEntity1';
60
- export * from './PaymentMethodEntity2';
61
60
  export * from './PaymentMethodEntityBuyer';
62
61
  export * from './PaymentMethodEntityCardDetails';
63
62
  export * from './PaymentMethodsSearchEntity';
64
- export * from './PaymentServiceDetailsEntity';
65
63
  export * from './PaymentsBuyerEntity';
66
64
  export * from './RefundTransactionDto';
67
65
  export * from './RuleConditionsEntity';
@@ -69,7 +67,6 @@ export * from './RuleConditionsEntityAmount';
69
67
  export * from './RuleConditionsEntityCfee';
70
68
  export * from './RuleConnectorsEntity';
71
69
  export * from './TransactionEntity';
72
- export * from './TransactionEntity1';
73
70
  export * from './TransactionRefundEntity';
74
71
  export * from './TransactionRefundsSearchEntity';
75
72
  export * from './TransactionsSearchEntity';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@channelpayments/node-sdk",
3
3
  "description": "Channel Payments nodejs sdk",
4
- "version": "1.48.0",
4
+ "version": "1.50.0",
5
5
  "author": "Channel Payments",
6
6
  "license": "ISC",
7
7
  "main": "dist/cjs/index.js",