@channelpayments/node-sdk 1.197.0 → 1.200.1

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 (65) hide show
  1. package/dist/cjs/apis/ChannelPaymentsApi.d.ts +7 -6
  2. package/dist/cjs/apis/ChannelPaymentsApi.js +73 -18
  3. package/dist/cjs/models/AdminCreateMerchantCredentialsDto.d.ts +32 -0
  4. package/dist/cjs/models/AdminCreateMerchantCredentialsDto.js +49 -0
  5. package/dist/cjs/models/AdminMerchantSettingsDto.d.ts +63 -0
  6. package/dist/cjs/models/AdminMerchantSettingsDto.js +59 -0
  7. package/dist/cjs/models/CFeeEntity.d.ts +12 -0
  8. package/dist/cjs/models/CFeeEntity.js +4 -0
  9. package/dist/cjs/models/CreateCFeeDto.d.ts +13 -1
  10. package/dist/cjs/models/CreateCFeeDto.js +4 -0
  11. package/dist/cjs/models/CreateMerchantAccountDto.d.ts +187 -0
  12. package/dist/cjs/models/CreateMerchantAccountDto.js +139 -0
  13. package/dist/cjs/models/CreateMerchantAccountWithoutMerchantIdDto.d.ts +15 -3
  14. package/dist/cjs/models/CreateMerchantAccountWithoutMerchantIdDto.js +6 -2
  15. package/dist/cjs/models/CreateMerchantDto.d.ts +6 -6
  16. package/dist/cjs/models/CreateMerchantDto.js +2 -2
  17. package/dist/cjs/models/MerchantAccountEntity.d.ts +204 -0
  18. package/dist/cjs/models/MerchantAccountEntity.js +156 -0
  19. package/dist/cjs/models/MerchantAccountServiceEntity.d.ts +6 -0
  20. package/dist/cjs/models/MerchantAccountServiceEntity.js +2 -0
  21. package/dist/cjs/models/MerchantSettingsBaseDto.d.ts +7 -1
  22. package/dist/cjs/models/MerchantSettingsBaseDto.js +2 -0
  23. package/dist/cjs/models/MerchantSettingsDto.d.ts +1 -1
  24. package/dist/cjs/models/MerchantSettingsEntity.d.ts +6 -0
  25. package/dist/cjs/models/MerchantSettingsEntity.js +3 -0
  26. package/dist/cjs/models/UpdateMerchantAccountDto.d.ts +12 -16
  27. package/dist/cjs/models/UpdateMerchantAccountDto.js +5 -12
  28. package/dist/cjs/models/UpdateMerchantConnectorCredentialsDto.d.ts +38 -0
  29. package/dist/cjs/models/UpdateMerchantConnectorCredentialsDto.js +50 -0
  30. package/dist/cjs/models/index.d.ts +5 -0
  31. package/dist/cjs/models/index.js +5 -0
  32. package/dist/cjs/runtime.js +1 -1
  33. package/dist/mjs/apis/ChannelPaymentsApi.d.ts +7 -6
  34. package/dist/mjs/apis/ChannelPaymentsApi.js +71 -18
  35. package/dist/mjs/models/AdminCreateMerchantCredentialsDto.d.ts +32 -0
  36. package/dist/mjs/models/AdminCreateMerchantCredentialsDto.js +43 -0
  37. package/dist/mjs/models/AdminMerchantSettingsDto.d.ts +63 -0
  38. package/dist/mjs/models/AdminMerchantSettingsDto.js +53 -0
  39. package/dist/mjs/models/CFeeEntity.d.ts +12 -0
  40. package/dist/mjs/models/CFeeEntity.js +5 -1
  41. package/dist/mjs/models/CreateCFeeDto.d.ts +13 -1
  42. package/dist/mjs/models/CreateCFeeDto.js +5 -1
  43. package/dist/mjs/models/CreateMerchantAccountDto.d.ts +187 -0
  44. package/dist/mjs/models/CreateMerchantAccountDto.js +132 -0
  45. package/dist/mjs/models/CreateMerchantAccountWithoutMerchantIdDto.d.ts +15 -3
  46. package/dist/mjs/models/CreateMerchantAccountWithoutMerchantIdDto.js +6 -2
  47. package/dist/mjs/models/CreateMerchantDto.d.ts +6 -6
  48. package/dist/mjs/models/CreateMerchantDto.js +2 -2
  49. package/dist/mjs/models/MerchantAccountEntity.d.ts +204 -0
  50. package/dist/mjs/models/MerchantAccountEntity.js +149 -0
  51. package/dist/mjs/models/MerchantAccountServiceEntity.d.ts +6 -0
  52. package/dist/mjs/models/MerchantAccountServiceEntity.js +2 -0
  53. package/dist/mjs/models/MerchantSettingsBaseDto.d.ts +7 -1
  54. package/dist/mjs/models/MerchantSettingsBaseDto.js +2 -0
  55. package/dist/mjs/models/MerchantSettingsDto.d.ts +1 -1
  56. package/dist/mjs/models/MerchantSettingsEntity.d.ts +6 -0
  57. package/dist/mjs/models/MerchantSettingsEntity.js +3 -0
  58. package/dist/mjs/models/UpdateMerchantAccountDto.d.ts +12 -16
  59. package/dist/mjs/models/UpdateMerchantAccountDto.js +4 -11
  60. package/dist/mjs/models/UpdateMerchantConnectorCredentialsDto.d.ts +38 -0
  61. package/dist/mjs/models/UpdateMerchantConnectorCredentialsDto.js +44 -0
  62. package/dist/mjs/models/index.d.ts +5 -0
  63. package/dist/mjs/models/index.js +5 -0
  64. package/dist/mjs/runtime.js +1 -1
  65. package/package.json +9 -9
