@channelpayments/node-sdk 1.195.0 → 1.196.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 (37) hide show
  1. package/dist/cjs/models/BillingDetailsDto1.d.ts +45 -0
  2. package/dist/cjs/models/BillingDetailsDto1.js +56 -0
  3. package/dist/cjs/models/CreateCheckoutSessionItemDto.d.ts +1 -1
  4. package/dist/cjs/models/CreateCheckoutSessionPaymentMethodDto.d.ts +7 -0
  5. package/dist/cjs/models/CreateCheckoutSessionPaymentMethodDto.js +3 -0
  6. package/dist/cjs/models/CreateTransactionRequestDto.d.ts +19 -1
  7. package/dist/cjs/models/CreateTransactionRequestDto.js +6 -0
  8. package/dist/cjs/models/PaymentMethodDto.d.ts +7 -0
  9. package/dist/cjs/models/PaymentMethodDto.js +3 -0
  10. package/dist/cjs/models/TransactionEntity.d.ts +57 -33
  11. package/dist/cjs/models/TransactionEntity.js +20 -12
  12. package/dist/cjs/models/index.d.ts +1 -2
  13. package/dist/cjs/models/index.js +1 -2
  14. package/dist/cjs/runtime.js +1 -1
  15. package/dist/mjs/models/BillingDetailsDto1.d.ts +45 -0
  16. package/dist/mjs/models/BillingDetailsDto1.js +50 -0
  17. package/dist/mjs/models/CreateCheckoutSessionItemDto.d.ts +1 -1
  18. package/dist/mjs/models/CreateCheckoutSessionPaymentMethodDto.d.ts +7 -0
  19. package/dist/mjs/models/CreateCheckoutSessionPaymentMethodDto.js +3 -0
  20. package/dist/mjs/models/CreateTransactionRequestDto.d.ts +19 -1
  21. package/dist/mjs/models/CreateTransactionRequestDto.js +6 -0
  22. package/dist/mjs/models/PaymentMethodDto.d.ts +7 -0
  23. package/dist/mjs/models/PaymentMethodDto.js +3 -0
  24. package/dist/mjs/models/TransactionEntity.d.ts +57 -33
  25. package/dist/mjs/models/TransactionEntity.js +20 -12
  26. package/dist/mjs/models/index.d.ts +1 -2
  27. package/dist/mjs/models/index.js +1 -2
  28. package/dist/mjs/runtime.js +1 -1
  29. package/package.json +1 -1
  30. package/dist/cjs/models/AdminCreateTransactionRefundDto.d.ts +0 -82
  31. package/dist/cjs/models/AdminCreateTransactionRefundDto.js +0 -84
  32. package/dist/cjs/models/AdminVoidTransactionDto.d.ts +0 -32
  33. package/dist/cjs/models/AdminVoidTransactionDto.js +0 -49
  34. package/dist/mjs/models/AdminCreateTransactionRefundDto.d.ts +0 -82
  35. package/dist/mjs/models/AdminCreateTransactionRefundDto.js +0 -77
  36. package/dist/mjs/models/AdminVoidTransactionDto.d.ts +0 -32
  37. package/dist/mjs/models/AdminVoidTransactionDto.js +0 -43
@@ -7,6 +7,7 @@
7
7
  *
8
8
  */
9
9
  import { exists, removeNullUndefined } from '../runtime';
10
+ import { BillingDetailsDto1FromJSON, BillingDetailsDto1ToJSON, } from './BillingDetailsDto1';
10
11
  /**
11
12
  * @export
12
13
  */
@@ -47,6 +48,7 @@ export function CreateCheckoutSessionPaymentMethodDtoFromJSONTyped(json, ignoreD
47
48
  'abaNumber': !exists(json, 'abaNumber') ? undefined : json['abaNumber'],
48
49
  'accountNumber': !exists(json, 'accountNumber') ? undefined : json['accountNumber'],
49
50
  'accountType': !exists(json, 'accountType') ? undefined : json['accountType'],
51
+ 'billingDetails': !exists(json, 'billingDetails') ? undefined : BillingDetailsDto1FromJSON(json['billingDetails']),
50
52
  };
