@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,111 @@
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.UpdateMerchantAccountDtoToJSON = exports.UpdateMerchantAccountDtoFromJSONTyped = exports.UpdateMerchantAccountDtoFromJSON = exports.instanceOfUpdateMerchantAccountDto = exports.UpdateMerchantAccountDtoCurrenciesEnum = exports.UpdateMerchantAccountDtoCardSchemesEnum = exports.UpdateMerchantAccountDtoCardTypesEnum = exports.UpdateMerchantAccountDtoPspEnum = exports.UpdateMerchantAccountDtoMethodEnum = void 0;
12
+ const runtime_1 = require("../runtime");
13
+ const CreateMerchantAccountDtoCFee_1 = require("./CreateMerchantAccountDtoCFee");
14
+ /**
15
+ * @export
16
+ */
17
+ exports.UpdateMerchantAccountDtoMethodEnum = {
18
+ Card: 'CARD',
19
+ Ach: 'ACH'
20
+ };
21
+ /**
22
+ * @export
23
+ */
24
+ exports.UpdateMerchantAccountDtoPspEnum = {
25
+ Tsys: 'TSYS',
26
+ Nashville: 'NASHVILLE',
27
+ North: 'NORTH',
28
+ ChannelPayments: 'CHANNEL_PAYMENTS'
29
+ };
30
+ /**
31
+ * @export
32
+ */
33
+ exports.UpdateMerchantAccountDtoCardTypesEnum = {
34
+ Credit: 'CREDIT',
35
+ Debit: 'DEBIT',
36
+ Prepaid: 'PREPAID'
37
+ };
38
+ /**
39
+ * @export
40
+ */
41
+ exports.UpdateMerchantAccountDtoCardSchemesEnum = {
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
+ exports.UpdateMerchantAccountDtoCurrenciesEnum = {
54
+ Usd: 'USD',
55
+ Aud: 'AUD',
56
+ Cad: 'CAD'
57
+ };
58
+ /**
59
+ * Check if a given object implements the UpdateMerchantAccountDto interface.
60
+ */
61
+ function instanceOfUpdateMerchantAccountDto(value) {
62
+ let isInstance = true;
63
+ return isInstance;
64
+ }
65
+ exports.instanceOfUpdateMerchantAccountDto = instanceOfUpdateMerchantAccountDto;
66
+ function UpdateMerchantAccountDtoFromJSON(json) {
67
+ return UpdateMerchantAccountDtoFromJSONTyped(json, false);
68
+ }
69
+ exports.UpdateMerchantAccountDtoFromJSON = UpdateMerchantAccountDtoFromJSON;
70
+ function UpdateMerchantAccountDtoFromJSONTyped(json, ignoreDiscriminator) {
71
+ if ((json === undefined) || (json === null)) {
72
+ return json;
73
+ }
74
+ const typed = {
75
+ 'method': !(0, runtime_1.exists)(json, 'method') ? undefined : json['method'],
76
+ 'psp': !(0, runtime_1.exists)(json, 'psp') ? undefined : json['psp'],
77
+ 'cFee': !(0, runtime_1.exists)(json, 'cFee') ? undefined : (0, CreateMerchantAccountDtoCFee_1.CreateMerchantAccountDtoCFeeFromJSON)(json['cFee']),
78
+ 'cardTypes': !(0, runtime_1.exists)(json, 'cardTypes') ? undefined : json['cardTypes'],
79
+ 'cardSchemes': !(0, runtime_1.exists)(json, 'cardSchemes') ? undefined : json['cardSchemes'],
80
+ 'currencies': !(0, runtime_1.exists)(json, 'currencies') ? undefined : json['currencies'],
81
+ 'mcc': !(0, runtime_1.exists)(json, 'mcc') ? undefined : json['mcc'],
82
+ 'bin': !(0, runtime_1.exists)(json, 'bin') ? undefined : json['bin'],
83
+ 'chain': !(0, runtime_1.exists)(json, 'chain') ? undefined : json['chain'],
84
+ 'store': !(0, runtime_1.exists)(json, 'store') ? undefined : json['store'],
85
+ 'agent': !(0, runtime_1.exists)(json, 'agent') ? undefined : json['agent'],
86
+ };
87
+ return (0, runtime_1.removeNullUndefined)(typed);
88
+ }
89
+ exports.UpdateMerchantAccountDtoFromJSONTyped = UpdateMerchantAccountDtoFromJSONTyped;
90
+ function UpdateMerchantAccountDtoToJSON(value) {
91
+ if (value === undefined) {
92
+ return undefined;
93
+ }
94
+ if (value === null) {
95
+ return null;
96
+ }
97
+ return {
98
+ 'method': value.method,
99
+ 'psp': value.psp,
100
+ 'cFee': (0, CreateMerchantAccountDtoCFee_1.CreateMerchantAccountDtoCFeeToJSON)(value.cFee),
101
+ 'cardTypes': value.cardTypes,
102
+ 'cardSchemes': value.cardSchemes,
103
+ 'currencies': value.currencies,
104
+ 'mcc': value.mcc,
105
+ 'bin': value.bin,
106
+ 'chain': value.chain,
107
+ 'store': value.store,
108
+ 'agent': value.agent,
109
+ };
110
+ }
111
+ exports.UpdateMerchantAccountDtoToJSON = UpdateMerchantAccountDtoToJSON;
@@ -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}
@@ -10,7 +10,7 @@
10
10
  Object.defineProperty(exports, "__esModule", { value: true });
