@channelpayments/node-sdk 1.49.0 → 1.51.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 (45) 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/CreateFeatureDto.d.ts +38 -0
  4. package/dist/cjs/models/CreateFeatureDto.js +53 -0
  5. package/dist/cjs/models/FeatureEntity.d.ts +56 -0
  6. package/dist/cjs/models/FeatureEntity.js +62 -0
  7. package/dist/cjs/models/PaymentMethodEntity1.d.ts +29 -5
  8. package/dist/cjs/models/PaymentMethodEntity1.js +16 -8
  9. package/dist/cjs/models/TransactionEntity.d.ts +69 -26
  10. package/dist/cjs/models/TransactionEntity.js +54 -29
  11. package/dist/cjs/models/TransactionsSearchEntity.d.ts +3 -3
  12. package/dist/cjs/models/TransactionsSearchEntity.js +3 -3
  13. package/dist/cjs/models/UpdateFeatureDto.d.ts +44 -0
  14. package/dist/cjs/models/UpdateFeatureDto.js +53 -0
  15. package/dist/cjs/models/index.d.ts +3 -3
  16. package/dist/cjs/models/index.js +3 -3
  17. package/dist/mjs/apis/ChannelPaymentsApi.d.ts +5 -5
  18. package/dist/mjs/apis/ChannelPaymentsApi.js +5 -5
  19. package/dist/mjs/models/CreateFeatureDto.d.ts +38 -0
  20. package/dist/mjs/models/CreateFeatureDto.js +46 -0
  21. package/dist/mjs/models/FeatureEntity.d.ts +56 -0
  22. package/dist/mjs/models/FeatureEntity.js +55 -0
  23. package/dist/mjs/models/PaymentMethodEntity1.d.ts +29 -5
  24. package/dist/mjs/models/PaymentMethodEntity1.js +16 -8
  25. package/dist/mjs/models/TransactionEntity.d.ts +69 -26
  26. package/dist/mjs/models/TransactionEntity.js +54 -29
  27. package/dist/mjs/models/TransactionsSearchEntity.d.ts +3 -3
  28. package/dist/mjs/models/TransactionsSearchEntity.js +3 -3
  29. package/dist/mjs/models/UpdateFeatureDto.d.ts +44 -0
  30. package/dist/mjs/models/UpdateFeatureDto.js +46 -0
  31. package/dist/mjs/models/index.d.ts +3 -3
  32. package/dist/mjs/models/index.js +3 -3
  33. package/package.json +1 -1
  34. package/dist/cjs/models/PaymentMethodEntity2.d.ts +0 -113
  35. package/dist/cjs/models/PaymentMethodEntity2.js +0 -82
  36. package/dist/cjs/models/PaymentServiceDetailsEntity.d.ts +0 -50
  37. package/dist/cjs/models/PaymentServiceDetailsEntity.js +0 -54
  38. package/dist/cjs/models/TransactionEntity1.d.ts +0 -241
  39. package/dist/cjs/models/TransactionEntity1.js +0 -150
  40. package/dist/mjs/models/PaymentMethodEntity2.d.ts +0 -113
  41. package/dist/mjs/models/PaymentMethodEntity2.js +0 -75
  42. package/dist/mjs/models/PaymentServiceDetailsEntity.d.ts +0 -50
  43. package/dist/mjs/models/PaymentServiceDetailsEntity.js +0 -47
  44. package/dist/mjs/models/TransactionEntity1.d.ts +0 -241
  45. package/dist/mjs/models/TransactionEntity1.js +0 -143
