@channelpayments/node-sdk 1.177.0 → 1.178.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.
@@ -5,7 +5,7 @@
5
5
  *
6
6
  */
7
7
  import * as runtime from '../runtime';
8
- import type { BuyersEntity, BuyersSearchEntity, CaptureTransactionDto, ChangeNotificationEntity, ChangeNotificationsSearchEntity, CheckoutSessionEntity, ConnectorServiceTokenEntity, CreateBuyerDto, CreateCheckoutSessionDto, CreatePaymentMethodDto, CreateProvisionedCardTokenDto, CreateTransactionNoteDto, CreateTransactionRefundDto, CreateTransactionRequestDto, MerchantEntity, PaymentMethodEntity, PaymentMethodsSearchEntity, ReturnNotificationEntity, ReturnNotificationsSearchEntity, TagDto, TransactionEntity, TransactionNoteEntity, TransactionRefundEntity, TransactionRefundsSearchEntity, TransactionsSearchEntity, UpdateBuyerDto, UpdateTransactionNoteDto } from '../models';
8
+ import type { BuyersEntity, BuyersSearchEntity, CaptureTransactionDto, ChangeNotificationEntity, ChangeNotificationsSearchEntity, CheckoutSessionEntity, ConnectorServiceTokenEntity, CreateBuyerDto, CreateCheckoutSessionDto, CreatePaymentMethodDto, CreateProvisionedCardTokenDto, CreateTransactionRefundDto, CreateTransactionRequestDto, MerchantEntity, PaymentMethodEntity, PaymentMethodsSearchEntity, ReturnNotificationEntity, ReturnNotificationsSearchEntity, TagDto, TransactionEntity, TransactionRefundEntity, TransactionRefundsSearchEntity, TransactionsSearchEntity, UpdateBuyerDto } from '../models';
9
9
  export interface SearchBuyersRequest {
10
10
  merchantId: string;
11
11
  buyerId?: string;
@@ -127,11 +127,6 @@ export declare class ChannelPaymentsApi extends runtime.BaseAPI {
127
127
  * Create transaction
128
128
  */
129
129
  createTransaction(createTransactionRequestDto: CreateTransactionRequestDto, idempotencyKey?: string): Promise<TransactionEntity>;
130
- /**
131
- * Attempts to create a transaction note
132
- * Create transaction note
133
- */
134
- createTransactionNote(createTransactionNoteDto: CreateTransactionNoteDto): Promise<TransactionNoteEntity>;
135
130
  /**
136
131
  * Removes a buyer ID.
137
132
  * Remove buyer.
@@ -147,11 +142,6 @@ export declare class ChannelPaymentsApi extends runtime.BaseAPI {
147
142
  * Delete payment method.
148
143
  */
149
144
  deletePaymentMethod(paymentMethodId: string): Promise<PaymentMethodEntity>;
150
- /**
151
- * Attempts to delete a transaction note.
152
- * Delete transaction note.
153
- */
154
- deleteTransactionNote(noteId: string): Promise<TransactionNoteEntity>;
155
145
  /**
156
146
  * Find a buyer by buyer ID.
157
147
  * Find buyer.
@@ -216,7 +206,7 @@ export declare class ChannelPaymentsApi extends runtime.BaseAPI {
216
206
  * Search all change notifications by date range.
217
207
  * Search for change notifications.
218
208
  */
219
- searchChangeNotifications(requestParameters: SearchChangeNotificationsRequest): Promise<Array<ChangeNotificationsSearchEntity>>;
209
+ searchChangeNotifications(requestParameters: SearchChangeNotificationsRequest): Promise<ChangeNotificationsSearchEntity>;
220
210
  /**
221
211
  * Search a payment methods by query params.
222
212
  * Search payment methods.
@@ -231,7 +221,7 @@ export declare class ChannelPaymentsApi extends runtime.BaseAPI {
231
221
  * Search all return notifications by date range.
232
222
  * Search for return notifications.
233
223
  */
234
- searchReturnNotifications(requestParameters: SearchReturnNotificationsRequest): Promise<Array<ReturnNotificationsSearchEntity>>;
224
+ searchReturnNotifications(requestParameters: SearchReturnNotificationsRequest): Promise<ReturnNotificationsSearchEntity>;
235
225
  /**
236
226
  * Search transactions by query params
237
227
  * Search transactions
@@ -247,11 +237,6 @@ export declare class ChannelPaymentsApi extends runtime.BaseAPI {
247
237
  * Update buyer.
248
238
  */
249
239
  updateBuyer(updateBuyerDto: UpdateBuyerDto): Promise<BuyersEntity>;
250
- /**
251
- * Updates an existing transaction note.
252
- * Update transaction note.
253
- */
254
- updateTransactionNote(noteId: string, updateTransactionNoteDto: UpdateTransactionNoteDto): Promise<TransactionNoteEntity>;
255
240
  /**
256
241
  * Attempts to void an authorized transaction
257
242
  * Void a transaction
@@ -401,6 +386,7 @@ export declare const SearchTransactionsStatusEnum: {
401
386
  readonly BuyerApprovalPending: "buyerApprovalPending";
402
387
  readonly Authorized: "authorized";
403
388
  readonly AuthorizationFailed: "authorizationFailed";
389
+ readonly CaptureFailed: "captureFailed";
404
390
  readonly Declined: "declined";
405
391
  readonly CapturePending: "capturePending";
406
392
  readonly Captured: "captured";
@@ -512,81 +512,6 @@ class ChannelPaymentsApi extends runtime.BaseAPI {
512
512
  return yield response.value();
513
513
  });
514
514
  }
515
- /**
516
- * Attempts to create a transaction note
517
- * Create transaction note
518
- */
519
- createTransactionNote(createTransactionNoteDto) {
520
- return __awaiter(this, void 0, void 0, function* () {
521
- if (createTransactionNoteDto === null || createTransactionNoteDto === undefined) {
522
- throw new runtime.RequiredError('createTransactionNoteDto', 'Required parameter \'createTransactionNoteDto\' was null or undefined when calling createTransactionNote.');
523
- }
524
- if (createTransactionNoteDto.documentId === null || createTransactionNoteDto.documentId === undefined) {
525
- throw new runtime.RequiredError('createTransactionNoteDto.documentId', 'Required parameter \'createTransactionNoteDto.documentId\' was null or undefined when calling createTransactionNote.');
526
- }
527
- if (createTransactionNoteDto.content === null || createTransactionNoteDto.content === undefined) {
528
- throw new runtime.RequiredError('createTransactionNoteDto.content', 'Required parameter \'createTransactionNoteDto.content\' was null or undefined when calling createTransactionNote.');
529
- }
530
- const queryParameters = {};
531
- const headerParameters = {};
532
- headerParameters['Content-Type'] = 'application/json';
533
- const rawResponse = yield this.request({
534
- path: `/transaction-notes`,
535
- method: 'POST',
536
- headers: headerParameters,
537
- query: queryParameters,
538
- body: (0, models_1.CreateTransactionNoteDtoToJSON)(createTransactionNoteDto),
539
- });
540
- let response;
541
- if (rawResponse.status === 201) {
542
- response = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.TransactionNoteEntityFromJSON)(jsonValue));
543
- }
544
- if (rawResponse.status === 400) {
545
- const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
546
- const error = yield errorResponse.value();
547
- throw error;
548
- }
549
- if (rawResponse.status === 401) {
550
- const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
551
- const error = yield errorResponse.value();
552
- throw error;
553
- }
554
- if (rawResponse.status === 403) {
555
- const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
556
- const error = yield errorResponse.value();
557
- throw error;
558
- }
559
- if (rawResponse.status === 404) {
560
- const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
561
- const error = yield errorResponse.value();
562
- throw error;
563
- }
564
- if (rawResponse.status === 500) {
565
- const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
566
- const error = yield errorResponse.value();
567
- throw error;
568
- }
569
- if (rawResponse.status === 502) {
570
- const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
571
- const error = yield errorResponse.value();
572
- throw error;
573
- }
574
- if (rawResponse.status === 503) {
575
- const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
576
- const error = yield errorResponse.value();
577
- throw error;
578
- }
579
- if (rawResponse.status === 504) {
580
- const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
581
- const error = yield errorResponse.value();
582
- throw error;
583
- }
584
- if (!response) {
585
- response = new runtime.TextApiResponse(rawResponse);
586
- }
587
- return yield response.value();
588
- });
589
- }
590
515
  /**
591
516
  * Removes a buyer ID.
592
517
  * Remove buyer.
@@ -788,73 +713,6 @@ class ChannelPaymentsApi extends runtime.BaseAPI {
788
713
  return yield response.value();
789
714
  });
790
715
  }
791
- /**
792
- * Attempts to delete a transaction note.
793
- * Delete transaction note.
794
- */
795
- deleteTransactionNote(noteId) {
796
- return __awaiter(this, void 0, void 0, function* () {
797
- if (noteId === null || noteId === undefined) {
798
- throw new runtime.RequiredError('noteId', 'Required parameter \'noteId\' was null or undefined when calling deleteTransactionNote.');
799
- }
800
- const queryParameters = {};
801
- const headerParameters = {};
802
- const rawResponse = yield this.request({
803
- path: `/transaction-notes/{noteId}`.replace(`{${"noteId"}}`, encodeURIComponent(noteId)),
804
- method: 'DELETE',
805
- headers: headerParameters,
806
- query: queryParameters,
807
- });
808
- let response;
809
- if (rawResponse.status === 200) {
810
- response = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.TransactionNoteEntityFromJSON)(jsonValue));
811
- }
812
- if (rawResponse.status === 400) {
813
- const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
814
- const error = yield errorResponse.value();
815
- throw error;
816
- }
817
- if (rawResponse.status === 401) {
818
- const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
819
- const error = yield errorResponse.value();
820
- throw error;
821
- }
822
- if (rawResponse.status === 403) {
823
- const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
824
- const error = yield errorResponse.value();
825
- throw error;
826
- }
827
- if (rawResponse.status === 404) {
828
- const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
829
- const error = yield errorResponse.value();
830
- throw error;
831
- }
832
- if (rawResponse.status === 500) {
833
- const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
834
- const error = yield errorResponse.value();
835
- throw error;
836
- }
837
- if (rawResponse.status === 502) {
838
- const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
839
- const error = yield errorResponse.value();
840
- throw error;
841
- }
842
- if (rawResponse.status === 503) {
843
- const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
844
- const error = yield errorResponse.value();
845
- throw error;
846
- }
847
- if (rawResponse.status === 504) {
848
- const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
849
- const error = yield errorResponse.value();
850
- throw error;
851
- }
852
- if (!response) {
853
- response = new runtime.TextApiResponse(rawResponse);
854
- }
855
- return yield response.value();
856
- });
857
- }
858
716
  /**
859
717
  * Find a buyer by buyer ID.
860
718
  * Find buyer.
@@ -1742,7 +1600,7 @@ class ChannelPaymentsApi extends runtime.BaseAPI {
1742
1600
  });
1743
1601
  let response;
1744
1602
  if (rawResponse.status === 200) {
1745
- response = new runtime.JSONApiResponse(rawResponse, (jsonValue) => jsonValue.map(models_1.ChangeNotificationsSearchEntityFromJSON));
1603
+ response = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ChangeNotificationsSearchEntityFromJSON)(jsonValue));
1746
1604
  }
1747
1605
  if (rawResponse.status === 400) {
1748
1606
  const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
@@ -2021,7 +1879,7 @@ class ChannelPaymentsApi extends runtime.BaseAPI {
2021
1879
  });
2022
1880
  let response;
2023
1881
  if (rawResponse.status === 200) {
2024
- response = new runtime.JSONApiResponse(rawResponse, (jsonValue) => jsonValue.map(models_1.ReturnNotificationsSearchEntityFromJSON));
1882
+ response = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ReturnNotificationsSearchEntityFromJSON)(jsonValue));
2025
1883
  }
2026
1884
  if (rawResponse.status === 400) {
2027
1885
  const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
@@ -2370,84 +2228,6 @@ class ChannelPaymentsApi extends runtime.BaseAPI {
2370
2228
  return yield response.value();
2371
2229
  });
2372
2230
  }
2373
- /**
2374
- * Updates an existing transaction note.
2375
- * Update transaction note.
2376
- */
2377
- updateTransactionNote(noteId, updateTransactionNoteDto) {
2378
- return __awaiter(this, void 0, void 0, function* () {
2379
- if (noteId === null || noteId === undefined) {
2380
- throw new runtime.RequiredError('noteId', 'Required parameter \'noteId\' was null or undefined when calling updateTransactionNote.');
2381
- }
2382
- if (updateTransactionNoteDto === null || updateTransactionNoteDto === undefined) {
2383
- throw new runtime.RequiredError('updateTransactionNoteDto', 'Required parameter \'updateTransactionNoteDto\' was null or undefined when calling updateTransactionNote.');
2384
- }
2385
- if (updateTransactionNoteDto.content === null || updateTransactionNoteDto.content === undefined) {
2386
- throw new runtime.RequiredError('updateTransactionNoteDto.content', 'Required parameter \'updateTransactionNoteDto.content\' was null or undefined when calling updateTransactionNote.');
2387
- }
2388
- if (updateTransactionNoteDto.noteId === null || updateTransactionNoteDto.noteId === undefined) {
2389
- throw new runtime.RequiredError('updateTransactionNoteDto.noteId', 'Required parameter \'updateTransactionNoteDto.noteId\' was null or undefined when calling updateTransactionNote.');
2390
- }
2391
- const queryParameters = {};
2392
- const headerParameters = {};
2393
- headerParameters['Content-Type'] = 'application/json';
2394
- const rawResponse = yield this.request({
2395
- path: `/transaction-notes/{noteId}`.replace(`{${"noteId"}}`, encodeURIComponent(noteId)),
2396
- method: 'PATCH',
2397
- headers: headerParameters,
2398
- query: queryParameters,
2399
- body: (0, models_1.UpdateTransactionNoteDtoToJSON)(updateTransactionNoteDto),
2400
- });
2401
- let response;
2402
- if (rawResponse.status === 200) {
2403
- response = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.TransactionNoteEntityFromJSON)(jsonValue));
2404
- }
2405
- if (rawResponse.status === 400) {
2406
- const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
2407
- const error = yield errorResponse.value();
2408
- throw error;
2409
- }
2410
- if (rawResponse.status === 401) {
2411
- const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
2412
- const error = yield errorResponse.value();
2413
- throw error;
2414
- }
2415
- if (rawResponse.status === 403) {
2416
- const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
2417
- const error = yield errorResponse.value();
2418
- throw error;
2419
- }
2420
- if (rawResponse.status === 404) {
2421
- const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
2422
- const error = yield errorResponse.value();
2423
- throw error;
2424
- }
2425
- if (rawResponse.status === 500) {
2426
- const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
2427
- const error = yield errorResponse.value();
2428
- throw error;
2429
- }
2430
- if (rawResponse.status === 502) {
2431
- const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
2432
- const error = yield errorResponse.value();
2433
- throw error;
2434
- }
2435
- if (rawResponse.status === 503) {
2436
- const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
2437
- const error = yield errorResponse.value();
2438
- throw error;
2439
- }
2440
- if (rawResponse.status === 504) {
2441
- const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
2442
- const error = yield errorResponse.value();
2443
- throw error;
2444
- }
2445
- if (!response) {
2446
- response = new runtime.TextApiResponse(rawResponse);
2447
- }
2448
- return yield response.value();
2449
- });
2450
- }
2451
2231
  /**
2452
2232
  * Attempts to void an authorized transaction
2453
2233
  * Void a transaction
@@ -2648,6 +2428,7 @@ exports.SearchTransactionsStatusEnum = {
2648
2428
  BuyerApprovalPending: 'buyerApprovalPending',
2649
2429
  Authorized: 'authorized',
2650
2430
  AuthorizationFailed: 'authorizationFailed',
2431
+ CaptureFailed: 'captureFailed',
2651
2432
  Declined: 'declined',
2652
2433
  CapturePending: 'capturePending',
2653
2434
  Captured: 'captured',
@@ -109,6 +109,12 @@ export interface TransactionEntity {
109
109
  * @memberof TransactionEntity
110
110
  */
