@channelpayments/node-sdk 1.131.0 → 1.135.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 (53) hide show
  1. package/dist/cjs/models/CreateMerchantAccountDto.d.ts +155 -0
  2. package/dist/cjs/models/CreateMerchantAccountDto.js +124 -0
  3. package/dist/cjs/models/CreateMerchantAccountDtoCFee.d.ts +40 -0
  4. package/dist/cjs/models/CreateMerchantAccountDtoCFee.js +57 -0
  5. package/dist/cjs/models/CreateMerchantAccountWithoutMerchantIdDto.d.ts +3 -3
  6. package/dist/cjs/models/CreateMerchantAccountWithoutMerchantIdDto.js +3 -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/MerchantAccountEntity.d.ts +166 -0
  10. package/dist/cjs/models/MerchantAccountEntity.js +139 -0
  11. package/dist/cjs/models/MerchantAccountEntityCFee.d.ts +40 -0
  12. package/dist/cjs/models/MerchantAccountEntityCFee.js +57 -0
  13. package/dist/cjs/models/MerchantAccountServiceEntity.d.ts +3 -3
  14. package/dist/cjs/models/MerchantAccountServiceEntity.js +3 -3
  15. package/dist/cjs/models/UpdateMerchantAccountDto.d.ts +136 -0
  16. package/dist/cjs/models/UpdateMerchantAccountDto.js +111 -0
  17. package/dist/cjs/models/UpdateMerchantDto.d.ts +3 -3
  18. package/dist/cjs/models/UpdateMerchantDto.js +3 -3
  19. package/dist/{mjs/models/CreateMerchantDtoAddress.d.ts → cjs/models/UpdateMerchantDtoAddress.d.ts} +15 -15
  20. package/dist/cjs/models/{CreateMerchantDtoAddress.js → UpdateMerchantDtoAddress.js} +11 -11
  21. package/dist/cjs/models/index.d.ts +6 -3
  22. package/dist/cjs/models/index.js +6 -3
  23. package/dist/cjs/runtime.js +1 -1
  24. package/dist/mjs/models/CreateMerchantAccountDto.d.ts +155 -0
  25. package/dist/mjs/models/CreateMerchantAccountDto.js +117 -0
  26. package/dist/mjs/models/CreateMerchantAccountDtoCFee.d.ts +40 -0
  27. package/dist/mjs/models/{MerchantAccountServiceEntityCFee.js → CreateMerchantAccountDtoCFee.js} +7 -7
  28. package/dist/mjs/models/CreateMerchantAccountWithoutMerchantIdDto.d.ts +3 -3
  29. package/dist/mjs/models/CreateMerchantAccountWithoutMerchantIdDto.js +3 -3
  30. package/dist/mjs/models/CreateMerchantDto.d.ts +3 -3
  31. package/dist/mjs/models/CreateMerchantDto.js +3 -3
  32. package/dist/mjs/models/MerchantAccountEntity.d.ts +166 -0
  33. package/dist/mjs/models/MerchantAccountEntity.js +132 -0
  34. package/dist/mjs/models/MerchantAccountEntityCFee.d.ts +40 -0
  35. package/dist/mjs/models/{CreateMerchantAccountWithoutMerchantIdDtoCFee.js → MerchantAccountEntityCFee.js} +7 -7
  36. package/dist/mjs/models/MerchantAccountServiceEntity.d.ts +3 -3
  37. package/dist/mjs/models/MerchantAccountServiceEntity.js +3 -3
  38. package/dist/mjs/models/UpdateMerchantAccountDto.d.ts +136 -0
  39. package/dist/mjs/models/UpdateMerchantAccountDto.js +104 -0
  40. package/dist/mjs/models/UpdateMerchantDto.d.ts +3 -3
  41. package/dist/mjs/models/UpdateMerchantDto.js +3 -3
  42. package/dist/{cjs/models/CreateMerchantDtoAddress.d.ts → mjs/models/UpdateMerchantDtoAddress.d.ts} +15 -15
  43. package/dist/mjs/models/{CreateMerchantDtoAddress.js → UpdateMerchantDtoAddress.js} +6 -6
  44. package/dist/mjs/models/index.d.ts +6 -3
  45. package/dist/mjs/models/index.js +6 -3
  46. package/dist/mjs/runtime.js +1 -1
  47. package/package.json +1 -1
  48. package/dist/cjs/models/CreateMerchantAccountWithoutMerchantIdDtoCFee.d.ts +0 -40
  49. package/dist/cjs/models/CreateMerchantAccountWithoutMerchantIdDtoCFee.js +0 -57
  50. package/dist/cjs/models/MerchantAccountServiceEntityCFee.d.ts +0 -40
  51. package/dist/cjs/models/MerchantAccountServiceEntityCFee.js +0 -57
  52. package/dist/mjs/models/CreateMerchantAccountWithoutMerchantIdDtoCFee.d.ts +0 -40
  53. package/dist/mjs/models/MerchantAccountServiceEntityCFee.d.ts +0 -40
