@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
@@ -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
@@ -71,7 +71,7 @@ class ChannelPaymentsApi extends runtime.BaseAPI {
71
71
  });
72
72
  let response;
73
73
  if (rawResponse.status === 201) {
74
- response = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.TransactionEntity1FromJSON)(jsonValue));
74
+ response = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.TransactionEntityFromJSON)(jsonValue));
75
75
  }
76
76
  if (rawResponse.status === 400) {
77
77
  const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
@@ -184,7 +184,7 @@ class ChannelPaymentsApi extends runtime.BaseAPI {
184
184
  });
185
185
  let response;
186
186
  if (rawResponse.status === 201) {
187
- response = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.TransactionEntity1FromJSON)(jsonValue));
187
+ response = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.TransactionEntityFromJSON)(jsonValue));
188
188
  }
189
189
  if (rawResponse.status === 400) {
190
190
  const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
@@ -539,7 +539,7 @@ class ChannelPaymentsApi extends runtime.BaseAPI {
539
539
  });
540
540
  let response;
541
541
  if (rawResponse.status === 200) {
542
- response = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.TransactionEntity1FromJSON)(jsonValue));
542
+ response = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.TransactionEntityFromJSON)(jsonValue));
543
543
  }
544
544
  if (rawResponse.status === 400) {
545
545
  const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
@@ -1063,7 +1063,7 @@ class ChannelPaymentsApi extends runtime.BaseAPI {
1063
1063
  });
1064
1064
  let response;
1065
1065
  if (rawResponse.status === 201) {
1066
- response = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.TransactionEntity1FromJSON)(jsonValue));
1066
+ response = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.TransactionEntityFromJSON)(jsonValue));
1067
1067
  }
