@channelpayments/node-sdk 1.131.0 → 1.137.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 (61) hide show
  1. package/dist/cjs/models/AdminCreateTransactionRefundDto.d.ts +82 -0
  2. package/dist/cjs/models/AdminCreateTransactionRefundDto.js +84 -0
  3. package/dist/cjs/models/AdminVoidTransactionDto.d.ts +32 -0
  4. package/dist/cjs/models/AdminVoidTransactionDto.js +50 -0
  5. package/dist/cjs/models/CreateMerchantAccountDto.d.ts +155 -0
  6. package/dist/cjs/models/CreateMerchantAccountDto.js +124 -0
  7. package/dist/cjs/models/CreateMerchantAccountDtoCFee.d.ts +40 -0
  8. package/dist/cjs/models/CreateMerchantAccountDtoCFee.js +57 -0
  9. package/dist/cjs/models/CreateMerchantAccountWithoutMerchantIdDto.d.ts +3 -3
  10. package/dist/cjs/models/CreateMerchantAccountWithoutMerchantIdDto.js +3 -3
  11. package/dist/cjs/models/CreateMerchantDto.d.ts +3 -3
  12. package/dist/cjs/models/CreateMerchantDto.js +3 -3
  13. package/dist/cjs/models/MerchantAccountEntity.d.ts +166 -0
  14. package/dist/cjs/models/MerchantAccountEntity.js +139 -0
  15. package/dist/cjs/models/MerchantAccountEntityCFee.d.ts +40 -0
  16. package/dist/cjs/models/MerchantAccountEntityCFee.js +57 -0
  17. package/dist/cjs/models/MerchantAccountServiceEntity.d.ts +3 -3
  18. package/dist/cjs/models/MerchantAccountServiceEntity.js +3 -3
  19. package/dist/cjs/models/UpdateMerchantAccountDto.d.ts +136 -0
  20. package/dist/cjs/models/UpdateMerchantAccountDto.js +111 -0
  21. package/dist/cjs/models/UpdateMerchantDto.d.ts +3 -3
  22. package/dist/cjs/models/UpdateMerchantDto.js +3 -3
  23. package/dist/{mjs/models/CreateMerchantDtoAddress.d.ts → cjs/models/UpdateMerchantDtoAddress.d.ts} +15 -15
  24. package/dist/cjs/models/{CreateMerchantDtoAddress.js → UpdateMerchantDtoAddress.js} +11 -11
  25. package/dist/cjs/models/index.d.ts +8 -3
  26. package/dist/cjs/models/index.js +8 -3
  27. package/dist/cjs/runtime.js +1 -1
  28. package/dist/mjs/models/AdminCreateTransactionRefundDto.d.ts +82 -0
  29. package/dist/mjs/models/AdminCreateTransactionRefundDto.js +77 -0
  30. package/dist/mjs/models/AdminVoidTransactionDto.d.ts +32 -0
  31. package/dist/mjs/models/AdminVoidTransactionDto.js +43 -0
  32. package/dist/mjs/models/CreateMerchantAccountDto.d.ts +155 -0
  33. package/dist/mjs/models/CreateMerchantAccountDto.js +117 -0
  34. package/dist/mjs/models/CreateMerchantAccountDtoCFee.d.ts +40 -0
  35. package/dist/mjs/models/{MerchantAccountServiceEntityCFee.js → CreateMerchantAccountDtoCFee.js} +7 -7
  36. package/dist/mjs/models/CreateMerchantAccountWithoutMerchantIdDto.d.ts +3 -3
  37. package/dist/mjs/models/CreateMerchantAccountWithoutMerchantIdDto.js +3 -3
  38. package/dist/mjs/models/CreateMerchantDto.d.ts +3 -3
  39. package/dist/mjs/models/CreateMerchantDto.js +3 -3
  40. package/dist/mjs/models/MerchantAccountEntity.d.ts +166 -0
  41. package/dist/mjs/models/MerchantAccountEntity.js +132 -0
  42. package/dist/mjs/models/MerchantAccountEntityCFee.d.ts +40 -0
  43. package/dist/mjs/models/{CreateMerchantAccountWithoutMerchantIdDtoCFee.js → MerchantAccountEntityCFee.js} +7 -7
  44. package/dist/mjs/models/MerchantAccountServiceEntity.d.ts +3 -3
  45. package/dist/mjs/models/MerchantAccountServiceEntity.js +3 -3
  46. package/dist/mjs/models/UpdateMerchantAccountDto.d.ts +136 -0
  47. package/dist/mjs/models/UpdateMerchantAccountDto.js +104 -0
  48. package/dist/mjs/models/UpdateMerchantDto.d.ts +3 -3
  49. package/dist/mjs/models/UpdateMerchantDto.js +3 -3
  50. package/dist/{cjs/models/CreateMerchantDtoAddress.d.ts → mjs/models/UpdateMerchantDtoAddress.d.ts} +15 -15
  51. package/dist/mjs/models/{CreateMerchantDtoAddress.js → UpdateMerchantDtoAddress.js} +6 -6
  52. package/dist/mjs/models/index.d.ts +8 -3
  53. package/dist/mjs/models/index.js +8 -3
  54. package/dist/mjs/runtime.js +1 -1
  55. package/package.json +1 -1
  56. package/dist/cjs/models/CreateMerchantAccountWithoutMerchantIdDtoCFee.d.ts +0 -40
  57. package/dist/cjs/models/CreateMerchantAccountWithoutMerchantIdDtoCFee.js +0 -57
  58. package/dist/cjs/models/MerchantAccountServiceEntityCFee.d.ts +0 -40
  59. package/dist/cjs/models/MerchantAccountServiceEntityCFee.js +0 -57
  60. package/dist/mjs/models/CreateMerchantAccountWithoutMerchantIdDtoCFee.d.ts +0 -40
  61. package/dist/mjs/models/MerchantAccountServiceEntityCFee.d.ts +0 -40
