@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
@@ -0,0 +1,132 @@
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 { MerchantAccountEntityCFeeFromJSON, MerchantAccountEntityCFeeToJSON, } from './MerchantAccountEntityCFee';
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': MerchantAccountEntityCFeeFromJSON(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
+ 'name': !exists(json, 'name') ? undefined : json['name'],
105
+ 'connectors': !exists(json, 'connectors') ? undefined : (json['connectors'].map(MerchantConnectorServiceEntityFromJSON)),
106
+ };
107
+ return removeNullUndefined(typed);
108
+ }
109
+ export function MerchantAccountEntityToJSON(value) {
110
+ if (value === undefined) {
111
+ return undefined;
112
+ }
113
+ if (value === null) {
114
+ return null;
115
+ }
116
+ return {
117
+ 'merchantAccountId': value.merchantAccountId,
118
+ 'merchantId': value.merchantId,
119
+ 'issuedMid': value.issuedMid,
120
+ 'psp': value.psp,
121
+ 'cFee': MerchantAccountEntityCFeeToJSON(value.cFee),
122
+ 'createdAt': (value.createdAt.toISOString()),
123
+ 'updatedAt': (value.updatedAt.toISOString()),
124
+ 'method': value.method,
125
+ 'status': value.status,
126
+ 'cardSchemes': value.cardSchemes,
127
+ 'currencies': value.currencies,
128
+ 'cardTypes': value.cardTypes,
129
+ 'name': value.name,
130
+ 'connectors': value.connectors === undefined ? undefined : (value.connectors.map(MerchantConnectorServiceEntityToJSON)),
131
+ };
132
+ }
@@ -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;
@@ -10,23 +10,23 @@ import { removeNullUndefined } from '../runtime';
10
10
  /**
11
11
  * @export
12
12
  */
