@channelpayments/node-sdk 1.135.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.
@@ -0,0 +1,82 @@
1
+ /**
2
+ * Channel Payments API
3
+ *
4
+ * NOTE: This class is auto generated. Do not edit the class manually.
5
+ *
6
+ */
7
+ /**
8
+ *
9
+ * @export
10
+ * @interface AdminCreateTransactionRefundDto
11
+ */
12
+ export interface AdminCreateTransactionRefundDto {
13
+ /**
14
+ * The amount to refund.
15
+ * @type {number}
16
+ * @memberof AdminCreateTransactionRefundDto
17
+ */
18
+ refundAmount: number;
19
+ /**
20
+ * The transaction id to refund.
21
+ * @type {string}
22
+ * @memberof AdminCreateTransactionRefundDto
23
+ */
24
+ transactionId: string;
25
+ /**
26
+ * The reason for the refund.
27
+ * @type {string}
28
+ * @memberof AdminCreateTransactionRefundDto
29
+ */
30
+ reason?: AdminCreateTransactionRefundDtoReasonEnum;
31
+ /**
32
+ * The description for the refund if reason is OTHER.
33
+ * @type {string}
34
+ * @memberof AdminCreateTransactionRefundDto
35
+ */
36
+ description?: string;
37
+ /**
38
+ * The content of the transaction refund note.
39
+ * @type {string}
40
+ * @memberof AdminCreateTransactionRefundDto
41
+ */
42
+ note?: string;
43
+ /**
44
+ * The merchant id.
45
+ * @type {string}
46
+ * @memberof AdminCreateTransactionRefundDto
47
+ */
48
+ merchantId: string;
49
+ }
50
+ /**
51
+ * @export
52
+ */
53
+ export declare const AdminCreateTransactionRefundDtoReasonEnum: {
54
+ readonly CustomerDissatisfaction: "CUSTOMER_DISSATISFACTION";
55
+ readonly ProductReturned: "PRODUCT_RETURNED";
56
+ readonly ServiceCancelled: "SERVICE_CANCELLED";
57
+ readonly OrderCancelled: "ORDER_CANCELLED";
58
+ readonly Overpayment: "OVERPAYMENT";
59
+ readonly DuplicateCharge: "DUPLICATE_CHARGE";
60
+ readonly FraudulentCharge: "FRAUDULENT_CHARGE";
61
+ readonly ProductNotReceived: "PRODUCT_NOT_RECEIVED";
62
+ readonly ProductDefective: "PRODUCT_DEFECTIVE";
63
+ readonly IncorrectProductShipped: "INCORRECT_PRODUCT_SHIPPED";
64
+ readonly BillingError: "BILLING_ERROR";
65
+ readonly WarrantyClaim: "WARRANTY_CLAIM";
66
+ readonly PromotionalAdjustment: "PROMOTIONAL_ADJUSTMENT";
67
+ readonly ComplianceIssue: "COMPLIANCE_ISSUE";
68
+ readonly GoodwillGesture: "GOODWILL_GESTURE";
69
+ readonly SubscriptionCancellation: "SUBSCRIPTION_CANCELLATION";
70
+ readonly LoanRepaymentAdjustment: "LOAN_REPAYMENT_ADJUSTMENT";
71
+ readonly RegulatoryRequirement: "REGULATORY_REQUIREMENT";
72
+ readonly None: "NONE";
73
+ readonly Other: "OTHER";
74
+ };
75
+ export type AdminCreateTransactionRefundDtoReasonEnum = typeof AdminCreateTransactionRefundDtoReasonEnum[keyof typeof AdminCreateTransactionRefundDtoReasonEnum];
76
+ /**
77
+ * Check if a given object implements the AdminCreateTransactionRefundDto interface.
78
+ */
79
+ export declare function instanceOfAdminCreateTransactionRefundDto(value: object): boolean;
80
+ export declare function AdminCreateTransactionRefundDtoFromJSON(json: any): AdminCreateTransactionRefundDto;
81
+ export declare function AdminCreateTransactionRefundDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminCreateTransactionRefundDto;
82
+ export declare function AdminCreateTransactionRefundDtoToJSON(value?: AdminCreateTransactionRefundDto | null): any;
@@ -0,0 +1,84 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Channel Payments API
6
+ *
7
+ * NOTE: This class is auto generated. Do not edit the class manually.
8
+ *
9
+ */
10
+ Object.defineProperty(exports, "__esModule", { value: true });
11
+ exports.AdminCreateTransactionRefundDtoToJSON = exports.AdminCreateTransactionRefundDtoFromJSONTyped = exports.AdminCreateTransactionRefundDtoFromJSON = exports.instanceOfAdminCreateTransactionRefundDto = exports.AdminCreateTransactionRefundDtoReasonEnum = void 0;
12
+ const runtime_1 = require("../runtime");
13
+ /**
14
+ * @export
15
+ */
16
+ exports.AdminCreateTransactionRefundDtoReasonEnum = {
17
+ CustomerDissatisfaction: 'CUSTOMER_DISSATISFACTION',
18
+ ProductReturned: 'PRODUCT_RETURNED',
19
+ ServiceCancelled: 'SERVICE_CANCELLED',
20
+ OrderCancelled: 'ORDER_CANCELLED',
21
+ Overpayment: 'OVERPAYMENT',
22
+ DuplicateCharge: 'DUPLICATE_CHARGE',
23
+ FraudulentCharge: 'FRAUDULENT_CHARGE',
24
+ ProductNotReceived: 'PRODUCT_NOT_RECEIVED',
25
+ ProductDefective: 'PRODUCT_DEFECTIVE',
26
+ IncorrectProductShipped: 'INCORRECT_PRODUCT_SHIPPED',
27
+ BillingError: 'BILLING_ERROR',
28
+ WarrantyClaim: 'WARRANTY_CLAIM',
29
+ PromotionalAdjustment: 'PROMOTIONAL_ADJUSTMENT',
30
+ ComplianceIssue: 'COMPLIANCE_ISSUE',
31
+ GoodwillGesture: 'GOODWILL_GESTURE',
32
+ SubscriptionCancellation: 'SUBSCRIPTION_CANCELLATION',
33
+ LoanRepaymentAdjustment: 'LOAN_REPAYMENT_ADJUSTMENT',
34
+ RegulatoryRequirement: 'REGULATORY_REQUIREMENT',
35
+ None: 'NONE',
36
+ Other: 'OTHER'
37
+ };
38
+ /**
39
+ * Check if a given object implements the AdminCreateTransactionRefundDto interface.
40
+ */
41
+ function instanceOfAdminCreateTransactionRefundDto(value) {
42
+ let isInstance = true;
43
+ isInstance = isInstance && "refundAmount" in value;
44
+ isInstance = isInstance && "transactionId" in value;
45
+ isInstance = isInstance && "merchantId" in value;
46
+ return isInstance;
47
+ }
48
+ exports.instanceOfAdminCreateTransactionRefundDto = instanceOfAdminCreateTransactionRefundDto;
49
+ function AdminCreateTransactionRefundDtoFromJSON(json) {
50
+ return AdminCreateTransactionRefundDtoFromJSONTyped(json, false);
51
+ }
52
+ exports.AdminCreateTransactionRefundDtoFromJSON = AdminCreateTransactionRefundDtoFromJSON;
53
+ function AdminCreateTransactionRefundDtoFromJSONTyped(json, ignoreDiscriminator) {
54
+ if ((json === undefined) || (json === null)) {
55
+ return json;
56
+ }
57
+ const typed = {
58
+ 'refundAmount': json['refundAmount'],
59
+ 'transactionId': json['transactionId'],
60
+ 'reason': !(0, runtime_1.exists)(json, 'reason') ? undefined : json['reason'],
61
+ 'description': !(0, runtime_1.exists)(json, 'description') ? undefined : json['description'],
62
+ 'note': !(0, runtime_1.exists)(json, 'note') ? undefined : json['note'],
63
+ 'merchantId': json['merchantId'],
64
+ };
65
+ return (0, runtime_1.removeNullUndefined)(typed);
66
+ }
67
+ exports.AdminCreateTransactionRefundDtoFromJSONTyped = AdminCreateTransactionRefundDtoFromJSONTyped;
68
+ function AdminCreateTransactionRefundDtoToJSON(value) {
69
+ if (value === undefined) {
70
+ return undefined;
71
+ }
72
+ if (value === null) {
73
+ return null;
74
+ }
75
+ return {
76
+ 'refundAmount': value.refundAmount,
77
+ 'transactionId': value.transactionId,
78
+ 'reason': value.reason,
79
+ 'description': value.description,
80
+ 'note': value.note,
81
+ 'merchantId': value.merchantId,
82
+ };
83
+ }
84
+ exports.AdminCreateTransactionRefundDtoToJSON = AdminCreateTransactionRefundDtoToJSON;
@@ -0,0 +1,32 @@
1
+ /**
2
+ * Channel Payments API
3
+ *
4
+ * NOTE: This class is auto generated. Do not edit the class manually.
5
+ *
6
+ */
7
+ /**
8
+ *
9
+ * @export
10
+ * @interface AdminVoidTransactionDto
11
+ */
12
+ export interface AdminVoidTransactionDto {
13
+ /**
14
+ * The transaction ID.
15
+ * @type {string}
16
+ * @memberof AdminVoidTransactionDto
17
+ */
18
+ transactionId: string;
19
+ /**
20
+ * The merchantId ID.
21
+ * @type {string}
22
+ * @memberof AdminVoidTransactionDto
23
+ */
24
+ merchantId: string;
25
+ }
26
+ /**
27
+ * Check if a given object implements the AdminVoidTransactionDto interface.
28
+ */
29
+ export declare function instanceOfAdminVoidTransactionDto(value: object): boolean;
30
+ export declare function AdminVoidTransactionDtoFromJSON(json: any): AdminVoidTransactionDto;
31
+ export declare function AdminVoidTransactionDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminVoidTransactionDto;
32
+ export declare function AdminVoidTransactionDtoToJSON(value?: AdminVoidTransactionDto | null): any;
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Channel Payments API
6
+ *
7
+ * NOTE: This class is auto generated. Do not edit the class manually.
8
+ *
9
+ */
10
+ Object.defineProperty(exports, "__esModule", { value: true });
11
+ exports.AdminVoidTransactionDtoToJSON = exports.AdminVoidTransactionDtoFromJSONTyped = exports.AdminVoidTransactionDtoFromJSON = exports.instanceOfAdminVoidTransactionDto = void 0;
12
+ const runtime_1 = require("../runtime");
13
+ /**
14
+ * Check if a given object implements the AdminVoidTransactionDto interface.
15
+ */
16
+ function instanceOfAdminVoidTransactionDto(value) {
17
+ let isInstance = true;
18
+ isInstance = isInstance && "transactionId" in value;
19
+ isInstance = isInstance && "merchantId" in value;
20
+ return isInstance;
21
+ }
22
+ exports.instanceOfAdminVoidTransactionDto = instanceOfAdminVoidTransactionDto;
23
+ function AdminVoidTransactionDtoFromJSON(json) {
24
+ return AdminVoidTransactionDtoFromJSONTyped(json, false);
25
+ }
26
+ exports.AdminVoidTransactionDtoFromJSON = AdminVoidTransactionDtoFromJSON;
27
+ function AdminVoidTransactionDtoFromJSONTyped(json, ignoreDiscriminator) {
28
+ if ((json === undefined) || (json === null)) {
29
+ return json;
30
+ }
31
+ const typed = {
32
+ 'transactionId': json['transactionId'],
33
+ 'merchantId': json['merchantId'],
34
+ };
35
+ return (0, runtime_1.removeNullUndefined)(typed);
36
+ }
37
+ exports.AdminVoidTransactionDtoFromJSONTyped = AdminVoidTransactionDtoFromJSONTyped;
38
+ function AdminVoidTransactionDtoToJSON(value) {
39
+ if (value === undefined) {
40
+ return undefined;
41
+ }
42
+ if (value === null) {
43
+ return null;
44
+ }
45
+ return {
46
+ 'transactionId': value.transactionId,
47
+ 'merchantId': value.merchantId,
48
+ };
49
+ }
50
+ exports.AdminVoidTransactionDtoToJSON = AdminVoidTransactionDtoToJSON;
@@ -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';
@@ -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);
@@ -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.135.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
+ }
@@ -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';
@@ -1,6 +1,8 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  export * from './AddressEntity';
4
+ export * from './AdminCreateTransactionRefundDto';
5
+ export * from './AdminVoidTransactionDto';
4
6
  export * from './AvailablePaymentMethodEntity';
5
7
  export * from './BankDetailsServiceEntity';
6
8
  export * from './BuyerAddressDto';
@@ -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.135.0";
67
+ context.headers['user-agent'] = "@channelpayments/node-sdk/v1.137.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.135.0",
4
+ "version": "1.137.0",
5
5
  "author": "Channel Payments",
6
6
  "license": "ISC",
7
7
  "main": "dist/cjs/index.js",