@channelpayments/node-sdk 1.194.0 → 1.195.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 (59) hide show
  1. package/dist/cjs/models/CreateMerchantAccountWithoutMerchantIdDto.d.ts +14 -0
  2. package/dist/cjs/models/CreateMerchantAccountWithoutMerchantIdDto.js +10 -1
  3. package/dist/cjs/models/CreateMerchantConnectorWithoutMerchantAccountIdDto.d.ts +1 -1
  4. package/dist/cjs/models/CreateMerchantConnectorWithoutMerchantAccountIdDto.js +2 -2
  5. package/dist/cjs/models/CreateMerchantCredentialsDto.d.ts +0 -6
  6. package/dist/cjs/models/CreateMerchantCredentialsDto.js +0 -3
  7. package/dist/cjs/models/CreateMerchantDto.d.ts +3 -3
  8. package/dist/cjs/models/CreateMerchantDto.js +3 -3
  9. package/dist/cjs/models/MerchantAccountServiceEntity.d.ts +20 -0
  10. package/dist/cjs/models/MerchantAccountServiceEntity.js +12 -1
  11. package/dist/cjs/models/MerchantConnectorServiceEntity.d.ts +2 -2
  12. package/dist/cjs/models/MerchantConnectorServiceEntity.js +2 -2
  13. package/dist/cjs/models/MerchantSettingsBaseDto.d.ts +51 -0
  14. package/dist/cjs/models/MerchantSettingsBaseDto.js +54 -0
  15. package/dist/cjs/models/MerchantSettingsDto.d.ts +2 -2
  16. package/dist/cjs/models/MerchantSettingsDto.js +2 -2
  17. package/dist/cjs/models/MerchantSettingsEntity.d.ts +18 -0
  18. package/dist/cjs/models/MerchantSettingsEntity.js +9 -0
  19. package/dist/cjs/models/UpdateMerchantAccountDto.d.ts +14 -0
  20. package/dist/cjs/models/UpdateMerchantAccountDto.js +10 -1
  21. package/dist/cjs/models/UpdateMerchantCredentialsDto.d.ts +4 -4
  22. package/dist/cjs/models/UpdateMerchantCredentialsDto.js +3 -2
  23. package/dist/cjs/models/index.d.ts +1 -2
  24. package/dist/cjs/models/index.js +1 -2
  25. package/dist/cjs/runtime.js +1 -1
  26. package/dist/mjs/models/CreateMerchantAccountWithoutMerchantIdDto.d.ts +14 -0
  27. package/dist/mjs/models/CreateMerchantAccountWithoutMerchantIdDto.js +9 -0
  28. package/dist/mjs/models/CreateMerchantConnectorWithoutMerchantAccountIdDto.d.ts +1 -1
  29. package/dist/mjs/models/CreateMerchantConnectorWithoutMerchantAccountIdDto.js +2 -2
  30. package/dist/mjs/models/CreateMerchantCredentialsDto.d.ts +0 -6
  31. package/dist/mjs/models/CreateMerchantCredentialsDto.js +0 -3
  32. package/dist/mjs/models/CreateMerchantDto.d.ts +3 -3
  33. package/dist/mjs/models/CreateMerchantDto.js +3 -3
  34. package/dist/mjs/models/MerchantAccountServiceEntity.d.ts +20 -0
  35. package/dist/mjs/models/MerchantAccountServiceEntity.js +11 -0
  36. package/dist/mjs/models/MerchantConnectorServiceEntity.d.ts +2 -2
  37. package/dist/mjs/models/MerchantConnectorServiceEntity.js +2 -2
  38. package/dist/mjs/models/MerchantSettingsBaseDto.d.ts +51 -0
  39. package/dist/mjs/models/MerchantSettingsBaseDto.js +48 -0
  40. package/dist/mjs/models/MerchantSettingsDto.d.ts +2 -2
  41. package/dist/mjs/models/MerchantSettingsDto.js +2 -2
  42. package/dist/mjs/models/MerchantSettingsEntity.d.ts +18 -0
  43. package/dist/mjs/models/MerchantSettingsEntity.js +9 -0
  44. package/dist/mjs/models/UpdateMerchantAccountDto.d.ts +14 -0
  45. package/dist/mjs/models/UpdateMerchantAccountDto.js +9 -0
  46. package/dist/mjs/models/UpdateMerchantCredentialsDto.d.ts +4 -4
  47. package/dist/mjs/models/UpdateMerchantCredentialsDto.js +4 -3
  48. package/dist/mjs/models/index.d.ts +1 -2
  49. package/dist/mjs/models/index.js +1 -2
  50. package/dist/mjs/runtime.js +1 -1
  51. package/package.json +1 -1
  52. package/dist/cjs/models/CreateMerchantAccountDto.d.ts +0 -161
  53. package/dist/cjs/models/CreateMerchantAccountDto.js +0 -126
  54. package/dist/cjs/models/MerchantAccountEntity.d.ts +0 -178
  55. package/dist/cjs/models/MerchantAccountEntity.js +0 -143
  56. package/dist/mjs/models/CreateMerchantAccountDto.d.ts +0 -161
  57. package/dist/mjs/models/CreateMerchantAccountDto.js +0 -119
  58. package/dist/mjs/models/MerchantAccountEntity.d.ts +0 -178
  59. package/dist/mjs/models/MerchantAccountEntity.js +0 -136
