@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.
- package/dist/cjs/models/BillingDetailsDto1.d.ts +45 -0
- package/dist/cjs/models/BillingDetailsDto1.js +56 -0
- package/dist/cjs/models/CreateCheckoutSessionItemDto.d.ts +1 -1
- package/dist/cjs/models/CreateCheckoutSessionPaymentMethodDto.d.ts +7 -0
- package/dist/cjs/models/CreateCheckoutSessionPaymentMethodDto.js +3 -0
- package/dist/cjs/models/CreateTransactionRequestDto.d.ts +19 -1
- package/dist/cjs/models/CreateTransactionRequestDto.js +6 -0
- package/dist/cjs/models/PaymentMethodDto.d.ts +7 -0
- package/dist/cjs/models/PaymentMethodDto.js +3 -0
- package/dist/cjs/models/TransactionEntity.d.ts +57 -33
- package/dist/cjs/models/TransactionEntity.js +20 -12
- package/dist/cjs/models/index.d.ts +1 -2
- package/dist/cjs/models/index.js +1 -2
- package/dist/cjs/runtime.js +1 -1
- package/dist/mjs/models/BillingDetailsDto1.d.ts +45 -0
- package/dist/mjs/models/BillingDetailsDto1.js +50 -0
- package/dist/mjs/models/CreateCheckoutSessionItemDto.d.ts +1 -1
- package/dist/mjs/models/CreateCheckoutSessionPaymentMethodDto.d.ts +7 -0
- package/dist/mjs/models/CreateCheckoutSessionPaymentMethodDto.js +3 -0
- package/dist/mjs/models/CreateTransactionRequestDto.d.ts +19 -1
- package/dist/mjs/models/CreateTransactionRequestDto.js +6 -0
- package/dist/mjs/models/PaymentMethodDto.d.ts +7 -0
- package/dist/mjs/models/PaymentMethodDto.js +3 -0
- package/dist/mjs/models/TransactionEntity.d.ts +57 -33
- package/dist/mjs/models/TransactionEntity.js +20 -12
- package/dist/mjs/models/index.d.ts +1 -2
- package/dist/mjs/models/index.js +1 -2
- package/dist/mjs/runtime.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/models/AdminCreateTransactionRefundDto.d.ts +0 -82
- package/dist/cjs/models/AdminCreateTransactionRefundDto.js +0 -84
- package/dist/cjs/models/AdminVoidTransactionDto.d.ts +0 -32
- package/dist/cjs/models/AdminVoidTransactionDto.js +0 -49
- package/dist/mjs/models/AdminCreateTransactionRefundDto.d.ts +0 -82
- package/dist/mjs/models/AdminCreateTransactionRefundDto.js +0 -77
- package/dist/mjs/models/AdminVoidTransactionDto.d.ts +0 -32
- package/dist/mjs/models/AdminVoidTransactionDto.js +0 -43
|
@@ -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,77 +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 { 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
|
-
}
|
|
@@ -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,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 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
|
-
}
|