@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,82 @@
1
+ /**
2
+ * Channel Payments API
3
+ *
4
+ * NOTE: This class is auto generated. Do not edit the class manually.
5
+ *
6
+ */
7
+ /**
8
+ *
9
+ * @export
10
+ * @interface AdminCreateTransactionRefundDto
11
+ */
12
+ export interface AdminCreateTransactionRefundDto {
13
+ /**
14
+ * The amount to refund.
15
+ * @type {number}
16
+ * @memberof AdminCreateTransactionRefundDto
17
+ */
18
+ refundAmount: number;
19
+ /**
20
+ * The transaction id to refund.
21
+ * @type {string}
22
+ * @memberof AdminCreateTransactionRefundDto
23
+ */
24
+ transactionId: string;
25
+ /**
26
+ * The reason for the refund.
27
+ * @type {string}
28
+ * @memberof AdminCreateTransactionRefundDto
29
+ */
30
+ reason?: AdminCreateTransactionRefundDtoReasonEnum;
31
+ /**
32
+ * The description for the refund if reason is OTHER.
33
+ * @type {string}
34
+ * @memberof AdminCreateTransactionRefundDto
35
+ */
36
+ description?: string;
37
+ /**
38
+ * The content of the transaction refund note.
39
+ * @type {string}
40
+ * @memberof AdminCreateTransactionRefundDto
41
+ */
42
+ note?: string;
43
+ /**
44
+ * The merchant id.
45
+ * @type {string}
46
+ * @memberof AdminCreateTransactionRefundDto
47
+ */
48
+ merchantId: string;
49
+ }
50
+ /**
51
+ * @export
52
+ */
53
+ export declare const AdminCreateTransactionRefundDtoReasonEnum: {
54
+ readonly CustomerDissatisfaction: "CUSTOMER_DISSATISFACTION";
55
+ readonly ProductReturned: "PRODUCT_RETURNED";
56
+ readonly ServiceCancelled: "SERVICE_CANCELLED";
57
+ readonly OrderCancelled: "ORDER_CANCELLED";
58
+ readonly Overpayment: "OVERPAYMENT";
59
+ readonly DuplicateCharge: "DUPLICATE_CHARGE";
60
+ readonly FraudulentCharge: "FRAUDULENT_CHARGE";
61
+ readonly ProductNotReceived: "PRODUCT_NOT_RECEIVED";
62
+ readonly ProductDefective: "PRODUCT_DEFECTIVE";
63
+ readonly IncorrectProductShipped: "INCORRECT_PRODUCT_SHIPPED";
64
+ readonly BillingError: "BILLING_ERROR";
65
+ readonly WarrantyClaim: "WARRANTY_CLAIM";
66
+ readonly PromotionalAdjustment: "PROMOTIONAL_ADJUSTMENT";
67
+ readonly ComplianceIssue: "COMPLIANCE_ISSUE";
68
+ readonly GoodwillGesture: "GOODWILL_GESTURE";
69
+ readonly SubscriptionCancellation: "SUBSCRIPTION_CANCELLATION";
70
+ readonly LoanRepaymentAdjustment: "LOAN_REPAYMENT_ADJUSTMENT";
71
+ readonly RegulatoryRequirement: "REGULATORY_REQUIREMENT";
72
+ readonly None: "NONE";
73
+ readonly Other: "OTHER";
74
+ };
75
+ export type AdminCreateTransactionRefundDtoReasonEnum = typeof AdminCreateTransactionRefundDtoReasonEnum[keyof typeof AdminCreateTransactionRefundDtoReasonEnum];
76
+ /**
77
+ * Check if a given object implements the AdminCreateTransactionRefundDto interface.
78
+ */
79
+ export declare function instanceOfAdminCreateTransactionRefundDto(value: object): boolean;
80
+ export declare function AdminCreateTransactionRefundDtoFromJSON(json: any): AdminCreateTransactionRefundDto;
81
+ export declare function AdminCreateTransactionRefundDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminCreateTransactionRefundDto;
82
+ export declare function AdminCreateTransactionRefundDtoToJSON(value?: AdminCreateTransactionRefundDto | null): any;
@@ -0,0 +1,84 @@
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.AdminCreateTransactionRefundDtoToJSON = exports.AdminCreateTransactionRefundDtoFromJSONTyped = exports.AdminCreateTransactionRefundDtoFromJSON = exports.instanceOfAdminCreateTransactionRefundDto = exports.AdminCreateTransactionRefundDtoReasonEnum = void 0;
12
+ const runtime_1 = require("../runtime");
13
+ /**
14
+ * @export
15
+ */
16
+ exports.AdminCreateTransactionRefundDtoReasonEnum = {
17
+ CustomerDissatisfaction: 'CUSTOMER_DISSATISFACTION',
18
+ ProductReturned: 'PRODUCT_RETURNED',
19
+ ServiceCancelled: 'SERVICE_CANCELLED',
20
+ OrderCancelled: 'ORDER_CANCELLED',
21
+ Overpayment: 'OVERPAYMENT',
22
+ DuplicateCharge: 'DUPLICATE_CHARGE',
23
+ FraudulentCharge: 'FRAUDULENT_CHARGE',
24
+ ProductNotReceived: 'PRODUCT_NOT_RECEIVED',
25
+ ProductDefective: 'PRODUCT_DEFECTIVE',
26
+ IncorrectProductShipped: 'INCORRECT_PRODUCT_SHIPPED',
27
+ BillingError: 'BILLING_ERROR',
28
+ WarrantyClaim: 'WARRANTY_CLAIM',
29
+ PromotionalAdjustment: 'PROMOTIONAL_ADJUSTMENT',
30
+ ComplianceIssue: 'COMPLIANCE_ISSUE',
31
+ GoodwillGesture: 'GOODWILL_GESTURE',
32
+ SubscriptionCancellation: 'SUBSCRIPTION_CANCELLATION',
33
+ LoanRepaymentAdjustment: 'LOAN_REPAYMENT_ADJUSTMENT',
34
+ RegulatoryRequirement: 'REGULATORY_REQUIREMENT',
35
+ None: 'NONE',
36
+ Other: 'OTHER'
37
+ };
38
+ /**
39
+ * Check if a given object implements the AdminCreateTransactionRefundDto interface.
40
+ */
41
+ function instanceOfAdminCreateTransactionRefundDto(value) {
42
+ let isInstance = true;
43
+ isInstance = isInstance && "refundAmount" in value;
44
+ isInstance = isInstance && "transactionId" in value;
45
+ isInstance = isInstance && "merchantId" in value;
46
+ return isInstance;
47
+ }
48
+ exports.instanceOfAdminCreateTransactionRefundDto = instanceOfAdminCreateTransactionRefundDto;
49
+ function AdminCreateTransactionRefundDtoFromJSON(json) {
50
+ return AdminCreateTransactionRefundDtoFromJSONTyped(json, false);
51
+ }
52
+ exports.AdminCreateTransactionRefundDtoFromJSON = AdminCreateTransactionRefundDtoFromJSON;
53
+ function AdminCreateTransactionRefundDtoFromJSONTyped(json, ignoreDiscriminator) {
54
+ if ((json === undefined) || (json === null)) {
55
+ return json;
56
+ }
57
+ const typed = {
58
+ 'refundAmount': json['refundAmount'],
59
+ 'transactionId': json['transactionId'],
60
+ 'reason': !(0, runtime_1.exists)(json, 'reason') ? undefined : json['reason'],
61
+ 'description': !(0, runtime_1.exists)(json, 'description') ? undefined : json['description'],
62
+ 'note': !(0, runtime_1.exists)(json, 'note') ? undefined : json['note'],
63
+ 'merchantId': json['merchantId'],
64
+ };
65
+ return (0, runtime_1.removeNullUndefined)(typed);
66
+ }
67
+ exports.AdminCreateTransactionRefundDtoFromJSONTyped = AdminCreateTransactionRefundDtoFromJSONTyped;
68
+ function AdminCreateTransactionRefundDtoToJSON(value) {
69
+ if (value === undefined) {
70
+ return undefined;
71
+ }
72
+ if (value === null) {
73
+ return null;
74
+ }
75
+ return {
76
+ 'refundAmount': value.refundAmount,
77
+ 'transactionId': value.transactionId,
78
+ 'reason': value.reason,
79
+ 'description': value.description,
80
+ 'note': value.note,
81
+ 'merchantId': value.merchantId,
82
+ };
83
+ }
84
+ exports.AdminCreateTransactionRefundDtoToJSON = AdminCreateTransactionRefundDtoToJSON;
@@ -0,0 +1,32 @@
1
+ /**
2
+ * Channel Payments API
3
+ *
4
+ * NOTE: This class is auto generated. Do not edit the class manually.
5
+ *
6
+ */
7
+ /**
8
+ *
9
+ * @export
10
+ * @interface AdminVoidTransactionDto
11
+ */
12
+ export interface AdminVoidTransactionDto {
13
+ /**
14
+ * The transaction ID.
15
+ * @type {string}
16
+ * @memberof AdminVoidTransactionDto
17
+ */
18
+ transactionId: string;
19
+ /**
20
+ * The merchantId ID.
21
+ * @type {string}
22
+ * @memberof AdminVoidTransactionDto
23
+ */
24
+ merchantId: string;
25
+ }
26
+ /**
27
+ * Check if a given object implements the AdminVoidTransactionDto interface.
28
+ */
29
+ export declare function instanceOfAdminVoidTransactionDto(value: object): boolean;
30
+ export declare function AdminVoidTransactionDtoFromJSON(json: any): AdminVoidTransactionDto;
31
+ export declare function AdminVoidTransactionDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminVoidTransactionDto;
32
+ export declare function AdminVoidTransactionDtoToJSON(value?: AdminVoidTransactionDto | null): any;
@@ -0,0 +1,50 @@
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.AdminVoidTransactionDtoToJSON = exports.AdminVoidTransactionDtoFromJSONTyped = exports.AdminVoidTransactionDtoFromJSON = exports.instanceOfAdminVoidTransactionDto = void 0;
12
+ const runtime_1 = require("../runtime");
13
+ /**
14
+ * Check if a given object implements the AdminVoidTransactionDto interface.
15
+ */
16
+ function instanceOfAdminVoidTransactionDto(value) {
17
+ let isInstance = true;
18
+ isInstance = isInstance && "transactionId" in value;
19
+ isInstance = isInstance && "merchantId" in value;
20
+ return isInstance;
21
+ }
22
+ exports.instanceOfAdminVoidTransactionDto = instanceOfAdminVoidTransactionDto;
23
+ function AdminVoidTransactionDtoFromJSON(json) {
24
+ return AdminVoidTransactionDtoFromJSONTyped(json, false);
25
+ }
26
+ exports.AdminVoidTransactionDtoFromJSON = AdminVoidTransactionDtoFromJSON;
27
+ function AdminVoidTransactionDtoFromJSONTyped(json, ignoreDiscriminator) {
28
+ if ((json === undefined) || (json === null)) {
29
+ return json;
30
+ }
31
+ const typed = {
32
+ 'transactionId': json['transactionId'],
33
+ 'merchantId': json['merchantId'],
34
+ };
35
+ return (0, runtime_1.removeNullUndefined)(typed);
36
+ }
37
+ exports.AdminVoidTransactionDtoFromJSONTyped = AdminVoidTransactionDtoFromJSONTyped;
38
+ function AdminVoidTransactionDtoToJSON(value) {
39
+ if (value === undefined) {
40
+ return undefined;
41
+ }
42
+ if (value === null) {
43
+ return null;
44
+ }
45
+ return {
46
+ 'transactionId': value.transactionId,
47
+ 'merchantId': value.merchantId,
48
+ };
49
+ }
50
+ exports.AdminVoidTransactionDtoToJSON = AdminVoidTransactionDtoToJSON;
@@ -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,124 @@
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.CreateMerchantAccountDtoToJSON = exports.CreateMerchantAccountDtoFromJSONTyped = exports.CreateMerchantAccountDtoFromJSON = exports.instanceOfCreateMerchantAccountDto = exports.CreateMerchantAccountDtoCurrenciesEnum = exports.CreateMerchantAccountDtoCardSchemesEnum = exports.CreateMerchantAccountDtoCardTypesEnum = exports.CreateMerchantAccountDtoPspEnum = exports.CreateMerchantAccountDtoMethodEnum = void 0;
12
+ const runtime_1 = require("../runtime");
13
+ const CreateMerchantAccountDtoCFee_1 = require("./CreateMerchantAccountDtoCFee");
14
+ const CreateMerchantConnectorWithoutMerchantAccountIdDto_1 = require("./CreateMerchantConnectorWithoutMerchantAccountIdDto");
15
+ /**
16
+ * @export
17
+ */
18
+ exports.CreateMerchantAccountDtoMethodEnum = {
19
+ Card: 'CARD',
20
+ Ach: 'ACH'
21
+ };
22
+ /**
23
+ * @export
24
+ */
25
+ exports.CreateMerchantAccountDtoPspEnum = {
26
+ Tsys: 'TSYS',
27
+ Nashville: 'NASHVILLE',
28
+ North: 'NORTH',
29
+ ChannelPayments: 'CHANNEL_PAYMENTS'
30
+ };
31
+ /**
32
+ * @export
33
+ */
34
+ exports.CreateMerchantAccountDtoCardTypesEnum = {
35
+ Credit: 'CREDIT',
36
+ Debit: 'DEBIT',
37
+ Prepaid: 'PREPAID'
38
+ };
39
+ /**
40
+ * @export
41
+ */
42
+ exports.CreateMerchantAccountDtoCardSchemesEnum = {
43
+ Visa: 'VISA',
44
+ Mastercard: 'MASTERCARD',
45
+ Amex: 'AMEX',
46
+ Discover: 'DISCOVER',
47
+ Jcb: 'JCB',
48
+ DinersClub: 'DINERS_CLUB',
49
+ Maestro: 'MAESTRO'
50
+ };
51
+ /**
52
+ * @export
53
+ */
54
+ exports.CreateMerchantAccountDtoCurrenciesEnum = {
55
+ Usd: 'USD',
56
+ Aud: 'AUD',
57
+ Cad: 'CAD'
58
+ };
59
+ /**
60
+ * Check if a given object implements the CreateMerchantAccountDto interface.
61
+ */
62
+ function instanceOfCreateMerchantAccountDto(value) {
63
+ let isInstance = true;
64
+ isInstance = isInstance && "merchantId" in value;
65
+ isInstance = isInstance && "issuedMid" in value;
66
+ isInstance = isInstance && "method" in value;
67
+ isInstance = isInstance && "psp" in value;
68
+ isInstance = isInstance && "cFee" in value;
69
+ isInstance = isInstance && "connectors" in value;
70
+ return isInstance;
71
+ }
72
+ exports.instanceOfCreateMerchantAccountDto = instanceOfCreateMerchantAccountDto;
73
+ function CreateMerchantAccountDtoFromJSON(json) {
74
+ return CreateMerchantAccountDtoFromJSONTyped(json, false);
75
+ }
76
+ exports.CreateMerchantAccountDtoFromJSON = CreateMerchantAccountDtoFromJSON;
77
+ function CreateMerchantAccountDtoFromJSONTyped(json, ignoreDiscriminator) {
78
+ if ((json === undefined) || (json === null)) {
79
+ return json;
80
+ }
81
+ const typed = {
82
+ 'merchantId': json['merchantId'],
83
+ 'issuedMid': json['issuedMid'],
84
+ 'method': json['method'],
85
+ 'psp': json['psp'],
86
+ 'cFee': (0, CreateMerchantAccountDtoCFee_1.CreateMerchantAccountDtoCFeeFromJSON)(json['cFee']),
87
+ 'cardTypes': !(0, runtime_1.exists)(json, 'cardTypes') ? undefined : json['cardTypes'],
88
+ 'cardSchemes': !(0, runtime_1.exists)(json, 'cardSchemes') ? undefined : json['cardSchemes'],
89
+ 'currencies': !(0, runtime_1.exists)(json, 'currencies') ? undefined : json['currencies'],
90
+ 'connectors': (json['connectors'].map(CreateMerchantConnectorWithoutMerchantAccountIdDto_1.CreateMerchantConnectorWithoutMerchantAccountIdDtoFromJSON)),
91
+ 'mcc': !(0, runtime_1.exists)(json, 'mcc') ? undefined : json['mcc'],
92
+ 'bin': !(0, runtime_1.exists)(json, 'bin') ? undefined : json['bin'],
93
+ 'chain': !(0, runtime_1.exists)(json, 'chain') ? undefined : json['chain'],
94
+ 'store': !(0, runtime_1.exists)(json, 'store') ? undefined : json['store'],
95
+ 'agent': !(0, runtime_1.exists)(json, 'agent') ? undefined : json['agent'],
96
+ };
97
+ return (0, runtime_1.removeNullUndefined)(typed);
98
+ }
99
+ exports.CreateMerchantAccountDtoFromJSONTyped = CreateMerchantAccountDtoFromJSONTyped;
100
+ function CreateMerchantAccountDtoToJSON(value) {
101
+ if (value === undefined) {
102
+ return undefined;
103
+ }
104
+ if (value === null) {
105
+ return null;
106
+ }
107
+ return {
108
+ 'merchantId': value.merchantId,
109
+ 'issuedMid': value.issuedMid,
110
+ 'method': value.method,
111
+ 'psp': value.psp,
112
+ 'cFee': (0, CreateMerchantAccountDtoCFee_1.CreateMerchantAccountDtoCFeeToJSON)(value.cFee),
113
+ 'cardTypes': value.cardTypes,
114
+ 'cardSchemes': value.cardSchemes,
115
+ 'currencies': value.currencies,
116
+ 'connectors': (value.connectors.map(CreateMerchantConnectorWithoutMerchantAccountIdDto_1.CreateMerchantConnectorWithoutMerchantAccountIdDtoToJSON)),
117
+ 'mcc': value.mcc,
118
+ 'bin': value.bin,
119
+ 'chain': value.chain,
120
+ 'store': value.store,
121
+ 'agent': value.agent,
122
+ };
123
+ }
124
+ exports.CreateMerchantAccountDtoToJSON = CreateMerchantAccountDtoToJSON;
@@ -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;
@@ -0,0 +1,57 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Channel Payments API
6
+ *
7
+ * NOTE: This class is auto generated. Do not edit the class manually.
8
+ *
9
+ */
10
+ Object.defineProperty(exports, "__esModule", { value: true });
11
+ exports.CreateMerchantAccountDtoCFeeToJSON = exports.CreateMerchantAccountDtoCFeeFromJSONTyped = exports.CreateMerchantAccountDtoCFeeFromJSON = exports.instanceOfCreateMerchantAccountDtoCFee = exports.CreateMerchantAccountDtoCFeeTypeEnum = void 0;
12
+ const runtime_1 = require("../runtime");
13
+ /**
14
+ * @export
15
+ */
16
+ exports.CreateMerchantAccountDtoCFeeTypeEnum = {
17
+ Percentage: 'PERCENTAGE',
18
+ Fixed: 'FIXED'
19
+ };
20
+ /**
21
+ * Check if a given object implements the CreateMerchantAccountDtoCFee interface.
22
+ */
23
+ function instanceOfCreateMerchantAccountDtoCFee(value) {
24
+ let isInstance = true;
25
+ isInstance = isInstance && "type" in value;
26
+ isInstance = isInstance && "rate" in value;
27
+ return isInstance;
28
+ }
29
+ exports.instanceOfCreateMerchantAccountDtoCFee = instanceOfCreateMerchantAccountDtoCFee;
30
+ function CreateMerchantAccountDtoCFeeFromJSON(json) {
31
+ return CreateMerchantAccountDtoCFeeFromJSONTyped(json, false);
32
+ }
33
+ exports.CreateMerchantAccountDtoCFeeFromJSON = CreateMerchantAccountDtoCFeeFromJSON;
34
+ function CreateMerchantAccountDtoCFeeFromJSONTyped(json, ignoreDiscriminator) {
35
+ if ((json === undefined) || (json === null)) {
36
+ return json;
37
+ }
38
+ const typed = {
39
+ 'type': json['type'],
40
+ 'rate': json['rate'],
41
+ };
42
+ return (0, runtime_1.removeNullUndefined)(typed);
43
+ }
44
+ exports.CreateMerchantAccountDtoCFeeFromJSONTyped = CreateMerchantAccountDtoCFeeFromJSONTyped;
45
+ function CreateMerchantAccountDtoCFeeToJSON(value) {
46
+ if (value === undefined) {
47
+ return undefined;
48
+ }
49
+ if (value === null) {
50
+ return null;
51
+ }
52
+ return {
53
+ 'type': value.type,
54
+ 'rate': value.rate,
55
+ };
56
+ }
57
+ exports.CreateMerchantAccountDtoCFeeToJSON = CreateMerchantAccountDtoCFeeToJSON;
@@ -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>}
@@ -10,7 +10,7 @@
10
10
  Object.defineProperty(exports, "__esModule", { value: true });