51
53
  return removeNullUndefined(typed);
52
54
  }
@@ -67,5 +69,6 @@ export function CreateCheckoutSessionPaymentMethodDtoToJSON(value) {
67
69
  'abaNumber': value.abaNumber,
68
70
  'accountNumber': value.accountNumber,
69
71
  'accountType': value.accountType,
72
+ 'billingDetails': BillingDetailsDto1ToJSON(value.billingDetails),
70
73
  };
71
74
  }
@@ -13,11 +13,17 @@ import type { TagDto } from './TagDto';
13
13
  */
14
14
  export interface CreateTransactionRequestDto {
15
15
  /**
16
- * The amount to charge the buyer.
16
+ * The total amount to charge the buyer.
17
17
  * @type {number}
18
18
  * @memberof CreateTransactionRequestDto
19
19
  */
20
20
  amount: number;
21
+ /**
22
+ * The total sales tax of the transaction.
23
+ * @type {number}
24
+ * @memberof CreateTransactionRequestDto
25
+ */
26
+ salesTax?: number;
21
27
  /**
22
28
  * The ISO-4217 currency code of the amount to charge the buyer.
23
29
  * @type {string}
@@ -54,6 +60,12 @@ export interface CreateTransactionRequestDto {
54
60
  * @memberof CreateTransactionRequestDto
55
61
  */
56
62
  externalTransactionId?: string;
63
+ /**
64
+ * Optional alphanumeric field (a-z, A-Z, 0-9, space).
65
+ * @type {string}
66
+ * @memberof CreateTransactionRequestDto
67
+ */
68
+ purchaseOrderId?: string;
57
69
  /**
58
70
  * The SEC code of the ACH transaction. Must be unset if method is not BANK.
59
71
  * @type {string}
@@ -66,6 +78,12 @@ export interface CreateTransactionRequestDto {
66
78
  * @memberof CreateTransactionRequestDto
67
79
  */
68
80
  tags?: Array<TagDto>;
81
+ /**
82
+ * Optional transaction descriptor.
83
+ * @type {string}
84
+ * @memberof CreateTransactionRequestDto
85
+ */
86
+ description?: string;
69
87
  }
70
88
  /**
71
89
  * @export
@@ -54,14 +54,17 @@ export function CreateTransactionRequestDtoFromJSONTyped(json, ignoreDiscriminat
54
54
  }
55
55
  const typed = {
56
56
  'amount': json['amount'],
57
+ 'salesTax': !exists(json, 'salesTax') ? undefined : json['salesTax'],
57
58
  'currency': json['currency'],
58
59
  'paymentMethod': PaymentMethodDtoFromJSON(json['paymentMethod']),
59
60
  'intent': json['intent'],
60
61
  'excludeCFee': !exists(json, 'excludeCFee') ? undefined : json['excludeCFee'],
61
62
  'country': !exists(json, 'country') ? undefined : json['country'],
62
63
  'externalTransactionId': !exists(json, 'externalTransactionId') ? undefined : json['externalTransactionId'],
64
+ 'purchaseOrderId': !exists(json, 'purchaseOrderId') ? undefined : json['purchaseOrderId'],
63
65
  'secCode': !exists(json, 'secCode') ? undefined : json['secCode'],
64
66
  'tags': !exists(json, 'tags') ? undefined : (json['tags'].map(TagDtoFromJSON)),
67
+ 'description': !exists(json, 'description') ? undefined : json['description'],
65
68
  };
66
69
  return removeNullUndefined(typed);
67
70
  }
@@ -74,13 +77,16 @@ export function CreateTransactionRequestDtoToJSON(value) {
74
77
  }
75
78
  return {
76
79
  'amount': value.amount,
80
+ 'salesTax': value.salesTax,
77
81
  'currency': value.currency,
78
82
  'paymentMethod': PaymentMethodDtoToJSON(value.paymentMethod),
79
83
  'intent': value.intent,
80
84
  'excludeCFee': value.excludeCFee,
81
85
  'country': value.country,
82
86
  'externalTransactionId': value.externalTransactionId,
87
+ 'purchaseOrderId': value.purchaseOrderId,
83
88
  'secCode': value.secCode,
84
89
  'tags': value.tags === undefined ? undefined : (value.tags.map(TagDtoToJSON)),
90
+ 'description': value.description,
85
91
  };
86
92
  }
@@ -4,6 +4,7 @@
4
4
  * NOTE: This class is auto generated. Do not edit the class manually.
5
5
  *
6
6
  */