@@ -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.CreateMerchantAccountDtoCurrenciesEnum = exports.CreateMerchantAccountDtoDataSourceEnum = exports.CreateMerchantAccountDtoCardSchemesEnum = exports.CreateMerchantAccountDtoCardTypesEnum = exports.CreateMerchantAccountDtoPspEnum = exports.CreateMerchantAccountDtoMethodEnum = void 0;
12
+ exports.instanceOfCreateMerchantAccountDto = instanceOfCreateMerchantAccountDto;
13
+ exports.CreateMerchantAccountDtoFromJSON = CreateMerchantAccountDtoFromJSON;
14
+ exports.CreateMerchantAccountDtoFromJSONTyped = CreateMerchantAccountDtoFromJSONTyped;
15
+ exports.CreateMerchantAccountDtoToJSON = CreateMerchantAccountDtoToJSON;
16
+ const runtime_1 = require("../runtime");
17
+ const CreateCFeeDto_1 = require("./CreateCFeeDto");
18
+ const CreateMerchantConnectorWithoutMerchantAccountIdDto_1 = require("./CreateMerchantConnectorWithoutMerchantAccountIdDto");
19
+ /**
20
+ * @export
21
+ */
22
+ exports.CreateMerchantAccountDtoMethodEnum = {
23
+ Card: 'CARD',
24
+ Ach: 'ACH'
25
+ };
26
+ /**
27
+ * @export
28
+ */
29
+ exports.CreateMerchantAccountDtoPspEnum = {
30
+ Tsys: 'TSYS',
31
+ Nashville: 'NASHVILLE',
32
+ North: 'NORTH',
33
+ ChannelPayments: 'CHANNEL_PAYMENTS'
34
+ };
35
+ /**
36
+ * @export
37
+ */
38
+ exports.CreateMerchantAccountDtoCardTypesEnum = {
39
+ Credit: 'CREDIT',
40
+ Debit: 'DEBIT',
41
+ Prepaid: 'PREPAID'
42
+ };
43
+ /**
44
+ * @export
45
+ */
46
+ exports.CreateMerchantAccountDtoCardSchemesEnum = {
47
+ Visa: 'VISA',
48
+ Mastercard: 'MASTERCARD',
49
+ Amex: 'AMEX',
50
+ Discover: 'DISCOVER',
51
+ Jcb: 'JCB',
52
+ DinersClub: 'DINERS_CLUB',
53
+ Maestro: 'MAESTRO'
54
+ };
55
+ /**
56
+ * @export
57
+ */
58
+ exports.CreateMerchantAccountDtoDataSourceEnum = {
59
+ Moto: 'MOTO',
60
+ Internet: 'INTERNET'
61
+ };
62
+ /**
63
+ * @export
64
+ */
65
+ exports.CreateMerchantAccountDtoCurrenciesEnum = {
66
+ Usd: 'USD',
67
+ Aud: 'AUD',
68
+ Cad: 'CAD'
69
+ };
70
+ /**
71
+ * Check if a given object implements the CreateMerchantAccountDto interface.
72
+ */
73
+ function instanceOfCreateMerchantAccountDto(value) {
74
+ let isInstance = true;
75
+ isInstance = isInstance && "merchantId" in value;
76
+ isInstance = isInstance && "issuedMid" in value;
77
+ isInstance = isInstance && "method" in value;
78
+ isInstance = isInstance && "psp" in value;
79
+ isInstance = isInstance && "cFee" in value;
80
+ isInstance = isInstance && "connectors" in value;
81
+ return isInstance;
82
+ }
83
+ function CreateMerchantAccountDtoFromJSON(json) {
84
+ return CreateMerchantAccountDtoFromJSONTyped(json, false);
85
+ }
86
+ function CreateMerchantAccountDtoFromJSONTyped(json, ignoreDiscriminator) {
87
+ if ((json === undefined) || (json === null)) {
88
+ return json;
89
+ }
90
+ const typed = {
91
+ 'merchantId': json['merchantId'],
92
+ 'issuedMid': json['issuedMid'],
93
+ 'method': json['method'],
94
+ 'psp': json['psp'],
95
+ 'cFee': (0, CreateCFeeDto_1.CreateCFeeDtoFromJSON)(json['cFee']),
96
+ 'connectors': (json['connectors'].map(CreateMerchantConnectorWithoutMerchantAccountIdDto_1.CreateMerchantConnectorWithoutMerchantAccountIdDtoFromJSON)),
97
+ 'cardTypes': !(0, runtime_1.exists)(json, 'cardTypes') ? undefined : json['cardTypes'],
98
+ 'cardSchemes': !(0, runtime_1.exists)(json, 'cardSchemes') ? undefined : json['cardSchemes'],
99
+ 'dataSource': !(0, runtime_1.exists)(json, 'dataSource') ? undefined : json['dataSource'],
100
+ 'currencies': !(0, runtime_1.exists)(json, 'currencies') ? undefined : json['currencies'],
101
+ 'name': !(0, runtime_1.exists)(json, 'name') ? undefined : json['name'],
102
+ 'mcc': !(0, runtime_1.exists)(json, 'mcc') ? undefined : json['mcc'],
103
+ 'bin': !(0, runtime_1.exists)(json, 'bin') ? undefined : json['bin'],
104
+ 'chain': !(0, runtime_1.exists)(json, 'chain') ? undefined : json['chain'],
105
+ 'store': !(0, runtime_1.exists)(json, 'store') ? undefined : json['store'],
106
+ 'agent': !(0, runtime_1.exists)(json, 'agent') ? undefined : json['agent'],
107
+ 'isDefault': !(0, runtime_1.exists)(json, 'isDefault') ? undefined : json['isDefault'],
108
+ 'transactionLimit': !(0, runtime_1.exists)(json, 'transactionLimit') ? undefined : json['transactionLimit'],
109
+ };
110
+ return (0, runtime_1.removeNullUndefined)(typed);
111
+ }
112
+ function CreateMerchantAccountDtoToJSON(value) {
113
+ if (value === undefined) {
114
+ return undefined;
115
+ }
116
+ if (value === null) {
117
+ return null;
118
+ }
119
+ return {
120
+ 'merchantId': value.merchantId,
121
+ 'issuedMid': value.issuedMid,
122
+ 'method': value.method,
123
+ 'psp': value.psp,
124
+ 'cFee': (0, CreateCFeeDto_1.CreateCFeeDtoToJSON)(value.cFee),
125
+ 'connectors': (value.connectors.map(CreateMerchantConnectorWithoutMerchantAccountIdDto_1.CreateMerchantConnectorWithoutMerchantAccountIdDtoToJSON)),
126
+ 'cardTypes': value.cardTypes,
127
+ 'cardSchemes': value.cardSchemes,
128
+ 'dataSource': value.dataSource,
129
+ 'currencies': value.currencies,
130
+ 'name': value.name,
131
+ 'mcc': value.mcc,
132
+ 'bin': value.bin,
133
+ 'chain': value.chain,
134
+ 'store': value.store,
135
+ 'agent': value.agent,
136
+ 'isDefault': value.isDefault,
137
+ 'transactionLimit': value.transactionLimit,
138
+ };
139
+ }
@@ -36,6 +36,12 @@ export interface CreateMerchantAccountWithoutMerchantIdDto {
36
36
  * @memberof CreateMerchantAccountWithoutMerchantIdDto
37
37
  */
38
38
  cFee: CreateCFeeDto;
39
+ /**
40
+ * The list of merchant connectors
41
+ * @type {Array<CreateMerchantConnectorWithoutMerchantAccountIdDto>}
42
+ * @memberof CreateMerchantAccountWithoutMerchantIdDto
43
+ */
44
+ connectors: Array<CreateMerchantConnectorWithoutMerchantAccountIdDto>;
39
45
  /**
40
46
  * The accepted card types
41
47
  * @type {Array<string>}
@@ -61,11 +67,11 @@ export interface CreateMerchantAccountWithoutMerchantIdDto {
61
67
  */
62
68
  currencies?: Array<CreateMerchantAccountWithoutMerchantIdDtoCurrenciesEnum>;
63
69
  /**
64
- * The list of merchant connectors
65
- * @type {Array<CreateMerchantConnectorWithoutMerchantAccountIdDto>}
70
+ * The associated merchant name
71
+ * @type {string}
66
72
  * @memberof CreateMerchantAccountWithoutMerchantIdDto
67
73
  */
68
- connectors: Array<CreateMerchantConnectorWithoutMerchantAccountIdDto>;
74
+ name?: string;
69
75
  /**
70
76
  * The MCC (Merchant Category Code)
71
77
  * @type {string}
@@ -102,6 +108,12 @@ export interface CreateMerchantAccountWithoutMerchantIdDto {
102
108
  * @memberof CreateMerchantAccountWithoutMerchantIdDto
103
109
  */
104
110
  isDefault?: boolean;
111
+ /**
112
+ * Transaction limit for this merchant.
113
+ * @type {number}
114
+ * @memberof CreateMerchantAccountWithoutMerchantIdDto
115
+ */
116
+ transactionLimit?: number;
105
117
  }