1068
1068
  if (rawResponse.status === 400) {
1069
1069
  const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
@@ -0,0 +1,38 @@
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 CreateFeatureDto
11
+ */
12
+ export interface CreateFeatureDto {
13
+ /**
14
+ *
15
+ * @type {string}
16
+ * @memberof CreateFeatureDto
17
+ */
18
+ name: string;
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof CreateFeatureDto
23
+ */
24
+ description: string;
25
+ /**
26
+ *
27
+ * @type {boolean}
28
+ * @memberof CreateFeatureDto
29
+ */
30
+ enabled: boolean;
31
+ }
32
+ /**
33
+ * Check if a given object implements the CreateFeatureDto interface.
34
+ */
35
+ export declare function instanceOfCreateFeatureDto(value: object): boolean;
36
+ export declare function CreateFeatureDtoFromJSON(json: any): CreateFeatureDto;
37
+ export declare function CreateFeatureDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateFeatureDto;
38
+ export declare function CreateFeatureDtoToJSON(value?: CreateFeatureDto | null): any;
@@ -0,0 +1,53 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Channel Payments API
6
+ *
7
+ * NOTE: This class is auto generated. Do not edit the class manually.
8
+ *
9
+ */
10
+ Object.defineProperty(exports, "__esModule", { value: true });
11
+ exports.CreateFeatureDtoToJSON = exports.CreateFeatureDtoFromJSONTyped = exports.CreateFeatureDtoFromJSON = exports.instanceOfCreateFeatureDto = void 0;
12
+ const runtime_1 = require("../runtime");
13
+ /**
14
+ * Check if a given object implements the CreateFeatureDto interface.
15
+ */
16
+ function instanceOfCreateFeatureDto(value) {
17
+ let isInstance = true;
18
+ isInstance = isInstance && "name" in value;
19
+ isInstance = isInstance && "description" in value;
20
+ isInstance = isInstance && "enabled" in value;
21
+ return isInstance;
22
+ }
23
+ exports.instanceOfCreateFeatureDto = instanceOfCreateFeatureDto;
24
+ function CreateFeatureDtoFromJSON(json) {
25
+ return CreateFeatureDtoFromJSONTyped(json, false);
26
+ }
27
+ exports.CreateFeatureDtoFromJSON = CreateFeatureDtoFromJSON;
28
+ function CreateFeatureDtoFromJSONTyped(json, ignoreDiscriminator) {
29
+ if ((json === undefined) || (json === null)) {
30
+ return json;
31
+ }
32
+ const typed = {
33
+ 'name': json['name'],
34
+ 'description': json['description'],
35
+ 'enabled': json['enabled'],
36
+ };
37
+ return (0, runtime_1.removeNullUndefined)(typed);
38
+ }
39
+ exports.CreateFeatureDtoFromJSONTyped = CreateFeatureDtoFromJSONTyped;
40
+ function CreateFeatureDtoToJSON(value) {
41
+ if (value === undefined) {
42
+ return undefined;
43
+ }
44
+ if (value === null) {
45
+ return null;
46
+ }
47
+ return {
48
+ 'name': value.name,
49
+ 'description': value.description,
50
+ 'enabled': value.enabled,
51
+ };
52
+ }
53
+ exports.CreateFeatureDtoToJSON = CreateFeatureDtoToJSON;
@@ -0,0 +1,56 @@
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 FeatureEntity
11
+ */
12
+ export interface FeatureEntity {
13
+ /**
14
+ *
15
+ * @type {string}
16
+ * @memberof FeatureEntity
17
+ */
18
+ featureId: string;
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof FeatureEntity
23
+ */
24
+ name: string;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof FeatureEntity
29
+ */
30
+ description: string;
31
+ /**
32
+ *
33
+ * @type {boolean}
34
+ * @memberof FeatureEntity
35
+ */
36
+ enabled: boolean;
37
+ /**
38
+ *
39
+ * @type {Date}
40
+ * @memberof FeatureEntity
41
+ */
42
+ createdAt: Date;
43
+ /**
44
+ *
45
+ * @type {Date}
46
+ * @memberof FeatureEntity
47
+ */
48
+ updatedAt: Date;
49
+ }
50
+ /**
51
+ * Check if a given object implements the FeatureEntity interface.
52
+ */
53
+ export declare function instanceOfFeatureEntity(value: object): boolean;
54
+ export declare function FeatureEntityFromJSON(json: any): FeatureEntity;
55
+ export declare function FeatureEntityFromJSONTyped(json: any, ignoreDiscriminator: boolean): FeatureEntity;
56
+ export declare function FeatureEntityToJSON(value?: FeatureEntity | null): any;
@@ -0,0 +1,62 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Channel Payments API
6
+ *
7
+ * NOTE: This class is auto generated. Do not edit the class manually.
8
+ *
9
+ */
10
+ Object.defineProperty(exports, "__esModule", { value: true });
11
+ exports.FeatureEntityToJSON = exports.FeatureEntityFromJSONTyped = exports.FeatureEntityFromJSON = exports.instanceOfFeatureEntity = void 0;
12
+ const runtime_1 = require("../runtime");
13
+ /**
14
+ * Check if a given object implements the FeatureEntity interface.
15
+ */
16
+ function instanceOfFeatureEntity(value) {
17
+ let isInstance = true;
18
+ isInstance = isInstance && "featureId" in value;
19
+ isInstance = isInstance && "name" in value;
20
+ isInstance = isInstance && "description" in value;
21
+ isInstance = isInstance && "enabled" in value;
22
+ isInstance = isInstance && "createdAt" in value;
23
+ isInstance = isInstance && "updatedAt" in value;
24
+ return isInstance;
25
+ }
26
+ exports.instanceOfFeatureEntity = instanceOfFeatureEntity;
27
+ function FeatureEntityFromJSON(json) {
28
+ return FeatureEntityFromJSONTyped(json, false);
29
+ }
30
+ exports.FeatureEntityFromJSON = FeatureEntityFromJSON;
31
+ function FeatureEntityFromJSONTyped(json, ignoreDiscriminator) {
32
+ if ((json === undefined) || (json === null)) {
33
+ return json;
34
+ }
35
+ const typed = {
36
+ 'featureId': json['featureId'],
37
+ 'name': json['name'],
38
+ 'description': json['description'],
39
+ 'enabled': json['enabled'],
40
+ 'createdAt': (new Date(json['createdAt'])),
41
+ 'updatedAt': (new Date(json['updatedAt'])),
42
+ };
43
+ return (0, runtime_1.removeNullUndefined)(typed);
44
+ }
45
+ exports.FeatureEntityFromJSONTyped = FeatureEntityFromJSONTyped;
46
+ function FeatureEntityToJSON(value) {
47
+ if (value === undefined) {
48
+ return undefined;
49
+ }
50
+ if (value === null) {
51
+ return null;
52
+ }
53
+ return {
54
+ 'featureId': value.featureId,
55
+ 'name': value.name,
56
+ 'description': value.description,
57
+ 'enabled': value.enabled,
58
+ 'createdAt': (value.createdAt.toISOString()),
59
+ 'updatedAt': (value.updatedAt.toISOString()),
60
+ };
61
+ }
62
+ exports.FeatureEntityToJSON = FeatureEntityToJSON;
@@ -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
  /**
@@ -14,9 +14,9 @@ const runtime_1 = require("../runtime");
14
14
  * @export
15
15
  */
16
16
  exports.PaymentMethodEntity1CardTypeEnum = {
17
- Credit: 'credit',
18
- Debit: 'debit',
19
- Prepaid: 'prepaid'
17
+ Credit: 'CREDIT',
18
+ Debit: 'DEBIT',
19
+ Prepaid: 'PREPAID'
20
20
  };
21
21
  /**
22
22
  * Check if a given object implements the PaymentMethodEntity1 interface.
@@ -24,7 +24,7 @@ exports.PaymentMethodEntity1CardTypeEnum = {
24
24
  function instanceOfPaymentMethodEntity1(value) {
25
25
  let isInstance = true;
26
26
  isInstance = isInstance && "paymentMethodId" in value;
27
- isInstance = isInstance && "paymentMethod" in value;
27
+ isInstance = isInstance && "method" in value;
28
28
  return isInstance;
29
29
  }
30
30
  exports.instanceOfPaymentMethodEntity1 = instanceOfPaymentMethodEntity1;
@@ -38,8 +38,8 @@ function PaymentMethodEntity1FromJSONTyped(json, ignoreDiscriminator) {
38
38
  }
39
39
  const typed = {
40
40
  'paymentMethodId': json['paymentMethodId'],
41
- 'paymentMethod': json['paymentMethod'],
42
- 'issuedPaymentMethodId': !(0, runtime_1.exists)(json, 'issuedPaymentMethodId') ? undefined : json['issuedPaymentMethodId'],
41
+ 'method': json['method'],
42
+ 'externalPaymentMethodId': !(0, runtime_1.exists)(json, 'externalPaymentMethodId') ? undefined : json['externalPaymentMethodId'],
43
43
  'label': !(0, runtime_1.exists)(json, 'label') ? undefined : json['label'],
44
44
  'scheme': !(0, runtime_1.exists)(json, 'scheme') ? undefined : json['scheme'],
45
45
  'expirationDate': !(0, runtime_1.exists)(json, 'expirationDate') ? undefined : json['expirationDate'],
@@ -47,6 +47,10 @@ function PaymentMethodEntity1FromJSONTyped(json, ignoreDiscriminator) {
47
47
  'country': !(0, runtime_1.exists)(json, 'country') ? undefined : json['country'],
48
48
  'bin': !(0, runtime_1.exists)(json, 'bin') ? undefined : json['bin'],
49
49
  'cardType': !(0, runtime_1.exists)(json, 'cardType') ? undefined : json['cardType'],
50
+ 'accountName': !(0, runtime_1.exists)(json, 'accountName') ? undefined : json['accountName'],
51
+ 'accountNumber': !(0, runtime_1.exists)(json, 'accountNumber') ? undefined : json['accountNumber'],
52
+ 'accountType': !(0, runtime_1.exists)(json, 'accountType') ? undefined : json['accountType'],
53
+ 'aBANumber': !(0, runtime_1.exists)(json, 'ABANumber') ? undefined : json['ABANumber'],
50
54
  };
51
55
  return (0, runtime_1.removeNullUndefined)(typed);
52
56
  }
@@ -60,8 +64,8 @@ function PaymentMethodEntity1ToJSON(value) {
60
64
  }
61
65
  return {
62
66
  'paymentMethodId': value.paymentMethodId,
63
- 'paymentMethod': value.paymentMethod,
64
- 'issuedPaymentMethodId': value.issuedPaymentMethodId,
67
+ 'method': value.method,
68
+ 'externalPaymentMethodId': value.externalPaymentMethodId,
65
69
  'label': value.label,
66
70
  'scheme': value.scheme,
67
71
  'expirationDate': value.expirationDate,
@@ -69,6 +73,10 @@ function PaymentMethodEntity1ToJSON(value) {
69
73
  'country': value.country,
70
74
  'bin': value.bin,
71
75
  'cardType': value.cardType,
76
+ 'accountName': value.accountName,
77
+ 'accountNumber': value.accountNumber,
78
+ 'accountType': value.accountType,
79
+ 'ABANumber': value.aBANumber,
72
80
  };
73
81
  }
74
82
  exports.PaymentMethodEntity1ToJSON = PaymentMethodEntity1ToJSON;
@@ -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
  /**