@channelpayments/node-sdk 1.35.4 → 1.37.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.
|
@@ -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;
|
|
@@ -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
|
}
|