11
11
  exports.CreateMerchantAccountWithoutMerchantIdDtoToJSON = exports.CreateMerchantAccountWithoutMerchantIdDtoFromJSONTyped = exports.CreateMerchantAccountWithoutMerchantIdDtoFromJSON = exports.instanceOfCreateMerchantAccountWithoutMerchantIdDto = exports.CreateMerchantAccountWithoutMerchantIdDtoCurrenciesEnum = exports.CreateMerchantAccountWithoutMerchantIdDtoCardSchemesEnum = exports.CreateMerchantAccountWithoutMerchantIdDtoCardTypesEnum = exports.CreateMerchantAccountWithoutMerchantIdDtoPspEnum = exports.CreateMerchantAccountWithoutMerchantIdDtoMethodEnum = void 0;
12
12
  const runtime_1 = require("../runtime");
13
- const CreateMerchantAccountWithoutMerchantIdDtoCFee_1 = require("./CreateMerchantAccountWithoutMerchantIdDtoCFee");
13
+ const CreateMerchantAccountDtoCFee_1 = require("./CreateMerchantAccountDtoCFee");
14
14
  const CreateMerchantConnectorWithoutMerchantAccountIdDto_1 = require("./CreateMerchantConnectorWithoutMerchantAccountIdDto");
15
15
  /**
16
16
  * @export
@@ -81,7 +81,7 @@ function CreateMerchantAccountWithoutMerchantIdDtoFromJSONTyped(json, ignoreDisc
81
81
  'issuedMid': json['issuedMid'],
82
82
  'method': json['method'],
83
83
  'psp': json['psp'],
84
- 'cFee': (0, CreateMerchantAccountWithoutMerchantIdDtoCFee_1.CreateMerchantAccountWithoutMerchantIdDtoCFeeFromJSON)(json['cFee']),
84
+ 'cFee': (0, CreateMerchantAccountDtoCFee_1.CreateMerchantAccountDtoCFeeFromJSON)(json['cFee']),
85
85
  'cardTypes': !(0, runtime_1.exists)(json, 'cardTypes') ? undefined : json['cardTypes'],
86
86
  'cardSchemes': !(0, runtime_1.exists)(json, 'cardSchemes') ? undefined : json['cardSchemes'],
87
87
  'currencies': !(0, runtime_1.exists)(json, 'currencies') ? undefined : json['currencies'],
@@ -106,7 +106,7 @@ function CreateMerchantAccountWithoutMerchantIdDtoToJSON(value) {
106
106
  'issuedMid': value.issuedMid,
107
107
  'method': value.method,
108
108
  'psp': value.psp,
109
- 'cFee': (0, CreateMerchantAccountWithoutMerchantIdDtoCFee_1.CreateMerchantAccountWithoutMerchantIdDtoCFeeToJSON)(value.cFee),
109
+ 'cFee': (0, CreateMerchantAccountDtoCFee_1.CreateMerchantAccountDtoCFeeToJSON)(value.cFee),
110
110
  'cardTypes': value.cardTypes,
111
111
  'cardSchemes': value.cardSchemes,
112
112
  'currencies': value.currencies,