@@ -0,0 +1,55 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Channel Payments API
5
+ *
6
+ * NOTE: This class is auto generated. Do not edit the class manually.
7
+ *
8
+ */
9
+ import { removeNullUndefined } from '../runtime';
10
+ /**
11
+ * Check if a given object implements the FeatureEntity interface.
12
+ */
13
+ export function instanceOfFeatureEntity(value) {
14
+ let isInstance = true;
15
+ isInstance = isInstance && "featureId" in value;
16
+ isInstance = isInstance && "name" in value;
17
+ isInstance = isInstance && "description" in value;
18
+ isInstance = isInstance && "enabled" in value;
19
+ isInstance = isInstance && "createdAt" in value;
20
+ isInstance = isInstance && "updatedAt" in value;
21
+ return isInstance;
22
+ }
23
+ export function FeatureEntityFromJSON(json) {
24
+ return FeatureEntityFromJSONTyped(json, false);
25
+ }
26
+ export function FeatureEntityFromJSONTyped(json, ignoreDiscriminator) {
27
+ if ((json === undefined) || (json === null)) {
28
+ return json;
29
+ }
30
+ const typed = {
31
+ 'featureId': json['featureId'],
32
+ 'name': json['name'],
33
+ 'description': json['description'],
34
+ 'enabled': json['enabled'],
35
+ 'createdAt': (new Date(json['createdAt'])),
36
+ 'updatedAt': (new Date(json['updatedAt'])),
37
+ };
38
+ return removeNullUndefined(typed);
39
+ }
40
+ export function FeatureEntityToJSON(value) {
41
+ if (value === undefined) {
42
+ return undefined;
43
+ }
44
+ if (value === null) {
45
+ return null;
46
+ }
47
+ return {
48
+ 'featureId': value.featureId,
49
+ 'name': value.name,
50
+ 'description': value.description,
51
+ 'enabled': value.enabled,
52
+ 'createdAt': (value.createdAt.toISOString()),
53
+ 'updatedAt': (value.updatedAt.toISOString()),
54
+ };
55
+ }
@@ -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,
@@ -0,0 +1,44 @@
1
+ /**
2
+ * Channel Payments API
3
+ *
4
+ * NOTE: This class is auto generated. Do not edit the class manually.
5
+ *
6
+ */
7
+ /**
8
+ *
9
+ * @export
10
+ * @interface UpdateFeatureDto
11
+ */
12
+ export interface UpdateFeatureDto {
13
+ /**
14
+ *
15
+ * @type {string}
16
+ * @memberof UpdateFeatureDto
17
+ */
18
+ featureId: string;
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof UpdateFeatureDto
23
+ */
24
+ name?: string;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof UpdateFeatureDto
29
+ */
30
+ description?: string;
31
+ /**
32
+ *
33
+ * @type {boolean}
34
+ * @memberof UpdateFeatureDto
35
+ */
36
+ enabled?: boolean;
37
+ }
38
+ /**
39
+ * Check if a given object implements the UpdateFeatureDto interface.
40
+ */
41
+ export declare function instanceOfUpdateFeatureDto(value: object): boolean;
42
+ export declare function UpdateFeatureDtoFromJSON(json: any): UpdateFeatureDto;
43
+ export declare function UpdateFeatureDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateFeatureDto;
44
+ export declare function UpdateFeatureDtoToJSON(value?: UpdateFeatureDto | null): any;
@@ -0,0 +1,46 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Channel Payments API
5
+ *
6
+ * NOTE: This class is auto generated. Do not edit the class manually.
7
+ *
8
+ */
9
+ import { exists, removeNullUndefined } from '../runtime';
10
+ /**
11
+ * Check if a given object implements the UpdateFeatureDto interface.
12
+ */
13
+ export function instanceOfUpdateFeatureDto(value) {
14
+ let isInstance = true;
15
+ isInstance = isInstance && "featureId" in value;
16
+ return isInstance;
17
+ }
18
+ export function UpdateFeatureDtoFromJSON(json) {
19
+ return UpdateFeatureDtoFromJSONTyped(json, false);
20
+ }
21
+ export function UpdateFeatureDtoFromJSONTyped(json, ignoreDiscriminator) {
22
+ if ((json === undefined) || (json === null)) {
23
+ return json;
24
+ }
25
+ const typed = {
26
+ 'featureId': json['featureId'],
27
+ 'name': !exists(json, 'name') ? undefined : json['name'],
28
+ 'description': !exists(json, 'description') ? undefined : json['description'],
29
+ 'enabled': !exists(json, 'enabled') ? undefined : json['enabled'],
30
+ };
31
+ return removeNullUndefined(typed);
32
+ }
33
+ export function UpdateFeatureDtoToJSON(value) {
34
+ if (value === undefined) {
35
+ return undefined;
36
+ }
37
+ if (value === null) {
38
+ return null;
39
+ }
40
+ return {
41
+ 'featureId': value.featureId,
42
+ 'name': value.name,
43
+ 'description': value.description,
44
+ 'enabled': value.enabled,
45
+ };
46
+ }