7
+ import type { BillingDetailsDto1 } from './BillingDetailsDto1';
7
8
  /**
8
9
  *
9
10
  * @export
@@ -82,6 +83,12 @@ export interface PaymentMethodDto {
82
83
  * @memberof PaymentMethodDto
83
84
  */
84
85
  accountHolderName?: string;
86
+ /**
87
+ * The billing details.
88
+ * @type {BillingDetailsDto1}
89
+ * @memberof PaymentMethodDto
90
+ */
91
+ billingDetails?: BillingDetailsDto1;
85
92
  }
86
93
  /**
87
94
  * @export
@@ -7,6 +7,7 @@
7
7
  *
8
8
  */
9
9
  import { exists, removeNullUndefined } from '../runtime';
10
+ import { BillingDetailsDto1FromJSON, BillingDetailsDto1ToJSON, } from './BillingDetailsDto1';
10
11
  /**
11
12
  * @export
12
13
  */
@@ -50,6 +51,7 @@ export function PaymentMethodDtoFromJSONTyped(json, ignoreDiscriminator) {
50
51
  'accountNumber': !exists(json, 'accountNumber') ? undefined : json['accountNumber'],
51
52
  'accountType': !exists(json, 'accountType') ? undefined : json['accountType'],
52
53
  'accountHolderName': !exists(json, 'accountHolderName') ? undefined : json['accountHolderName'],
54
+ 'billingDetails': !exists(json, 'billingDetails') ? undefined : BillingDetailsDto1FromJSON(json['billingDetails']),
53
55
  };
54
56
  return removeNullUndefined(typed);
55
57
  }
@@ -73,5 +75,6 @@ export function PaymentMethodDtoToJSON(value) {
73
75
  'accountNumber': value.accountNumber,
74
76
  'accountType': value.accountType,
75
77
  'accountHolderName': value.accountHolderName,
78
+ 'billingDetails': BillingDetailsDto1ToJSON(value.billingDetails),
76
79
  };
77
80
  }
