@channelpayments/node-sdk 1.35.4 → 1.39.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/BuyerEntity.d.ts +12 -0
- package/dist/cjs/models/BuyerEntity.js +4 -0
- package/dist/cjs/models/CreateTransactionDtoPaymentMethod.d.ts +6 -6
- package/dist/cjs/models/PaymentMethodDto.d.ts +6 -6
- package/dist/cjs/models/TransactionEntity.d.ts +6 -0
- package/dist/cjs/models/TransactionEntity.js +2 -0
- package/dist/cjs/models/TransactionRefundEntity.d.ts +1 -1
- package/dist/cjs/models/TransactionRefundEntity.js +3 -3
- package/dist/mjs/models/BuyerEntity.d.ts +12 -0
- package/dist/mjs/models/BuyerEntity.js +4 -0
- package/dist/mjs/models/CreateTransactionDtoPaymentMethod.d.ts +6 -6
- package/dist/mjs/models/PaymentMethodDto.d.ts +6 -6
- package/dist/mjs/models/TransactionEntity.d.ts +6 -0
- package/dist/mjs/models/TransactionEntity.js +2 -0
- package/dist/mjs/models/TransactionRefundEntity.d.ts +1 -1
- package/dist/mjs/models/TransactionRefundEntity.js +3 -3
- package/package.json +1 -1
|
@@ -11,6 +11,12 @@ import type { BuyerEntityAddress } from './BuyerEntityAddress';
|
|
|
11
11
|
* @interface BuyerEntity
|
|
12
12
|
*/
|
|
13
13
|
export interface BuyerEntity {
|
|
14
|
+
/**
|
|
15
|
+
* The buyer ID
|
|
16
|
+
* @type {string}
|
|
17
|
+
* @memberof BuyerEntity
|
|
18
|
+
*/
|
|
19
|
+
id?: string;
|
|
14
20
|
/**
|
|
15
21
|
* The buyer ID
|
|
16
22
|
* @type {string}
|
|
@@ -71,6 +77,12 @@ export interface BuyerEntity {
|
|
|
71
77
|
* @memberof BuyerEntity
|
|
72
78
|
*/
|
|
73
79
|
updatedAt?: Date;
|
|
80
|
+
/**
|
|
81
|
+
* The buyer integration ID
|
|
82
|
+
* @type {string}
|
|
83
|
+
* @memberof BuyerEntity
|
|
84
|
+
*/
|
|
85
|
+
buyerIntegrationId?: string;
|
|
74
86
|
}
|
|
75
87
|
/**
|
|
76
88
|
* Check if a given object implements the BuyerEntity interface.
|
|
@@ -34,6 +34,7 @@ function BuyerEntityFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
34
34
|
return json;
|
|
35
35
|
}
|
|
36
36
|
const typed = {
|
|
37
|
+
'id': !(0, runtime_1.exists)(json, 'id') ? undefined : json['id'],
|
|
37
38
|
'buyerId': json['buyerId'],
|
|
38
39
|
'merchantId': json['merchantId'],
|
|
39
40
|
'givenName': json['givenName'],
|
|
@@ -44,6 +45,7 @@ function BuyerEntityFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
44
45
|
'externalBuyerId': !(0, runtime_1.exists)(json, 'externalBuyerId') ? undefined : json['externalBuyerId'],
|
|
45
46
|
'createdAt': !(0, runtime_1.exists)(json, 'createdAt') ? undefined : (new Date(json['createdAt'])),
|
|
46
47
|
'updatedAt': !(0, runtime_1.exists)(json, 'updatedAt') ? undefined : (new Date(json['updatedAt'])),
|
|
48
|
+
'buyerIntegrationId': !(0, runtime_1.exists)(json, 'buyerIntegrationId') ? undefined : json['buyerIntegrationId'],
|
|
47
49
|
};
|
|
48
50
|
return (0, runtime_1.removeNullUndefined)(typed);
|
|
49
51
|
}
|
|
@@ -56,6 +58,7 @@ function BuyerEntityToJSON(value) {
|
|
|
56
58
|
return null;
|
|
57
59
|
}
|
|
58
60
|
return {
|
|
61
|
+
'id': value.id,
|
|
59
62
|
'buyerId': value.buyerId,
|
|
60
63
|
'merchantId': value.merchantId,
|
|
61
64
|
'givenName': value.givenName,
|
|
@@ -66,6 +69,7 @@ function BuyerEntityToJSON(value) {
|
|
|
66
69
|
'externalBuyerId': value.externalBuyerId,
|
|
67
70
|
'createdAt': value.createdAt === undefined ? undefined : (value.createdAt.toISOString()),
|
|
68
71
|
'updatedAt': value.updatedAt === undefined ? undefined : (value.updatedAt.toISOString()),
|
|
72
|
+
'buyerIntegrationId': value.buyerIntegrationId,
|
|
69
73
|
};
|
|
70
74
|
}
|
|
71
75
|
exports.BuyerEntityToJSON = BuyerEntityToJSON;
|
|
@@ -17,7 +17,7 @@ export interface CreateTransactionDtoPaymentMethod {
|
|
|
17
17
|
*/
|
|
18
18
|
method: CreateTransactionDtoPaymentMethodMethodEnum;
|
|
19
19
|
/**
|
|
20
|
-
* The 13 - 19 digit card number. Must be unset
|
|
20
|
+
* The 13 - 19 digit card number. Must be unset if stored paymentMethodId is used.
|
|
21
21
|
* @type {string}
|
|
22
22
|
* @memberof CreateTransactionDtoPaymentMethod
|
|
23
23
|
*/
|
|
@@ -29,31 +29,31 @@ export interface CreateTransactionDtoPaymentMethod {
|
|
|
29
29
|
*/
|
|
30
30
|
securityCode?: string;
|
|
31
31
|
/**
|
|
32
|
-
* The expiration date of the card, formatted MM/YY. Must be unset if
|
|
32
|
+
* The expiration date of the card, formatted MM/YY. Must be unset if stored paymentMethodId is used.
|
|
33
33
|
* @type {string}
|
|
34
34
|
* @memberof CreateTransactionDtoPaymentMethod
|
|
35
35
|
*/
|
|
36
36
|
expirationDate?: string;
|
|
37
37
|
/**
|
|
38
|
-
* The
|
|
38
|
+
* The ID of the buyer to associate the payment to. Must be unset if stored paymentMethodId is used or buyerId is provided.
|
|
39
39
|
* @type {string}
|
|
40
40
|
* @memberof CreateTransactionDtoPaymentMethod
|
|
41
41
|
*/
|
|
42
42
|
externalBuyerId?: string;
|
|
43
43
|
/**
|
|
44
|
-
* The
|
|
44
|
+
* The ID of the buyer to associate the payment to. Must be unset if stored paymentMethodId is used or externalBuyerId is provided.
|
|
45
45
|
* @type {string}
|
|
46
46
|
* @memberof CreateTransactionDtoPaymentMethod
|
|
47
47
|
*/
|
|
48
48
|
buyerId?: string;
|
|
49
49
|
/**
|
|
50
|
-
* The
|
|
50
|
+
* The ID of the stored payment method to use. Must be unset if number, expirationDate and securityCode are provided.
|
|
51
51
|
* @type {string}
|
|
52
52
|
* @memberof CreateTransactionDtoPaymentMethod
|
|
53
53
|
*/
|
|
54
54
|
paymentMethodId?: string;
|
|
55
55
|
/**
|
|
56
|
-
* Whether or not to
|
|
56
|
+
* Whether or not to store the payment method for future use
|
|
57
57
|
* @type {boolean}
|
|
58
58
|
* @memberof CreateTransactionDtoPaymentMethod
|
|
59
59
|
*/
|
|
@@ -17,7 +17,7 @@ export interface PaymentMethodDto {
|
|
|
17
17
|
*/
|
|
18
18
|
method: PaymentMethodDtoMethodEnum;
|
|
19
19
|
/**
|
|
20
|
-
* The 13 - 19 digit card number. Must be unset
|
|
20
|
+
* The 13 - 19 digit card number. Must be unset if stored paymentMethodId is used.
|
|
21
21
|
* @type {string}
|
|
22
22
|
* @memberof PaymentMethodDto
|
|
23
23
|
*/
|
|
@@ -29,31 +29,31 @@ export interface PaymentMethodDto {
|
|
|
29
29
|
*/
|
|
30
30
|
securityCode?: string;
|
|
31
31
|
/**
|
|
32
|
-
* The expiration date of the card, formatted MM/YY. Must be unset if
|
|
32
|
+
* The expiration date of the card, formatted MM/YY. Must be unset if stored paymentMethodId is used.
|
|
33
33
|
* @type {string}
|
|
34
34
|
* @memberof PaymentMethodDto
|
|
35
35
|
*/
|
|
36
36
|
expirationDate?: string;
|
|
37
37
|
/**
|
|
38
|
-
* The
|
|
38
|
+
* The ID of the buyer to associate the payment to. Must be unset if stored paymentMethodId is used or buyerId is provided.
|
|
39
39
|
* @type {string}
|
|
40
40
|
* @memberof PaymentMethodDto
|
|
41
41
|
*/
|
|
42
42
|
externalBuyerId?: string;
|
|
43
43
|
/**
|
|
44
|
-
* The
|
|
44
|
+
* The ID of the buyer to associate the payment to. Must be unset if stored paymentMethodId is used or externalBuyerId is provided.
|
|
45
45
|
* @type {string}
|
|
46
46
|
* @memberof PaymentMethodDto
|
|
47
47
|
*/
|
|
48
48
|
buyerId?: string;
|
|
49
49
|
/**
|
|
50
|
-
* The
|
|
50
|
+
* The ID of the stored payment method to use. Must be unset if number, expirationDate and securityCode are provided.
|
|
51
51
|
* @type {string}
|
|
52
52
|
* @memberof PaymentMethodDto
|
|
53
53
|
*/
|
|
54
54
|
paymentMethodId?: string;
|
|
55
55
|
/**
|
|
56
|
-
* Whether or not to
|
|
56
|
+
* Whether or not to store the payment method for future use
|
|
57
57
|
* @type {boolean}
|
|
58
58
|
* @memberof PaymentMethodDto
|
|
59
59
|
*/
|
|
@@ -102,6 +102,12 @@ export interface TransactionEntity {
|
|
|
102
102
|
* @memberof TransactionEntity
|
|
103
103
|
*/
|
|
104
104
|
buyer?: PaymentsBuyerEntity;
|
|
105
|
+
/**
|
|
106
|
+
*
|
|
107
|
+
* @type {string}
|
|
108
|
+
* @memberof TransactionEntity
|
|
109
|
+
*/
|
|
110
|
+
externalBuyerId?: string;
|
|
105
111
|
/**
|
|
106
112
|
*
|
|
107
113
|
* @type {Date}
|
|
@@ -88,6 +88,7 @@ function TransactionEntityFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
88
88
|
'country': !(0, runtime_1.exists)(json, 'country') ? undefined : json['country'],
|
|
89
89
|
'paymentMethod': !(0, runtime_1.exists)(json, 'paymentMethod') ? undefined : (0, PaymentMethodEntity1_1.PaymentMethodEntity1FromJSON)(json['paymentMethod']),
|
|
90
90
|
'buyer': !(0, runtime_1.exists)(json, 'buyer') ? undefined : (0, PaymentsBuyerEntity_1.PaymentsBuyerEntityFromJSON)(json['buyer']),
|
|
91
|
+
'externalBuyerId': !(0, runtime_1.exists)(json, 'externalBuyerId') ? undefined : json['externalBuyerId'],
|
|
91
92
|
'createdAt': !(0, runtime_1.exists)(json, 'createdAt') ? undefined : (new Date(json['createdAt'])),
|
|
92
93
|
'updatedAt': !(0, runtime_1.exists)(json, 'updatedAt') ? undefined : (new Date(json['updatedAt'])),
|
|
93
94
|
'merchantInitiated': !(0, runtime_1.exists)(json, 'merchantInitiated') ? undefined : json['merchantInitiated'],
|
|
@@ -129,6 +130,7 @@ function TransactionEntityToJSON(value) {
|
|
|
129
130
|
'country': value.country,
|
|
130
131
|
'paymentMethod': (0, PaymentMethodEntity1_1.PaymentMethodEntity1ToJSON)(value.paymentMethod),
|
|
131
132
|
'buyer': (0, PaymentsBuyerEntity_1.PaymentsBuyerEntityToJSON)(value.buyer),
|
|
133
|
+
'externalBuyerId': value.externalBuyerId,
|
|
132
134
|
'createdAt': value.createdAt === undefined ? undefined : (value.createdAt.toISOString()),
|
|
133
135
|
'updatedAt': value.updatedAt === undefined ? undefined : (value.updatedAt.toISOString()),
|
|
134
136
|
'merchantInitiated': value.merchantInitiated,
|
|
@@ -25,7 +25,7 @@ exports.TransactionRefundEntityStatusEnum = {
|
|
|
25
25
|
*/
|
|
26
26
|
function instanceOfTransactionRefundEntity(value) {
|
|
27
27
|
let isInstance = true;
|
|
28
|
-
isInstance = isInstance && "
|
|
28
|
+
isInstance = isInstance && "id" in value;
|
|
29
29
|
isInstance = isInstance && "merchantId" in value;
|
|
30
30
|
isInstance = isInstance && "refundId" in value;
|
|
31
31
|
isInstance = isInstance && "transactionId" in value;
|
|
@@ -45,7 +45,7 @@ function TransactionRefundEntityFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
45
45
|
return json;
|
|
46
46
|
}
|
|
47
47
|
const typed = {
|
|
48
|
-
'
|
|
48
|
+
'id': json['id'],
|
|
49
49
|
'merchantId': json['merchantId'],
|
|
50
50
|
'refundId': json['refundId'],
|
|
51
51
|
'transactionId': json['transactionId'],
|
|
@@ -66,7 +66,7 @@ function TransactionRefundEntityToJSON(value) {
|
|
|
66
66
|
return null;
|
|
67
67
|
}
|
|
68
68
|
return {
|
|
69
|
-
'
|
|
69
|
+
'id': value.id,
|
|
70
70
|
'merchantId': value.merchantId,
|
|
71
71
|
'refundId': value.refundId,
|
|
72
72
|
'transactionId': value.transactionId,
|
|
@@ -11,6 +11,12 @@ import type { BuyerEntityAddress } from './BuyerEntityAddress';
|
|
|
11
11
|
* @interface BuyerEntity
|
|
12
12
|
*/
|
|
13
13
|
export interface BuyerEntity {
|
|
14
|
+
/**
|
|
15
|
+
* The buyer ID
|
|
16
|
+
* @type {string}
|
|
17
|
+
* @memberof BuyerEntity
|
|
18
|
+
*/
|
|
19
|
+
id?: string;
|
|
14
20
|
/**
|
|
15
21
|
* The buyer ID
|
|
16
22
|
* @type {string}
|
|
@@ -71,6 +77,12 @@ export interface BuyerEntity {
|
|
|
71
77
|
* @memberof BuyerEntity
|
|
72
78
|
*/
|
|
73
79
|
updatedAt?: Date;
|
|
80
|
+
/**
|
|
81
|
+
* The buyer integration ID
|
|
82
|
+
* @type {string}
|
|
83
|
+
* @memberof BuyerEntity
|
|
84
|
+
*/
|
|
85
|
+
buyerIntegrationId?: string;
|
|
74
86
|
}
|
|
75
87
|
/**
|
|
76
88
|
* Check if a given object implements the BuyerEntity interface.
|
|
@@ -29,6 +29,7 @@ export function BuyerEntityFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
29
29
|
return json;
|
|
30
30
|
}
|
|
31
31
|
const typed = {
|
|
32
|
+
'id': !exists(json, 'id') ? undefined : json['id'],
|
|
32
33
|
'buyerId': json['buyerId'],
|
|
33
34
|
'merchantId': json['merchantId'],
|
|
34
35
|
'givenName': json['givenName'],
|
|
@@ -39,6 +40,7 @@ export function BuyerEntityFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
39
40
|
'externalBuyerId': !exists(json, 'externalBuyerId') ? undefined : json['externalBuyerId'],
|
|
40
41
|
'createdAt': !exists(json, 'createdAt') ? undefined : (new Date(json['createdAt'])),
|
|
41
42
|
'updatedAt': !exists(json, 'updatedAt') ? undefined : (new Date(json['updatedAt'])),
|
|
43
|
+
'buyerIntegrationId': !exists(json, 'buyerIntegrationId') ? undefined : json['buyerIntegrationId'],
|
|
42
44
|
};
|
|
43
45
|
return removeNullUndefined(typed);
|
|
44
46
|
}
|
|
@@ -50,6 +52,7 @@ export function BuyerEntityToJSON(value) {
|
|
|
50
52
|
return null;
|
|
51
53
|
}
|
|
52
54
|
return {
|
|
55
|
+
'id': value.id,
|
|
53
56
|
'buyerId': value.buyerId,
|
|
54
57
|
'merchantId': value.merchantId,
|
|
55
58
|
'givenName': value.givenName,
|
|
@@ -60,5 +63,6 @@ export function BuyerEntityToJSON(value) {
|
|
|
60
63
|
'externalBuyerId': value.externalBuyerId,
|
|
61
64
|
'createdAt': value.createdAt === undefined ? undefined : (value.createdAt.toISOString()),
|
|
62
65
|
'updatedAt': value.updatedAt === undefined ? undefined : (value.updatedAt.toISOString()),
|
|
66
|
+
'buyerIntegrationId': value.buyerIntegrationId,
|
|
63
67
|
};
|
|
64
68
|
}
|
|
@@ -17,7 +17,7 @@ export interface CreateTransactionDtoPaymentMethod {
|
|
|
17
17
|
*/
|
|
18
18
|
method: CreateTransactionDtoPaymentMethodMethodEnum;
|
|
19
19
|
/**
|
|
20
|
-
* The 13 - 19 digit card number. Must be unset
|
|
20
|
+
* The 13 - 19 digit card number. Must be unset if stored paymentMethodId is used.
|
|
21
21
|
* @type {string}
|
|
22
22
|
* @memberof CreateTransactionDtoPaymentMethod
|
|
23
23
|
*/
|
|
@@ -29,31 +29,31 @@ export interface CreateTransactionDtoPaymentMethod {
|
|
|
29
29
|
*/
|
|
30
30
|
securityCode?: string;
|
|
31
31
|
/**
|
|
32
|
-
* The expiration date of the card, formatted MM/YY. Must be unset if
|
|
32
|
+
* The expiration date of the card, formatted MM/YY. Must be unset if stored paymentMethodId is used.
|
|
33
33
|
* @type {string}
|
|
34
34
|
* @memberof CreateTransactionDtoPaymentMethod
|
|
35
35
|
*/
|
|
36
36
|
expirationDate?: string;
|
|
37
37
|
/**
|
|
38
|
-
* The
|
|
38
|
+
* The ID of the buyer to associate the payment to. Must be unset if stored paymentMethodId is used or buyerId is provided.
|
|
39
39
|
* @type {string}
|
|
40
40
|
* @memberof CreateTransactionDtoPaymentMethod
|
|
41
41
|
*/
|
|
42
42
|
externalBuyerId?: string;
|
|
43
43
|
/**
|
|
44
|
-
* The
|
|
44
|
+
* The ID of the buyer to associate the payment to. Must be unset if stored paymentMethodId is used or externalBuyerId is provided.
|
|
45
45
|
* @type {string}
|
|
46
46
|
* @memberof CreateTransactionDtoPaymentMethod
|
|
47
47
|
*/
|
|
48
48
|
buyerId?: string;
|
|
49
49
|
/**
|
|
50
|
-
* The
|
|
50
|
+
* The ID of the stored payment method to use. Must be unset if number, expirationDate and securityCode are provided.
|
|
51
51
|
* @type {string}
|
|
52
52
|
* @memberof CreateTransactionDtoPaymentMethod
|
|
53
53
|
*/
|
|
54
54
|
paymentMethodId?: string;
|
|
55
55
|
/**
|
|
56
|
-
* Whether or not to
|
|
56
|
+
* Whether or not to store the payment method for future use
|
|
57
57
|
* @type {boolean}
|
|
58
58
|
* @memberof CreateTransactionDtoPaymentMethod
|
|
59
59
|
*/
|
|
@@ -17,7 +17,7 @@ export interface PaymentMethodDto {
|
|
|
17
17
|
*/
|
|
18
18
|
method: PaymentMethodDtoMethodEnum;
|
|
19
19
|
/**
|
|
20
|
-
* The 13 - 19 digit card number. Must be unset
|
|
20
|
+
* The 13 - 19 digit card number. Must be unset if stored paymentMethodId is used.
|
|
21
21
|
* @type {string}
|
|
22
22
|
* @memberof PaymentMethodDto
|
|
23
23
|
*/
|
|
@@ -29,31 +29,31 @@ export interface PaymentMethodDto {
|
|
|
29
29
|
*/
|
|
30
30
|
securityCode?: string;
|
|
31
31
|
/**
|
|
32
|
-
* The expiration date of the card, formatted MM/YY. Must be unset if
|
|
32
|
+
* The expiration date of the card, formatted MM/YY. Must be unset if stored paymentMethodId is used.
|
|
33
33
|
* @type {string}
|
|
34
34
|
* @memberof PaymentMethodDto
|
|
35
35
|
*/
|
|
36
36
|
expirationDate?: string;
|
|
37
37
|
/**
|
|
38
|
-
* The
|
|
38
|
+
* The ID of the buyer to associate the payment to. Must be unset if stored paymentMethodId is used or buyerId is provided.
|
|
39
39
|
* @type {string}
|
|
40
40
|
* @memberof PaymentMethodDto
|
|
41
41
|
*/
|
|
42
42
|
externalBuyerId?: string;
|
|
43
43
|
/**
|
|
44
|
-
* The
|
|
44
|
+
* The ID of the buyer to associate the payment to. Must be unset if stored paymentMethodId is used or externalBuyerId is provided.
|
|
45
45
|
* @type {string}
|
|
46
46
|
* @memberof PaymentMethodDto
|
|
47
47
|
*/
|
|
48
48
|
buyerId?: string;
|
|
49
49
|
/**
|
|
50
|
-
* The
|
|
50
|
+
* The ID of the stored payment method to use. Must be unset if number, expirationDate and securityCode are provided.
|
|
51
51
|
* @type {string}
|
|
52
52
|
* @memberof PaymentMethodDto
|
|
53
53
|
*/
|
|
54
54
|
paymentMethodId?: string;
|
|
55
55
|
/**
|
|
56
|
-
* Whether or not to
|
|
56
|
+
* Whether or not to store the payment method for future use
|
|
57
57
|
* @type {boolean}
|
|
58
58
|
* @memberof PaymentMethodDto
|
|
59
59
|
*/
|
|
@@ -102,6 +102,12 @@ export interface TransactionEntity {
|
|
|
102
102
|
* @memberof TransactionEntity
|
|
103
103
|
*/
|
|
104
104
|
buyer?: PaymentsBuyerEntity;
|
|
105
|
+
/**
|
|
106
|
+
*
|
|
107
|
+
* @type {string}
|
|
108
|
+
* @memberof TransactionEntity
|
|
109
|
+
*/
|
|
110
|
+
externalBuyerId?: string;
|
|
105
111
|
/**
|
|
106
112
|
*
|
|
107
113
|
* @type {Date}
|
|
@@ -83,6 +83,7 @@ export function TransactionEntityFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
83
83
|
'country': !exists(json, 'country') ? undefined : json['country'],
|
|
84
84
|
'paymentMethod': !exists(json, 'paymentMethod') ? undefined : PaymentMethodEntity1FromJSON(json['paymentMethod']),
|
|
85
85
|
'buyer': !exists(json, 'buyer') ? undefined : PaymentsBuyerEntityFromJSON(json['buyer']),
|
|
86
|
+
'externalBuyerId': !exists(json, 'externalBuyerId') ? undefined : json['externalBuyerId'],
|
|
86
87
|
'createdAt': !exists(json, 'createdAt') ? undefined : (new Date(json['createdAt'])),
|
|
87
88
|
'updatedAt': !exists(json, 'updatedAt') ? undefined : (new Date(json['updatedAt'])),
|
|
88
89
|
'merchantInitiated': !exists(json, 'merchantInitiated') ? undefined : json['merchantInitiated'],
|
|
@@ -123,6 +124,7 @@ export function TransactionEntityToJSON(value) {
|
|
|
123
124
|
'country': value.country,
|
|
124
125
|
'paymentMethod': PaymentMethodEntity1ToJSON(value.paymentMethod),
|
|
125
126
|
'buyer': PaymentsBuyerEntityToJSON(value.buyer),
|
|
127
|
+
'externalBuyerId': value.externalBuyerId,
|
|
126
128
|
'createdAt': value.createdAt === undefined ? undefined : (value.createdAt.toISOString()),
|
|
127
129
|
'updatedAt': value.updatedAt === undefined ? undefined : (value.updatedAt.toISOString()),
|
|
128
130
|
'merchantInitiated': value.merchantInitiated,
|
|
@@ -22,7 +22,7 @@ export const TransactionRefundEntityStatusEnum = {
|
|
|
22
22
|
*/
|
|
23
23
|
export function instanceOfTransactionRefundEntity(value) {
|
|
24
24
|
let isInstance = true;
|
|
25
|
-
isInstance = isInstance && "
|
|
25
|
+
isInstance = isInstance && "id" in value;
|
|
26
26
|
isInstance = isInstance && "merchantId" in value;
|
|
27
27
|
isInstance = isInstance && "refundId" in value;
|
|
28
28
|
isInstance = isInstance && "transactionId" in value;
|
|
@@ -40,7 +40,7 @@ export function TransactionRefundEntityFromJSONTyped(json, ignoreDiscriminator)
|
|
|
40
40
|
return json;
|
|
41
41
|
}
|
|
42
42
|
const typed = {
|
|
43
|
-
'
|
|
43
|
+
'id': json['id'],
|
|
44
44
|
'merchantId': json['merchantId'],
|
|
45
45
|
'refundId': json['refundId'],
|
|
46
46
|
'transactionId': json['transactionId'],
|
|
@@ -60,7 +60,7 @@ export function TransactionRefundEntityToJSON(value) {
|
|
|
60
60
|
return null;
|
|
61
61
|
}
|
|
62
62
|
return {
|
|
63
|
-
'
|
|
63
|
+
'id': value.id,
|
|
64
64
|
'merchantId': value.merchantId,
|
|
65
65
|
'refundId': value.refundId,
|
|
66
66
|
'transactionId': value.transactionId,
|