111
111
  cvvResponseCode?: string;
112
+ /**
113
+ * The authorization code of the transaction.
114
+ * @type {string}
115
+ * @memberof TransactionEntity
116
+ */
117
+ authCode?: string;
112
118
  /**
113
119
  * The authorized amount of the transaction.
114
120
  * @type {number}
@@ -238,6 +244,7 @@ export declare const TransactionEntityStatusEnum: {
238
244
  readonly BuyerApprovalPending: "buyerApprovalPending";
239
245
  readonly Authorized: "authorized";
240
246
  readonly AuthorizationFailed: "authorizationFailed";
247
+ readonly CaptureFailed: "captureFailed";
241
248
  readonly Declined: "declined";
242
249
  readonly CapturePending: "capturePending";
243
250
  readonly Captured: "captured";
@@ -25,6 +25,7 @@ exports.TransactionEntityStatusEnum = {
25
25
  BuyerApprovalPending: 'buyerApprovalPending',
26
26
  Authorized: 'authorized',
27
27
  AuthorizationFailed: 'authorizationFailed',
28
+ CaptureFailed: 'captureFailed',
28
29
  Declined: 'declined',
29
30
  CapturePending: 'capturePending',
30
31
  Captured: 'captured',
@@ -101,6 +102,7 @@ function TransactionEntityFromJSONTyped(json, ignoreDiscriminator) {
101
102
  'rawResponseDescription': !(0, runtime_1.exists)(json, 'rawResponseDescription') ? undefined : json['rawResponseDescription'],
102
103
  'avsResponseCode': !(0, runtime_1.exists)(json, 'avsResponseCode') ? undefined : json['avsResponseCode'],
103
104
  'cvvResponseCode': !(0, runtime_1.exists)(json, 'cvvResponseCode') ? undefined : json['cvvResponseCode'],
105
+ 'authCode': !(0, runtime_1.exists)(json, 'authCode') ? undefined : json['authCode'],
104
106
  'authorizedAmount': !(0, runtime_1.exists)(json, 'authorizedAmount') ? undefined : json['authorizedAmount'],
105
107
  'capturedAmount': !(0, runtime_1.exists)(json, 'capturedAmount') ? undefined : json['capturedAmount'],
106
108
  'settledAmount': !(0, runtime_1.exists)(json, 'settledAmount') ? undefined : json['settledAmount'],
@@ -148,6 +150,7 @@ function TransactionEntityToJSON(value) {
148
150
  'rawResponseDescription': value.rawResponseDescription,
149
151
  'avsResponseCode': value.avsResponseCode,
150
152
  'cvvResponseCode': value.cvvResponseCode,
153
+ 'authCode': value.authCode,
151
154
  'authorizedAmount': value.authorizedAmount,
152
155
  'capturedAmount': value.capturedAmount,
153
156
  'settledAmount': value.settledAmount,
@@ -40,7 +40,6 @@ export * from './CreatePaymentMethodDto';
40
40
  export * from './CreateProvisionedCardTokenByMerchantDto';
41
41
  export * from './CreateProvisionedCardTokenDto';
42
42
  export * from './CreateStoredCardPaymentMethod';
43
- export * from './CreateTransactionNoteDto';
44
43
  export * from './CreateTransactionRefundDto';
45
44
  export * from './CreateTransactionRequestDto';
46
45
  export * from './CreateUserDto';
@@ -83,7 +82,6 @@ export * from './UpdateMerchantCredentialsDto';
83
82
  export * from './UpdateMerchantDto';
84
83
  export * from './UpdatePaymentMethodStatusDto';
85
84
  export * from './UpdateSelfDto';
86
- export * from './UpdateTransactionNoteDto';
87
85
  export * from './UpdateUserDto';
88
86
  export * from './UpdateWebhookDto';
89
87
  export * from './UserEntity';
@@ -58,7 +58,6 @@ __exportStar(require("./CreatePaymentMethodDto"), exports);
58
58
  __exportStar(require("./CreateProvisionedCardTokenByMerchantDto"), exports);
59
59
  __exportStar(require("./CreateProvisionedCardTokenDto"), exports);
60
60
  __exportStar(require("./CreateStoredCardPaymentMethod"), exports);
61
- __exportStar(require("./CreateTransactionNoteDto"), exports);
62
61
  __exportStar(require("./CreateTransactionRefundDto"), exports);
63
62
  __exportStar(require("./CreateTransactionRequestDto"), exports);
64
63
  __exportStar(require("./CreateUserDto"), exports);
@@ -101,7 +100,6 @@ __exportStar(require("./UpdateMerchantCredentialsDto"), exports);
101
100
  __exportStar(require("./UpdateMerchantDto"), exports);
102
101
  __exportStar(require("./UpdatePaymentMethodStatusDto"), exports);
103
102
  __exportStar(require("./UpdateSelfDto"), exports);
104
- __exportStar(require("./UpdateTransactionNoteDto"), exports);
105
103
  __exportStar(require("./UpdateUserDto"), exports);
106
104
  __exportStar(require("./UpdateWebhookDto"), exports);
107
105
  __exportStar(require("./UserEntity"), exports);
@@ -114,7 +114,7 @@ class BaseAPI {
114
114
  createFetchParams(context) {
115
115
  return __awaiter(this, void 0, void 0, function* () {
116
116
  Object.keys(context.headers).forEach(key => context.headers[key] === undefined ? delete context.headers[key] : {});
117
- context.headers['user-agent'] = "@channelpayments/node-sdk/v1.177.0";
117
+ context.headers['user-agent'] = "@channelpayments/node-sdk/v1.178.0";
118
118
  const token = this.generateAuthToken();
119
119
  context.headers['Authorization'] = `Bearer ${token}`;
120
120
  let url = this.url + context.path;
@@ -5,7 +5,7 @@
5
5
  *
6
6
  */
