@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
@@ -11,27 +11,34 @@ Object.defineProperty(exports, "__esModule", { value: true });
11
11
  exports.TransactionEntityToJSON = exports.TransactionEntityFromJSONTyped = exports.TransactionEntityFromJSON = exports.instanceOfTransactionEntity = exports.TransactionEntityCurrencyEnum = exports.TransactionEntityIntentEnum = exports.TransactionEntityStatusEnum = void 0;
12
12
  const runtime_1 = require("../runtime");
13
13
  const PaymentMethodEntity1_1 = require("./PaymentMethodEntity1");
14
- const PaymentServiceDetailsEntity_1 = require("./PaymentServiceDetailsEntity");
14
+ const PaymentsBuyerEntity_1 = require("./PaymentsBuyerEntity");
15
15
  /**
16
16
  * @export
17
17
  */
18
18
  exports.TransactionEntityStatusEnum = {
19
19
  Processing: 'processing',
20
20
  BuyerApprovalPending: 'buyerApprovalPending',
21
- AuthorizationSucceeded: 'authorizationSucceeded',
21
+ Authorized: 'authorized',
22
22
  AuthorizationFailed: 'authorizationFailed',
23
- AuthorizationDeclined: 'authorizationDeclined',
23
+ Declined: 'declined',
24
24
  CapturePending: 'capturePending',
25
- CaptureSucceeded: 'captureSucceeded',
26
- AuthorizationVoidPending: 'authorizationVoidPending',
27
- AuthorizationVoided: 'authorizationVoided'
25
+ Captured: 'captured',
26
+ VoidPending: 'voidPending',
27
+ Voided: 'voided',
28
+ Held: 'held',
29
+ Submitted: 'submitted',
30
+ Transmitted: 'transmitted',
31
+ Settled: 'settled',
32
+ Returned: 'returned'
28
33
  };
29
34
  /**
30
35
  * @export
31
36
  */
32
37
  exports.TransactionEntityIntentEnum = {
33
38
  Capture: 'capture',
34
- Authorize: 'authorize'
39
+ Authorize: 'authorize',
40
+ Debit: 'debit',
41
+ Credit: 'credit'
35
42
  };
36
43
  /**
37
44
  * @export
@@ -46,8 +53,14 @@ exports.TransactionEntityCurrencyEnum = {
46
53
  */
47
54
  function instanceOfTransactionEntity(value) {
48
55
  let isInstance = true;
49
- isInstance = isInstance && "transactionRecordId" in value;
56
+ isInstance = isInstance && "transactionIntegrationId" in value;
50
57
  isInstance = isInstance && "transactionId" in value;
58
+ isInstance = isInstance && "merchantId" in value;
59
+ isInstance = isInstance && "status" in value;
60
+ isInstance = isInstance && "intent" in value;
61
+ isInstance = isInstance && "amount" in value;
62
+ isInstance = isInstance && "netAmount" in value;
63
+ isInstance = isInstance && "fee" in value;
51
64
  return isInstance;
52
65
  }
53
66
  exports.instanceOfTransactionEntity = instanceOfTransactionEntity;
@@ -60,30 +73,36 @@ function TransactionEntityFromJSONTyped(json, ignoreDiscriminator) {
60
73
  return json;
61
74
  }