106
118
  /**
107
119
  * @export
@@ -91,17 +91,19 @@ function CreateMerchantAccountWithoutMerchantIdDtoFromJSONTyped(json, ignoreDisc
91
91
  'method': json['method'],
92
92
  'psp': json['psp'],
93
93
  'cFee': (0, CreateCFeeDto_1.CreateCFeeDtoFromJSON)(json['cFee']),
94
+ 'connectors': (json['connectors'].map(CreateMerchantConnectorWithoutMerchantAccountIdDto_1.CreateMerchantConnectorWithoutMerchantAccountIdDtoFromJSON)),
94
95
  'cardTypes': !(0, runtime_1.exists)(json, 'cardTypes') ? undefined : json['cardTypes'],
95
96
  'cardSchemes': !(0, runtime_1.exists)(json, 'cardSchemes') ? undefined : json['cardSchemes'],
96
97
  'dataSource': !(0, runtime_1.exists)(json, 'dataSource') ? undefined : json['dataSource'],
97
98
  'currencies': !(0, runtime_1.exists)(json, 'currencies') ? undefined : json['currencies'],
98
- 'connectors': (json['connectors'].map(CreateMerchantConnectorWithoutMerchantAccountIdDto_1.CreateMerchantConnectorWithoutMerchantAccountIdDtoFromJSON)),
99
+ 'name': !(0, runtime_1.exists)(json, 'name') ? undefined : json['name'],
99
100
  'mcc': !(0, runtime_1.exists)(json, 'mcc') ? undefined : json['mcc'],
100
101
  'bin': !(0, runtime_1.exists)(json, 'bin') ? undefined : json['bin'],
101
102
  'chain': !(0, runtime_1.exists)(json, 'chain') ? undefined : json['chain'],
102
103
  'store': !(0, runtime_1.exists)(json, 'store') ? undefined : json['store'],
103
104
  'agent': !(0, runtime_1.exists)(json, 'agent') ? undefined : json['agent'],
104
105
  'isDefault': !(0, runtime_1.exists)(json, 'isDefault') ? undefined : json['isDefault'],
106
+ 'transactionLimit': !(0, runtime_1.exists)(json, 'transactionLimit') ? undefined : json['transactionLimit'],
105
107
  };
106
108
  return (0, runtime_1.removeNullUndefined)(typed);
107
109
  }
@@ -117,16 +119,18 @@ function CreateMerchantAccountWithoutMerchantIdDtoToJSON(value) {
117
119
  'method': value.method,
118
120
  'psp': value.psp,
119
121
  'cFee': (0, CreateCFeeDto_1.CreateCFeeDtoToJSON)(value.cFee),
122
+ 'connectors': (value.connectors.map(CreateMerchantConnectorWithoutMerchantAccountIdDto_1.CreateMerchantConnectorWithoutMerchantAccountIdDtoToJSON)),
120
123
  'cardTypes': value.cardTypes,
121
124
  'cardSchemes': value.cardSchemes,
122
125
  'dataSource': value.dataSource,
123
126
  'currencies': value.currencies,
124
- 'connectors': (value.connectors.map(CreateMerchantConnectorWithoutMerchantAccountIdDto_1.CreateMerchantConnectorWithoutMerchantAccountIdDtoToJSON)),
127
+ 'name': value.name,
125
128
  'mcc': value.mcc,
126
129
  'bin': value.bin,
127
130
  'chain': value.chain,
128
131
  'store': value.store,
129
132
  'agent': value.agent,
130
133
  'isDefault': value.isDefault,
134
+ 'transactionLimit': value.transactionLimit,
131
135
  };
132
136
  }
@@ -37,6 +37,12 @@ export interface CreateMerchantDto {
37
37
  * @memberof CreateMerchantDto
38
38
  */