@@ -1,161 +0,0 @@
1
- /**
2
- * Channel Payments API
3
- *
4
- * NOTE: This class is auto generated. Do not edit the class manually.
5
- *
6
- */
7
- import type { CreateCFeeDto } from './CreateCFeeDto';
8
- import type { CreateMerchantConnectorWithoutMerchantAccountIdDto } from './CreateMerchantConnectorWithoutMerchantAccountIdDto';
9
- /**
10
- *
11
- * @export
12
- * @interface CreateMerchantAccountDto
13
- */
14
- export interface CreateMerchantAccountDto {
15
- /**
16
- * The associated merchant ID
17
- * @type {string}
18
- * @memberof CreateMerchantAccountDto
19
- */
20
- merchantId: string;
21
- /**
22
- * The issued MID (Merchant ID)
23
- * @type {string}
24
- * @memberof CreateMerchantAccountDto
25
- */
26
- issuedMid: string;
27
- /**
28
- * The payment method
29
- * @type {string}
30
- * @memberof CreateMerchantAccountDto
31
- */
32
- method: CreateMerchantAccountDtoMethodEnum;
33
- /**
34
- * The payment service provider
35
- * @type {string}
36
- * @memberof CreateMerchantAccountDto
37
- */
38
- psp: CreateMerchantAccountDtoPspEnum;
39
- /**
40
- * The CFee details
41
- * @type {CreateCFeeDto}
42
- * @memberof CreateMerchantAccountDto
43
- */
44
- cFee: CreateCFeeDto;
45
- /**
46
- * The accepted card types
47
- * @type {Array<string>}
48
- * @memberof CreateMerchantAccountDto
49
- */
50
- cardTypes?: Array<CreateMerchantAccountDtoCardTypesEnum>;
51
- /**
52
- * The accepted card schemes
53
- * @type {Array<string>}
54
- * @memberof CreateMerchantAccountDto
55
- */
56
- cardSchemes?: Array<CreateMerchantAccountDtoCardSchemesEnum>;
57
- /**
58
- * The accepted currencies
59
- * @type {Array<string>}
60
- * @memberof CreateMerchantAccountDto
61
- */
62
- currencies?: Array<CreateMerchantAccountDtoCurrenciesEnum>;
63
- /**
64
- * The list of merchant connectors
65
- * @type {Array<CreateMerchantConnectorWithoutMerchantAccountIdDto>}
66
- * @memberof CreateMerchantAccountDto
67
- */
68
- connectors: Array<CreateMerchantConnectorWithoutMerchantAccountIdDto>;
69
- /**
70
- * The MCC (Merchant Category Code)
71
- * @type {string}
72
- * @memberof CreateMerchantAccountDto
73
- */
74
- mcc?: string;
75
- /**
76
- * The BIN (Bank Identification Number)
77
- * @type {string}
78
- * @memberof CreateMerchantAccountDto
79
- */
80
- bin?: string;
81
- /**
82
- * The chain or franchise information associated with the merchant
83
- * @type {string}
84
- * @memberof CreateMerchantAccountDto
85
- */
86
- chain?: string;
87
- /**
88
- * The store information associated with the merchant
89
- * @type {string}
90
- * @memberof CreateMerchantAccountDto
91
- */
92
- store?: string;
93
- /**
94
- * The agent information associated with the merchant
95
- * @type {string}
96
- * @memberof CreateMerchantAccountDto
97
- */
98
- agent?: string;
99
- /**
100
- * The default merchant account
101
- * @type {boolean}
102
- * @memberof CreateMerchantAccountDto
103
- */
104
- isDefault?: boolean;
105
- }
106
- /**
107
- * @export
108
- */
109
- export declare const CreateMerchantAccountDtoMethodEnum: {
110
- readonly Card: "CARD";
111
- readonly Ach: "ACH";
112
- };
113
- export type CreateMerchantAccountDtoMethodEnum = typeof CreateMerchantAccountDtoMethodEnum[keyof typeof CreateMerchantAccountDtoMethodEnum];
114
- /**
115
- * @export
116
- */
117
- export declare const CreateMerchantAccountDtoPspEnum: {
118
- readonly Tsys: "TSYS";
119
- readonly Nashville: "NASHVILLE";
120
- readonly North: "NORTH";
121
- readonly ChannelPayments: "CHANNEL_PAYMENTS";
122
- };
123
- export type CreateMerchantAccountDtoPspEnum = typeof CreateMerchantAccountDtoPspEnum[keyof typeof CreateMerchantAccountDtoPspEnum];
124
- /**
125
- * @export
126
- */
127
- export declare const CreateMerchantAccountDtoCardTypesEnum: {
128
- readonly Credit: "CREDIT";
129
- readonly Debit: "DEBIT";
130
- readonly Prepaid: "PREPAID";
131
- };
132
- export type CreateMerchantAccountDtoCardTypesEnum = typeof CreateMerchantAccountDtoCardTypesEnum[keyof typeof CreateMerchantAccountDtoCardTypesEnum];
133
- /**
134
- * @export
135
- */
136
- export declare const CreateMerchantAccountDtoCardSchemesEnum: {
137
- readonly Visa: "VISA";
138
- readonly Mastercard: "MASTERCARD";
139
- readonly Amex: "AMEX";
140
- readonly Discover: "DISCOVER";
141
- readonly Jcb: "JCB";
142
- readonly DinersClub: "DINERS_CLUB";
143
- readonly Maestro: "MAESTRO";
144
- };
145
- export type CreateMerchantAccountDtoCardSchemesEnum = typeof CreateMerchantAccountDtoCardSchemesEnum[keyof typeof CreateMerchantAccountDtoCardSchemesEnum];
146
- /**
147
- * @export
148
- */
149
- export declare const CreateMerchantAccountDtoCurrenciesEnum: {
150
- readonly Usd: "USD";
151
- readonly Aud: "AUD";
152
- readonly Cad: "CAD";
153
- };
154
- export type CreateMerchantAccountDtoCurrenciesEnum = typeof CreateMerchantAccountDtoCurrenciesEnum[keyof typeof CreateMerchantAccountDtoCurrenciesEnum];
155
- /**
156
- * Check if a given object implements the CreateMerchantAccountDto interface.
157
- */
158
- export declare function instanceOfCreateMerchantAccountDto(value: object): boolean;
159
- export declare function CreateMerchantAccountDtoFromJSON(json: any): CreateMerchantAccountDto;
160
- export declare function CreateMerchantAccountDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateMerchantAccountDto;
161
- export declare function CreateMerchantAccountDtoToJSON(value?: CreateMerchantAccountDto | null): any;
@@ -1,119 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Channel Payments API
5
- *
6
- * NOTE: This class is auto generated. Do not edit the class manually.
7
- *
8
- */
9
- import { exists, removeNullUndefined } from '../runtime';
10
- import { CreateCFeeDtoFromJSON, CreateCFeeDtoToJSON, } from './CreateCFeeDto';
11
- import { CreateMerchantConnectorWithoutMerchantAccountIdDtoFromJSON, CreateMerchantConnectorWithoutMerchantAccountIdDtoToJSON, } from './CreateMerchantConnectorWithoutMerchantAccountIdDto';
12
- /**
13
- * @export
14
- */
15
- export const CreateMerchantAccountDtoMethodEnum = {
16
- Card: 'CARD',
17
- Ach: 'ACH'
18
- };
19
- /**
20
- * @export
21
- */
22
- export const CreateMerchantAccountDtoPspEnum = {
23
- Tsys: 'TSYS',
24
- Nashville: 'NASHVILLE',
25
- North: 'NORTH',
26
- ChannelPayments: 'CHANNEL_PAYMENTS'
27
- };
28
- /**
29
- * @export
30
- */
31
- export const CreateMerchantAccountDtoCardTypesEnum = {
32
- Credit: 'CREDIT',
33
- Debit: 'DEBIT',
34
- Prepaid: 'PREPAID'
35
- };
36
- /**
37
- * @export
38
- */
39
- export const CreateMerchantAccountDtoCardSchemesEnum = {
40
- Visa: 'VISA',
41
- Mastercard: 'MASTERCARD',
42
- Amex: 'AMEX',
43
- Discover: 'DISCOVER',
44
- Jcb: 'JCB',
45
- DinersClub: 'DINERS_CLUB',
46
- Maestro: 'MAESTRO'
47
- };
48
- /**
49
- * @export
50
- */
51
- export const CreateMerchantAccountDtoCurrenciesEnum = {
52
- Usd: 'USD',
53
- Aud: 'AUD',
54
- Cad: 'CAD'
55
- };
56
- /**
57
- * Check if a given object implements the CreateMerchantAccountDto interface.
58
- */
59
- export function instanceOfCreateMerchantAccountDto(value) {
60
- let isInstance = true;
61
- isInstance = isInstance && "merchantId" in value;
62
- isInstance = isInstance && "issuedMid" in value;
63
- isInstance = isInstance && "method" in value;
64
- isInstance = isInstance && "psp" in value;
65
- isInstance = isInstance && "cFee" in value;
66
- isInstance = isInstance && "connectors" in value;
67
- return isInstance;
68
- }
69
- export function CreateMerchantAccountDtoFromJSON(json) {
70
- return CreateMerchantAccountDtoFromJSONTyped(json, false);
71
- }
72
- export function CreateMerchantAccountDtoFromJSONTyped(json, ignoreDiscriminator) {
73
- if ((json === undefined) || (json === null)) {
74
- return json;
75
- }
76
- const typed = {
77
- 'merchantId': json['merchantId'],
78
- 'issuedMid': json['issuedMid'],
79
- 'method': json['method'],
80
- 'psp': json['psp'],
81
- 'cFee': CreateCFeeDtoFromJSON(json['cFee']),
82
- 'cardTypes': !exists(json, 'cardTypes') ? undefined : json['cardTypes'],
83
- 'cardSchemes': !exists(json, 'cardSchemes') ? undefined : json['cardSchemes'],
84
- 'currencies': !exists(json, 'currencies') ? undefined : json['currencies'],
85
- 'connectors': (json['connectors'].map(CreateMerchantConnectorWithoutMerchantAccountIdDtoFromJSON)),
86
- 'mcc': !exists(json, 'mcc') ? undefined : json['mcc'],
87
- 'bin': !exists(json, 'bin') ? undefined : json['bin'],
88
- 'chain': !exists(json, 'chain') ? undefined : json['chain'],
89
- 'store': !exists(json, 'store') ? undefined : json['store'],
90
- 'agent': !exists(json, 'agent') ? undefined : json['agent'],
91
- 'isDefault': !exists(json, 'isDefault') ? undefined : json['isDefault'],
92
- };
93
- return removeNullUndefined(typed);
94
- }
95
- export function CreateMerchantAccountDtoToJSON(value) {
96
- if (value === undefined) {
97
- return undefined;
98
- }
99
- if (value === null) {
100
- return null;
101
- }
102
- return {
103
- 'merchantId': value.merchantId,
104
- 'issuedMid': value.issuedMid,
105
- 'method': value.method,
106
- 'psp': value.psp,
107
- 'cFee': CreateCFeeDtoToJSON(value.cFee),
108
- 'cardTypes': value.cardTypes,
109
- 'cardSchemes': value.cardSchemes,
110
- 'currencies': value.currencies,
111
- 'connectors': (value.connectors.map(CreateMerchantConnectorWithoutMerchantAccountIdDtoToJSON)),
112
- 'mcc': value.mcc,
113
- 'bin': value.bin,
114
- 'chain': value.chain,
115
- 'store': value.store,
116
- 'agent': value.agent,
117
- 'isDefault': value.isDefault,
118
- };
119
- }
@@ -1,178 +0,0 @@
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
- * The date the merchant account was last polled for return notifications.
107
- * @type {Date}
108
- * @memberof MerchantAccountEntity
109
- */
110
- lastPolledAt?: Date;
111
- }
112
- /**
113
- * @export
114
- */
115
- export declare const MerchantAccountEntityPspEnum: {
116
- readonly Tsys: "TSYS";
117
- readonly Nashville: "NASHVILLE";
118
- readonly North: "NORTH";
119
- readonly ChannelPayments: "CHANNEL_PAYMENTS";
120
- };
121
- export type MerchantAccountEntityPspEnum = typeof MerchantAccountEntityPspEnum[keyof typeof MerchantAccountEntityPspEnum];
122
- /**
123
- * @export
124
- */
125
- export declare const MerchantAccountEntityMethodEnum: {
126
- readonly Card: "CARD";
127
- readonly Ach: "ACH";
128
- };
129
- export type MerchantAccountEntityMethodEnum = typeof MerchantAccountEntityMethodEnum[keyof typeof MerchantAccountEntityMethodEnum];
130
- /**
131
- * @export
132
- */
133
- export declare const MerchantAccountEntityStatusEnum: {
134
- readonly Pending: "PENDING";
135
- readonly Active: "ACTIVE";
136
- readonly Inactive: "INACTIVE";
137
- readonly Suspended: "SUSPENDED";
138
- readonly Closed: "CLOSED";
139
- };
140
- export type MerchantAccountEntityStatusEnum = typeof MerchantAccountEntityStatusEnum[keyof typeof MerchantAccountEntityStatusEnum];
141
- /**
142
- * @export
143
- */
144
- export declare const MerchantAccountEntityCardSchemesEnum: {
145
- readonly Visa: "VISA";
146
- readonly Mastercard: "MASTERCARD";
147
- readonly Amex: "AMEX";
148
- readonly Discover: "DISCOVER";
149
- readonly Jcb: "JCB";
150
- readonly DinersClub: "DINERS_CLUB";
151
- readonly Maestro: "MAESTRO";
152
- };
153
- export type MerchantAccountEntityCardSchemesEnum = typeof MerchantAccountEntityCardSchemesEnum[keyof typeof MerchantAccountEntityCardSchemesEnum];
154
- /**
155
- * @export
156
- */
157
- export declare const MerchantAccountEntityCurrenciesEnum: {
158
- readonly Usd: "USD";
159
- readonly Aud: "AUD";
160
- readonly Cad: "CAD";
161
- };
162
- export type MerchantAccountEntityCurrenciesEnum = typeof MerchantAccountEntityCurrenciesEnum[keyof typeof MerchantAccountEntityCurrenciesEnum];
163
- /**
164
- * @export
165
- */
166
- export declare const MerchantAccountEntityCardTypesEnum: {
167
- readonly Credit: "CREDIT";
168
- readonly Debit: "DEBIT";
169
- readonly Prepaid: "PREPAID";
170
- };
171
- export type MerchantAccountEntityCardTypesEnum = typeof MerchantAccountEntityCardTypesEnum[keyof typeof MerchantAccountEntityCardTypesEnum];
172
- /**
173
- * Check if a given object implements the MerchantAccountEntity interface.
174
- */
175
- export declare function instanceOfMerchantAccountEntity(value: object): boolean;
176
- export declare function MerchantAccountEntityFromJSON(json: any): MerchantAccountEntity;
177
- export declare function MerchantAccountEntityFromJSONTyped(json: any, ignoreDiscriminator: boolean): MerchantAccountEntity;
178
- export declare function MerchantAccountEntityToJSON(value?: MerchantAccountEntity | null): any;
@@ -1,136 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Channel Payments API
5
- *
6
- * NOTE: This class is auto generated. Do not edit the class manually.
7
- *
8
- */
9
- import { exists, removeNullUndefined } from '../runtime';
10
- import { CFeeEntityFromJSON, CFeeEntityToJSON, } from './CFeeEntity';
11
- import { MerchantConnectorServiceEntityFromJSON, MerchantConnectorServiceEntityToJSON, } from './MerchantConnectorServiceEntity';
12
- /**
13
- * @export
14
- */
15
- export const MerchantAccountEntityPspEnum = {
16
- Tsys: 'TSYS',
17
- Nashville: 'NASHVILLE',
18
- North: 'NORTH',
19
- ChannelPayments: 'CHANNEL_PAYMENTS'
20
- };
21
- /**
22
- * @export
23
- */
24
- export const MerchantAccountEntityMethodEnum = {
25
- Card: 'CARD',
26
- Ach: 'ACH'
27
- };
28
- /**
29
- * @export
30
- */
31
- export const MerchantAccountEntityStatusEnum = {
32
- Pending: 'PENDING',
33
- Active: 'ACTIVE',
34
- Inactive: 'INACTIVE',
35
- Suspended: 'SUSPENDED',
36
- Closed: 'CLOSED'
37
- };
38
- /**
39
- * @export
40
- */
41
- export const MerchantAccountEntityCardSchemesEnum = {
42
- Visa: 'VISA',
43
- Mastercard: 'MASTERCARD',
44
- Amex: 'AMEX',
45
- Discover: 'DISCOVER',
46
- Jcb: 'JCB',
47
- DinersClub: 'DINERS_CLUB',
48
- Maestro: 'MAESTRO'
49
- };
50
- /**
51
- * @export
52
- */
53
- export const MerchantAccountEntityCurrenciesEnum = {
54
- Usd: 'USD',
55
- Aud: 'AUD',
56
- Cad: 'CAD'
57
- };
58
- /**
59
- * @export
60
- */
61
- export const MerchantAccountEntityCardTypesEnum = {
62
- Credit: 'CREDIT',
63
- Debit: 'DEBIT',
64
- Prepaid: 'PREPAID'
65
- };
66
- /**
67
- * Check if a given object implements the MerchantAccountEntity interface.
68
- */
69
- export function instanceOfMerchantAccountEntity(value) {
70
- let isInstance = true;
71
- isInstance = isInstance && "merchantAccountId" in value;
72
- isInstance = isInstance && "issuedMid" in value;
73
- isInstance = isInstance && "psp" in value;
74
- isInstance = isInstance && "cFee" in value;
75
- isInstance = isInstance && "createdAt" in value;
76
- isInstance = isInstance && "updatedAt" in value;
77
- isInstance = isInstance && "method" in value;
78
- isInstance = isInstance && "status" in value;
79
- isInstance = isInstance && "cardSchemes" in value;
80
- isInstance = isInstance && "currencies" in value;
81
- isInstance = isInstance && "cardTypes" in value;
82
- return isInstance;
83
- }
84
- export function MerchantAccountEntityFromJSON(json) {
85
- return MerchantAccountEntityFromJSONTyped(json, false);
86
- }
87
- export function MerchantAccountEntityFromJSONTyped(json, ignoreDiscriminator) {
88
- if ((json === undefined) || (json === null)) {
89
- return json;
90
- }
91
- const typed = {
92
- 'merchantAccountId': json['merchantAccountId'],
93
- 'merchantId': !exists(json, 'merchantId') ? undefined : json['merchantId'],
94
- 'issuedMid': json['issuedMid'],
95
- 'psp': json['psp'],
96
- 'cFee': CFeeEntityFromJSON(json['cFee']),
97
- 'createdAt': (new Date(json['createdAt'])),
98
- 'updatedAt': (new Date(json['updatedAt'])),
99
- 'method': json['method'],
100
- 'status': json['status'],
101
- 'cardSchemes': json['cardSchemes'],
102
- 'currencies': json['currencies'],
103
- 'cardTypes': json['cardTypes'],
104
- 'isDefault': !exists(json, 'isDefault') ? undefined : json['isDefault'],
105
- 'name': !exists(json, 'name') ? undefined : json['name'],
106
- 'connectors': !exists(json, 'connectors') ? undefined : (json['connectors'].map(MerchantConnectorServiceEntityFromJSON)),
107
- 'lastPolledAt': !exists(json, 'lastPolledAt') ? undefined : (new Date(json['lastPolledAt'])),
108
- };
109
- return removeNullUndefined(typed);
110
- }
111
- export function MerchantAccountEntityToJSON(value) {
112
- if (value === undefined) {
113
- return undefined;
114
- }
115
- if (value === null) {
116
- return null;
117
- }
118
- return {
119
- 'merchantAccountId': value.merchantAccountId,
120
- 'merchantId': value.merchantId,
121
- 'issuedMid': value.issuedMid,
122
- 'psp': value.psp,
123
- 'cFee': CFeeEntityToJSON(value.cFee),
124
- 'createdAt': (value.createdAt.toISOString()),
125
- 'updatedAt': (value.updatedAt.toISOString()),
126
- 'method': value.method,
127
- 'status': value.status,
128
- 'cardSchemes': value.cardSchemes,
129
- 'currencies': value.currencies,
130
- 'cardTypes': value.cardTypes,
131
- 'isDefault': value.isDefault,
132
- 'name': value.name,
133
- 'connectors': value.connectors === undefined ? undefined : (value.connectors.map(MerchantConnectorServiceEntityToJSON)),
134
- 'lastPolledAt': value.lastPolledAt === undefined ? undefined : (value.lastPolledAt.toISOString()),
135
- };
136
- }