62
75
  const typed = {
63
- 'transactionRecordId': json['transactionRecordId'],
76
+ 'transactionIntegrationId': json['transactionIntegrationId'],
64
77
  'transactionId': json['transactionId'],
65
- 'status': !(0, runtime_1.exists)(json, 'status') ? undefined : json['status'],
66
- 'intent': !(0, runtime_1.exists)(json, 'intent') ? undefined : json['intent'],
67
- 'amount': !(0, runtime_1.exists)(json, 'amount') ? undefined : json['amount'],
78
+ 'merchantId': json['merchantId'],
79
+ 'status': json['status'],
80
+ 'intent': json['intent'],
81
+ 'amount': json['amount'],
82
+ 'netAmount': json['netAmount'],
83
+ 'fee': json['fee'],
84
+ 'feeDetails': !(0, runtime_1.exists)(json, 'feeDetails') ? undefined : json['feeDetails'],
68
85
  'capturedAmount': !(0, runtime_1.exists)(json, 'capturedAmount') ? undefined : json['capturedAmount'],
69
86
  'refundedAmount': !(0, runtime_1.exists)(json, 'refundedAmount') ? undefined : json['refundedAmount'],
70
87
  'currency': !(0, runtime_1.exists)(json, 'currency') ? undefined : json['currency'],
71
88
  'country': !(0, runtime_1.exists)(json, 'country') ? undefined : json['country'],
72
89
  'paymentMethod': !(0, runtime_1.exists)(json, 'paymentMethod') ? undefined : (0, PaymentMethodEntity1_1.PaymentMethodEntity1FromJSON)(json['paymentMethod']),
73
- 'buyerId': !(0, runtime_1.exists)(json, 'buyerId') ? undefined : json['buyerId'],
74
- 'transactionCreatedAt': !(0, runtime_1.exists)(json, 'transactionCreatedAt') ? undefined : (new Date(json['transactionCreatedAt'])),
75
- 'transactionUpdatedAt': !(0, runtime_1.exists)(json, 'transactionUpdatedAt') ? undefined : (new Date(json['transactionUpdatedAt'])),
76
- 'paymentServiceDetails': !(0, runtime_1.exists)(json, 'paymentServiceDetails') ? undefined : (0, PaymentServiceDetailsEntity_1.PaymentServiceDetailsEntityFromJSON)(json['paymentServiceDetails']),
90
+ 'buyer': !(0, runtime_1.exists)(json, 'buyer') ? undefined : (0, PaymentsBuyerEntity_1.PaymentsBuyerEntityFromJSON)(json['buyer']),
91
+ 'externalBuyerId': !(0, runtime_1.exists)(json, 'externalBuyerId') ? undefined : json['externalBuyerId'],
92
+ 'createdAt': !(0, runtime_1.exists)(json, 'createdAt') ? undefined : (new Date(json['createdAt'])),
93
+ 'updatedAt': !(0, runtime_1.exists)(json, 'updatedAt') ? undefined : (new Date(json['updatedAt'])),
77
94
  'merchantInitiated': !(0, runtime_1.exists)(json, 'merchantInitiated') ? undefined : json['merchantInitiated'],
78
95
  'schemeTransactionId': !(0, runtime_1.exists)(json, 'schemeTransactionId') ? undefined : json['schemeTransactionId'],
79
- 'rawResponse': !(0, runtime_1.exists)(json, 'rawResponse') ? undefined : json['rawResponse'],
96
+ 'rawResponseCode': !(0, runtime_1.exists)(json, 'rawResponseCode') ? undefined : json['rawResponseCode'],
80
97
  'rawResponseDescription': !(0, runtime_1.exists)(json, 'rawResponseDescription') ? undefined : json['rawResponseDescription'],
81
- 'avsResponse': !(0, runtime_1.exists)(json, 'avsResponse') ? undefined : json['avsResponse'],
82
- 'cvvResponse': !(0, runtime_1.exists)(json, 'cvvResponse') ? undefined : json['cvvResponse'],
83
- 'metadata': !(0, runtime_1.exists)(json, 'metadata') ? undefined : json['metadata'],
98
+ 'avsResponseCode': !(0, runtime_1.exists)(json, 'avsResponseCode') ? undefined : json['avsResponseCode'],
99
+ 'cvvResponseCode': !(0, runtime_1.exists)(json, 'cvvResponseCode') ? undefined : json['cvvResponseCode'],
84
100
  'capturedAt': !(0, runtime_1.exists)(json, 'capturedAt') ? undefined : (new Date(json['capturedAt'])),
85
101
  'authorizedAt': !(0, runtime_1.exists)(json, 'authorizedAt') ? undefined : (new Date(json['authorizedAt'])),
86
102
  'voidedAt': !(0, runtime_1.exists)(json, 'voidedAt') ? undefined : (new Date(json['voidedAt'])),
103
+ 'externalTransactionId': !(0, runtime_1.exists)(json, 'externalTransactionId') ? undefined : json['externalTransactionId'],
104
+ 'buyerId': !(0, runtime_1.exists)(json, 'buyerId') ? undefined : json['buyerId'],
105
+ 'sECCode': !(0, runtime_1.exists)(json, 'SECCode') ? undefined : json['SECCode'],
87
106
  };