39
39
  address: CreateMerchantAddressDto;
40
+ /**
41
+ * Array of merchant accounts.
42
+ * @type {Array<CreateMerchantAccountWithoutMerchantIdDto>}
43
+ * @memberof CreateMerchantDto
44
+ */
45
+ merchantAccounts?: Array<CreateMerchantAccountWithoutMerchantIdDto>;
40
46
  /**
41
47
  * The website URL of the merchant.
42
48
  * @type {string}
@@ -49,12 +55,6 @@ export interface CreateMerchantDto {
49
55
  * @memberof CreateMerchantDto
50
56
  */
51
57
  parentMerchantId?: string;
52
- /**
53
- * Array of merchant accounts.
54
- * @type {Array<CreateMerchantAccountWithoutMerchantIdDto>}
55
- * @memberof CreateMerchantDto
56
- */
57
- merchantAccounts?: Array<CreateMerchantAccountWithoutMerchantIdDto>;
58
58
  /**
59
59
  * The merchant settings.
60
60
  * @type {MerchantSettingsBaseDto}
@@ -39,9 +39,9 @@ function CreateMerchantDtoFromJSONTyped(json, ignoreDiscriminator) {
39
39
  'email': json['email'],
40
40
  'phoneNumber': json['phoneNumber'],
41
41
  'address': (0, CreateMerchantAddressDto_1.CreateMerchantAddressDtoFromJSON)(json['address']),
42
+ 'merchantAccounts': !(0, runtime_1.exists)(json, 'merchantAccounts') ? undefined : (json['merchantAccounts'].map(CreateMerchantAccountWithoutMerchantIdDto_1.CreateMerchantAccountWithoutMerchantIdDtoFromJSON)),
42
43
  'website': !(0, runtime_1.exists)(json, 'website') ? undefined : json['website'],
43
44
  'parentMerchantId': !(0, runtime_1.exists)(json, 'parentMerchantId') ? undefined : json['parentMerchantId'],
44
- 'merchantAccounts': !(0, runtime_1.exists)(json, 'merchantAccounts') ? undefined : (json['merchantAccounts'].map(CreateMerchantAccountWithoutMerchantIdDto_1.CreateMerchantAccountWithoutMerchantIdDtoFromJSON)),
45
45
  'merchantSettings': !(0, runtime_1.exists)(json, 'merchantSettings') ? undefined : (0, MerchantSettingsBaseDto_1.MerchantSettingsBaseDtoFromJSON)(json['merchantSettings']),
46
46
  };
47
47
  return (0, runtime_1.removeNullUndefined)(typed);
@@ -58,9 +58,9 @@ function CreateMerchantDtoToJSON(value) {
58
58
  'email': value.email,
59
59
  'phoneNumber': value.phoneNumber,
60
60
  'address': (0, CreateMerchantAddressDto_1.CreateMerchantAddressDtoToJSON)(value.address),
61
+ 'merchantAccounts': value.merchantAccounts === undefined ? undefined : (value.merchantAccounts.map(CreateMerchantAccountWithoutMerchantIdDto_1.CreateMerchantAccountWithoutMerchantIdDtoToJSON)),
61
62
  'website': value.website,
62
63
  'parentMerchantId': value.parentMerchantId,
63
- 'merchantAccounts': value.merchantAccounts === undefined ? undefined : (value.merchantAccounts.map(CreateMerchantAccountWithoutMerchantIdDto_1.CreateMerchantAccountWithoutMerchantIdDtoToJSON)),
64
64
  'merchantSettings': (0, MerchantSettingsBaseDto_1.MerchantSettingsBaseDtoToJSON)(value.merchantSettings),
65
65
  };
66
66
  }
@@ -0,0 +1,204 @@
1
+ /**
2
+ * Channel Payments API
3
+ *
4
+ * NOTE: This class is auto generated. Do not edit the class manually.
5
+ *
6
+ */
7
+ import type { CFeeEntity } from './CFeeEntity';
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
+ * The CFee details.
41
+ * @type {CFeeEntity}
42
+ * @memberof MerchantAccountEntity
43
+ */
44
+ cFee: CFeeEntity;
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
+ * Specifies if default merchant account for a given payment method.
89
+ * @type {boolean}
90
+ * @memberof MerchantAccountEntity
91
+ */
92
+ isDefault?: boolean;
93
+ /**
94
+ * The name of the merchant account.
95
+ * @type {string}
96
+ * @memberof MerchantAccountEntity
97
+ */
98
+ name?: string;
99
+ /**
100
+ * The connectors.
101
+ * @type {Array<MerchantConnectorServiceEntity>}
102
+ * @memberof MerchantAccountEntity
103
+ */
104
+ connectors?: Array<MerchantConnectorServiceEntity>;
105
+ /**
106
+ * Transaction limit for this merchant account.
107
+ * @type {number}
108
+ * @memberof MerchantAccountEntity
109
+ */
110
+ transactionLimit?: number;
111
+ /**
112
+ * The date the merchant account was last polled for return notifications.
113
+ * @type {Date}
114
+ * @memberof MerchantAccountEntity
115
+ */
116
+ lastPolledAt?: Date;
117
+ /**
118
+ * Source of card data for this merchant account
119
+ * @type {string}
120
+ * @memberof MerchantAccountEntity
121
+ */
122
+ dataSource?: MerchantAccountEntityDataSourceEnum;
123
+ /**
124
+ * The merchant category code.
125
+ * @type {string}
126
+ * @memberof MerchantAccountEntity
127
+ */
128
+ mcc?: string;
129
+ }
130
+ /**
131
+ * @export
132
+ */
133
+ export declare const MerchantAccountEntityPspEnum: {
134
+ readonly Tsys: "TSYS";
135
+ readonly Nashville: "NASHVILLE";
136
+ readonly North: "NORTH";
137
+ readonly ChannelPayments: "CHANNEL_PAYMENTS";
138
+ };
139
+ export type MerchantAccountEntityPspEnum = typeof MerchantAccountEntityPspEnum[keyof typeof MerchantAccountEntityPspEnum];
140
+ /**
141
+ * @export
142
+ */
143
+ export declare const MerchantAccountEntityMethodEnum: {
144
+ readonly Card: "CARD";
145
+ readonly Ach: "ACH";
146
+ };
147
+ export type MerchantAccountEntityMethodEnum = typeof MerchantAccountEntityMethodEnum[keyof typeof MerchantAccountEntityMethodEnum];
148
+ /**
149
+ * @export
150
+ */
151
+ export declare const MerchantAccountEntityStatusEnum: {
152
+ readonly Pending: "PENDING";
153
+ readonly Active: "ACTIVE";
154
+ readonly Inactive: "INACTIVE";
155
+ readonly Suspended: "SUSPENDED";
156
+ readonly Closed: "CLOSED";
157
+ };
158
+ export type MerchantAccountEntityStatusEnum = typeof MerchantAccountEntityStatusEnum[keyof typeof MerchantAccountEntityStatusEnum];
159
+ /**
160
+ * @export
161
+ */
162
+ export declare const MerchantAccountEntityCardSchemesEnum: {
163
+ readonly Visa: "VISA";
164
+ readonly Mastercard: "MASTERCARD";
165
+ readonly Amex: "AMEX";
166
+ readonly Discover: "DISCOVER";
167
+ readonly Jcb: "JCB";
168
+ readonly DinersClub: "DINERS_CLUB";
169
+ readonly Maestro: "MAESTRO";
170
+ };
171
+ export type MerchantAccountEntityCardSchemesEnum = typeof MerchantAccountEntityCardSchemesEnum[keyof typeof MerchantAccountEntityCardSchemesEnum];
172
+ /**
173
+ * @export
174
+ */
175
+ export declare const MerchantAccountEntityCurrenciesEnum: {
176
+ readonly Usd: "USD";
177
+ readonly Aud: "AUD";
178
+ readonly Cad: "CAD";
179
+ };
180
+ export type MerchantAccountEntityCurrenciesEnum = typeof MerchantAccountEntityCurrenciesEnum[keyof typeof MerchantAccountEntityCurrenciesEnum];
181
+ /**
182
+ * @export
183
+ */
184
+ export declare const MerchantAccountEntityCardTypesEnum: {
185
+ readonly Credit: "CREDIT";
186
+ readonly Debit: "DEBIT";
187
+ readonly Prepaid: "PREPAID";
188
+ };
189
+ export type MerchantAccountEntityCardTypesEnum = typeof MerchantAccountEntityCardTypesEnum[keyof typeof MerchantAccountEntityCardTypesEnum];
190
+ /**
191
+ * @export
192
+ */
193
+ export declare const MerchantAccountEntityDataSourceEnum: {
194
+ readonly Moto: "MOTO";
195
+ readonly Internet: "INTERNET";
196
+ };
197
+ export type MerchantAccountEntityDataSourceEnum = typeof MerchantAccountEntityDataSourceEnum[keyof typeof MerchantAccountEntityDataSourceEnum];
198
+ /**
199
+ * Check if a given object implements the MerchantAccountEntity interface.
200
+ */
201
+ export declare function instanceOfMerchantAccountEntity(value: object): boolean;
202
+ export declare function MerchantAccountEntityFromJSON(json: any): MerchantAccountEntity;
203
+ export declare function MerchantAccountEntityFromJSONTyped(json: any, ignoreDiscriminator: boolean): MerchantAccountEntity;
204
+ export declare function MerchantAccountEntityToJSON(value?: MerchantAccountEntity | null): any;
@@ -0,0 +1,156 @@
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.MerchantAccountEntityDataSourceEnum = exports.MerchantAccountEntityCardTypesEnum = exports.MerchantAccountEntityCurrenciesEnum = exports.MerchantAccountEntityCardSchemesEnum = exports.MerchantAccountEntityStatusEnum = exports.MerchantAccountEntityMethodEnum = exports.MerchantAccountEntityPspEnum = void 0;
12
+ exports.instanceOfMerchantAccountEntity = instanceOfMerchantAccountEntity;
13
+ exports.MerchantAccountEntityFromJSON = MerchantAccountEntityFromJSON;
14
+ exports.MerchantAccountEntityFromJSONTyped = MerchantAccountEntityFromJSONTyped;
15
+ exports.MerchantAccountEntityToJSON = MerchantAccountEntityToJSON;
16
+ const runtime_1 = require("../runtime");
17
+ const CFeeEntity_1 = require("./CFeeEntity");
18
+ const MerchantConnectorServiceEntity_1 = require("./MerchantConnectorServiceEntity");
19
+ /**
20
+ * @export
21
+ */
22
+ exports.MerchantAccountEntityPspEnum = {
23
+ Tsys: 'TSYS',
24
+ Nashville: 'NASHVILLE',
25
+ North: 'NORTH',
26
+ ChannelPayments: 'CHANNEL_PAYMENTS'
27
+ };
28
+ /**
29
+ * @export
30
+ */
31
+ exports.MerchantAccountEntityMethodEnum = {
32
+ Card: 'CARD',
33
+ Ach: 'ACH'
34
+ };
35
+ /**
36
+ * @export
37
+ */
38
+ exports.MerchantAccountEntityStatusEnum = {
39
+ Pending: 'PENDING',
40
+ Active: 'ACTIVE',
41
+ Inactive: 'INACTIVE',
42
+ Suspended: 'SUSPENDED',
43
+ Closed: 'CLOSED'
44
+ };
45
+ /**
46
+ * @export
47
+ */
48
+ exports.MerchantAccountEntityCardSchemesEnum = {
49
+ Visa: 'VISA',
50
+ Mastercard: 'MASTERCARD',
51
+ Amex: 'AMEX',
52
+ Discover: 'DISCOVER',
53
+ Jcb: 'JCB',
54
+ DinersClub: 'DINERS_CLUB',
55
+ Maestro: 'MAESTRO'
56
+ };
57
+ /**
58
+ * @export
59
+ */
60
+ exports.MerchantAccountEntityCurrenciesEnum = {
61
+ Usd: 'USD',
62
+ Aud: 'AUD',
63
+ Cad: 'CAD'
64
+ };
65
+ /**
66
+ * @export
67
+ */
68
+ exports.MerchantAccountEntityCardTypesEnum = {
69
+ Credit: 'CREDIT',
70
+ Debit: 'DEBIT',
71
+ Prepaid: 'PREPAID'
72
+ };
73
+ /**
74
+ * @export
75
+ */
76
+ exports.MerchantAccountEntityDataSourceEnum = {
77
+ Moto: 'MOTO',
78
+ Internet: 'INTERNET'
79
+ };
80
+ /**
81
+ * Check if a given object implements the MerchantAccountEntity interface.
82
+ */
83
+ function instanceOfMerchantAccountEntity(value) {
84
+ let isInstance = true;
85
+ isInstance = isInstance && "merchantAccountId" in value;
86
+ isInstance = isInstance && "issuedMid" in value;
87
+ isInstance = isInstance && "psp" in value;
88
+ isInstance = isInstance && "cFee" in value;
89
+ isInstance = isInstance && "createdAt" in value;
90
+ isInstance = isInstance && "updatedAt" in value;
91
+ isInstance = isInstance && "method" in value;
92
+ isInstance = isInstance && "status" in value;
93
+ isInstance = isInstance && "cardSchemes" in value;
94
+ isInstance = isInstance && "currencies" in value;
95
+ isInstance = isInstance && "cardTypes" in value;
96
+ return isInstance;
97
+ }
98
+ function MerchantAccountEntityFromJSON(json) {
99
+ return MerchantAccountEntityFromJSONTyped(json, false);
100
+ }
101
+ function MerchantAccountEntityFromJSONTyped(json, ignoreDiscriminator) {
102
+ if ((json === undefined) || (json === null)) {
103
+ return json;
104
+ }
105
+ const typed = {
106
+ 'merchantAccountId': json['merchantAccountId'],
107
+ 'merchantId': !(0, runtime_1.exists)(json, 'merchantId') ? undefined : json['merchantId'],
108
+ 'issuedMid': json['issuedMid'],
109
+ 'psp': json['psp'],
110
+ 'cFee': (0, CFeeEntity_1.CFeeEntityFromJSON)(json['cFee']),
111
+ 'createdAt': (new Date(json['createdAt'])),
112
+ 'updatedAt': (new Date(json['updatedAt'])),
113
+ 'method': json['method'],
114
+ 'status': json['status'],
115
+ 'cardSchemes': json['cardSchemes'],
116
+ 'currencies': json['currencies'],
117
+ 'cardTypes': json['cardTypes'],
118
+ 'isDefault': !(0, runtime_1.exists)(json, 'isDefault') ? undefined : json['isDefault'],
119
+ 'name': !(0, runtime_1.exists)(json, 'name') ? undefined : json['name'],
120
+ 'connectors': !(0, runtime_1.exists)(json, 'connectors') ? undefined : (json['connectors'].map(MerchantConnectorServiceEntity_1.MerchantConnectorServiceEntityFromJSON)),
121
+ 'transactionLimit': !(0, runtime_1.exists)(json, 'transactionLimit') ? undefined : json['transactionLimit'],
122
+ 'lastPolledAt': !(0, runtime_1.exists)(json, 'lastPolledAt') ? undefined : (new Date(json['lastPolledAt'])),
123
+ 'dataSource': !(0, runtime_1.exists)(json, 'dataSource') ? undefined : json['dataSource'],
124
+ 'mcc': !(0, runtime_1.exists)(json, 'mcc') ? undefined : json['mcc'],
125
+ };
126
+ return (0, runtime_1.removeNullUndefined)(typed);
127
+ }
128
+ function MerchantAccountEntityToJSON(value) {
129
+ if (value === undefined) {
130
+ return undefined;
131
+ }
132
+ if (value === null) {
133
+ return null;
134
+ }
135
+ return {
136
+ 'merchantAccountId': value.merchantAccountId,
137
+ 'merchantId': value.merchantId,
138
+ 'issuedMid': value.issuedMid,
139
+ 'psp': value.psp,
140
+ 'cFee': (0, CFeeEntity_1.CFeeEntityToJSON)(value.cFee),
141
+ 'createdAt': (value.createdAt.toISOString()),
142
+ 'updatedAt': (value.updatedAt.toISOString()),
143
+ 'method': value.method,
144
+ 'status': value.status,
145
+ 'cardSchemes': value.cardSchemes,
146
+ 'currencies': value.currencies,
147
+ 'cardTypes': value.cardTypes,
148
+ 'isDefault': value.isDefault,
149
+ 'name': value.name,
150
+ 'connectors': value.connectors === undefined ? undefined : (value.connectors.map(MerchantConnectorServiceEntity_1.MerchantConnectorServiceEntityToJSON)),
151
+ 'transactionLimit': value.transactionLimit,
152
+ 'lastPolledAt': value.lastPolledAt === undefined ? undefined : (value.lastPolledAt.toISOString()),
153
+ 'dataSource': value.dataSource,
154
+ 'mcc': value.mcc,
155
+ };
156
+ }
@@ -102,6 +102,12 @@ export interface MerchantAccountServiceEntity {
102
102
  * @memberof MerchantAccountServiceEntity
103
103
  */
104
104
  connectors?: Array<MerchantConnectorServiceEntity>;
105
+ /**
106
+ * Transaction limit for this merchant account.
107
+ * @type {number}
108
+ * @memberof MerchantAccountServiceEntity
109
+ */
110
+ transactionLimit?: number;
105
111
  /**
106
112
  * The date the merchant account was last polled for return notifications.
107
113
  * @type {Date}
@@ -118,6 +118,7 @@ function MerchantAccountServiceEntityFromJSONTyped(json, ignoreDiscriminator) {
118
118
  'isDefault': !(0, runtime_1.exists)(json, 'isDefault') ? undefined : json['isDefault'],
119
119
  'name': !(0, runtime_1.exists)(json, 'name') ? undefined : json['name'],
120
120
  'connectors': !(0, runtime_1.exists)(json, 'connectors') ? undefined : (json['connectors'].map(MerchantConnectorServiceEntity_1.MerchantConnectorServiceEntityFromJSON)),
121
+ 'transactionLimit': !(0, runtime_1.exists)(json, 'transactionLimit') ? undefined : json['transactionLimit'],
121
122
  'lastPolledAt': !(0, runtime_1.exists)(json, 'lastPolledAt') ? undefined : (new Date(json['lastPolledAt'])),
122
123
  'dataSource': !(0, runtime_1.exists)(json, 'dataSource') ? undefined : json['dataSource'],
123
124
  'mcc': !(0, runtime_1.exists)(json, 'mcc') ? undefined : json['mcc'],
@@ -147,6 +148,7 @@ function MerchantAccountServiceEntityToJSON(value) {
147
148
  'isDefault': value.isDefault,
148
149
  'name': value.name,
149
150
  'connectors': value.connectors === undefined ? undefined : (value.connectors.map(MerchantConnectorServiceEntity_1.MerchantConnectorServiceEntityToJSON)),
151
+ 'transactionLimit': value.transactionLimit,
150
152
  'lastPolledAt': value.lastPolledAt === undefined ? undefined : (value.lastPolledAt.toISOString()),
151
153
  'dataSource': value.dataSource,
152
154
  'mcc': value.mcc,
@@ -36,11 +36,17 @@ export interface MerchantSettingsBaseDto {
36
36
  */
37
37
  isPartialAuthEnabled?: boolean;
38
38
  /**
39
- * Enable bill payment on this merchant
39
+ * Enable bill payment on this merchant.
40
40
  * @type {boolean}
41
41
  * @memberof MerchantSettingsBaseDto
42
42
  */
43
43
  isBillPaymentEnabled?: boolean;
44
+ /**
45
+ * Store card on decline option for this merchant.
46
+ * @type {boolean}
47
+ * @memberof MerchantSettingsBaseDto
48
+ */
49
+ storeOnCardDecline?: boolean;
44
50
  }
45
51
  /**
46
52
  * Check if a given object implements the MerchantSettingsBaseDto interface.