@@ -5,7 +5,7 @@
5
5
  *
6
6
  */
7
7
  import type { CreateMerchantAccountWithoutMerchantIdDto } from './CreateMerchantAccountWithoutMerchantIdDto';
8
- import type { CreateMerchantDtoAddress } from './CreateMerchantDtoAddress';
8
+ import type { UpdateMerchantDtoAddress } from './UpdateMerchantDtoAddress';
9
9
  /**
10
10
  *
11
11
  * @export
@@ -32,10 +32,10 @@ export interface CreateMerchantDto {
32
32
  phoneNumber: string;
33
33
  /**
34
34
  *
35
- * @type {CreateMerchantDtoAddress}
35
+ * @type {UpdateMerchantDtoAddress}
36
36
  * @memberof CreateMerchantDto
37
37
  */
38
- address: CreateMerchantDtoAddress;
38
+ address: UpdateMerchantDtoAddress;
39
39
  /**
40
40
  * The website URL of the merchant.
41
41
  * @type {string}
@@ -11,7 +11,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
11
11
  exports.CreateMerchantDtoToJSON = exports.CreateMerchantDtoFromJSONTyped = exports.CreateMerchantDtoFromJSON = exports.instanceOfCreateMerchantDto = void 0;
12
12
  const runtime_1 = require("../runtime");
13
13
  const CreateMerchantAccountWithoutMerchantIdDto_1 = require("./CreateMerchantAccountWithoutMerchantIdDto");
14
- const CreateMerchantDtoAddress_1 = require("./CreateMerchantDtoAddress");
14
+ const UpdateMerchantDtoAddress_1 = require("./UpdateMerchantDtoAddress");
15
15
  /**
16
16
  * Check if a given object implements the CreateMerchantDto interface.
17
17
  */