88
107
  return (0, runtime_1.removeNullUndefined)(typed);
89
108
  }
@@ -96,30 +115,36 @@ function TransactionEntityToJSON(value) {
96
115
  return null;
97
116
  }
98
117
  return {
99
- 'transactionRecordId': value.transactionRecordId,
118
+ 'transactionIntegrationId': value.transactionIntegrationId,
100
119
  'transactionId': value.transactionId,
120
+ 'merchantId': value.merchantId,
101
121
  'status': value.status,
102
122
  'intent': value.intent,
103
123
  'amount': value.amount,
124
+ 'netAmount': value.netAmount,
125
+ 'fee': value.fee,
126
+ 'feeDetails': value.feeDetails,
104
127
  'capturedAmount': value.capturedAmount,
105
128
  'refundedAmount': value.refundedAmount,
106
129
  'currency': value.currency,
107
130
  'country': value.country,
108
131
  'paymentMethod': (0, PaymentMethodEntity1_1.PaymentMethodEntity1ToJSON)(value.paymentMethod),
109
- 'buyerId': value.buyerId,
110
- 'transactionCreatedAt': value.transactionCreatedAt === undefined ? undefined : (value.transactionCreatedAt.toISOString()),
111
- 'transactionUpdatedAt': value.transactionUpdatedAt === undefined ? undefined : (value.transactionUpdatedAt.toISOString()),
112
- 'paymentServiceDetails': (0, PaymentServiceDetailsEntity_1.PaymentServiceDetailsEntityToJSON)(value.paymentServiceDetails),
132
+ 'buyer': (0, PaymentsBuyerEntity_1.PaymentsBuyerEntityToJSON)(value.buyer),
133
+ 'externalBuyerId': value.externalBuyerId,
134
+ 'createdAt': value.createdAt === undefined ? undefined : (value.createdAt.toISOString()),
135
+ 'updatedAt': value.updatedAt === undefined ? undefined : (value.updatedAt.toISOString()),
113
136
  'merchantInitiated': value.merchantInitiated,
114
137
  'schemeTransactionId': value.schemeTransactionId,
115
- 'rawResponse': value.rawResponse,
138
+ 'rawResponseCode': value.rawResponseCode,
116
139
  'rawResponseDescription': value.rawResponseDescription,
117
- 'avsResponse': value.avsResponse,
118
- 'cvvResponse': value.cvvResponse,
119
- 'metadata': value.metadata,
140
+ 'avsResponseCode': value.avsResponseCode,
141
+ 'cvvResponseCode': value.cvvResponseCode,
120
142
  'capturedAt': value.capturedAt === undefined ? undefined : (value.capturedAt.toISOString()),
121
143
  'authorizedAt': value.authorizedAt === undefined ? undefined : (value.authorizedAt.toISOString()),
122
144
  'voidedAt': value.voidedAt === undefined ? undefined : (value.voidedAt.toISOString()),
145
+ 'externalTransactionId': value.externalTransactionId,
146
+ 'buyerId': value.buyerId,
147
+ 'SECCode': value.sECCode,
123
148
  };
124
149
  }
125
150
  exports.TransactionEntityToJSON = TransactionEntityToJSON;