@@ -55,6 +55,12 @@ export interface TransactionEntity {
55
55
  * @memberof TransactionEntity
56
56
  */
57
57
  netAmount: number;
58
+ /**
59
+ * The sales tax of the transaction.
60
+ * @type {number}
61
+ * @memberof TransactionEntity
62
+ */
63
+ salesTax?: number;
58
64
  /**
59
65
  * The fee of the transaction.
60
66
  * @type {number}
@@ -67,6 +73,48 @@ export interface TransactionEntity {
67
73
  * @memberof TransactionEntity
68
74
  */
69
75
  feeDetails?: Array<TransactionFeeDetailsEntity>;
76
+ /**
77
+ * The authorized amount of the transaction.
78
+ * @type {number}
79
+ * @memberof TransactionEntity
80
+ */
81
+ authorizedAmount?: number;
82
+ /**
83
+ * The captured amount of the transaction.
84
+ * @type {number}
85
+ * @memberof TransactionEntity
86
+ */
87
+ capturedAmount?: number;
88
+ /**
89
+ * The settled amount of the transaction.
90
+ * @type {number}
91
+ * @memberof TransactionEntity
92
+ */
93
+ settledAmount?: number;
94
+ /**
95
+ * The refundable amount of the transaction.
96
+ * @type {number}
97
+ * @memberof TransactionEntity
98
+ */
99
+ refundableAmount?: number;
100
+ /**
101
+ * The voided amount of the transaction.
102
+ * @type {number}
103
+ * @memberof TransactionEntity
104
+ */
105
+ voidedAmount?: number;
106
+ /**
107
+ * The refunded amount of the transaction.
108
+ * @type {number}
109
+ * @memberof TransactionEntity
110
+ */
111
+ refundedAmount?: number;
112
+ /**
113
+ * The country of the transaction.
114
+ * @type {string}
115
+ * @memberof TransactionEntity
116
+ */
117
+ country?: string;
70
118
  /**
71
119
  * The currency of the transaction.
72
120
  * @type {string}
@@ -116,47 +164,17 @@ export interface TransactionEntity {
116
164
  */
117
165
  authCode?: string;
118
166
  /**
119
- * The authorized amount of the transaction.
120
- * @type {number}
121
- * @memberof TransactionEntity
122
- */
123
- authorizedAmount?: number;
124
- /**
125
- * The captured amount of the transaction.
126
- * @type {number}
127
- * @memberof TransactionEntity
128
- */
129
- capturedAmount?: number;
130
- /**
131
- * The settled amount of the transaction.
132
- * @type {number}
133
- * @memberof TransactionEntity
134
- */
135
- settledAmount?: number;
136
- /**
137
- * The refundable amount of the transaction.
138
- * @type {number}
139
- * @memberof TransactionEntity
140
- */
141
- refundableAmount?: number;
142
- /**
143
- * The refunded amount of the transaction.
144
- * @type {number}
167
+ * The purchase order ID of the transaction.
168
+ * @type {string}
145
169
  * @memberof TransactionEntity
146
170
  */
147
- refundedAmount?: number;
171
+ purchaseOrderId?: string;
148
172
  /**
149
173
  * The external transaction ID of the transaction.
150
174
  * @type {string}
151
175
  * @memberof TransactionEntity
152
176
  */
153
177
  externalTransactionId?: string;
154
- /**
155
- * The country of the transaction.
156
- * @type {string}
157
- * @memberof TransactionEntity
158
- */
159
- country?: string;
160
178
  /**
161
179
  * The external buyer ID of the transaction.
162
180
  * @type {string}
@@ -169,6 +187,12 @@ export interface TransactionEntity {
169
187
  * @memberof TransactionEntity
170
188
  */
171
189
  buyerId?: string;
190
+ /**
191
+ * The customer reference ID of the transaction used by the gateway.
192
+ * @type {string}
193
+ * @memberof TransactionEntity
194
+ */
195
+ customerRefId?: string;
172
196
  /**
173
197
  * The created date of the transaction.
174
198
  * @type {Date}
@@ -86,8 +86,16 @@ export function TransactionEntityFromJSONTyped(json, ignoreDiscriminator) {
86
86
  'description': !exists(json, 'description') ? undefined : json['description'],
87
87
  'amount': json['amount'],
88
88
  'netAmount': json['netAmount'],
89
+ 'salesTax': !exists(json, 'salesTax') ? undefined : json['salesTax'],
89
90
  'fee': json['fee'],
90
91
  'feeDetails': !exists(json, 'feeDetails') ? undefined : (json['feeDetails'].map(TransactionFeeDetailsEntityFromJSON)),
92
+ 'authorizedAmount': !exists(json, 'authorizedAmount') ? undefined : json['authorizedAmount'],
93
+ 'capturedAmount': !exists(json, 'capturedAmount') ? undefined : json['capturedAmount'],
94
+ 'settledAmount': !exists(json, 'settledAmount') ? undefined : json['settledAmount'],
95
+ 'refundableAmount': !exists(json, 'refundableAmount') ? undefined : json['refundableAmount'],
96
+ 'voidedAmount': !exists(json, 'voidedAmount') ? undefined : json['voidedAmount'],
97
+ 'refundedAmount': !exists(json, 'refundedAmount') ? undefined : json['refundedAmount'],
98
+ 'country': !exists(json, 'country') ? undefined : json['country'],
91
99
  'currency': !exists(json, 'currency') ? undefined : json['currency'],
92
100
  'secCode': !exists(json, 'secCode') ? undefined : json['secCode'],
93
101
  'paymentMethod': !exists(json, 'paymentMethod') ? undefined : TransactionPaymentInstrumentBaseEntityFromJSON(json['paymentMethod']),
@@ -96,15 +104,11 @@ export function TransactionEntityFromJSONTyped(json, ignoreDiscriminator) {
96
104
  'avsResponseCode': !exists(json, 'avsResponseCode') ? undefined : json['avsResponseCode'],
97
105
  'cvvResponseCode': !exists(json, 'cvvResponseCode') ? undefined : json['cvvResponseCode'],
98
106
  'authCode': !exists(json, 'authCode') ? undefined : json['authCode'],
99
- 'authorizedAmount': !exists(json, 'authorizedAmount') ? undefined : json['authorizedAmount'],
100
- 'capturedAmount': !exists(json, 'capturedAmount') ? undefined : json['capturedAmount'],
101
- 'settledAmount': !exists(json, 'settledAmount') ? undefined : json['settledAmount'],
102
- 'refundableAmount': !exists(json, 'refundableAmount') ? undefined : json['refundableAmount'],
103
- 'refundedAmount': !exists(json, 'refundedAmount') ? undefined : json['refundedAmount'],
107
+ 'purchaseOrderId': !exists(json, 'purchaseOrderId') ? undefined : json['purchaseOrderId'],
104
108
  'externalTransactionId': !exists(json, 'externalTransactionId') ? undefined : json['externalTransactionId'],
105
- 'country': !exists(json, 'country') ? undefined : json['country'],
106
109
  'externalBuyerId': !exists(json, 'externalBuyerId') ? undefined : json['externalBuyerId'],
107
110
  'buyerId': !exists(json, 'buyerId') ? undefined : json['buyerId'],
111
+ 'customerRefId': !exists(json, 'customerRefId') ? undefined : json['customerRefId'],
108
112
  'createdAt': !exists(json, 'createdAt') ? undefined : (new Date(json['createdAt'])),
109
113
  'updatedAt': !exists(json, 'updatedAt') ? undefined : (new Date(json['updatedAt'])),
110
114
  'authorizedAt': !exists(json, 'authorizedAt') ? undefined : (new Date(json['authorizedAt'])),
@@ -136,8 +140,16 @@ export function TransactionEntityToJSON(value) {
136
140
  'description': value.description,
137
141
  'amount': value.amount,
138
142
  'netAmount': value.netAmount,
143
+ 'salesTax': value.salesTax,
139
144
  'fee': value.fee,
140
145
  'feeDetails': value.feeDetails === undefined ? undefined : (value.feeDetails.map(TransactionFeeDetailsEntityToJSON)),
146
+ 'authorizedAmount': value.authorizedAmount,
147
+ 'capturedAmount': value.capturedAmount,
148
+ 'settledAmount': value.settledAmount,
149
+ 'refundableAmount': value.refundableAmount,
150
+ 'voidedAmount': value.voidedAmount,
151
+ 'refundedAmount': value.refundedAmount,
152
+ 'country': value.country,
141
153
  'currency': value.currency,
142
154
  'secCode': value.secCode,
143
155
  'paymentMethod': TransactionPaymentInstrumentBaseEntityToJSON(value.paymentMethod),
@@ -146,15 +158,11 @@ export function TransactionEntityToJSON(value) {
146
158
  'avsResponseCode': value.avsResponseCode,
147
159
  'cvvResponseCode': value.cvvResponseCode,
148
160
  'authCode': value.authCode,
149
- 'authorizedAmount': value.authorizedAmount,
150
- 'capturedAmount': value.capturedAmount,
151
- 'settledAmount': value.settledAmount,
152
- 'refundableAmount': value.refundableAmount,
153
- 'refundedAmount': value.refundedAmount,
161
+ 'purchaseOrderId': value.purchaseOrderId,
154
162
  'externalTransactionId': value.externalTransactionId,
155
- 'country': value.country,
156
163
  'externalBuyerId': value.externalBuyerId,
157
164
  'buyerId': value.buyerId,
165
+ 'customerRefId': value.customerRefId,
158
166
  'createdAt': value.createdAt === undefined ? undefined : (value.createdAt.toISOString()),
159
167
  'updatedAt': value.updatedAt === undefined ? undefined : (value.updatedAt.toISOString()),
160
168
  'authorizedAt': value.authorizedAt === undefined ? undefined : (value.authorizedAt.toISOString()),
@@ -1,12 +1,11 @@
1
1
  export * from './AddressEntity';
2
- export * from './AdminCreateTransactionRefundDto';
3
- export * from './AdminVoidTransactionDto';
4
2
  export * from './AuthorizedPaymentInstrumentsEntity';
5
3
  export * from './AvailablePaymentMethodEntity';
6
4
  export * from './BankDetailsServiceEntity';
7
5
  export * from './BillingAddressDto';
8
6
  export * from './BillingAddressEntity';
9
7
  export * from './BillingDetailsDto';
8
+ export * from './BillingDetailsDto1';
10
9
  export * from './BillingDetailsEntity';
11
10
  export * from './BuyerEntity';
12
11
  export * from './BuyersAddressEntity';
@@ -1,14 +1,13 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  export * from './AddressEntity';
4
- export * from './AdminCreateTransactionRefundDto';
5
- export * from './AdminVoidTransactionDto';
6
4
  export * from './AuthorizedPaymentInstrumentsEntity';
7
5
  export * from './AvailablePaymentMethodEntity';
8
6
  export * from './BankDetailsServiceEntity';
9
7
  export * from './BillingAddressDto';
10
8
  export * from './BillingAddressEntity';
11
9
  export * from './BillingDetailsDto';
10
+ export * from './BillingDetailsDto1';
12
11
  export * from './BillingDetailsEntity';
13
12
  export * from './BuyerEntity';
14
13
  export * from './BuyersAddressEntity';
@@ -64,7 +64,7 @@ export class BaseAPI {
64
64
  }
65
65
  async createFetchParams(context) {
66
66
  Object.keys(context.headers).forEach(key => context.headers[key] === undefined ? delete context.headers[key] : {});
67
- context.headers['user-agent'] = "@channelpayments/node-sdk/v1.195.0";
67
+ context.headers['user-agent'] = "@channelpayments/node-sdk/v1.196.0";
68
68
  const token = this.generateAuthToken();
69
69
  context.headers['Authorization'] = `Bearer ${token}`;
70
70
  let url = this.url + context.path;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@channelpayments/node-sdk",
3
3
  "description": "Channel Payments nodejs sdk",
4
- "version": "1.195.0",
4
+ "version": "1.196.0",
5
5
  "author": "Channel Payments",
6
6
  "license": "ISC",
7
7
  "main": "dist/cjs/index.js",
@@ -1,82 +0,0 @@
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;
@@ -1,84 +0,0 @@
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.AdminCreateTransactionRefundDtoReasonEnum = void 0;
12
- exports.instanceOfAdminCreateTransactionRefundDto = instanceOfAdminCreateTransactionRefundDto;
13
- exports.AdminCreateTransactionRefundDtoFromJSON = AdminCreateTransactionRefundDtoFromJSON;
14
- exports.AdminCreateTransactionRefundDtoFromJSONTyped = AdminCreateTransactionRefundDtoFromJSONTyped;
15
- exports.AdminCreateTransactionRefundDtoToJSON = AdminCreateTransactionRefundDtoToJSON;
16
- const runtime_1 = require("../runtime");
17
- /**
18
- * @export
19
- */
20
- exports.AdminCreateTransactionRefundDtoReasonEnum = {
21
- CustomerDissatisfaction: 'CUSTOMER_DISSATISFACTION',
22
- ProductReturned: 'PRODUCT_RETURNED',
23
- ServiceCancelled: 'SERVICE_CANCELLED',
24
- OrderCancelled: 'ORDER_CANCELLED',
25
- Overpayment: 'OVERPAYMENT',
26
- DuplicateCharge: 'DUPLICATE_CHARGE',
27
- FraudulentCharge: 'FRAUDULENT_CHARGE',
28
- ProductNotReceived: 'PRODUCT_NOT_RECEIVED',
29
- ProductDefective: 'PRODUCT_DEFECTIVE',
30
- IncorrectProductShipped: 'INCORRECT_PRODUCT_SHIPPED',
31
- BillingError: 'BILLING_ERROR',
32
- WarrantyClaim: 'WARRANTY_CLAIM',
33
- PromotionalAdjustment: 'PROMOTIONAL_ADJUSTMENT',
34
- ComplianceIssue: 'COMPLIANCE_ISSUE',
35
- GoodwillGesture: 'GOODWILL_GESTURE',
36
- SubscriptionCancellation: 'SUBSCRIPTION_CANCELLATION',
37
- LoanRepaymentAdjustment: 'LOAN_REPAYMENT_ADJUSTMENT',
38
- RegulatoryRequirement: 'REGULATORY_REQUIREMENT',
39
- None: 'NONE',
40
- Other: 'OTHER'
41
- };
42
- /**
43
- * Check if a given object implements the AdminCreateTransactionRefundDto interface.
44
- */
45
- function instanceOfAdminCreateTransactionRefundDto(value) {
46
- let isInstance = true;
47
- isInstance = isInstance && "refundAmount" in value;
48
- isInstance = isInstance && "transactionId" in value;
49
- isInstance = isInstance && "merchantId" in value;
50
- return isInstance;
51
- }
52
- function AdminCreateTransactionRefundDtoFromJSON(json) {
53
- return AdminCreateTransactionRefundDtoFromJSONTyped(json, false);
54
- }
55
- function AdminCreateTransactionRefundDtoFromJSONTyped(json, ignoreDiscriminator) {
56
- if ((json === undefined) || (json === null)) {
57
- return json;
58
- }
59
- const typed = {
60
- 'refundAmount': json['refundAmount'],
61
- 'transactionId': json['transactionId'],
62
- 'reason': !(0, runtime_1.exists)(json, 'reason') ? undefined : json['reason'],
63
- 'description': !(0, runtime_1.exists)(json, 'description') ? undefined : json['description'],
64
- 'note': !(0, runtime_1.exists)(json, 'note') ? undefined : json['note'],
65
- 'merchantId': json['merchantId'],
66
- };
67
- return (0, runtime_1.removeNullUndefined)(typed);
68
- }
69
- function AdminCreateTransactionRefundDtoToJSON(value) {
70
- if (value === undefined) {
71
- return undefined;
72
- }
73
- if (value === null) {
74
- return null;
75
- }
76
- return {
77
- 'refundAmount': value.refundAmount,
78
- 'transactionId': value.transactionId,
79
- 'reason': value.reason,
80
- 'description': value.description,
81
- 'note': value.note,
82
- 'merchantId': value.merchantId,
83
- };
84
- }
@@ -1,32 +0,0 @@
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;
@@ -1,49 +0,0 @@
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.instanceOfAdminVoidTransactionDto = instanceOfAdminVoidTransactionDto;
12
- exports.AdminVoidTransactionDtoFromJSON = AdminVoidTransactionDtoFromJSON;
13
- exports.AdminVoidTransactionDtoFromJSONTyped = AdminVoidTransactionDtoFromJSONTyped;
14
- exports.AdminVoidTransactionDtoToJSON = AdminVoidTransactionDtoToJSON;
15
- const runtime_1 = require("../runtime");
16
- /**
17
- * Check if a given object implements the AdminVoidTransactionDto interface.
18
- */
19
- function instanceOfAdminVoidTransactionDto(value) {
20
- let isInstance = true;
21
- isInstance = isInstance && "transactionId" in value;
22
- isInstance = isInstance && "merchantId" in value;
23
- return isInstance;
24
- }
25
- function AdminVoidTransactionDtoFromJSON(json) {
26
- return AdminVoidTransactionDtoFromJSONTyped(json, false);
27
- }
28
- function AdminVoidTransactionDtoFromJSONTyped(json, ignoreDiscriminator) {
29
- if ((json === undefined) || (json === null)) {
30
- return json;
31
- }
32
- const typed = {
33
- 'transactionId': json['transactionId'],
34
- 'merchantId': json['merchantId'],
35
- };
36
- return (0, runtime_1.removeNullUndefined)(typed);
37
- }
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
- }