@@ -8,12 +8,12 @@
8
8
  *
9
9
  */
10
10
  Object.defineProperty(exports, "__esModule", { value: true });
11
- exports.CreateMerchantDtoAddressToJSON = exports.CreateMerchantDtoAddressFromJSONTyped = exports.CreateMerchantDtoAddressFromJSON = exports.instanceOfCreateMerchantDtoAddress = void 0;
11
+ exports.UpdateMerchantDtoAddressToJSON = exports.UpdateMerchantDtoAddressFromJSONTyped = exports.UpdateMerchantDtoAddressFromJSON = exports.instanceOfUpdateMerchantDtoAddress = void 0;
12
12
  const runtime_1 = require("../runtime");
13
13
  /**
14
- * Check if a given object implements the CreateMerchantDtoAddress interface.
14
+ * Check if a given object implements the UpdateMerchantDtoAddress interface.
15
15
  */
16
- function instanceOfCreateMerchantDtoAddress(value) {
16
+ function instanceOfUpdateMerchantDtoAddress(value) {
17
17
  let isInstance = true;
18
18
  isInstance = isInstance && "city" in value;
19
19
  isInstance = isInstance && "country" in value;
@@ -22,12 +22,12 @@ function instanceOfCreateMerchantDtoAddress(value) {
22
22
  isInstance = isInstance && "postalCode" in value;
23
23
  return isInstance;
24
24
  }
25
- exports.instanceOfCreateMerchantDtoAddress = instanceOfCreateMerchantDtoAddress;
26
- function CreateMerchantDtoAddressFromJSON(json) {
27
- return CreateMerchantDtoAddressFromJSONTyped(json, false);
25
+ exports.instanceOfUpdateMerchantDtoAddress = instanceOfUpdateMerchantDtoAddress;
26
+ function UpdateMerchantDtoAddressFromJSON(json) {
27
+ return UpdateMerchantDtoAddressFromJSONTyped(json, false);
28
28
  }
29
- exports.CreateMerchantDtoAddressFromJSON = CreateMerchantDtoAddressFromJSON;
30
- function CreateMerchantDtoAddressFromJSONTyped(json, ignoreDiscriminator) {
29
+ exports.UpdateMerchantDtoAddressFromJSON = UpdateMerchantDtoAddressFromJSON;
30
+ function UpdateMerchantDtoAddressFromJSONTyped(json, ignoreDiscriminator) {
31
31
  if ((json === undefined) || (json === null)) {
32
32
  return json;
33
33
  }
@@ -43,8 +43,8 @@ function CreateMerchantDtoAddressFromJSONTyped(json, ignoreDiscriminator) {
43
43
  };
44
44
  return (0, runtime_1.removeNullUndefined)(typed);
45
45
  }
46
- exports.CreateMerchantDtoAddressFromJSONTyped = CreateMerchantDtoAddressFromJSONTyped;
47
- function CreateMerchantDtoAddressToJSON(value) {
46
+ exports.UpdateMerchantDtoAddressFromJSONTyped = UpdateMerchantDtoAddressFromJSONTyped;
47
+ function UpdateMerchantDtoAddressToJSON(value) {
48
48
  if (value === undefined) {
49
49
  return undefined;
50
50
  }
@@ -62,4 +62,4 @@ function CreateMerchantDtoAddressToJSON(value) {
62
62
  'subdivisionCode': value.subdivisionCode,
63
63
  };
64
64
  }
65
- exports.CreateMerchantDtoAddressToJSON = CreateMerchantDtoAddressToJSON;
65
+ exports.UpdateMerchantDtoAddressToJSON = UpdateMerchantDtoAddressToJSON;
@@ -34,15 +34,15 @@ export * from './CreateEventDomainDtoTransactions';
34
34
  export * from './CreateEventDomainDtoUsers';
35
35
  export * from './CreateFeatureDto';
36
36
  export * from './CreateInitialUserDto';
37
+ export * from './CreateMerchantAccountDto';
38
+ export * from './CreateMerchantAccountDtoCFee';
37
39
  export * from './CreateMerchantAccountWithoutMerchantIdDto';
38
- export * from './CreateMerchantAccountWithoutMerchantIdDtoCFee';
39
40
  export * from './CreateMerchantAddressDto';
40
41
  export * from './CreateMerchantConnectorCredentialsDto';
41
42
  export * from './CreateMerchantConnectorWithoutMerchantAccountIdDto';
42
43
  export * from './CreateMerchantConnectorWithoutMerchantAccountIdDtoConnectorCredentials';
43
44
  export * from './CreateMerchantCredentialsDto';
44
45
  export * from './CreateMerchantDto';
45
- export * from './CreateMerchantDtoAddress';
46
46
  export * from './CreatePaymentMethodDto';
47
47
  export * from './CreateProvisionedCardTokenDto';
48
48
  export * from './CreateStoredCardPaymentMethod';
@@ -56,8 +56,9 @@ export * from './CreateWebhookDtoEventDomains';
56
56
  export * from './ErrorEntity';
57
57
  export * from './FeatureEntity';
58
58
  export * from './FeaturesEntity';
59
+ export * from './MerchantAccountEntity';
60
+ export * from './MerchantAccountEntityCFee';
59
61
  export * from './MerchantAccountServiceEntity';
60
- export * from './MerchantAccountServiceEntityCFee';
61
62
  export * from './MerchantAddressEntity';
62
63
  export * from './MerchantConnectorCredentialsServiceEntity';
63
64
  export * from './MerchantConnectorServiceEntity';
@@ -89,8 +90,10 @@ export * from './TransactionReturnsSearchEntity';
89
90
  export * from './TransactionsSearchEntity';
90
91
  export * from './UpdateBuyerDto';
91
92
  export * from './UpdateFeatureDto';
93
+ export * from './UpdateMerchantAccountDto';
92
94
  export * from './UpdateMerchantCredentialsDto';
93
95
  export * from './UpdateMerchantDto';
96
+ export * from './UpdateMerchantDtoAddress';
94
97
  export * from './UpdatePaymentMethodStatusDto';
95
98
  export * from './UpdateSelfDto';
96
99
  export * from './UpdateTransactionNoteDto';
@@ -52,15 +52,15 @@ __exportStar(require("./CreateEventDomainDtoTransactions"), exports);
52
52
  __exportStar(require("./CreateEventDomainDtoUsers"), exports);
53
53
  __exportStar(require("./CreateFeatureDto"), exports);
54
54
  __exportStar(require("./CreateInitialUserDto"), exports);
55
+ __exportStar(require("./CreateMerchantAccountDto"), exports);
56
+ __exportStar(require("./CreateMerchantAccountDtoCFee"), exports);
55
57
  __exportStar(require("./CreateMerchantAccountWithoutMerchantIdDto"), exports);
56
- __exportStar(require("./CreateMerchantAccountWithoutMerchantIdDtoCFee"), exports);
57
58
  __exportStar(require("./CreateMerchantAddressDto"), exports);
58
59
  __exportStar(require("./CreateMerchantConnectorCredentialsDto"), exports);
59
60
  __exportStar(require("./CreateMerchantConnectorWithoutMerchantAccountIdDto"), exports);
60
61
  __exportStar(require("./CreateMerchantConnectorWithoutMerchantAccountIdDtoConnectorCredentials"), exports);
61
62
  __exportStar(require("./CreateMerchantCredentialsDto"), exports);
62
63
  __exportStar(require("./CreateMerchantDto"), exports);
63
- __exportStar(require("./CreateMerchantDtoAddress"), exports);
64
64
  __exportStar(require("./CreatePaymentMethodDto"), exports);
65
65
  __exportStar(require("./CreateProvisionedCardTokenDto"), exports);
66
66
  __exportStar(require("./CreateStoredCardPaymentMethod"), exports);
@@ -74,8 +74,9 @@ __exportStar(require("./CreateWebhookDtoEventDomains"), exports);
74
74
  __exportStar(require("./ErrorEntity"), exports);
75
75
  __exportStar(require("./FeatureEntity"), exports);
76
76
  __exportStar(require("./FeaturesEntity"), exports);
77
+ __exportStar(require("./MerchantAccountEntity"), exports);
78
+ __exportStar(require("./MerchantAccountEntityCFee"), exports);
77
79
  __exportStar(require("./MerchantAccountServiceEntity"), exports);
78
- __exportStar(require("./MerchantAccountServiceEntityCFee"), exports);
79
80
  __exportStar(require("./MerchantAddressEntity"), exports);
80
81
  __exportStar(require("./MerchantConnectorCredentialsServiceEntity"), exports);
81
82
  __exportStar(require("./MerchantConnectorServiceEntity"), exports);
@@ -107,8 +108,10 @@ __exportStar(require("./TransactionReturnsSearchEntity"), exports);
107
108
  __exportStar(require("./TransactionsSearchEntity"), exports);
108
109
  __exportStar(require("./UpdateBuyerDto"), exports);
109
110
  __exportStar(require("./UpdateFeatureDto"), exports);
111
+ __exportStar(require("./UpdateMerchantAccountDto"), exports);
110
112
  __exportStar(require("./UpdateMerchantCredentialsDto"), exports);
111
113
  __exportStar(require("./UpdateMerchantDto"), exports);
114
+ __exportStar(require("./UpdateMerchantDtoAddress"), exports);
112
115
  __exportStar(require("./UpdatePaymentMethodStatusDto"), exports);
113
116
  __exportStar(require("./UpdateSelfDto"), exports);
114
117
  __exportStar(require("./UpdateTransactionNoteDto"), exports);
@@ -100,7 +100,7 @@ class BaseAPI {
100
100
  createFetchParams(context) {
101
101
  return __awaiter(this, void 0, void 0, function* () {
102
102
  Object.keys(context.headers).forEach(key => context.headers[key] === undefined ? delete context.headers[key] : {});
103
- context.headers['user-agent'] = "@channelpayments/node-sdk/v1.131.0";
103
+ context.headers['user-agent'] = "@channelpayments/node-sdk/v1.135.0";
104
104
  const token = this.generateAuthToken();
105
105
  context.headers['Authorization'] = `Bearer ${token}`;
106
106
  let url = this.url + context.path;
@@ -0,0 +1,155 @@
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
+ 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
+ *
41
+ * @type {CreateMerchantAccountDtoCFee}
42
+ * @memberof CreateMerchantAccountDto
43
+ */
44
+ cFee: CreateMerchantAccountDtoCFee;
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
+ /**
101
+ * @export
102
+ */
103
+ export declare const CreateMerchantAccountDtoMethodEnum: {
104
+ readonly Card: "CARD";
105
+ readonly Ach: "ACH";
106
+ };
107
+ export type CreateMerchantAccountDtoMethodEnum = typeof CreateMerchantAccountDtoMethodEnum[keyof typeof CreateMerchantAccountDtoMethodEnum];
108
+ /**
109
+ * @export
110
+ */
111
+ export declare const CreateMerchantAccountDtoPspEnum: {
112
+ readonly Tsys: "TSYS";
113
+ readonly Nashville: "NASHVILLE";
114
+ readonly North: "NORTH";
115
+ readonly ChannelPayments: "CHANNEL_PAYMENTS";
116
+ };
117
+ export type CreateMerchantAccountDtoPspEnum = typeof CreateMerchantAccountDtoPspEnum[keyof typeof CreateMerchantAccountDtoPspEnum];
118
+ /**
119
+ * @export
120
+ */
121
+ export declare const CreateMerchantAccountDtoCardTypesEnum: {
122
+ readonly Credit: "CREDIT";
123
+ readonly Debit: "DEBIT";
124
+ readonly Prepaid: "PREPAID";
125
+ };
126
+ export type CreateMerchantAccountDtoCardTypesEnum = typeof CreateMerchantAccountDtoCardTypesEnum[keyof typeof CreateMerchantAccountDtoCardTypesEnum];
127
+ /**
128
+ * @export
129
+ */
130
+ export declare const CreateMerchantAccountDtoCardSchemesEnum: {
131
+ readonly Visa: "VISA";
132
+ readonly Mastercard: "MASTERCARD";
133
+ readonly Amex: "AMEX";
134
+ readonly Discover: "DISCOVER";
135
+ readonly Jcb: "JCB";
136
+ readonly DinersClub: "DINERS_CLUB";
137
+ readonly Maestro: "MAESTRO";
138
+ };
139
+ export type CreateMerchantAccountDtoCardSchemesEnum = typeof CreateMerchantAccountDtoCardSchemesEnum[keyof typeof CreateMerchantAccountDtoCardSchemesEnum];
140
+ /**
141
+ * @export
142
+ */
143
+ export declare const CreateMerchantAccountDtoCurrenciesEnum: {
144
+ readonly Usd: "USD";
145
+ readonly Aud: "AUD";
146
+ readonly Cad: "CAD";
147
+ };
148
+ export type CreateMerchantAccountDtoCurrenciesEnum = typeof CreateMerchantAccountDtoCurrenciesEnum[keyof typeof CreateMerchantAccountDtoCurrenciesEnum];
149
+ /**
150
+ * Check if a given object implements the CreateMerchantAccountDto interface.
151
+ */
152
+ export declare function instanceOfCreateMerchantAccountDto(value: object): boolean;
153
+ export declare function CreateMerchantAccountDtoFromJSON(json: any): CreateMerchantAccountDto;
154
+ export declare function CreateMerchantAccountDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateMerchantAccountDto;
155
+ export declare function CreateMerchantAccountDtoToJSON(value?: CreateMerchantAccountDto | null): any;
@@ -0,0 +1,117 @@
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 { CreateMerchantAccountDtoCFeeFromJSON, CreateMerchantAccountDtoCFeeToJSON, } from './CreateMerchantAccountDtoCFee';
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': CreateMerchantAccountDtoCFeeFromJSON(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
+ };
92
+ return removeNullUndefined(typed);
93
+ }
94
+ export function CreateMerchantAccountDtoToJSON(value) {
95
+ if (value === undefined) {
96
+ return undefined;
97
+ }
98
+ if (value === null) {
99
+ return null;
100
+ }
101
+ return {
102
+ 'merchantId': value.merchantId,
103
+ 'issuedMid': value.issuedMid,
104
+ 'method': value.method,
105
+ 'psp': value.psp,
106
+ 'cFee': CreateMerchantAccountDtoCFeeToJSON(value.cFee),
107
+ 'cardTypes': value.cardTypes,
108
+ 'cardSchemes': value.cardSchemes,
109
+ 'currencies': value.currencies,
110
+ 'connectors': (value.connectors.map(CreateMerchantConnectorWithoutMerchantAccountIdDtoToJSON)),
111
+ 'mcc': value.mcc,
112
+ 'bin': value.bin,
113
+ 'chain': value.chain,
114
+ 'store': value.store,
115
+ 'agent': value.agent,
116
+ };
117
+ }
@@ -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 CreateMerchantAccountDtoCFee
11
+ */
12
+ export interface CreateMerchantAccountDtoCFee {
13
+ /**
14
+ * The type of the cFee.
15
+ * @type {string}
16
+ * @memberof CreateMerchantAccountDtoCFee
17
+ */
18
+ type: CreateMerchantAccountDtoCFeeTypeEnum;
19
+ /**
20
+ * The rate of the cFee as an integer.
21
+ * @type {number}
22
+ * @memberof CreateMerchantAccountDtoCFee
23
+ */
24
+ rate: number;
25
+ }
26
+ /**
27
+ * @export
28
+ */
29
+ export declare const CreateMerchantAccountDtoCFeeTypeEnum: {
30
+ readonly Percentage: "PERCENTAGE";
31
+ readonly Fixed: "FIXED";
32
+ };
33
+ export type CreateMerchantAccountDtoCFeeTypeEnum = typeof CreateMerchantAccountDtoCFeeTypeEnum[keyof typeof CreateMerchantAccountDtoCFeeTypeEnum];
34
+ /**
35
+ * Check if a given object implements the CreateMerchantAccountDtoCFee interface.
36
+ */
37
+ export declare function instanceOfCreateMerchantAccountDtoCFee(value: object): boolean;
38
+ export declare function CreateMerchantAccountDtoCFeeFromJSON(json: any): CreateMerchantAccountDtoCFee;
39
+ export declare function CreateMerchantAccountDtoCFeeFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateMerchantAccountDtoCFee;
40
+ export declare function CreateMerchantAccountDtoCFeeToJSON(value?: CreateMerchantAccountDtoCFee | null): any;
@@ -10,23 +10,23 @@ import { removeNullUndefined } from '../runtime';
10
10
  /**
11
11
  * @export
12
12
  */
13
- export const MerchantAccountServiceEntityCFeeTypeEnum = {
13
+ export const CreateMerchantAccountDtoCFeeTypeEnum = {
14
14
  Percentage: 'PERCENTAGE',
15
15
  Fixed: 'FIXED'
16
16
  };
17
17
  /**
18
- * Check if a given object implements the MerchantAccountServiceEntityCFee interface.
18
+ * Check if a given object implements the CreateMerchantAccountDtoCFee interface.
19
19
  */
20
- export function instanceOfMerchantAccountServiceEntityCFee(value) {
20
+ export function instanceOfCreateMerchantAccountDtoCFee(value) {
21
21
  let isInstance = true;
22
22
  isInstance = isInstance && "type" in value;
23
23
  isInstance = isInstance && "rate" in value;
24
24
  return isInstance;
25
25
  }
26
- export function MerchantAccountServiceEntityCFeeFromJSON(json) {
27
- return MerchantAccountServiceEntityCFeeFromJSONTyped(json, false);
26
+ export function CreateMerchantAccountDtoCFeeFromJSON(json) {
27
+ return CreateMerchantAccountDtoCFeeFromJSONTyped(json, false);
28
28
  }
29
- export function MerchantAccountServiceEntityCFeeFromJSONTyped(json, ignoreDiscriminator) {
29
+ export function CreateMerchantAccountDtoCFeeFromJSONTyped(json, ignoreDiscriminator) {
30
30
  if ((json === undefined) || (json === null)) {
31
31
  return json;
32
32
  }
@@ -36,7 +36,7 @@ export function MerchantAccountServiceEntityCFeeFromJSONTyped(json, ignoreDiscri
36
36
  };
37
37
  return removeNullUndefined(typed);
38
38
  }
39
- export function MerchantAccountServiceEntityCFeeToJSON(value) {
39
+ export function CreateMerchantAccountDtoCFeeToJSON(value) {
40
40
  if (value === undefined) {
41
41
  return undefined;
42
42
  }
@@ -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 { CreateMerchantAccountWithoutMerchantIdDtoCFee } from './CreateMerchantAccountWithoutMerchantIdDtoCFee';
7
+ import type { CreateMerchantAccountDtoCFee } from './CreateMerchantAccountDtoCFee';
8
8
  import type { CreateMerchantConnectorWithoutMerchantAccountIdDto } from './CreateMerchantConnectorWithoutMerchantAccountIdDto';
9
9
  /**
10
10
  *
@@ -32,10 +32,10 @@ export interface CreateMerchantAccountWithoutMerchantIdDto {
32
32
  psp: CreateMerchantAccountWithoutMerchantIdDtoPspEnum;
33
33
  /**
34
34
  *
35
- * @type {CreateMerchantAccountWithoutMerchantIdDtoCFee}
35
+ * @type {CreateMerchantAccountDtoCFee}
36
36
  * @memberof CreateMerchantAccountWithoutMerchantIdDto
37
37
  */
38
- cFee: CreateMerchantAccountWithoutMerchantIdDtoCFee;
38
+ cFee: CreateMerchantAccountDtoCFee;
39
39
  /**
40
40
  * The accepted card types
41
41
  * @type {Array<string>}
@@ -7,7 +7,7 @@
7
7
  *
8
8
  */
9
9
  import { exists, removeNullUndefined } from '../runtime';
10
- import { CreateMerchantAccountWithoutMerchantIdDtoCFeeFromJSON, CreateMerchantAccountWithoutMerchantIdDtoCFeeToJSON, } from './CreateMerchantAccountWithoutMerchantIdDtoCFee';
10
+ import { CreateMerchantAccountDtoCFeeFromJSON, CreateMerchantAccountDtoCFeeToJSON, } from './CreateMerchantAccountDtoCFee';
11
11
  import { CreateMerchantConnectorWithoutMerchantAccountIdDtoFromJSON, CreateMerchantConnectorWithoutMerchantAccountIdDtoToJSON, } from './CreateMerchantConnectorWithoutMerchantAccountIdDto';
12
12
  /**
13
13
  * @export
@@ -76,7 +76,7 @@ export function CreateMerchantAccountWithoutMerchantIdDtoFromJSONTyped(json, ign
76
76
  'issuedMid': json['issuedMid'],
77
77
  'method': json['method'],
78
78
  'psp': json['psp'],
79
- 'cFee': CreateMerchantAccountWithoutMerchantIdDtoCFeeFromJSON(json['cFee']),
79
+ 'cFee': CreateMerchantAccountDtoCFeeFromJSON(json['cFee']),
80
80
  'cardTypes': !exists(json, 'cardTypes') ? undefined : json['cardTypes'],
81
81
  'cardSchemes': !exists(json, 'cardSchemes') ? undefined : json['cardSchemes'],
82
82
  'currencies': !exists(json, 'currencies') ? undefined : json['currencies'],
@@ -100,7 +100,7 @@ export function CreateMerchantAccountWithoutMerchantIdDtoToJSON(value) {
100
100
  'issuedMid': value.issuedMid,
101
101
  'method': value.method,
102
102
  'psp': value.psp,
103
- 'cFee': CreateMerchantAccountWithoutMerchantIdDtoCFeeToJSON(value.cFee),
103
+ 'cFee': CreateMerchantAccountDtoCFeeToJSON(value.cFee),
104
104
  'cardTypes': value.cardTypes,
105
105
  'cardSchemes': value.cardSchemes,
106
106
  'currencies': value.currencies,
@@ -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}
@@ -8,7 +8,7 @@
8
8
  */
9
9
  import { exists, removeNullUndefined } from '../runtime';
10
10
  import { CreateMerchantAccountWithoutMerchantIdDtoFromJSON, CreateMerchantAccountWithoutMerchantIdDtoToJSON, } from './CreateMerchantAccountWithoutMerchantIdDto';
11
- import { CreateMerchantDtoAddressFromJSON, CreateMerchantDtoAddressToJSON, } from './CreateMerchantDtoAddress';
11
+ import { UpdateMerchantDtoAddressFromJSON, UpdateMerchantDtoAddressToJSON, } from './UpdateMerchantDtoAddress';
12
12
  /**
13
13
  * Check if a given object implements the CreateMerchantDto interface.
14
14
  */
@@ -31,7 +31,7 @@ export function CreateMerchantDtoFromJSONTyped(json, ignoreDiscriminator) {
31
31
  'name': json['name'],
32
32
  'email': json['email'],
33
33
  'phoneNumber': json['phoneNumber'],
34
- 'address': CreateMerchantDtoAddressFromJSON(json['address']),
34
+ 'address': UpdateMerchantDtoAddressFromJSON(json['address']),
35
35
  'website': !exists(json, 'website') ? undefined : json['website'],
36
36
  'parentMerchantId': !exists(json, 'parentMerchantId') ? undefined : json['parentMerchantId'],
37
37
  'merchantAccounts': !exists(json, 'merchantAccounts') ? undefined : (json['merchantAccounts'].map(CreateMerchantAccountWithoutMerchantIdDtoFromJSON)),
@@ -49,7 +49,7 @@ export function CreateMerchantDtoToJSON(value) {
49
49
  'name': value.name,
50
50
  'email': value.email,
51
51
  'phoneNumber': value.phoneNumber,
52
- 'address': CreateMerchantDtoAddressToJSON(value.address),
52
+ 'address': UpdateMerchantDtoAddressToJSON(value.address),
53
53
  'website': value.website,
54
54
  'parentMerchantId': value.parentMerchantId,
55
55
  'merchantAccounts': value.merchantAccounts === undefined ? undefined : (value.merchantAccounts.map(CreateMerchantAccountWithoutMerchantIdDtoToJSON)),