7
7
  import * as runtime from '../runtime';
8
- import type { BuyersEntity, BuyersSearchEntity, CaptureTransactionDto, ChangeNotificationEntity, ChangeNotificationsSearchEntity, CheckoutSessionEntity, ConnectorServiceTokenEntity, CreateBuyerDto, CreateCheckoutSessionDto, CreatePaymentMethodDto, CreateProvisionedCardTokenDto, CreateTransactionNoteDto, CreateTransactionRefundDto, CreateTransactionRequestDto, MerchantEntity, PaymentMethodEntity, PaymentMethodsSearchEntity, ReturnNotificationEntity, ReturnNotificationsSearchEntity, TagDto, TransactionEntity, TransactionNoteEntity, TransactionRefundEntity, TransactionRefundsSearchEntity, TransactionsSearchEntity, UpdateBuyerDto, UpdateTransactionNoteDto } from '../models';
8
+ import type { BuyersEntity, BuyersSearchEntity, CaptureTransactionDto, ChangeNotificationEntity, ChangeNotificationsSearchEntity, CheckoutSessionEntity, ConnectorServiceTokenEntity, CreateBuyerDto, CreateCheckoutSessionDto, CreatePaymentMethodDto, CreateProvisionedCardTokenDto, CreateTransactionRefundDto, CreateTransactionRequestDto, MerchantEntity, PaymentMethodEntity, PaymentMethodsSearchEntity, ReturnNotificationEntity, ReturnNotificationsSearchEntity, TagDto, TransactionEntity, TransactionRefundEntity, TransactionRefundsSearchEntity, TransactionsSearchEntity, UpdateBuyerDto } from '../models';
9
9
  export interface SearchBuyersRequest {
10
10
  merchantId: string;
11
11
  buyerId?: string;
@@ -127,11 +127,6 @@ export declare class ChannelPaymentsApi extends runtime.BaseAPI {
127
127
  * Create transaction
128
128
  */
129
129
  createTransaction(createTransactionRequestDto: CreateTransactionRequestDto, idempotencyKey?: string): Promise<TransactionEntity>;
130
- /**
131
- * Attempts to create a transaction note
132
- * Create transaction note
133
- */
134
- createTransactionNote(createTransactionNoteDto: CreateTransactionNoteDto): Promise<TransactionNoteEntity>;
135
130
  /**
136
131
  * Removes a buyer ID.
137
132
  * Remove buyer.
@@ -147,11 +142,6 @@ export declare class ChannelPaymentsApi extends runtime.BaseAPI {
147
142
  * Delete payment method.
148
143
  */
149
144
  deletePaymentMethod(paymentMethodId: string): Promise<PaymentMethodEntity>;
150
- /**
151
- * Attempts to delete a transaction note.
152
- * Delete transaction note.
153
- */
154
- deleteTransactionNote(noteId: string): Promise<TransactionNoteEntity>;
155
145
  /**
156
146
  * Find a buyer by buyer ID.
157
147
  * Find buyer.
@@ -216,7 +206,7 @@ export declare class ChannelPaymentsApi extends runtime.BaseAPI {
216
206
  * Search all change notifications by date range.
217
207
  * Search for change notifications.
218
208
  */
219
- searchChangeNotifications(requestParameters: SearchChangeNotificationsRequest): Promise<Array<ChangeNotificationsSearchEntity>>;
209
+ searchChangeNotifications(requestParameters: SearchChangeNotificationsRequest): Promise<ChangeNotificationsSearchEntity>;
220
210
  /**
221
211
  * Search a payment methods by query params.
222
212
  * Search payment methods.
@@ -231,7 +221,7 @@ export declare class ChannelPaymentsApi extends runtime.BaseAPI {
231
221
  * Search all return notifications by date range.
232
222
  * Search for return notifications.
233
223
  */
234
- searchReturnNotifications(requestParameters: SearchReturnNotificationsRequest): Promise<Array<ReturnNotificationsSearchEntity>>;
224
+ searchReturnNotifications(requestParameters: SearchReturnNotificationsRequest): Promise<ReturnNotificationsSearchEntity>;
235
225
  /**
236
226
  * Search transactions by query params
237
227
  * Search transactions
@@ -247,11 +237,6 @@ export declare class ChannelPaymentsApi extends runtime.BaseAPI {
247
237
  * Update buyer.
248
238
  */
249
239
  updateBuyer(updateBuyerDto: UpdateBuyerDto): Promise<BuyersEntity>;
250
- /**
251
- * Updates an existing transaction note.
252
- * Update transaction note.
253
- */
254
- updateTransactionNote(noteId: string, updateTransactionNoteDto: UpdateTransactionNoteDto): Promise<TransactionNoteEntity>;
255
240
  /**
256
241
  * Attempts to void an authorized transaction
257
242
  * Void a transaction
@@ -401,6 +386,7 @@ export declare const SearchTransactionsStatusEnum: {
401
386
  readonly BuyerApprovalPending: "buyerApprovalPending";
402
387
  readonly Authorized: "authorized";
403
388
  readonly AuthorizationFailed: "authorizationFailed";
389
+ readonly CaptureFailed: "captureFailed";
404
390
  readonly Declined: "declined";
405
391
  readonly CapturePending: "capturePending";
406
392
  readonly Captured: "captured";
@@ -7,7 +7,7 @@
7
7
  *
8
8
  */
9
9
  import * as runtime from '../runtime';
10
- import { BuyersEntityFromJSON, BuyersSearchEntityFromJSON, CaptureTransactionDtoToJSON, ChangeNotificationEntityFromJSON, ChangeNotificationsSearchEntityFromJSON, CheckoutSessionEntityFromJSON, ConnectorServiceTokenEntityFromJSON, CreateBuyerDtoToJSON, CreateCheckoutSessionDtoToJSON, CreatePaymentMethodDtoToJSON, CreateProvisionedCardTokenDtoToJSON, CreateTransactionNoteDtoToJSON, CreateTransactionRefundDtoToJSON, CreateTransactionRequestDtoToJSON, ErrorEntityFromJSON, MerchantEntityFromJSON, PaymentMethodEntityFromJSON, PaymentMethodsSearchEntityFromJSON, ReturnNotificationEntityFromJSON, ReturnNotificationsSearchEntityFromJSON, TransactionEntityFromJSON, TransactionNoteEntityFromJSON, TransactionRefundEntityFromJSON, TransactionRefundsSearchEntityFromJSON, TransactionsSearchEntityFromJSON, UpdateBuyerDtoToJSON, UpdateTransactionNoteDtoToJSON, } from '../models';
10
+ import { BuyersEntityFromJSON, BuyersSearchEntityFromJSON, CaptureTransactionDtoToJSON, ChangeNotificationEntityFromJSON, ChangeNotificationsSearchEntityFromJSON, CheckoutSessionEntityFromJSON, ConnectorServiceTokenEntityFromJSON, CreateBuyerDtoToJSON, CreateCheckoutSessionDtoToJSON, CreatePaymentMethodDtoToJSON, CreateProvisionedCardTokenDtoToJSON, CreateTransactionRefundDtoToJSON, CreateTransactionRequestDtoToJSON, ErrorEntityFromJSON, MerchantEntityFromJSON, PaymentMethodEntityFromJSON, PaymentMethodsSearchEntityFromJSON, ReturnNotificationEntityFromJSON, ReturnNotificationsSearchEntityFromJSON, TransactionEntityFromJSON, TransactionRefundEntityFromJSON, TransactionRefundsSearchEntityFromJSON, TransactionsSearchEntityFromJSON, UpdateBuyerDtoToJSON, } from '../models';
11
11
  /**
12
12
  *
13
13
  */
@@ -455,79 +455,6 @@ export class ChannelPaymentsApi extends runtime.BaseAPI {
455
455
  }
456
456
  return await response.value();
457
457
  }
458
- /**
459
- * Attempts to create a transaction note
460
- * Create transaction note
461
- */
462
- async createTransactionNote(createTransactionNoteDto) {
463
- if (createTransactionNoteDto === null || createTransactionNoteDto === undefined) {
464
- throw new runtime.RequiredError('createTransactionNoteDto', 'Required parameter \'createTransactionNoteDto\' was null or undefined when calling createTransactionNote.');
465
- }
466
- if (createTransactionNoteDto.documentId === null || createTransactionNoteDto.documentId === undefined) {
467
- throw new runtime.RequiredError('createTransactionNoteDto.documentId', 'Required parameter \'createTransactionNoteDto.documentId\' was null or undefined when calling createTransactionNote.');
468
- }
469
- if (createTransactionNoteDto.content === null || createTransactionNoteDto.content === undefined) {
470
- throw new runtime.RequiredError('createTransactionNoteDto.content', 'Required parameter \'createTransactionNoteDto.content\' was null or undefined when calling createTransactionNote.');
471
- }
472
- const queryParameters = {};
473
- const headerParameters = {};
474
- headerParameters['Content-Type'] = 'application/json';
475
- const rawResponse = await this.request({
476
- path: `/transaction-notes`,
477
- method: 'POST',
478
- headers: headerParameters,
479
- query: queryParameters,
480
- body: CreateTransactionNoteDtoToJSON(createTransactionNoteDto),
481
- });
482
- let response;
483
- if (rawResponse.status === 201) {
484
- response = new runtime.JSONApiResponse(rawResponse, (jsonValue) => TransactionNoteEntityFromJSON(jsonValue));
485
- }
486
- if (rawResponse.status === 400) {
487
- const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
488
- const error = await errorResponse.value();
489
- throw error;
490
- }
491
- if (rawResponse.status === 401) {
492
- const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
493
- const error = await errorResponse.value();
494
- throw error;
495
- }
496
- if (rawResponse.status === 403) {
497
- const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
498
- const error = await errorResponse.value();
499
- throw error;
500
- }
501
- if (rawResponse.status === 404) {
502
- const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
503
- const error = await errorResponse.value();
504
- throw error;
505
- }
506
- if (rawResponse.status === 500) {
507
- const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
508
- const error = await errorResponse.value();
509
- throw error;
510
- }
511
- if (rawResponse.status === 502) {
512
- const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
513
- const error = await errorResponse.value();
514
- throw error;
515
- }
516
- if (rawResponse.status === 503) {
517
- const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
518
- const error = await errorResponse.value();
519
- throw error;
520
- }
521
- if (rawResponse.status === 504) {
522
- const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
523
- const error = await errorResponse.value();
524
- throw error;
525
- }
526
- if (!response) {
527
- response = new runtime.TextApiResponse(rawResponse);
528
- }
529
- return await response.value();
530
- }
531
458
  /**
532
459
  * Removes a buyer ID.
533
460
  * Remove buyer.
@@ -723,71 +650,6 @@ export class ChannelPaymentsApi extends runtime.BaseAPI {
723
650
  }
724
651
  return await response.value();
725
652
  }
726
- /**
727
- * Attempts to delete a transaction note.
728
- * Delete transaction note.
729
- */
730
- async deleteTransactionNote(noteId) {
731
- if (noteId === null || noteId === undefined) {
732
- throw new runtime.RequiredError('noteId', 'Required parameter \'noteId\' was null or undefined when calling deleteTransactionNote.');
733
- }
734
- const queryParameters = {};
735
- const headerParameters = {};
736
- const rawResponse = await this.request({
737
- path: `/transaction-notes/{noteId}`.replace(`{${"noteId"}}`, encodeURIComponent(noteId)),
738
- method: 'DELETE',
739
- headers: headerParameters,
740
- query: queryParameters,
741
- });
742
- let response;
743
- if (rawResponse.status === 200) {
744
- response = new runtime.JSONApiResponse(rawResponse, (jsonValue) => TransactionNoteEntityFromJSON(jsonValue));
745
- }
746
- if (rawResponse.status === 400) {
747
- const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
748
- const error = await errorResponse.value();
749
- throw error;
750
- }
751
- if (rawResponse.status === 401) {
752
- const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
753
- const error = await errorResponse.value();
754
- throw error;
755
- }
756
- if (rawResponse.status === 403) {
757
- const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
758
- const error = await errorResponse.value();
759
- throw error;
760
- }
761
- if (rawResponse.status === 404) {
762
- const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
763
- const error = await errorResponse.value();
764
- throw error;
765
- }
766
- if (rawResponse.status === 500) {
767
- const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
768
- const error = await errorResponse.value();
769
- throw error;
770
- }
771
- if (rawResponse.status === 502) {
772
- const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
773
- const error = await errorResponse.value();
774
- throw error;
775
- }
776
- if (rawResponse.status === 503) {
777
- const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
778
- const error = await errorResponse.value();
779
- throw error;
780
- }
781
- if (rawResponse.status === 504) {
782
- const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
783
- const error = await errorResponse.value();
784
- throw error;
785
- }
786
- if (!response) {
787
- response = new runtime.TextApiResponse(rawResponse);
788
- }
789
- return await response.value();
790
- }
791
653
  /**
792
654
  * Find a buyer by buyer ID.
793
655
  * Find buyer.
@@ -1650,7 +1512,7 @@ export class ChannelPaymentsApi extends runtime.BaseAPI {
1650
1512
  });
1651
1513
  let response;
1652
1514
  if (rawResponse.status === 200) {
1653
- response = new runtime.JSONApiResponse(rawResponse, (jsonValue) => jsonValue.map(ChangeNotificationsSearchEntityFromJSON));
1515
+ response = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ChangeNotificationsSearchEntityFromJSON(jsonValue));
1654
1516
  }
1655
1517
  if (rawResponse.status === 400) {
1656
1518
  const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
@@ -1923,7 +1785,7 @@ export class ChannelPaymentsApi extends runtime.BaseAPI {
1923
1785
  });
1924
1786
  let response;
1925
1787
  if (rawResponse.status === 200) {
1926
- response = new runtime.JSONApiResponse(rawResponse, (jsonValue) => jsonValue.map(ReturnNotificationsSearchEntityFromJSON));
1788
+ response = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ReturnNotificationsSearchEntityFromJSON(jsonValue));
1927
1789
  }
1928
1790
  if (rawResponse.status === 400) {
1929
1791
  const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
@@ -2265,82 +2127,6 @@ export class ChannelPaymentsApi extends runtime.BaseAPI {
2265
2127
  }
2266
2128
  return await response.value();
2267
2129
  }
2268
- /**
2269
- * Updates an existing transaction note.
2270
- * Update transaction note.
2271
- */
2272
- async updateTransactionNote(noteId, updateTransactionNoteDto) {
2273
- if (noteId === null || noteId === undefined) {
2274
- throw new runtime.RequiredError('noteId', 'Required parameter \'noteId\' was null or undefined when calling updateTransactionNote.');
2275
- }
2276
- if (updateTransactionNoteDto === null || updateTransactionNoteDto === undefined) {
2277
- throw new runtime.RequiredError('updateTransactionNoteDto', 'Required parameter \'updateTransactionNoteDto\' was null or undefined when calling updateTransactionNote.');
2278
- }
2279
- if (updateTransactionNoteDto.content === null || updateTransactionNoteDto.content === undefined) {
2280
- throw new runtime.RequiredError('updateTransactionNoteDto.content', 'Required parameter \'updateTransactionNoteDto.content\' was null or undefined when calling updateTransactionNote.');
2281
- }
2282
- if (updateTransactionNoteDto.noteId === null || updateTransactionNoteDto.noteId === undefined) {
2283
- throw new runtime.RequiredError('updateTransactionNoteDto.noteId', 'Required parameter \'updateTransactionNoteDto.noteId\' was null or undefined when calling updateTransactionNote.');
2284
- }
2285
- const queryParameters = {};
2286
- const headerParameters = {};
2287
- headerParameters['Content-Type'] = 'application/json';
2288
- const rawResponse = await this.request({
2289
- path: `/transaction-notes/{noteId}`.replace(`{${"noteId"}}`, encodeURIComponent(noteId)),
2290
- method: 'PATCH',
2291
- headers: headerParameters,
2292
- query: queryParameters,
2293
- body: UpdateTransactionNoteDtoToJSON(updateTransactionNoteDto),
2294
- });
2295
- let response;
2296
- if (rawResponse.status === 200) {
2297
- response = new runtime.JSONApiResponse(rawResponse, (jsonValue) => TransactionNoteEntityFromJSON(jsonValue));
2298
- }
2299
- if (rawResponse.status === 400) {
2300
- const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
2301
- const error = await errorResponse.value();
2302
- throw error;
2303
- }
2304
- if (rawResponse.status === 401) {
2305
- const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
2306
- const error = await errorResponse.value();
2307
- throw error;
2308
- }
2309
- if (rawResponse.status === 403) {
2310
- const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
2311
- const error = await errorResponse.value();
2312
- throw error;
2313
- }
2314
- if (rawResponse.status === 404) {
2315
- const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
2316
- const error = await errorResponse.value();
2317
- throw error;
2318
- }
2319
- if (rawResponse.status === 500) {
2320
- const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
2321
- const error = await errorResponse.value();
2322
- throw error;
2323
- }
2324
- if (rawResponse.status === 502) {
2325
- const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
2326
- const error = await errorResponse.value();
2327
- throw error;
2328
- }
2329
- if (rawResponse.status === 503) {
2330
- const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
2331
- const error = await errorResponse.value();
2332
- throw error;
2333
- }
2334
- if (rawResponse.status === 504) {
2335
- const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
2336
- const error = await errorResponse.value();
2337
- throw error;
2338
- }
2339
- if (!response) {
2340
- response = new runtime.TextApiResponse(rawResponse);
2341
- }
2342
- return await response.value();
2343
- }
2344
2130
  /**
2345
2131
  * Attempts to void an authorized transaction
2346
2132
  * Void a transaction
@@ -2538,6 +2324,7 @@ export const SearchTransactionsStatusEnum = {
2538
2324
  BuyerApprovalPending: 'buyerApprovalPending',
2539
2325
  Authorized: 'authorized',
2540
2326
  AuthorizationFailed: 'authorizationFailed',
2327
+ CaptureFailed: 'captureFailed',
2541
2328
  Declined: 'declined',
2542
2329
  CapturePending: 'capturePending',
2543
2330
  Captured: 'captured',
@@ -109,6 +109,12 @@ export interface TransactionEntity {
109
109
  * @memberof TransactionEntity
110
110
  */
111
111
  cvvResponseCode?: string;
112
+ /**
113
+ * The authorization code of the transaction.
114
+ * @type {string}
115
+ * @memberof TransactionEntity
116
+ */
117
+ authCode?: string;
112
118
  /**
113
119
  * The authorized amount of the transaction.
114
120
  * @type {number}
@@ -238,6 +244,7 @@ export declare const TransactionEntityStatusEnum: {
238
244
  readonly BuyerApprovalPending: "buyerApprovalPending";
239
245
  readonly Authorized: "authorized";
240
246
  readonly AuthorizationFailed: "authorizationFailed";
247
+ readonly CaptureFailed: "captureFailed";
241
248
  readonly Declined: "declined";
242
249
  readonly CapturePending: "capturePending";
243
250
  readonly Captured: "captured";
@@ -18,6 +18,7 @@ export const TransactionEntityStatusEnum = {
18
18
  BuyerApprovalPending: 'buyerApprovalPending',
19
19
  Authorized: 'authorized',
20
20
  AuthorizationFailed: 'authorizationFailed',
21
+ CaptureFailed: 'captureFailed',
21
22
  Declined: 'declined',
22
23
  CapturePending: 'capturePending',
23
24
  Captured: 'captured',
@@ -94,6 +95,7 @@ export function TransactionEntityFromJSONTyped(json, ignoreDiscriminator) {
94
95
  'rawResponseDescription': !exists(json, 'rawResponseDescription') ? undefined : json['rawResponseDescription'],
95
96
  'avsResponseCode': !exists(json, 'avsResponseCode') ? undefined : json['avsResponseCode'],
96
97
  'cvvResponseCode': !exists(json, 'cvvResponseCode') ? undefined : json['cvvResponseCode'],
98
+ 'authCode': !exists(json, 'authCode') ? undefined : json['authCode'],
97
99
  'authorizedAmount': !exists(json, 'authorizedAmount') ? undefined : json['authorizedAmount'],
98
100
  'capturedAmount': !exists(json, 'capturedAmount') ? undefined : json['capturedAmount'],
99
101
  'settledAmount': !exists(json, 'settledAmount') ? undefined : json['settledAmount'],
@@ -141,6 +143,7 @@ export function TransactionEntityToJSON(value) {
141
143
  'rawResponseDescription': value.rawResponseDescription,
142
144
  'avsResponseCode': value.avsResponseCode,
143
145
  'cvvResponseCode': value.cvvResponseCode,
146
+ 'authCode': value.authCode,
144
147
  'authorizedAmount': value.authorizedAmount,
145
148
  'capturedAmount': value.capturedAmount,
146
149
  'settledAmount': value.settledAmount,
@@ -40,7 +40,6 @@ export * from './CreatePaymentMethodDto';
40
40
  export * from './CreateProvisionedCardTokenByMerchantDto';
41
41
  export * from './CreateProvisionedCardTokenDto';
42
42
  export * from './CreateStoredCardPaymentMethod';
43
- export * from './CreateTransactionNoteDto';
44
43
  export * from './CreateTransactionRefundDto';
45
44
  export * from './CreateTransactionRequestDto';
46
45
  export * from './CreateUserDto';
@@ -83,7 +82,6 @@ export * from './UpdateMerchantCredentialsDto';
83
82
  export * from './UpdateMerchantDto';
84
83
  export * from './UpdatePaymentMethodStatusDto';
85
84
  export * from './UpdateSelfDto';
86
- export * from './UpdateTransactionNoteDto';
87
85
  export * from './UpdateUserDto';
88
86
  export * from './UpdateWebhookDto';
89
87
  export * from './UserEntity';
@@ -42,7 +42,6 @@ export * from './CreatePaymentMethodDto';
42
42
  export * from './CreateProvisionedCardTokenByMerchantDto';
43
43
  export * from './CreateProvisionedCardTokenDto';
44
44
  export * from './CreateStoredCardPaymentMethod';
45
- export * from './CreateTransactionNoteDto';
46
45
  export * from './CreateTransactionRefundDto';
47
46
  export * from './CreateTransactionRequestDto';
48
47
  export * from './CreateUserDto';
@@ -85,7 +84,6 @@ export * from './UpdateMerchantCredentialsDto';
85
84
  export * from './UpdateMerchantDto';
86
85
  export * from './UpdatePaymentMethodStatusDto';
87
86
  export * from './UpdateSelfDto';
88
- export * from './UpdateTransactionNoteDto';
89
87
  export * from './UpdateUserDto';
90
88
  export * from './UpdateWebhookDto';
91
89
  export * from './UserEntity';
@@ -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.177.0";
67
+ context.headers['user-agent'] = "@channelpayments/node-sdk/v1.178.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.177.0",
4
+ "version": "1.178.0",
5
5
  "author": "Channel Payments",
6
6
  "license": "ISC",
7
7
  "main": "dist/cjs/index.js",
@@ -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 CreateTransactionNoteDto
11
- */
12
- export interface CreateTransactionNoteDto {
13
- /**
14
- * The id of the document the note is associated with.
15
- * @type {string}
16
- * @memberof CreateTransactionNoteDto
17
- */
18
- documentId: string;
19
- /**
20
- * The content of the transaction note.
21
- * @type {string}
22
- * @memberof CreateTransactionNoteDto
23
- */
24
- content: string;
25
- }
26
- /**
27
- * Check if a given object implements the CreateTransactionNoteDto interface.
28
- */
29
- export declare function instanceOfCreateTransactionNoteDto(value: object): boolean;
30
- export declare function CreateTransactionNoteDtoFromJSON(json: any): CreateTransactionNoteDto;
31
- export declare function CreateTransactionNoteDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateTransactionNoteDto;
32
- export declare function CreateTransactionNoteDtoToJSON(value?: CreateTransactionNoteDto | 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.instanceOfCreateTransactionNoteDto = instanceOfCreateTransactionNoteDto;
12
- exports.CreateTransactionNoteDtoFromJSON = CreateTransactionNoteDtoFromJSON;
13
- exports.CreateTransactionNoteDtoFromJSONTyped = CreateTransactionNoteDtoFromJSONTyped;
14
- exports.CreateTransactionNoteDtoToJSON = CreateTransactionNoteDtoToJSON;
15
- const runtime_1 = require("../runtime");
16
- /**
17
- * Check if a given object implements the CreateTransactionNoteDto interface.
18
- */
19
- function instanceOfCreateTransactionNoteDto(value) {
20
- let isInstance = true;
21
- isInstance = isInstance && "documentId" in value;
22
- isInstance = isInstance && "content" in value;
23
- return isInstance;
24
- }
25
- function CreateTransactionNoteDtoFromJSON(json) {
26
- return CreateTransactionNoteDtoFromJSONTyped(json, false);
27
- }
28
- function CreateTransactionNoteDtoFromJSONTyped(json, ignoreDiscriminator) {
29
- if ((json === undefined) || (json === null)) {
30
- return json;
31
- }
32
- const typed = {
33
- 'documentId': json['documentId'],
34
- 'content': json['content'],
35
- };
36
- return (0, runtime_1.removeNullUndefined)(typed);
37
- }
38
- function CreateTransactionNoteDtoToJSON(value) {
39
- if (value === undefined) {
40
- return undefined;
41
- }
42
- if (value === null) {
43
- return null;
44
- }
45
- return {
46
- 'documentId': value.documentId,
47
- 'content': value.content,
48
- };
49
- }
@@ -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 UpdateTransactionNoteDto
11
- */
12
- export interface UpdateTransactionNoteDto {
13
- /**
14
- * The content of the transaction note.
15
- * @type {string}
16
- * @memberof UpdateTransactionNoteDto
17
- */
18
- content: string;
19
- /**
20
- * The id of the note to update.
21
- * @type {string}
22
- * @memberof UpdateTransactionNoteDto
23
- */
24
- noteId: string;
25
- }
26
- /**
27
- * Check if a given object implements the UpdateTransactionNoteDto interface.
28
- */
29
- export declare function instanceOfUpdateTransactionNoteDto(value: object): boolean;
30
- export declare function UpdateTransactionNoteDtoFromJSON(json: any): UpdateTransactionNoteDto;
31
- export declare function UpdateTransactionNoteDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateTransactionNoteDto;
32
- export declare function UpdateTransactionNoteDtoToJSON(value?: UpdateTransactionNoteDto | 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.instanceOfUpdateTransactionNoteDto = instanceOfUpdateTransactionNoteDto;
12
- exports.UpdateTransactionNoteDtoFromJSON = UpdateTransactionNoteDtoFromJSON;
13
- exports.UpdateTransactionNoteDtoFromJSONTyped = UpdateTransactionNoteDtoFromJSONTyped;
14
- exports.UpdateTransactionNoteDtoToJSON = UpdateTransactionNoteDtoToJSON;
15
- const runtime_1 = require("../runtime");
16
- /**
17
- * Check if a given object implements the UpdateTransactionNoteDto interface.
18
- */
19
- function instanceOfUpdateTransactionNoteDto(value) {
20
- let isInstance = true;
21
- isInstance = isInstance && "content" in value;
22
- isInstance = isInstance && "noteId" in value;
23
- return isInstance;
24
- }
25
- function UpdateTransactionNoteDtoFromJSON(json) {
26
- return UpdateTransactionNoteDtoFromJSONTyped(json, false);
27
- }
28
- function UpdateTransactionNoteDtoFromJSONTyped(json, ignoreDiscriminator) {
29
- if ((json === undefined) || (json === null)) {
30
- return json;
31
- }
32
- const typed = {
33
- 'content': json['content'],
34
- 'noteId': json['noteId'],
35
- };
36
- return (0, runtime_1.removeNullUndefined)(typed);
37
- }
38
- function UpdateTransactionNoteDtoToJSON(value) {
39
- if (value === undefined) {
40
- return undefined;
41
- }
42
- if (value === null) {
43
- return null;
44
- }
45
- return {
46
- 'content': value.content,
47
- 'noteId': value.noteId,
48
- };
49
- }
@@ -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 CreateTransactionNoteDto
11
- */
12
- export interface CreateTransactionNoteDto {
13
- /**
14
- * The id of the document the note is associated with.
15
- * @type {string}
16
- * @memberof CreateTransactionNoteDto
17
- */
18
- documentId: string;
19
- /**
20
- * The content of the transaction note.
21
- * @type {string}
22
- * @memberof CreateTransactionNoteDto
23
- */
24
- content: string;
25
- }
26
- /**
27
- * Check if a given object implements the CreateTransactionNoteDto interface.
28
- */
29
- export declare function instanceOfCreateTransactionNoteDto(value: object): boolean;
30
- export declare function CreateTransactionNoteDtoFromJSON(json: any): CreateTransactionNoteDto;
31
- export declare function CreateTransactionNoteDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateTransactionNoteDto;
32
- export declare function CreateTransactionNoteDtoToJSON(value?: CreateTransactionNoteDto | null): any;
@@ -1,43 +0,0 @@
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 CreateTransactionNoteDto interface.
12
- */
13
- export function instanceOfCreateTransactionNoteDto(value) {
14
- let isInstance = true;
15
- isInstance = isInstance && "documentId" in value;
16
- isInstance = isInstance && "content" in value;
17
- return isInstance;
18
- }
19
- export function CreateTransactionNoteDtoFromJSON(json) {
20
- return CreateTransactionNoteDtoFromJSONTyped(json, false);
21
- }
22
- export function CreateTransactionNoteDtoFromJSONTyped(json, ignoreDiscriminator) {
23
- if ((json === undefined) || (json === null)) {
24
- return json;
25
- }
26
- const typed = {
27
- 'documentId': json['documentId'],
28
- 'content': json['content'],
29
- };
30
- return removeNullUndefined(typed);
31
- }
32
- export function CreateTransactionNoteDtoToJSON(value) {
33
- if (value === undefined) {
34
- return undefined;
35
- }
36
- if (value === null) {
37
- return null;
38
- }
39
- return {
40
- 'documentId': value.documentId,
41
- 'content': value.content,
42
- };
43
- }
@@ -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 UpdateTransactionNoteDto
11
- */
12
- export interface UpdateTransactionNoteDto {
13
- /**
14
- * The content of the transaction note.
15
- * @type {string}
16
- * @memberof UpdateTransactionNoteDto
17
- */
18
- content: string;
19
- /**
20
- * The id of the note to update.
21
- * @type {string}
22
- * @memberof UpdateTransactionNoteDto
23
- */
24
- noteId: string;
25
- }
26
- /**
27
- * Check if a given object implements the UpdateTransactionNoteDto interface.
28
- */
29
- export declare function instanceOfUpdateTransactionNoteDto(value: object): boolean;
30
- export declare function UpdateTransactionNoteDtoFromJSON(json: any): UpdateTransactionNoteDto;
31
- export declare function UpdateTransactionNoteDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateTransactionNoteDto;
32
- export declare function UpdateTransactionNoteDtoToJSON(value?: UpdateTransactionNoteDto | null): any;
@@ -1,43 +0,0 @@
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 UpdateTransactionNoteDto interface.
12
- */
13
- export function instanceOfUpdateTransactionNoteDto(value) {
14
- let isInstance = true;
15
- isInstance = isInstance && "content" in value;
16
- isInstance = isInstance && "noteId" in value;
17
- return isInstance;
18
- }
19
- export function UpdateTransactionNoteDtoFromJSON(json) {
20
- return UpdateTransactionNoteDtoFromJSONTyped(json, false);
21
- }
22
- export function UpdateTransactionNoteDtoFromJSONTyped(json, ignoreDiscriminator) {
23
- if ((json === undefined) || (json === null)) {
24
- return json;
25
- }
26
- const typed = {
27
- 'content': json['content'],
28
- 'noteId': json['noteId'],
29
- };
30
- return removeNullUndefined(typed);
31
- }
32
- export function UpdateTransactionNoteDtoToJSON(value) {
33
- if (value === undefined) {
34
- return undefined;
35
- }
36
- if (value === null) {
37
- return null;
38
- }
39
- return {
40
- 'content': value.content,
41
- 'noteId': value.noteId,
42
- };
43
- }