@@ -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}
@@ -10,7 +10,7 @@
10
10
  Object.defineProperty(exports, "__esModule", { value: true });
11
11
  exports.TransactionsSearchEntityToJSON = exports.TransactionsSearchEntityFromJSONTyped = exports.TransactionsSearchEntityFromJSON = exports.instanceOfTransactionsSearchEntity = void 0;
12
12
  const runtime_1 = require("../runtime");
13
- const TransactionEntity1_1 = require("./TransactionEntity1");
13
+ const TransactionEntity_1 = require("./TransactionEntity");
14
14
  /**
15
15
  * Check if a given object implements the TransactionsSearchEntity interface.
16
16
  */
@@ -32,7 +32,7 @@ function TransactionsSearchEntityFromJSONTyped(json, ignoreDiscriminator) {
32
32
  }
33
33
  const typed = {
34
34
  'prevCursor': json['prevCursor'],
35
- 'transactions': (json['transactions'].map(TransactionEntity1_1.TransactionEntity1FromJSON)),
35
+ 'transactions': (json['transactions'].map(TransactionEntity_1.TransactionEntityFromJSON)),
36
36
  'limit': json['limit'],
37
37
  'nextCursor': !(0, runtime_1.exists)(json, 'nextCursor') ? undefined : json['nextCursor'],
38
38
  'page': !(0, runtime_1.exists)(json, 'page') ? undefined : json['page'],
@@ -49,7 +49,7 @@ function TransactionsSearchEntityToJSON(value) {
49
49
  }
50
50
  return {
51
51
  'prevCursor': value.prevCursor,
52
- 'transactions': (value.transactions.map(TransactionEntity1_1.TransactionEntity1ToJSON)),
52
+ 'transactions': (value.transactions.map(TransactionEntity_1.TransactionEntityToJSON)),
53
53
  'limit': value.limit,
54
54
  'nextCursor': value.nextCursor,
55
55
  '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,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.UpdateFeatureDtoToJSON = exports.UpdateFeatureDtoFromJSONTyped = exports.UpdateFeatureDtoFromJSON = exports.instanceOfUpdateFeatureDto = void 0;
12
+ const runtime_1 = require("../runtime");
13
+ /**
14
+ * Check if a given object implements the UpdateFeatureDto interface.
15
+ */
16
+ function instanceOfUpdateFeatureDto(value) {
17
+ let isInstance = true;
18
+ isInstance = isInstance && "featureId" in value;
19
+ return isInstance;
20
+ }
21
+ exports.instanceOfUpdateFeatureDto = instanceOfUpdateFeatureDto;
22
+ function UpdateFeatureDtoFromJSON(json) {
23
+ return UpdateFeatureDtoFromJSONTyped(json, false);
24
+ }
25
+ exports.UpdateFeatureDtoFromJSON = UpdateFeatureDtoFromJSON;
26
+ function UpdateFeatureDtoFromJSONTyped(json, ignoreDiscriminator) {
27
+ if ((json === undefined) || (json === null)) {
28
+ return json;
29
+ }
30
+ const typed = {
31
+ 'featureId': json['featureId'],
32
+ 'name': !(0, runtime_1.exists)(json, 'name') ? undefined : json['name'],
33
+ 'description': !(0, runtime_1.exists)(json, 'description') ? undefined : json['description'],
34
+ 'enabled': !(0, runtime_1.exists)(json, 'enabled') ? undefined : json['enabled'],
35
+ };
36
+ return (0, runtime_1.removeNullUndefined)(typed);
37
+ }
38
+ exports.UpdateFeatureDtoFromJSONTyped = UpdateFeatureDtoFromJSONTyped;
39
+ function UpdateFeatureDtoToJSON(value) {
40
+ if (value === undefined) {
41
+ return undefined;
42
+ }
43
+ if (value === null) {
44
+ return null;
45
+ }
46
+ return {
47
+ 'featureId': value.featureId,
48
+ 'name': value.name,
49
+ 'description': value.description,
50
+ 'enabled': value.enabled,
51
+ };
52
+ }
53
+ exports.UpdateFeatureDtoToJSON = UpdateFeatureDtoToJSON;
@@ -17,6 +17,7 @@ export * from './CreateBuyerDto';
17
17
  export * from './CreateBuyerDtoAddress';
18
18
  export * from './CreateCFeeDto';
19
19
  export * from './CreateCFeeRuleConditionDto';
20
+ export * from './CreateFeatureDto';
20
21
  export * from './CreateMerchantAccountDto';
21
22
  export * from './CreateMerchantAccountDtoCFee';
22
23
  export * from './CreateMerchantAccountWithoutMerchantIdDto';
@@ -40,6 +41,7 @@ export * from './CreateTransactionDto';
40
41
  export * from './CreateTransactionDtoPaymentMethod';
41
42
  export * from './CreateUserDto';
42
43
  export * from './ErrorEntity';
44
+ export * from './FeatureEntity';
43
45
  export * from './MerchantAccountEntity';
44
46
  export * from './MerchantAccountEntityCFee';
45
47
  export * from './MerchantAddressEntity';
@@ -55,11 +57,9 @@ export * from './MetadataRuleConditionEntity';
55
57
  export * from './PaymentMethodDto';
56
58
  export * from './PaymentMethodEntity';
57
59
  export * from './PaymentMethodEntity1';
58
- export * from './PaymentMethodEntity2';
59
60
  export * from './PaymentMethodEntityBuyer';
60
61
  export * from './PaymentMethodEntityCardDetails';
61
62
  export * from './PaymentMethodsSearchEntity';
62
- export * from './PaymentServiceDetailsEntity';
63
63
  export * from './PaymentsBuyerEntity';
64
64
  export * from './RefundTransactionDto';
65
65
  export * from './RuleConditionsEntity';
@@ -67,7 +67,6 @@ export * from './RuleConditionsEntityAmount';
67
67
  export * from './RuleConditionsEntityCfee';
68
68
  export * from './RuleConnectorsEntity';
69
69
  export * from './TransactionEntity';
70
- export * from './TransactionEntity1';
71
70
  export * from './TransactionRefundEntity';
72
71
  export * from './TransactionRefundsSearchEntity';
73
72
  export * from './TransactionsSearchEntity';
@@ -75,6 +74,7 @@ export * from './UpdateAddressDto';
75
74
  export * from './UpdateBuyerDto';
76
75
  export * from './UpdateBuyerDtoAddress';
77
76
  export * from './UpdateCFeeDto';
77
+ export * from './UpdateFeatureDto';
78
78
  export * from './UpdateMerchantAccountDto';
79
79
  export * from './UpdateMerchantAccountDtoCFee';
80
80
  export * from './UpdateMerchantAddressDto';
@@ -35,6 +35,7 @@ __exportStar(require("./CreateBuyerDto"), exports);
35
35
  __exportStar(require("./CreateBuyerDtoAddress"), exports);
36
36
  __exportStar(require("./CreateCFeeDto"), exports);
37
37
  __exportStar(require("./CreateCFeeRuleConditionDto"), exports);
38
+ __exportStar(require("./CreateFeatureDto"), exports);
38
39
  __exportStar(require("./CreateMerchantAccountDto"), exports);
39
40
  __exportStar(require("./CreateMerchantAccountDtoCFee"), exports);
40
41
  __exportStar(require("./CreateMerchantAccountWithoutMerchantIdDto"), exports);
@@ -58,6 +59,7 @@ __exportStar(require("./CreateTransactionDto"), exports);
58
59
  __exportStar(require("./CreateTransactionDtoPaymentMethod"), exports);
59
60
  __exportStar(require("./CreateUserDto"), exports);
60
61
  __exportStar(require("./ErrorEntity"), exports);
62
+ __exportStar(require("./FeatureEntity"), exports);
61
63
  __exportStar(require("./MerchantAccountEntity"), exports);
62
64
  __exportStar(require("./MerchantAccountEntityCFee"), exports);
63
65
  __exportStar(require("./MerchantAddressEntity"), exports);
@@ -73,11 +75,9 @@ __exportStar(require("./MetadataRuleConditionEntity"), exports);
73
75
  __exportStar(require("./PaymentMethodDto"), exports);
74
76
  __exportStar(require("./PaymentMethodEntity"), exports);
75
77
  __exportStar(require("./PaymentMethodEntity1"), exports);
76
- __exportStar(require("./PaymentMethodEntity2"), exports);
77
78
  __exportStar(require("./PaymentMethodEntityBuyer"), exports);
78
79
  __exportStar(require("./PaymentMethodEntityCardDetails"), exports);
79
80
  __exportStar(require("./PaymentMethodsSearchEntity"), exports);
80
- __exportStar(require("./PaymentServiceDetailsEntity"), exports);
81
81
  __exportStar(require("./PaymentsBuyerEntity"), exports);
82
82
  __exportStar(require("./RefundTransactionDto"), exports);
83
83
  __exportStar(require("./RuleConditionsEntity"), exports);
@@ -85,7 +85,6 @@ __exportStar(require("./RuleConditionsEntityAmount"), exports);
85
85
  __exportStar(require("./RuleConditionsEntityCfee"), exports);
86
86
  __exportStar(require("./RuleConnectorsEntity"), exports);
87
87
  __exportStar(require("./TransactionEntity"), exports);
88
- __exportStar(require("./TransactionEntity1"), exports);
89
88
  __exportStar(require("./TransactionRefundEntity"), exports);
90
89
  __exportStar(require("./TransactionRefundsSearchEntity"), exports);
91
90
  __exportStar(require("./TransactionsSearchEntity"), exports);
@@ -93,6 +92,7 @@ __exportStar(require("./UpdateAddressDto"), exports);
93
92
  __exportStar(require("./UpdateBuyerDto"), exports);
94
93
  __exportStar(require("./UpdateBuyerDtoAddress"), exports);
95
94
  __exportStar(require("./UpdateCFeeDto"), exports);
95
+ __exportStar(require("./UpdateFeatureDto"), exports);
96
96
  __exportStar(require("./UpdateMerchantAccountDto"), exports);
97
97
  __exportStar(require("./UpdateMerchantAccountDtoCFee"), exports);
98
98
  __exportStar(require("./UpdateMerchantAddressDto"), exports);
@@ -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));
@@ -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,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 { removeNullUndefined } from '../runtime';
10
+ /**
11
+ * Check if a given object implements the CreateFeatureDto interface.
12
+ */
13
+ export function instanceOfCreateFeatureDto(value) {
14
+ let isInstance = true;
15
+ isInstance = isInstance && "name" in value;
16
+ isInstance = isInstance && "description" in value;
17
+ isInstance = isInstance && "enabled" in value;
18
+ return isInstance;
19
+ }
20
+ export function CreateFeatureDtoFromJSON(json) {
21
+ return CreateFeatureDtoFromJSONTyped(json, false);
22
+ }
23
+ export function CreateFeatureDtoFromJSONTyped(json, ignoreDiscriminator) {
24
+ if ((json === undefined) || (json === null)) {
25
+ return json;
26
+ }
27
+ const typed = {
28
+ 'name': json['name'],
29
+ 'description': json['description'],
30
+ 'enabled': json['enabled'],
31
+ };
32
+ return removeNullUndefined(typed);
33
+ }
34
+ export function CreateFeatureDtoToJSON(value) {
35
+ if (value === undefined) {
36
+ return undefined;
37
+ }
38
+ if (value === null) {
39
+ return null;
40
+ }
41
+ return {
42
+ 'name': value.name,
43
+ 'description': value.description,
44
+ 'enabled': value.enabled,
45
+ };
46
+ }
@@ -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;