13
- export const CreateMerchantAccountWithoutMerchantIdDtoCFeeTypeEnum = {
13
+ export const MerchantAccountEntityCFeeTypeEnum = {
14
14
  Percentage: 'PERCENTAGE',
15
15
  Fixed: 'FIXED'
16
16
  };
17
17
  /**
18
- * Check if a given object implements the CreateMerchantAccountWithoutMerchantIdDtoCFee interface.
18
+ * Check if a given object implements the MerchantAccountEntityCFee interface.
19
19
  */
20
- export function instanceOfCreateMerchantAccountWithoutMerchantIdDtoCFee(value) {
20
+ export function instanceOfMerchantAccountEntityCFee(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 CreateMerchantAccountWithoutMerchantIdDtoCFeeFromJSON(json) {
27
- return CreateMerchantAccountWithoutMerchantIdDtoCFeeFromJSONTyped(json, false);
26
+ export function MerchantAccountEntityCFeeFromJSON(json) {
27
+ return MerchantAccountEntityCFeeFromJSONTyped(json, false);
28
28
  }
29
- export function CreateMerchantAccountWithoutMerchantIdDtoCFeeFromJSONTyped(json, ignoreDiscriminator) {
29
+ export function MerchantAccountEntityCFeeFromJSONTyped(json, ignoreDiscriminator) {
30
30
  if ((json === undefined) || (json === null)) {
31
31
  return json;
32
32
  }
@@ -36,7 +36,7 @@ export function CreateMerchantAccountWithoutMerchantIdDtoCFeeFromJSONTyped(json,
36
36
  };
37
37
  return removeNullUndefined(typed);
38
38
  }
39
- export function CreateMerchantAccountWithoutMerchantIdDtoCFeeToJSON(value) {
39
+ export function MerchantAccountEntityCFeeToJSON(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 { 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}
@@ -7,7 +7,7 @@
7
7
  *
8
8
  */
9
9
  import { exists, removeNullUndefined } from '../runtime';
10
- import { MerchantAccountServiceEntityCFeeFromJSON, MerchantAccountServiceEntityCFeeToJSON, } from './MerchantAccountServiceEntityCFee';
10
+ import { MerchantAccountEntityCFeeFromJSON, MerchantAccountEntityCFeeToJSON, } from './MerchantAccountEntityCFee';
11
11
  import { MerchantConnectorServiceEntityFromJSON, MerchantConnectorServiceEntityToJSON, } from './MerchantConnectorServiceEntity';
12
12
  /**
13
13
  * @export
@@ -93,7 +93,7 @@ export function MerchantAccountServiceEntityFromJSONTyped(json, ignoreDiscrimina
93
93
  'merchantId': !exists(json, 'merchantId') ? undefined : json['merchantId'],
94
94
  'issuedMid': json['issuedMid'],
95
95
  'psp': json['psp'],
96
- 'cFee': MerchantAccountServiceEntityCFeeFromJSON(json['cFee']),
96
+ 'cFee': MerchantAccountEntityCFeeFromJSON(json['cFee']),
97
97
  'createdAt': (new Date(json['createdAt'])),
98
98
  'updatedAt': (new Date(json['updatedAt'])),
99
99
  'method': json['method'],
@@ -118,7 +118,7 @@ export function MerchantAccountServiceEntityToJSON(value) {
118
118
  'merchantId': value.merchantId,
119
119
  'issuedMid': value.issuedMid,
120
120
  'psp': value.psp,
121
- 'cFee': MerchantAccountServiceEntityCFeeToJSON(value.cFee),
121
+ 'cFee': MerchantAccountEntityCFeeToJSON(value.cFee),
122
122
  'createdAt': (value.createdAt.toISOString()),
123
123
  'updatedAt': (value.updatedAt.toISOString()),
124
124
  '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;
@@ -0,0 +1,104 @@
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
+ /**
12
+ * @export
13
+ */
14
+ export const UpdateMerchantAccountDtoMethodEnum = {
15
+ Card: 'CARD',
16
+ Ach: 'ACH'
17
+ };
18
+ /**
19
+ * @export
20
+ */
21
+ export const UpdateMerchantAccountDtoPspEnum = {
22
+ Tsys: 'TSYS',
23
+ Nashville: 'NASHVILLE',
24
+ North: 'NORTH',
25
+ ChannelPayments: 'CHANNEL_PAYMENTS'
26
+ };
27
+ /**
28
+ * @export
29
+ */
30
+ export const UpdateMerchantAccountDtoCardTypesEnum = {
31
+ Credit: 'CREDIT',
32
+ Debit: 'DEBIT',
33
+ Prepaid: 'PREPAID'
34
+ };
35
+ /**
36
+ * @export
37
+ */
38
+ export const UpdateMerchantAccountDtoCardSchemesEnum = {
39
+ Visa: 'VISA',
40
+ Mastercard: 'MASTERCARD',
41
+ Amex: 'AMEX',
42
+ Discover: 'DISCOVER',
43
+ Jcb: 'JCB',
44
+ DinersClub: 'DINERS_CLUB',
45
+ Maestro: 'MAESTRO'
46
+ };
47
+ /**
48
+ * @export
49
+ */
50
+ export const UpdateMerchantAccountDtoCurrenciesEnum = {
51
+ Usd: 'USD',
52
+ Aud: 'AUD',
53
+ Cad: 'CAD'
54
+ };
55
+ /**
56
+ * Check if a given object implements the UpdateMerchantAccountDto interface.
57
+ */
58
+ export function instanceOfUpdateMerchantAccountDto(value) {
59
+ let isInstance = true;
60
+ return isInstance;
61
+ }
62
+ export function UpdateMerchantAccountDtoFromJSON(json) {
63
+ return UpdateMerchantAccountDtoFromJSONTyped(json, false);
64
+ }
65
+ export function UpdateMerchantAccountDtoFromJSONTyped(json, ignoreDiscriminator) {
66
+ if ((json === undefined) || (json === null)) {
67
+ return json;
68
+ }
69
+ const typed = {
70
+ 'method': !exists(json, 'method') ? undefined : json['method'],
71
+ 'psp': !exists(json, 'psp') ? undefined : json['psp'],
72
+ 'cFee': !exists(json, 'cFee') ? undefined : CreateMerchantAccountDtoCFeeFromJSON(json['cFee']),
73
+ 'cardTypes': !exists(json, 'cardTypes') ? undefined : json['cardTypes'],
74
+ 'cardSchemes': !exists(json, 'cardSchemes') ? undefined : json['cardSchemes'],
75
+ 'currencies': !exists(json, 'currencies') ? undefined : json['currencies'],
76
+ 'mcc': !exists(json, 'mcc') ? undefined : json['mcc'],
77
+ 'bin': !exists(json, 'bin') ? undefined : json['bin'],
78
+ 'chain': !exists(json, 'chain') ? undefined : json['chain'],
79
+ 'store': !exists(json, 'store') ? undefined : json['store'],
80
+ 'agent': !exists(json, 'agent') ? undefined : json['agent'],
81
+ };
82
+ return removeNullUndefined(typed);
83
+ }
84
+ export function UpdateMerchantAccountDtoToJSON(value) {
85
+ if (value === undefined) {
86
+ return undefined;
87
+ }
88
+ if (value === null) {
89
+ return null;
90
+ }
91
+ return {
92
+ 'method': value.method,
93
+ 'psp': value.psp,
94
+ 'cFee': CreateMerchantAccountDtoCFeeToJSON(value.cFee),
95
+ 'cardTypes': value.cardTypes,
96
+ 'cardSchemes': value.cardSchemes,
97
+ 'currencies': value.currencies,
98
+ 'mcc': value.mcc,
99
+ 'bin': value.bin,
100
+ 'chain': value.chain,
101
+ 'store': value.store,
102
+ 'agent': value.agent,
103
+ };
104
+ }
@@ -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 { CreateMerchantDtoAddress } from './CreateMerchantDtoAddress';
7
+ import type { UpdateMerchantDtoAddress } from './UpdateMerchantDtoAddress';
8
8
  /**
9
9
  *
10
10
  * @export
@@ -31,10 +31,10 @@ export interface UpdateMerchantDto {
31
31
  phoneNumber?: string;
32
32
  /**
33
33
  *
34
- * @type {CreateMerchantDtoAddress}
34
+ * @type {UpdateMerchantDtoAddress}
35
35
  * @memberof UpdateMerchantDto
36
36
  */
37
- address?: CreateMerchantDtoAddress;
37
+ address?: UpdateMerchantDtoAddress;
38
38
  /**
39
39
  * The website URL of the merchant.
40
40
  * @type {string}
@@ -7,7 +7,7 @@
7
7
  *
8
8
  */
9
9
  import { exists, removeNullUndefined } from '../runtime';
10
- import { CreateMerchantDtoAddressFromJSON, CreateMerchantDtoAddressToJSON, } from './CreateMerchantDtoAddress';
10
+ import { UpdateMerchantDtoAddressFromJSON, UpdateMerchantDtoAddressToJSON, } from './UpdateMerchantDtoAddress';
11
11
  /**
12
12
  * Check if a given object implements the UpdateMerchantDto interface.
13
13
  */
@@ -27,7 +27,7 @@ export function UpdateMerchantDtoFromJSONTyped(json, ignoreDiscriminator) {
27
27
  'name': !exists(json, 'name') ? undefined : json['name'],
28
28
  'email': !exists(json, 'email') ? undefined : json['email'],
29
29
  'phoneNumber': !exists(json, 'phoneNumber') ? undefined : json['phoneNumber'],
30
- 'address': !exists(json, 'address') ? undefined : CreateMerchantDtoAddressFromJSON(json['address']),
30
+ 'address': !exists(json, 'address') ? undefined : UpdateMerchantDtoAddressFromJSON(json['address']),
31
31
  'website': !exists(json, 'website') ? undefined : json['website'],
32
32
  'merchantId': json['merchantId'],
33
33
  'cancelRedirectUrl': !exists(json, 'cancelRedirectUrl') ? undefined : json['cancelRedirectUrl'],
@@ -47,7 +47,7 @@ export function UpdateMerchantDtoToJSON(value) {
47
47
  'name': value.name,
48
48
  'email': value.email,
49
49
  'phoneNumber': value.phoneNumber,
50
- 'address': CreateMerchantDtoAddressToJSON(value.address),
50
+ 'address': UpdateMerchantDtoAddressToJSON(value.address),
51
51
  'website': value.website,
52
52
  'merchantId': value.merchantId,
53
53
  'cancelRedirectUrl': value.cancelRedirectUrl,
@@ -7,62 +7,62 @@
7
7
  /**
8
8
  * The address of the merchant.
9
9
  * @export
10
- * @interface CreateMerchantDtoAddress
10
+ * @interface UpdateMerchantDtoAddress
11
11
  */
12
- export interface CreateMerchantDtoAddress {
12
+ export interface UpdateMerchantDtoAddress {
13
13
  /**
14
14
  * The city of the merchant address.
15
15
  * @type {string}
16
- * @memberof CreateMerchantDtoAddress
16
+ * @memberof UpdateMerchantDtoAddress
17
17
  */
18
18
  city: string;
19
19
  /**
20
20
  * The country of the merchant address.
21
21
  * @type {string}
22
- * @memberof CreateMerchantDtoAddress
22
+ * @memberof UpdateMerchantDtoAddress
23
23
  */
24
24
  country: string;
25
25
  /**
26
26
  * The subdivision (state, province, or region) of the merchant address.
27
27
  * @type {string}
28
- * @memberof CreateMerchantDtoAddress
28
+ * @memberof UpdateMerchantDtoAddress
29
29
  */
30
30
  subdivision: string;
31
31
  /**
32
32
  * The street address of the merchant.
33
33
  * @type {string}
34
- * @memberof CreateMerchantDtoAddress
34
+ * @memberof UpdateMerchantDtoAddress
35
35
  */
36
36
  streetAddress: string;
37
37
  /**
38
38
  * The postal code of the merchant address.
39
39
  * @type {string}
40
- * @memberof CreateMerchantDtoAddress
40
+ * @memberof UpdateMerchantDtoAddress
41
41
  */
42
42
  postalCode: string;
43
43
  /**
44
44
  * The country code of the merchant address.
45
45
  * @type {string}
46
- * @memberof CreateMerchantDtoAddress
46
+ * @memberof UpdateMerchantDtoAddress
47
47
  */
48
48
  countryCode?: string;
49
49
  /**
50
50
  * The second line of the street address of the merchant.
51
51
  * @type {string}
52
- * @memberof CreateMerchantDtoAddress
52
+ * @memberof UpdateMerchantDtoAddress
53
53
  */
54
54
  streetAddress2?: string;
55
55
  /**
56
56
  * The optional subdivision code.
57
57
  * @type {string}
58
- * @memberof CreateMerchantDtoAddress
58
+ * @memberof UpdateMerchantDtoAddress
59
59
  */
60
60
  subdivisionCode?: string;
61
61
  }
62
62
  /**
63
- * Check if a given object implements the CreateMerchantDtoAddress interface.
63
+ * Check if a given object implements the UpdateMerchantDtoAddress interface.
64
64
  */
65
- export declare function instanceOfCreateMerchantDtoAddress(value: object): boolean;
66
- export declare function CreateMerchantDtoAddressFromJSON(json: any): CreateMerchantDtoAddress;
67
- export declare function CreateMerchantDtoAddressFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateMerchantDtoAddress;
68
- export declare function CreateMerchantDtoAddressToJSON(value?: CreateMerchantDtoAddress | null): any;
65
+ export declare function instanceOfUpdateMerchantDtoAddress(value: object): boolean;
66
+ export declare function UpdateMerchantDtoAddressFromJSON(json: any): UpdateMerchantDtoAddress;
67
+ export declare function UpdateMerchantDtoAddressFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateMerchantDtoAddress;
68
+ export declare function UpdateMerchantDtoAddressToJSON(value?: UpdateMerchantDtoAddress | null): any;
@@ -8,9 +8,9 @@
8
8
  */
9
9
  import { exists, removeNullUndefined } from '../runtime';
10
10
  /**
11
- * Check if a given object implements the CreateMerchantDtoAddress interface.
11
+ * Check if a given object implements the UpdateMerchantDtoAddress interface.
12
12
  */
13
- export function instanceOfCreateMerchantDtoAddress(value) {
13
+ export function instanceOfUpdateMerchantDtoAddress(value) {
14
14
  let isInstance = true;
15
15
  isInstance = isInstance && "city" in value;
16
16
  isInstance = isInstance && "country" in value;
@@ -19,10 +19,10 @@ export function instanceOfCreateMerchantDtoAddress(value) {
19
19
  isInstance = isInstance && "postalCode" in value;
20
20
  return isInstance;
21
21
  }
22
- export function CreateMerchantDtoAddressFromJSON(json) {
23
- return CreateMerchantDtoAddressFromJSONTyped(json, false);
22
+ export function UpdateMerchantDtoAddressFromJSON(json) {
23
+ return UpdateMerchantDtoAddressFromJSONTyped(json, false);
24
24
  }
25
- export function CreateMerchantDtoAddressFromJSONTyped(json, ignoreDiscriminator) {
25
+ export function UpdateMerchantDtoAddressFromJSONTyped(json, ignoreDiscriminator) {
26
26
  if ((json === undefined) || (json === null)) {
27
27
  return json;
28
28
  }
@@ -38,7 +38,7 @@ export function CreateMerchantDtoAddressFromJSONTyped(json, ignoreDiscriminator)
38
38
  };
39
39
  return removeNullUndefined(typed);
40
40
  }
41
- export function CreateMerchantDtoAddressToJSON(value) {
41
+ export function UpdateMerchantDtoAddressToJSON(value) {
42
42
  if (value === undefined) {
43
43
  return undefined;
44
44
  }