@@ -36,7 +36,7 @@ function CreateMerchantDtoFromJSONTyped(json, ignoreDiscriminator) {
36
36
  'name': json['name'],
37
37
  'email': json['email'],
38
38
  'phoneNumber': json['phoneNumber'],
39
- 'address': (0, CreateMerchantDtoAddress_1.CreateMerchantDtoAddressFromJSON)(json['address']),
39
+ 'address': (0, UpdateMerchantDtoAddress_1.UpdateMerchantDtoAddressFromJSON)(json['address']),
40
40
  'website': !(0, runtime_1.exists)(json, 'website') ? undefined : json['website'],
41
41
  'parentMerchantId': !(0, runtime_1.exists)(json, 'parentMerchantId') ? undefined : json['parentMerchantId'],
42
42
  'merchantAccounts': !(0, runtime_1.exists)(json, 'merchantAccounts') ? undefined : (json['merchantAccounts'].map(CreateMerchantAccountWithoutMerchantIdDto_1.CreateMerchantAccountWithoutMerchantIdDtoFromJSON)),
@@ -55,7 +55,7 @@ function CreateMerchantDtoToJSON(value) {
55
55
  'name': value.name,
56
56
  'email': value.email,
57
57
  'phoneNumber': value.phoneNumber,
58
- 'address': (0, CreateMerchantDtoAddress_1.CreateMerchantDtoAddressToJSON)(value.address),
58
+ 'address': (0, UpdateMerchantDtoAddress_1.UpdateMerchantDtoAddressToJSON)(value.address),
59
59
  'website': value.website,
60
60
  'parentMerchantId': value.parentMerchantId,
61
61
  'merchantAccounts': value.merchantAccounts === undefined ? undefined : (value.merchantAccounts.map(CreateMerchantAccountWithoutMerchantIdDto_1.CreateMerchantAccountWithoutMerchantIdDtoToJSON)),
@@ -0,0 +1,166 @@
1
+ /**
2
+ * Channel Payments API
3
+ *
4
+ * NOTE: This class is auto generated. Do not edit the class manually.
5
+ *
6
+ */
7
+ import type { MerchantAccountEntityCFee } from './MerchantAccountEntityCFee';
8
+ import type { MerchantConnectorServiceEntity } from './MerchantConnectorServiceEntity';
9
+ /**
10
+ *
11
+ * @export
12
+ * @interface MerchantAccountEntity
13
+ */
14
+ export interface MerchantAccountEntity {
15
+ /**
16
+ * The alphanumeric ID of the merchant account.
17
+ * @type {string}
18
+ * @memberof MerchantAccountEntity
19
+ */
20
+ merchantAccountId: string;
21
+ /**
22
+ * The associated merchant ID.
23
+ * @type {string}
24
+ * @memberof MerchantAccountEntity
25
+ */
26
+ merchantId?: string;
27
+ /**
28
+ * The issued MID (Merchant ID).
29
+ * @type {string}
30
+ * @memberof MerchantAccountEntity
31
+ */
32
+ issuedMid: string;
33
+ /**
34
+ * The payment service provider.
35
+ * @type {string}
36
+ * @memberof MerchantAccountEntity
37
+ */
38
+ psp: MerchantAccountEntityPspEnum;
39
+ /**
40
+ *
41
+ * @type {MerchantAccountEntityCFee}
42
+ * @memberof MerchantAccountEntity
43
+ */
44
+ cFee: MerchantAccountEntityCFee;
45
+ /**
46
+ * The date the merchant was created.
47
+ * @type {Date}
48
+ * @memberof MerchantAccountEntity
49
+ */
50
+ createdAt: Date;
51
+ /**
52
+ * The date the merchant was last updated.
53
+ * @type {Date}
54
+ * @memberof MerchantAccountEntity
55
+ */
56
+ updatedAt: Date;
57
+ /**
58
+ * The payment method.
59
+ * @type {string}
60
+ * @memberof MerchantAccountEntity
61
+ */
62
+ method: MerchantAccountEntityMethodEnum;
63
+ /**
64
+ * The status of the merchant account.
65
+ * @type {string}
66
+ * @memberof MerchantAccountEntity
67
+ */
68
+ status: MerchantAccountEntityStatusEnum;
69
+ /**
70
+ * The card schemes.
71
+ * @type {Array<string>}
72
+ * @memberof MerchantAccountEntity
73
+ */
74
+ cardSchemes: Array<MerchantAccountEntityCardSchemesEnum>;
75
+ /**
76
+ * The accepted currencies.
77
+ * @type {Array<string>}
78
+ * @memberof MerchantAccountEntity
79
+ */
80
+ currencies: Array<MerchantAccountEntityCurrenciesEnum>;
81
+ /**
82
+ * The accepted card types.
83
+ * @type {Array<string>}
84
+ * @memberof MerchantAccountEntity
85
+ */
86
+ cardTypes: Array<MerchantAccountEntityCardTypesEnum>;
87
+ /**
88
+ * The name of the merchant account.
89
+ * @type {string}
90
+ * @memberof MerchantAccountEntity
91
+ */
92
+ name?: string;
93
+ /**
94
+ * The connectors.
95
+ * @type {Array<MerchantConnectorServiceEntity>}
96
+ * @memberof MerchantAccountEntity
97
+ */
98
+ connectors?: Array<MerchantConnectorServiceEntity>;
99
+ }
100
+ /**
101
+ * @export
102
+ */
103
+ export declare const MerchantAccountEntityPspEnum: {
104
+ readonly Tsys: "TSYS";
105
+ readonly Nashville: "NASHVILLE";
106
+ readonly North: "NORTH";
107
+ readonly ChannelPayments: "CHANNEL_PAYMENTS";
108
+ };
109
+ export type MerchantAccountEntityPspEnum = typeof MerchantAccountEntityPspEnum[keyof typeof MerchantAccountEntityPspEnum];
110
+ /**
111
+ * @export
112
+ */
113
+ export declare const MerchantAccountEntityMethodEnum: {
114
+ readonly Card: "CARD";
115
+ readonly Ach: "ACH";
116
+ };
117
+ export type MerchantAccountEntityMethodEnum = typeof MerchantAccountEntityMethodEnum[keyof typeof MerchantAccountEntityMethodEnum];
118
+ /**
119
+ * @export
120
+ */
121
+ export declare const MerchantAccountEntityStatusEnum: {
122
+ readonly Pending: "PENDING";
123
+ readonly Active: "ACTIVE";
124
+ readonly Inactive: "INACTIVE";
125
+ readonly Suspended: "SUSPENDED";
126
+ readonly Closed: "CLOSED";
127
+ };
128
+ export type MerchantAccountEntityStatusEnum = typeof MerchantAccountEntityStatusEnum[keyof typeof MerchantAccountEntityStatusEnum];
129
+ /**
130
+ * @export
131
+ */
132
+ export declare const MerchantAccountEntityCardSchemesEnum: {
133
+ readonly Visa: "VISA";
134
+ readonly Mastercard: "MASTERCARD";
135
+ readonly Amex: "AMEX";
136
+ readonly Discover: "DISCOVER";
137
+ readonly Jcb: "JCB";
138
+ readonly DinersClub: "DINERS_CLUB";
139
+ readonly Maestro: "MAESTRO";
140
+ };
141
+ export type MerchantAccountEntityCardSchemesEnum = typeof MerchantAccountEntityCardSchemesEnum[keyof typeof MerchantAccountEntityCardSchemesEnum];
142
+ /**
143
+ * @export
144
+ */
145
+ export declare const MerchantAccountEntityCurrenciesEnum: {
146
+ readonly Usd: "USD";
147
+ readonly Aud: "AUD";
148
+ readonly Cad: "CAD";
149
+ };
150
+ export type MerchantAccountEntityCurrenciesEnum = typeof MerchantAccountEntityCurrenciesEnum[keyof typeof MerchantAccountEntityCurrenciesEnum];
151
+ /**
152
+ * @export
153
+ */
154
+ export declare const MerchantAccountEntityCardTypesEnum: {
155
+ readonly Credit: "CREDIT";
156
+ readonly Debit: "DEBIT";
157
+ readonly Prepaid: "PREPAID";
158
+ };
159
+ export type MerchantAccountEntityCardTypesEnum = typeof MerchantAccountEntityCardTypesEnum[keyof typeof MerchantAccountEntityCardTypesEnum];
160
+ /**
161
+ * Check if a given object implements the MerchantAccountEntity interface.
162
+ */
163
+ export declare function instanceOfMerchantAccountEntity(value: object): boolean;
164
+ export declare function MerchantAccountEntityFromJSON(json: any): MerchantAccountEntity;
165
+ export declare function MerchantAccountEntityFromJSONTyped(json: any, ignoreDiscriminator: boolean): MerchantAccountEntity;
166
+ export declare function MerchantAccountEntityToJSON(value?: MerchantAccountEntity | null): any;
@@ -0,0 +1,139 @@
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.MerchantAccountEntityToJSON = exports.MerchantAccountEntityFromJSONTyped = exports.MerchantAccountEntityFromJSON = exports.instanceOfMerchantAccountEntity = exports.MerchantAccountEntityCardTypesEnum = exports.MerchantAccountEntityCurrenciesEnum = exports.MerchantAccountEntityCardSchemesEnum = exports.MerchantAccountEntityStatusEnum = exports.MerchantAccountEntityMethodEnum = exports.MerchantAccountEntityPspEnum = void 0;
12
+ const runtime_1 = require("../runtime");
13
+ const MerchantAccountEntityCFee_1 = require("./MerchantAccountEntityCFee");
14
+ const MerchantConnectorServiceEntity_1 = require("./MerchantConnectorServiceEntity");
15
+ /**
16
+ * @export
17
+ */
18
+ exports.MerchantAccountEntityPspEnum = {
19
+ Tsys: 'TSYS',
20
+ Nashville: 'NASHVILLE',
21
+ North: 'NORTH',
22
+ ChannelPayments: 'CHANNEL_PAYMENTS'
23
+ };
24
+ /**
25
+ * @export
26
+ */
27
+ exports.MerchantAccountEntityMethodEnum = {
28
+ Card: 'CARD',
29
+ Ach: 'ACH'
30
+ };
31
+ /**
32
+ * @export
33
+ */
34
+ exports.MerchantAccountEntityStatusEnum = {
35
+ Pending: 'PENDING',
36
+ Active: 'ACTIVE',
37
+ Inactive: 'INACTIVE',
38
+ Suspended: 'SUSPENDED',
39
+ Closed: 'CLOSED'
40
+ };
41
+ /**
42
+ * @export
43
+ */
44
+ exports.MerchantAccountEntityCardSchemesEnum = {
45
+ Visa: 'VISA',
46
+ Mastercard: 'MASTERCARD',
47
+ Amex: 'AMEX',
48
+ Discover: 'DISCOVER',
49
+ Jcb: 'JCB',
50
+ DinersClub: 'DINERS_CLUB',
51
+ Maestro: 'MAESTRO'
52
+ };
53
+ /**
54
+ * @export
55
+ */
56
+ exports.MerchantAccountEntityCurrenciesEnum = {
57
+ Usd: 'USD',
58
+ Aud: 'AUD',
59
+ Cad: 'CAD'
60
+ };
61
+ /**
62
+ * @export
63
+ */
64
+ exports.MerchantAccountEntityCardTypesEnum = {
65
+ Credit: 'CREDIT',
66
+ Debit: 'DEBIT',
67
+ Prepaid: 'PREPAID'
68
+ };
69
+ /**
70
+ * Check if a given object implements the MerchantAccountEntity interface.
71
+ */
72
+ function instanceOfMerchantAccountEntity(value) {
73
+ let isInstance = true;
74
+ isInstance = isInstance && "merchantAccountId" in value;
75
+ isInstance = isInstance && "issuedMid" in value;
76
+ isInstance = isInstance && "psp" in value;
77
+ isInstance = isInstance && "cFee" in value;
78
+ isInstance = isInstance && "createdAt" in value;
79
+ isInstance = isInstance && "updatedAt" in value;
80
+ isInstance = isInstance && "method" in value;
81
+ isInstance = isInstance && "status" in value;
82
+ isInstance = isInstance && "cardSchemes" in value;
83
+ isInstance = isInstance && "currencies" in value;
84
+ isInstance = isInstance && "cardTypes" in value;
85
+ return isInstance;
86
+ }
87
+ exports.instanceOfMerchantAccountEntity = instanceOfMerchantAccountEntity;
88
+ function MerchantAccountEntityFromJSON(json) {
89
+ return MerchantAccountEntityFromJSONTyped(json, false);
90
+ }
91
+ exports.MerchantAccountEntityFromJSON = MerchantAccountEntityFromJSON;
92
+ function MerchantAccountEntityFromJSONTyped(json, ignoreDiscriminator) {
93
+ if ((json === undefined) || (json === null)) {
94
+ return json;
95
+ }
96
+ const typed = {
97
+ 'merchantAccountId': json['merchantAccountId'],
98
+ 'merchantId': !(0, runtime_1.exists)(json, 'merchantId') ? undefined : json['merchantId'],
99
+ 'issuedMid': json['issuedMid'],
100
+ 'psp': json['psp'],
101
+ 'cFee': (0, MerchantAccountEntityCFee_1.MerchantAccountEntityCFeeFromJSON)(json['cFee']),
102
+ 'createdAt': (new Date(json['createdAt'])),
103
+ 'updatedAt': (new Date(json['updatedAt'])),
104
+ 'method': json['method'],
105
+ 'status': json['status'],
106
+ 'cardSchemes': json['cardSchemes'],
107
+ 'currencies': json['currencies'],
108
+ 'cardTypes': json['cardTypes'],
109
+ 'name': !(0, runtime_1.exists)(json, 'name') ? undefined : json['name'],
110
+ 'connectors': !(0, runtime_1.exists)(json, 'connectors') ? undefined : (json['connectors'].map(MerchantConnectorServiceEntity_1.MerchantConnectorServiceEntityFromJSON)),
111
+ };
112
+ return (0, runtime_1.removeNullUndefined)(typed);
113
+ }
114
+ exports.MerchantAccountEntityFromJSONTyped = MerchantAccountEntityFromJSONTyped;
115
+ function MerchantAccountEntityToJSON(value) {
116
+ if (value === undefined) {
117
+ return undefined;
118
+ }
119
+ if (value === null) {
120
+ return null;
121
+ }
122
+ return {
123
+ 'merchantAccountId': value.merchantAccountId,
124
+ 'merchantId': value.merchantId,
125
+ 'issuedMid': value.issuedMid,
126
+ 'psp': value.psp,
127
+ 'cFee': (0, MerchantAccountEntityCFee_1.MerchantAccountEntityCFeeToJSON)(value.cFee),
128
+ 'createdAt': (value.createdAt.toISOString()),
129
+ 'updatedAt': (value.updatedAt.toISOString()),
130
+ 'method': value.method,
131
+ 'status': value.status,
132
+ 'cardSchemes': value.cardSchemes,
133
+ 'currencies': value.currencies,
134
+ 'cardTypes': value.cardTypes,
135
+ 'name': value.name,
136
+ 'connectors': value.connectors === undefined ? undefined : (value.connectors.map(MerchantConnectorServiceEntity_1.MerchantConnectorServiceEntityToJSON)),
137
+ };
138
+ }
139
+ exports.MerchantAccountEntityToJSON = MerchantAccountEntityToJSON;
@@ -0,0 +1,40 @@
1
+ /**
2
+ * Channel Payments API
3
+ *
4
+ * NOTE: This class is auto generated. Do not edit the class manually.
5
+ *
6
+ */
7
+ /**
8
+ * The CFee details.
9
+ * @export
10
+ * @interface MerchantAccountEntityCFee
11
+ */
12
+ export interface MerchantAccountEntityCFee {
13
+ /**
14
+ * The type of the CFee.
15
+ * @type {string}
16
+ * @memberof MerchantAccountEntityCFee
17
+ */
18
+ type: MerchantAccountEntityCFeeTypeEnum;
19
+ /**
20
+ * The rate of the CFee as an integer.
21
+ * @type {number}
22
+ * @memberof MerchantAccountEntityCFee
23
+ */
24
+ rate: number;
25
+ }
26
+ /**
27
+ * @export
28
+ */
29
+ export declare const MerchantAccountEntityCFeeTypeEnum: {
30
+ readonly Percentage: "PERCENTAGE";
31
+ readonly Fixed: "FIXED";
32
+ };
33
+ export type MerchantAccountEntityCFeeTypeEnum = typeof MerchantAccountEntityCFeeTypeEnum[keyof typeof MerchantAccountEntityCFeeTypeEnum];
34
+ /**
35
+ * Check if a given object implements the MerchantAccountEntityCFee interface.
36
+ */
37
+ export declare function instanceOfMerchantAccountEntityCFee(value: object): boolean;
38
+ export declare function MerchantAccountEntityCFeeFromJSON(json: any): MerchantAccountEntityCFee;
39
+ export declare function MerchantAccountEntityCFeeFromJSONTyped(json: any, ignoreDiscriminator: boolean): MerchantAccountEntityCFee;
40
+ export declare function MerchantAccountEntityCFeeToJSON(value?: MerchantAccountEntityCFee | null): any;
@@ -0,0 +1,57 @@
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.MerchantAccountEntityCFeeToJSON = exports.MerchantAccountEntityCFeeFromJSONTyped = exports.MerchantAccountEntityCFeeFromJSON = exports.instanceOfMerchantAccountEntityCFee = exports.MerchantAccountEntityCFeeTypeEnum = void 0;
12
+ const runtime_1 = require("../runtime");
13
+ /**
14
+ * @export
15
+ */
16
+ exports.MerchantAccountEntityCFeeTypeEnum = {
17
+ Percentage: 'PERCENTAGE',
18
+ Fixed: 'FIXED'
19
+ };
20
+ /**
21
+ * Check if a given object implements the MerchantAccountEntityCFee interface.
22
+ */
23
+ function instanceOfMerchantAccountEntityCFee(value) {
24
+ let isInstance = true;
25
+ isInstance = isInstance && "type" in value;
26
+ isInstance = isInstance && "rate" in value;
27
+ return isInstance;
28
+ }
29
+ exports.instanceOfMerchantAccountEntityCFee = instanceOfMerchantAccountEntityCFee;
30
+ function MerchantAccountEntityCFeeFromJSON(json) {
31
+ return MerchantAccountEntityCFeeFromJSONTyped(json, false);
32
+ }
33
+ exports.MerchantAccountEntityCFeeFromJSON = MerchantAccountEntityCFeeFromJSON;
34
+ function MerchantAccountEntityCFeeFromJSONTyped(json, ignoreDiscriminator) {
35
+ if ((json === undefined) || (json === null)) {
36
+ return json;
37
+ }
38
+ const typed = {
39
+ 'type': json['type'],
40
+ 'rate': json['rate'],
41
+ };
42
+ return (0, runtime_1.removeNullUndefined)(typed);
43
+ }
44
+ exports.MerchantAccountEntityCFeeFromJSONTyped = MerchantAccountEntityCFeeFromJSONTyped;
45
+ function MerchantAccountEntityCFeeToJSON(value) {
46
+ if (value === undefined) {
47
+ return undefined;
48
+ }
49
+ if (value === null) {
50
+ return null;
51
+ }
52
+ return {
53
+ 'type': value.type,
54
+ 'rate': value.rate,
55
+ };
56
+ }
57
+ exports.MerchantAccountEntityCFeeToJSON = MerchantAccountEntityCFeeToJSON;
@@ -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 { MerchantAccountServiceEntityCFee } from './MerchantAccountServiceEntityCFee';
7
+ import type { MerchantAccountEntityCFee } from './MerchantAccountEntityCFee';
8
8
  import type { MerchantConnectorServiceEntity } from './MerchantConnectorServiceEntity';
9
9
  /**
10
10
  *
@@ -38,10 +38,10 @@ export interface MerchantAccountServiceEntity {
38
38
  psp: MerchantAccountServiceEntityPspEnum;
39
39
  /**
40
40
  *
41
- * @type {MerchantAccountServiceEntityCFee}
41
+ * @type {MerchantAccountEntityCFee}
42
42
  * @memberof MerchantAccountServiceEntity
43
43
  */
44
- cFee: MerchantAccountServiceEntityCFee;
44
+ cFee: MerchantAccountEntityCFee;
45
45
  /**
46
46
  * The date the merchant was created.
47
47
  * @type {Date}
@@ -10,7 +10,7 @@
10
10
  Object.defineProperty(exports, "__esModule", { value: true });
11
11
  exports.MerchantAccountServiceEntityToJSON = exports.MerchantAccountServiceEntityFromJSONTyped = exports.MerchantAccountServiceEntityFromJSON = exports.instanceOfMerchantAccountServiceEntity = exports.MerchantAccountServiceEntityCardTypesEnum = exports.MerchantAccountServiceEntityCurrenciesEnum = exports.MerchantAccountServiceEntityCardSchemesEnum = exports.MerchantAccountServiceEntityStatusEnum = exports.MerchantAccountServiceEntityMethodEnum = exports.MerchantAccountServiceEntityPspEnum = void 0;
12
12
  const runtime_1 = require("../runtime");
13
- const MerchantAccountServiceEntityCFee_1 = require("./MerchantAccountServiceEntityCFee");
13
+ const MerchantAccountEntityCFee_1 = require("./MerchantAccountEntityCFee");
14
14
  const MerchantConnectorServiceEntity_1 = require("./MerchantConnectorServiceEntity");
15
15
  /**
16
16
  * @export
@@ -98,7 +98,7 @@ function MerchantAccountServiceEntityFromJSONTyped(json, ignoreDiscriminator) {
98
98
  'merchantId': !(0, runtime_1.exists)(json, 'merchantId') ? undefined : json['merchantId'],
99
99
  'issuedMid': json['issuedMid'],
100
100
  'psp': json['psp'],
101
- 'cFee': (0, MerchantAccountServiceEntityCFee_1.MerchantAccountServiceEntityCFeeFromJSON)(json['cFee']),
101
+ 'cFee': (0, MerchantAccountEntityCFee_1.MerchantAccountEntityCFeeFromJSON)(json['cFee']),
102
102
  'createdAt': (new Date(json['createdAt'])),
103
103
  'updatedAt': (new Date(json['updatedAt'])),
104
104
  'method': json['method'],
@@ -124,7 +124,7 @@ function MerchantAccountServiceEntityToJSON(value) {
124
124
  'merchantId': value.merchantId,
125
125
  'issuedMid': value.issuedMid,
126
126
  'psp': value.psp,
127
- 'cFee': (0, MerchantAccountServiceEntityCFee_1.MerchantAccountServiceEntityCFeeToJSON)(value.cFee),
127
+ 'cFee': (0, MerchantAccountEntityCFee_1.MerchantAccountEntityCFeeToJSON)(value.cFee),
128
128
  'createdAt': (value.createdAt.toISOString()),
129
129
  'updatedAt': (value.updatedAt.toISOString()),
130
130
  'method': value.method,
@@ -0,0 +1,136 @@
1
+ /**
2
+ * Channel Payments API
3
+ *
4
+ * NOTE: This class is auto generated. Do not edit the class manually.
5
+ *
6
+ */
7
+ import type { CreateMerchantAccountDtoCFee } from './CreateMerchantAccountDtoCFee';
8
+ /**
9
+ *
10
+ * @export
11
+ * @interface UpdateMerchantAccountDto
12
+ */
13
+ export interface UpdateMerchantAccountDto {
14
+ /**
15
+ * The payment method
16
+ * @type {string}
17
+ * @memberof UpdateMerchantAccountDto
18
+ */
19
+ method?: UpdateMerchantAccountDtoMethodEnum;
20
+ /**
21
+ * The payment service provider
22
+ * @type {string}
23
+ * @memberof UpdateMerchantAccountDto
24
+ */
25
+ psp?: UpdateMerchantAccountDtoPspEnum;
26
+ /**
27
+ *
28
+ * @type {CreateMerchantAccountDtoCFee}
29
+ * @memberof UpdateMerchantAccountDto
30
+ */
31
+ cFee?: CreateMerchantAccountDtoCFee;
32
+ /**
33
+ * The accepted card types
34
+ * @type {Array<string>}
35
+ * @memberof UpdateMerchantAccountDto
36
+ */
37
+ cardTypes?: Array<UpdateMerchantAccountDtoCardTypesEnum>;
38
+ /**
39
+ * The accepted card schemes
40
+ * @type {Array<string>}
41
+ * @memberof UpdateMerchantAccountDto
42
+ */
43
+ cardSchemes?: Array<UpdateMerchantAccountDtoCardSchemesEnum>;
44
+ /**
45
+ * The accepted currencies
46
+ * @type {Array<string>}
47
+ * @memberof UpdateMerchantAccountDto
48
+ */
49
+ currencies?: Array<UpdateMerchantAccountDtoCurrenciesEnum>;
50
+ /**
51
+ * The MCC (Merchant Category Code)
52
+ * @type {string}
53
+ * @memberof UpdateMerchantAccountDto
54
+ */
55
+ mcc?: string;
56
+ /**
57
+ * The BIN (Bank Identification Number)
58
+ * @type {string}
59
+ * @memberof UpdateMerchantAccountDto
60
+ */
61
+ bin?: string;
62
+ /**
63
+ * The chain or franchise information associated with the merchant
64
+ * @type {string}
65
+ * @memberof UpdateMerchantAccountDto
66
+ */
67
+ chain?: string;
68
+ /**
69
+ * The store information associated with the merchant
70
+ * @type {string}
71
+ * @memberof UpdateMerchantAccountDto
72
+ */
73
+ store?: string;
74
+ /**
75
+ * The agent information associated with the merchant
76
+ * @type {string}
77
+ * @memberof UpdateMerchantAccountDto
78
+ */
79
+ agent?: string;
80
+ }
81
+ /**
82
+ * @export
83
+ */
84
+ export declare const UpdateMerchantAccountDtoMethodEnum: {
85
+ readonly Card: "CARD";
86
+ readonly Ach: "ACH";
87
+ };
88
+ export type UpdateMerchantAccountDtoMethodEnum = typeof UpdateMerchantAccountDtoMethodEnum[keyof typeof UpdateMerchantAccountDtoMethodEnum];
89
+ /**
90
+ * @export
91
+ */
92
+ export declare const UpdateMerchantAccountDtoPspEnum: {
93
+ readonly Tsys: "TSYS";
94
+ readonly Nashville: "NASHVILLE";
95
+ readonly North: "NORTH";
96
+ readonly ChannelPayments: "CHANNEL_PAYMENTS";
97
+ };
98
+ export type UpdateMerchantAccountDtoPspEnum = typeof UpdateMerchantAccountDtoPspEnum[keyof typeof UpdateMerchantAccountDtoPspEnum];
99
+ /**
100
+ * @export
101
+ */
102
+ export declare const UpdateMerchantAccountDtoCardTypesEnum: {
103
+ readonly Credit: "CREDIT";
104
+ readonly Debit: "DEBIT";
105
+ readonly Prepaid: "PREPAID";
106
+ };
107
+ export type UpdateMerchantAccountDtoCardTypesEnum = typeof UpdateMerchantAccountDtoCardTypesEnum[keyof typeof UpdateMerchantAccountDtoCardTypesEnum];
108
+ /**
109
+ * @export
110
+ */
111
+ export declare const UpdateMerchantAccountDtoCardSchemesEnum: {
112
+ readonly Visa: "VISA";
113
+ readonly Mastercard: "MASTERCARD";
114
+ readonly Amex: "AMEX";
115
+ readonly Discover: "DISCOVER";
116
+ readonly Jcb: "JCB";
117
+ readonly DinersClub: "DINERS_CLUB";
118
+ readonly Maestro: "MAESTRO";
119
+ };
120
+ export type UpdateMerchantAccountDtoCardSchemesEnum = typeof UpdateMerchantAccountDtoCardSchemesEnum[keyof typeof UpdateMerchantAccountDtoCardSchemesEnum];
121
+ /**
122
+ * @export
123
+ */
124
+ export declare const UpdateMerchantAccountDtoCurrenciesEnum: {
125
+ readonly Usd: "USD";
126
+ readonly Aud: "AUD";
127
+ readonly Cad: "CAD";
128
+ };
129
+ export type UpdateMerchantAccountDtoCurrenciesEnum = typeof UpdateMerchantAccountDtoCurrenciesEnum[keyof typeof UpdateMerchantAccountDtoCurrenciesEnum];
130
+ /**
131
+ * Check if a given object implements the UpdateMerchantAccountDto interface.
132
+ */
133
+ export declare function instanceOfUpdateMerchantAccountDto(value: object): boolean;
134
+ export declare function UpdateMerchantAccountDtoFromJSON(json: any): UpdateMerchantAccountDto;
135
+ export declare function UpdateMerchantAccountDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateMerchantAccountDto;
136
+ export declare function UpdateMerchantAccountDtoToJSON(value?: UpdateMerchantAccountDto | null): any;