11
11
  exports.UpdateMerchantDtoToJSON = exports.UpdateMerchantDtoFromJSONTyped = exports.UpdateMerchantDtoFromJSON = exports.instanceOfUpdateMerchantDto = void 0;
12
12
  const runtime_1 = require("../runtime");
13
- const CreateMerchantDtoAddress_1 = require("./CreateMerchantDtoAddress");
13
+ const UpdateMerchantDtoAddress_1 = require("./UpdateMerchantDtoAddress");
14
14
  /**
15
15
  * Check if a given object implements the UpdateMerchantDto interface.
16
16
  */
@@ -32,7 +32,7 @@ function UpdateMerchantDtoFromJSONTyped(json, ignoreDiscriminator) {
32
32
  'name': !(0, runtime_1.exists)(json, 'name') ? undefined : json['name'],
33
33
  'email': !(0, runtime_1.exists)(json, 'email') ? undefined : json['email'],
34
34
  'phoneNumber': !(0, runtime_1.exists)(json, 'phoneNumber') ? undefined : json['phoneNumber'],
35
- 'address': !(0, runtime_1.exists)(json, 'address') ? undefined : (0, CreateMerchantDtoAddress_1.CreateMerchantDtoAddressFromJSON)(json['address']),
35
+ 'address': !(0, runtime_1.exists)(json, 'address') ? undefined : (0, UpdateMerchantDtoAddress_1.UpdateMerchantDtoAddressFromJSON)(json['address']),
36
36
  'website': !(0, runtime_1.exists)(json, 'website') ? undefined : json['website'],
37
37
  'merchantId': json['merchantId'],
38
38
  'cancelRedirectUrl': !(0, runtime_1.exists)(json, 'cancelRedirectUrl') ? undefined : json['cancelRedirectUrl'],
@@ -53,7 +53,7 @@ function UpdateMerchantDtoToJSON(value) {
53
53
  'name': value.name,
54
54
  'email': value.email,
55
55
  'phoneNumber': value.phoneNumber,
56
- 'address': (0, CreateMerchantDtoAddress_1.CreateMerchantDtoAddressToJSON)(value.address),
56
+ 'address': (0, UpdateMerchantDtoAddress_1.UpdateMerchantDtoAddressToJSON)(value.address),
57
57
  'website': value.website,
58
58
  'merchantId': value.merchantId,
59
59
  '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,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;
@@ -1,4 +1,6 @@
1
1
  export * from './AddressEntity';
2
+ export * from './AdminCreateTransactionRefundDto';
3
+ export * from './AdminVoidTransactionDto';
2
4
  export * from './AvailablePaymentMethodEntity';
3
5
  export * from './BankDetailsServiceEntity';
4
6
  export * from './BuyerAddressDto';
@@ -34,15 +36,15 @@ export * from './CreateEventDomainDtoTransactions';
34
36
  export * from './CreateEventDomainDtoUsers';
35
37
  export * from './CreateFeatureDto';
36
38
  export * from './CreateInitialUserDto';
39
+ export * from './CreateMerchantAccountDto';
40
+ export * from './CreateMerchantAccountDtoCFee';
37
41
  export * from './CreateMerchantAccountWithoutMerchantIdDto';
38
- export * from './CreateMerchantAccountWithoutMerchantIdDtoCFee';
39
42
  export * from './CreateMerchantAddressDto';
40
43
  export * from './CreateMerchantConnectorCredentialsDto';
41
44
  export * from './CreateMerchantConnectorWithoutMerchantAccountIdDto';
42
45
  export * from './CreateMerchantConnectorWithoutMerchantAccountIdDtoConnectorCredentials';
43
46
  export * from './CreateMerchantCredentialsDto';
44
47
  export * from './CreateMerchantDto';
45
- export * from './CreateMerchantDtoAddress';
46
48
  export * from './CreatePaymentMethodDto';
47
49
  export * from './CreateProvisionedCardTokenDto';
48
50
  export * from './CreateStoredCardPaymentMethod';
@@ -56,8 +58,9 @@ export * from './CreateWebhookDtoEventDomains';
56
58
  export * from './ErrorEntity';
57
59
  export * from './FeatureEntity';
58
60
  export * from './FeaturesEntity';
61
+ export * from './MerchantAccountEntity';
62
+ export * from './MerchantAccountEntityCFee';
59
63
  export * from './MerchantAccountServiceEntity';
60
- export * from './MerchantAccountServiceEntityCFee';
61
64
  export * from './MerchantAddressEntity';
62
65
  export * from './MerchantConnectorCredentialsServiceEntity';
63
66
  export * from './MerchantConnectorServiceEntity';
@@ -89,8 +92,10 @@ export * from './TransactionReturnsSearchEntity';
89
92
  export * from './TransactionsSearchEntity';
90
93
  export * from './UpdateBuyerDto';
91
94
  export * from './UpdateFeatureDto';
95
+ export * from './UpdateMerchantAccountDto';
92
96
  export * from './UpdateMerchantCredentialsDto';
93
97
  export * from './UpdateMerchantDto';
98
+ export * from './UpdateMerchantDtoAddress';
94
99
  export * from './UpdatePaymentMethodStatusDto';
95
100
  export * from './UpdateSelfDto';
96
101
  export * from './UpdateTransactionNoteDto';
@@ -17,6 +17,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  /* tslint:disable */
18
18
  /* eslint-disable */
19
19
  __exportStar(require("./AddressEntity"), exports);
20
+ __exportStar(require("./AdminCreateTransactionRefundDto"), exports);
21
+ __exportStar(require("./AdminVoidTransactionDto"), exports);
20
22
  __exportStar(require("./AvailablePaymentMethodEntity"), exports);
21
23
  __exportStar(require("./BankDetailsServiceEntity"), exports);
22
24
  __exportStar(require("./BuyerAddressDto"), exports);
@@ -52,15 +54,15 @@ __exportStar(require("./CreateEventDomainDtoTransactions"), exports);
52
54
  __exportStar(require("./CreateEventDomainDtoUsers"), exports);
53
55
  __exportStar(require("./CreateFeatureDto"), exports);
54
56
  __exportStar(require("./CreateInitialUserDto"), exports);
57
+ __exportStar(require("./CreateMerchantAccountDto"), exports);
58
+ __exportStar(require("./CreateMerchantAccountDtoCFee"), exports);
55
59
  __exportStar(require("./CreateMerchantAccountWithoutMerchantIdDto"), exports);
56
- __exportStar(require("./CreateMerchantAccountWithoutMerchantIdDtoCFee"), exports);
57
60
  __exportStar(require("./CreateMerchantAddressDto"), exports);
58
61
  __exportStar(require("./CreateMerchantConnectorCredentialsDto"), exports);
59
62
  __exportStar(require("./CreateMerchantConnectorWithoutMerchantAccountIdDto"), exports);
60
63
  __exportStar(require("./CreateMerchantConnectorWithoutMerchantAccountIdDtoConnectorCredentials"), exports);
61
64
  __exportStar(require("./CreateMerchantCredentialsDto"), exports);
62
65
  __exportStar(require("./CreateMerchantDto"), exports);
63
- __exportStar(require("./CreateMerchantDtoAddress"), exports);
64
66
  __exportStar(require("./CreatePaymentMethodDto"), exports);
65
67
  __exportStar(require("./CreateProvisionedCardTokenDto"), exports);
66
68
  __exportStar(require("./CreateStoredCardPaymentMethod"), exports);
@@ -74,8 +76,9 @@ __exportStar(require("./CreateWebhookDtoEventDomains"), exports);
74
76
  __exportStar(require("./ErrorEntity"), exports);
75
77
  __exportStar(require("./FeatureEntity"), exports);
76
78
  __exportStar(require("./FeaturesEntity"), exports);
79
+ __exportStar(require("./MerchantAccountEntity"), exports);
80
+ __exportStar(require("./MerchantAccountEntityCFee"), exports);
77
81
  __exportStar(require("./MerchantAccountServiceEntity"), exports);
78
- __exportStar(require("./MerchantAccountServiceEntityCFee"), exports);
79
82
  __exportStar(require("./MerchantAddressEntity"), exports);
80
83
  __exportStar(require("./MerchantConnectorCredentialsServiceEntity"), exports);
81
84
  __exportStar(require("./MerchantConnectorServiceEntity"), exports);
@@ -107,8 +110,10 @@ __exportStar(require("./TransactionReturnsSearchEntity"), exports);
107
110
  __exportStar(require("./TransactionsSearchEntity"), exports);
108
111
  __exportStar(require("./UpdateBuyerDto"), exports);
109
112
  __exportStar(require("./UpdateFeatureDto"), exports);
113
+ __exportStar(require("./UpdateMerchantAccountDto"), exports);
110
114
  __exportStar(require("./UpdateMerchantCredentialsDto"), exports);
111
115
  __exportStar(require("./UpdateMerchantDto"), exports);
116
+ __exportStar(require("./UpdateMerchantDtoAddress"), exports);
112
117
  __exportStar(require("./UpdatePaymentMethodStatusDto"), exports);
113
118
  __exportStar(require("./UpdateSelfDto"), exports);
114
119
  __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.137.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,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,77 @@
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
+ /**
11
+ * @export
12
+ */
13
+ export const AdminCreateTransactionRefundDtoReasonEnum = {
14
+ CustomerDissatisfaction: 'CUSTOMER_DISSATISFACTION',
15
+ ProductReturned: 'PRODUCT_RETURNED',
16
+ ServiceCancelled: 'SERVICE_CANCELLED',
17
+ OrderCancelled: 'ORDER_CANCELLED',
18
+ Overpayment: 'OVERPAYMENT',
19
+ DuplicateCharge: 'DUPLICATE_CHARGE',
20
+ FraudulentCharge: 'FRAUDULENT_CHARGE',
21
+ ProductNotReceived: 'PRODUCT_NOT_RECEIVED',
22
+ ProductDefective: 'PRODUCT_DEFECTIVE',
23
+ IncorrectProductShipped: 'INCORRECT_PRODUCT_SHIPPED',
24
+ BillingError: 'BILLING_ERROR',
25
+ WarrantyClaim: 'WARRANTY_CLAIM',
26
+ PromotionalAdjustment: 'PROMOTIONAL_ADJUSTMENT',
27
+ ComplianceIssue: 'COMPLIANCE_ISSUE',
28
+ GoodwillGesture: 'GOODWILL_GESTURE',
29
+ SubscriptionCancellation: 'SUBSCRIPTION_CANCELLATION',
30
+ LoanRepaymentAdjustment: 'LOAN_REPAYMENT_ADJUSTMENT',
31
+ RegulatoryRequirement: 'REGULATORY_REQUIREMENT',
32
+ None: 'NONE',
33
+ Other: 'OTHER'
34
+ };
35
+ /**
36
+ * Check if a given object implements the AdminCreateTransactionRefundDto interface.
37
+ */
38
+ export function instanceOfAdminCreateTransactionRefundDto(value) {
39
+ let isInstance = true;
40
+ isInstance = isInstance && "refundAmount" in value;
41
+ isInstance = isInstance && "transactionId" in value;
42
+ isInstance = isInstance && "merchantId" in value;
43
+ return isInstance;
44
+ }
45
+ export function AdminCreateTransactionRefundDtoFromJSON(json) {
46
+ return AdminCreateTransactionRefundDtoFromJSONTyped(json, false);
47
+ }
48
+ export function AdminCreateTransactionRefundDtoFromJSONTyped(json, ignoreDiscriminator) {
49
+ if ((json === undefined) || (json === null)) {
50
+ return json;
51
+ }
52
+ const typed = {
53
+ 'refundAmount': json['refundAmount'],
54
+ 'transactionId': json['transactionId'],
55
+ 'reason': !exists(json, 'reason') ? undefined : json['reason'],
56
+ 'description': !exists(json, 'description') ? undefined : json['description'],
57
+ 'note': !exists(json, 'note') ? undefined : json['note'],
58
+ 'merchantId': json['merchantId'],
59
+ };
60
+ return removeNullUndefined(typed);
61
+ }
62
+ export function AdminCreateTransactionRefundDtoToJSON(value) {
63
+ if (value === undefined) {
64
+ return undefined;
65
+ }
66
+ if (value === null) {
67
+ return null;
68
+ }
69
+ return {
70
+ 'refundAmount': value.refundAmount,
71
+ 'transactionId': value.transactionId,
72
+ 'reason': value.reason,
73
+ 'description': value.description,
74
+ 'note': value.note,
75
+ 'merchantId': value.merchantId,
76
+ };
77
+ }
@@ -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,43 @@
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 { removeNullUndefined } from '../runtime';
10
+ /**
11
+ * Check if a given object implements the AdminVoidTransactionDto interface.
12
+ */
13
+ export function instanceOfAdminVoidTransactionDto(value) {
14
+ let isInstance = true;
15
+ isInstance = isInstance && "transactionId" in value;
16
+ isInstance = isInstance && "merchantId" in value;
17
+ return isInstance;
18
+ }
19
+ export function AdminVoidTransactionDtoFromJSON(json) {
20
+ return AdminVoidTransactionDtoFromJSONTyped(json, false);
21
+ }
22
+ export function AdminVoidTransactionDtoFromJSONTyped(json, ignoreDiscriminator) {
23
+ if ((json === undefined) || (json === null)) {
24
+ return json;
25
+ }
26
+ const typed = {
27
+ 'transactionId': json['transactionId'],
28
+ 'merchantId': json['merchantId'],
29
+ };
30
+ return removeNullUndefined(typed);
31
+ }
32
+ export function AdminVoidTransactionDtoToJSON(value) {
33
+ if (value === undefined) {
34
+ return undefined;
35
+ }
36
+ if (value === null) {
37
+ return null;
38
+ }
39
+ return {
40
+ 'transactionId': value.transactionId,
41
+ 'merchantId': value.merchantId,
42
+ };
43
+ }