@managespace/sdk 0.1.187 → 0.1.188-gl
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/generated/models/create-order.d.ts +6 -0
- package/dist/generated/models/create-order.d.ts.map +1 -1
- package/dist/generated/models/create-order.js +2 -0
- package/dist/generated/models/create-product-custom.d.ts +6 -0
- package/dist/generated/models/create-product-custom.d.ts.map +1 -1
- package/dist/generated/models/create-product-custom.js +2 -0
- package/dist/generated/models/create-site-custom.d.ts +12 -0
- package/dist/generated/models/create-site-custom.d.ts.map +1 -1
- package/dist/generated/models/create-site-custom.js +4 -0
- package/dist/generated/models/create-subscription-charge.d.ts +3 -3
- package/dist/generated/models/create-subscription-charge.d.ts.map +1 -1
- package/dist/generated/models/create-subscription-charge.js +3 -9
- package/dist/generated/models/journal-entry-entries.d.ts +12 -0
- package/dist/generated/models/journal-entry-entries.d.ts.map +1 -1
- package/dist/generated/models/journal-entry-entries.js +8 -0
- package/dist/generated/models/journal-entry.d.ts +28 -0
- package/dist/generated/models/journal-entry.d.ts.map +1 -1
- package/dist/generated/models/journal-entry.js +22 -0
- package/dist/generated/models/order.d.ts +6 -0
- package/dist/generated/models/order.d.ts.map +1 -1
- package/dist/generated/models/order.js +2 -0
- package/dist/generated/models/product-custom.d.ts +6 -0
- package/dist/generated/models/product-custom.d.ts.map +1 -1
- package/dist/generated/models/product-custom.js +2 -0
- package/dist/generated/models/product-type.d.ts +3 -0
- package/dist/generated/models/product-type.d.ts.map +1 -1
- package/dist/generated/models/product-type.js +4 -1
- package/dist/generated/models/refund-invoice.d.ts +6 -0
- package/dist/generated/models/refund-invoice.d.ts.map +1 -1
- package/dist/generated/models/refund-invoice.js +2 -0
- package/dist/generated/models/site.d.ts +12 -0
- package/dist/generated/models/site.d.ts.map +1 -1
- package/dist/generated/models/site.js +8 -0
- package/dist/generated/models/subscription-charge.d.ts +3 -3
- package/dist/generated/models/subscription-charge.d.ts.map +1 -1
- package/dist/generated/models/subscription-charge.js +3 -9
- package/dist/generated/models/update-order.d.ts +6 -0
- package/dist/generated/models/update-order.d.ts.map +1 -1
- package/dist/generated/models/update-order.js +2 -0
- package/dist/generated/models/update-product.d.ts +6 -0
- package/dist/generated/models/update-product.d.ts.map +1 -1
- package/dist/generated/models/update-product.js +2 -0
- package/dist/generated/models/update-subscription-charge.d.ts +8 -8
- package/dist/generated/models/update-subscription-charge.d.ts.map +1 -1
- package/dist/generated/models/update-subscription-charge.js +4 -8
- package/package.deploy.json +8 -4
- package/package.json +8 -4
- package/src/generated/models/create-order.ts +8 -0
- package/src/generated/models/create-product-custom.ts +8 -0
- package/src/generated/models/create-site-custom.ts +16 -0
- package/src/generated/models/create-subscription-charge.ts +6 -9
- package/src/generated/models/journal-entry-entries.ts +18 -0
- package/src/generated/models/journal-entry.ts +40 -0
- package/src/generated/models/order.ts +8 -0
- package/src/generated/models/product-custom.ts +8 -0
- package/src/generated/models/product-type.ts +4 -1
- package/src/generated/models/refund-invoice.ts +8 -0
- package/src/generated/models/site.ts +18 -0
- package/src/generated/models/subscription-charge.ts +6 -9
- package/src/generated/models/update-order.ts +8 -0
- package/src/generated/models/update-product.ts +8 -0
- package/src/generated/models/update-subscription-charge.ts +12 -14
|
@@ -27,12 +27,6 @@ const charge_tier_1 = require("./charge-tier");
|
|
|
27
27
|
function instanceOfSubscriptionCharge(value) {
|
|
28
28
|
if (!('productId' in value) || value['productId'] === undefined)
|
|
29
29
|
return false;
|
|
30
|
-
if (!('planId' in value) || value['planId'] === undefined)
|
|
31
|
-
return false;
|
|
32
|
-
if (!('chargeId' in value) || value['chargeId'] === undefined)
|
|
33
|
-
return false;
|
|
34
|
-
if (!('chargeName' in value) || value['chargeName'] === undefined)
|
|
35
|
-
return false;
|
|
36
30
|
if (!('assetId' in value) || value['assetId'] === undefined)
|
|
37
31
|
return false;
|
|
38
32
|
if (!('discountedCmrr' in value) || value['discountedCmrr'] === undefined)
|
|
@@ -49,10 +43,10 @@ function SubscriptionChargeFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
49
43
|
return {
|
|
50
44
|
'productId': json['productId'],
|
|
51
45
|
'productName': json['productName'] == null ? undefined : json['productName'],
|
|
52
|
-
'planId': json['planId'],
|
|
46
|
+
'planId': json['planId'] == null ? undefined : json['planId'],
|
|
53
47
|
'planName': json['planName'] == null ? undefined : json['planName'],
|
|
54
|
-
'chargeId': json['chargeId'],
|
|
55
|
-
'chargeName': json['chargeName'],
|
|
48
|
+
'chargeId': json['chargeId'] == null ? undefined : json['chargeId'],
|
|
49
|
+
'chargeName': json['chargeName'] == null ? undefined : json['chargeName'],
|
|
56
50
|
'pricingModel': json['pricingModel'] == null ? undefined : json['pricingModel'],
|
|
57
51
|
'listPrice': json['listPrice'] == null ? undefined : json['listPrice'],
|
|
58
52
|
'priceBase': json['priceBase'] == null ? undefined : json['priceBase'],
|
|
@@ -137,6 +137,12 @@ export interface UpdateOrder {
|
|
|
137
137
|
* @memberof UpdateOrder
|
|
138
138
|
*/
|
|
139
139
|
orderType: OrderType;
|
|
140
|
+
/**
|
|
141
|
+
* Idempotency key to prevent duplicate orders on retry
|
|
142
|
+
* @type {string}
|
|
143
|
+
* @memberof UpdateOrder
|
|
144
|
+
*/
|
|
145
|
+
idempotencyKey?: string;
|
|
140
146
|
}
|
|
141
147
|
/**
|
|
142
148
|
* Check if a given object implements the UpdateOrder interface.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-order.d.ts","sourceRoot":"","sources":["../../../src/generated/models/update-order.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAO9C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAQvD;;;;GAIG;AACH,MAAM,WAAW,WAAW;IACxB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,SAAS,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC;IAChC;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;;OAIG;IACH,SAAS,EAAE,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"update-order.d.ts","sourceRoot":"","sources":["../../../src/generated/models/update-order.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAO9C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAQvD;;;;GAIG;AACH,MAAM,WAAW,WAAW;IACxB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,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B,iBAAiB,CAAC,IAAI,EAAE,GAAG,GAAG,WAAW,CAExD;AAED,wBAAgB,sBAAsB,CAAC,KAAK,CAAC,EAAE,WAAW,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CA6B5G"}
|
|
@@ -69,6 +69,7 @@ function UpdateOrderFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
69
69
|
'assetId': json['assetId'] == null ? undefined : json['assetId'],
|
|
70
70
|
'subscriptionId': json['subscriptionId'] == null ? undefined : json['subscriptionId'],
|
|
71
71
|
'orderType': (0, order_type_1.OrderTypeFromJSON)(json['orderType']),
|
|
72
|
+
'idempotencyKey': json['idempotencyKey'] == null ? undefined : json['idempotencyKey'],
|
|
72
73
|
};
|
|
73
74
|
}
|
|
74
75
|
function UpdateOrderToJSON(json) {
|
|
@@ -99,5 +100,6 @@ function UpdateOrderToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
99
100
|
'assetId': value['assetId'],
|
|
100
101
|
'subscriptionId': value['subscriptionId'],
|
|
101
102
|
'orderType': (0, order_type_1.OrderTypeToJSON)(value['orderType']),
|
|
103
|
+
'idempotencyKey': value['idempotencyKey'],
|
|
102
104
|
};
|
|
103
105
|
}
|
|
@@ -101,6 +101,12 @@ export interface UpdateProduct {
|
|
|
101
101
|
* @memberof UpdateProduct
|
|
102
102
|
*/
|
|
103
103
|
oneTimeCharge: boolean;
|
|
104
|
+
/**
|
|
105
|
+
* Product ID to use when writing off this product's charge
|
|
106
|
+
* @type {string}
|
|
107
|
+
* @memberof UpdateProduct
|
|
108
|
+
*/
|
|
109
|
+
writeOffProductId?: string;
|
|
104
110
|
}
|
|
105
111
|
/**
|
|
106
112
|
* Check if a given object implements the UpdateProduct interface.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-product.d.ts","sourceRoot":"","sources":["../../../src/generated/models/update-product.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AAO/E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAQlD;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC1B;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;;OAIG;IACH,WAAW,EAAE,WAAW,CAAC;IACzB;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,oBAAoB,EAAE,MAAM,CAAC;IAC7B;;;;OAIG;IACH,yBAAyB,EAAE,KAAK,CAAC,yBAAyB,CAAC,CAAC;IAC5D;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;;OAIG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B;;;;OAIG;IACH,aAAa,EAAE,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"update-product.d.ts","sourceRoot":"","sources":["../../../src/generated/models/update-product.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AAO/E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAQlD;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC1B;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;;OAIG;IACH,WAAW,EAAE,WAAW,CAAC;IACzB;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,oBAAoB,EAAE,MAAM,CAAC;IAC7B;;;;OAIG;IACH,yBAAyB,EAAE,KAAK,CAAC,yBAAyB,CAAC,CAAC;IAC5D;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;;OAIG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B;;;;OAIG;IACH,aAAa,EAAE,OAAO,CAAC;IACvB;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC9B;AAID;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,aAAa,CAS7E;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,GAAG,GAAG,aAAa,CAE9D;AAED,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,aAAa,CAsBjG;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,GAAG,GAAG,aAAa,CAE5D;AAED,wBAAgB,wBAAwB,CAAC,KAAK,CAAC,EAAE,aAAa,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAuBhH"}
|
|
@@ -63,6 +63,7 @@ function UpdateProductFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
63
63
|
'incomeAccount': json['incomeAccount'] == null ? undefined : json['incomeAccount'],
|
|
64
64
|
'productTaxGroupName': json['productTaxGroupName'] == null ? undefined : json['productTaxGroupName'],
|
|
65
65
|
'oneTimeCharge': json['oneTimeCharge'],
|
|
66
|
+
'writeOffProductId': json['writeOffProductId'] == null ? undefined : json['writeOffProductId'],
|
|
66
67
|
};
|
|
67
68
|
}
|
|
68
69
|
function UpdateProductToJSON(json) {
|
|
@@ -87,5 +88,6 @@ function UpdateProductToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
87
88
|
'incomeAccount': value['incomeAccount'],
|
|
88
89
|
'productTaxGroupName': value['productTaxGroupName'],
|
|
89
90
|
'oneTimeCharge': value['oneTimeCharge'],
|
|
91
|
+
'writeOffProductId': value['writeOffProductId'],
|
|
90
92
|
};
|
|
91
93
|
}
|
|
@@ -34,19 +34,25 @@ export interface UpdateSubscriptionCharge {
|
|
|
34
34
|
* @type {string}
|
|
35
35
|
* @memberof UpdateSubscriptionCharge
|
|
36
36
|
*/
|
|
37
|
-
planId
|
|
37
|
+
planId?: string;
|
|
38
38
|
/**
|
|
39
39
|
* Name of plan
|
|
40
40
|
* @type {string}
|
|
41
41
|
* @memberof UpdateSubscriptionCharge
|
|
42
42
|
*/
|
|
43
43
|
planName?: string;
|
|
44
|
+
/**
|
|
45
|
+
* Charge ID
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof UpdateSubscriptionCharge
|
|
48
|
+
*/
|
|
49
|
+
chargeId?: string;
|
|
44
50
|
/**
|
|
45
51
|
* Name of charge
|
|
46
52
|
* @type {string}
|
|
47
53
|
* @memberof UpdateSubscriptionCharge
|
|
48
54
|
*/
|
|
49
|
-
chargeName
|
|
55
|
+
chargeName?: string;
|
|
50
56
|
/**
|
|
51
57
|
* How charge will be priced
|
|
52
58
|
* @type {string}
|
|
@@ -269,12 +275,6 @@ export interface UpdateSubscriptionCharge {
|
|
|
269
275
|
* @memberof UpdateSubscriptionCharge
|
|
270
276
|
*/
|
|
271
277
|
customRecognitionEndDate?: string;
|
|
272
|
-
/**
|
|
273
|
-
* Charge ID
|
|
274
|
-
* @type {string}
|
|
275
|
-
* @memberof UpdateSubscriptionCharge
|
|
276
|
-
*/
|
|
277
|
-
chargeId?: string;
|
|
278
278
|
/**
|
|
279
279
|
* Asset ID
|
|
280
280
|
* @type {string}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-subscription-charge.d.ts","sourceRoot":"","sources":["../../../src/generated/models/update-subscription-charge.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AAO/E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAQhD;;;;GAIG;AACH,MAAM,WAAW,wBAAwB;IACrC;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"update-subscription-charge.d.ts","sourceRoot":"","sources":["../../../src/generated/models/update-subscription-charge.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AAO/E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAQhD;;;;GAIG;AACH,MAAM,WAAW,wBAAwB;IACrC;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IAC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scriptionCharge(value) {
|
|
28
28
|
if (!('productId' in value) || value['productId'] === undefined)
|
|
29
29
|
return false;
|
|
30
|
-
if (!('planId' in value) || value['planId'] === undefined)
|
|
31
|
-
return false;
|
|
32
|
-
if (!('chargeName' in value) || value['chargeName'] === undefined)
|
|
33
|
-
return false;
|
|
34
30
|
return true;
|
|
35
31
|
}
|
|
36
32
|
function UpdateSubscriptionChargeFromJSON(json) {
|
|
@@ -43,9 +39,10 @@ function UpdateSubscriptionChargeFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
43
39
|
return {
|
|
44
40
|
'productId': json['productId'],
|
|
45
41
|
'productName': json['productName'] == null ? undefined : json['productName'],
|
|
46
|
-
'planId': json['planId'],
|
|
42
|
+
'planId': json['planId'] == null ? undefined : json['planId'],
|
|
47
43
|
'planName': json['planName'] == null ? undefined : json['planName'],
|
|
48
|
-
'
|
|
44
|
+
'chargeId': json['chargeId'] == null ? undefined : json['chargeId'],
|
|
45
|
+
'chargeName': json['chargeName'] == null ? undefined : json['chargeName'],
|
|
49
46
|
'pricingModel': json['pricingModel'] == null ? undefined : json['pricingModel'],
|
|
50
47
|
'listPrice': json['listPrice'] == null ? undefined : json['listPrice'],
|
|
51
48
|
'priceBase': json['priceBase'] == null ? undefined : json['priceBase'],
|
|
@@ -83,7 +80,6 @@ function UpdateSubscriptionChargeFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
83
80
|
'recognitionStartDate': json['recognitionStartDate'] == null ? undefined : json['recognitionStartDate'],
|
|
84
81
|
'customRecognitionStartDate': json['customRecognitionStartDate'] == null ? undefined : json['customRecognitionStartDate'],
|
|
85
82
|
'customRecognitionEndDate': json['customRecognitionEndDate'] == null ? undefined : json['customRecognitionEndDate'],
|
|
86
|
-
'chargeId': json['chargeId'] == null ? undefined : json['chargeId'],
|
|
87
83
|
'assetId': json['assetId'] == null ? undefined : json['assetId'],
|
|
88
84
|
'transactionPostingEntries': json['transactionPostingEntries'] == null ? undefined : (json['transactionPostingEntries'].map(transaction_posting_entries_1.TransactionPostingEntriesFromJSON)),
|
|
89
85
|
};
|
|
@@ -100,6 +96,7 @@ function UpdateSubscriptionChargeToJSONTyped(value, ignoreDiscriminator = false)
|
|
|
100
96
|
'productName': value['productName'],
|
|
101
97
|
'planId': value['planId'],
|
|
102
98
|
'planName': value['planName'],
|
|
99
|
+
'chargeId': value['chargeId'],
|
|
103
100
|
'chargeName': value['chargeName'],
|
|
104
101
|
'pricingModel': value['pricingModel'],
|
|
105
102
|
'listPrice': value['listPrice'],
|
|
@@ -138,7 +135,6 @@ function UpdateSubscriptionChargeToJSONTyped(value, ignoreDiscriminator = false)
|
|
|
138
135
|
'recognitionStartDate': value['recognitionStartDate'],
|
|
139
136
|
'customRecognitionStartDate': value['customRecognitionStartDate'],
|
|
140
137
|
'customRecognitionEndDate': value['customRecognitionEndDate'],
|
|
141
|
-
'chargeId': value['chargeId'],
|
|
142
138
|
'assetId': value['assetId'],
|
|
143
139
|
'transactionPostingEntries': value['transactionPostingEntries'] == null ? undefined : (value['transactionPostingEntries'].map(transaction_posting_entries_1.TransactionPostingEntriesToJSON)),
|
|
144
140
|
};
|
package/package.deploy.json
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@managespace/sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.175-documents",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"dev": "tsc -w --preserveWatchOutput",
|
|
6
6
|
"build": "tsc",
|
|
7
7
|
"lint:check": "eslint .",
|
|
8
8
|
"lint:fix": "eslint --fix .",
|
|
9
9
|
"lint:fix:cache": "eslint --fix .",
|
|
10
|
-
"upload": "tsc && npm publish"
|
|
10
|
+
"upload": "tsc && npm publish",
|
|
11
|
+
"upload:beta": "tsc && npm publish --tag documents"
|
|
11
12
|
},
|
|
12
13
|
"main": "./dist/index.js",
|
|
13
14
|
"types": "./dist/index.d.ts",
|
|
@@ -29,5 +30,8 @@
|
|
|
29
30
|
"typescript": "~5.4.2",
|
|
30
31
|
"@repo/eslint-config": "*",
|
|
31
32
|
"@repo/typescript-config": "*"
|
|
32
|
-
}
|
|
33
|
-
|
|
33
|
+
},
|
|
34
|
+
"tags": [
|
|
35
|
+
"beta"
|
|
36
|
+
]
|
|
37
|
+
}
|
package/package.json
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@managespace/sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.188-gl",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"dev": "tsc -w --preserveWatchOutput",
|
|
6
6
|
"build": "tsc",
|
|
7
7
|
"lint:check": "eslint .",
|
|
8
8
|
"lint:fix": "eslint --fix .",
|
|
9
9
|
"lint:fix:cache": "eslint --fix .",
|
|
10
|
-
"upload": "tsc && npm publish"
|
|
10
|
+
"upload": "tsc && npm publish",
|
|
11
|
+
"upload:beta": "tsc && npm publish --tag documents"
|
|
11
12
|
},
|
|
12
13
|
"main": "./dist/index.js",
|
|
13
14
|
"types": "./dist/index.d.ts",
|
|
@@ -29,5 +30,8 @@
|
|
|
29
30
|
"typescript": "~5.4.2",
|
|
30
31
|
"@repo/eslint-config": "*",
|
|
31
32
|
"@repo/typescript-config": "*"
|
|
32
|
-
}
|
|
33
|
-
|
|
33
|
+
},
|
|
34
|
+
"tags": [
|
|
35
|
+
"beta"
|
|
36
|
+
]
|
|
37
|
+
}
|
|
@@ -155,6 +155,12 @@ export interface CreateOrder {
|
|
|
155
155
|
* @memberof CreateOrder
|
|
156
156
|
*/
|
|
157
157
|
orderType: OrderType;
|
|
158
|
+
/**
|
|
159
|
+
* Idempotency key to prevent duplicate orders on retry
|
|
160
|
+
* @type {string}
|
|
161
|
+
* @memberof CreateOrder
|
|
162
|
+
*/
|
|
163
|
+
idempotencyKey?: string;
|
|
158
164
|
}
|
|
159
165
|
|
|
160
166
|
|
|
@@ -203,6 +209,7 @@ export function CreateOrderFromJSONTyped(json: any, ignoreDiscriminator: boolean
|
|
|
203
209
|
'assetId': json['assetId'] == null ? undefined : json['assetId'],
|
|
204
210
|
'subscriptionId': json['subscriptionId'] == null ? undefined : json['subscriptionId'],
|
|
205
211
|
'orderType': OrderTypeFromJSON(json['orderType']),
|
|
212
|
+
'idempotencyKey': json['idempotencyKey'] == null ? undefined : json['idempotencyKey'],
|
|
206
213
|
};
|
|
207
214
|
}
|
|
208
215
|
|
|
@@ -237,6 +244,7 @@ export function CreateOrderToJSONTyped(value?: CreateOrder | null, ignoreDiscrim
|
|
|
237
244
|
'assetId': value['assetId'],
|
|
238
245
|
'subscriptionId': value['subscriptionId'],
|
|
239
246
|
'orderType': OrderTypeToJSON(value['orderType']),
|
|
247
|
+
'idempotencyKey': value['idempotencyKey'],
|
|
240
248
|
};
|
|
241
249
|
}
|
|
242
250
|
|
|
@@ -119,6 +119,12 @@ export interface CreateProductCustom {
|
|
|
119
119
|
* @memberof CreateProductCustom
|
|
120
120
|
*/
|
|
121
121
|
oneTimeCharge: boolean;
|
|
122
|
+
/**
|
|
123
|
+
* Product ID to use when writing off this product's charge
|
|
124
|
+
* @type {string}
|
|
125
|
+
* @memberof CreateProductCustom
|
|
126
|
+
*/
|
|
127
|
+
writeOffProductId?: string;
|
|
122
128
|
}
|
|
123
129
|
|
|
124
130
|
|
|
@@ -161,6 +167,7 @@ export function CreateProductCustomFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
161
167
|
'incomeAccount': json['incomeAccount'] == null ? undefined : json['incomeAccount'],
|
|
162
168
|
'productTaxGroupName': json['productTaxGroupName'] == null ? undefined : json['productTaxGroupName'],
|
|
163
169
|
'oneTimeCharge': json['oneTimeCharge'],
|
|
170
|
+
'writeOffProductId': json['writeOffProductId'] == null ? undefined : json['writeOffProductId'],
|
|
164
171
|
};
|
|
165
172
|
}
|
|
166
173
|
|
|
@@ -189,6 +196,7 @@ export function CreateProductCustomToJSONTyped(value?: CreateProductCustom | nul
|
|
|
189
196
|
'incomeAccount': value['incomeAccount'],
|
|
190
197
|
'productTaxGroupName': value['productTaxGroupName'],
|
|
191
198
|
'oneTimeCharge': value['oneTimeCharge'],
|
|
199
|
+
'writeOffProductId': value['writeOffProductId'],
|
|
192
200
|
};
|
|
193
201
|
}
|
|
194
202
|
|
|
@@ -64,6 +64,18 @@ export interface CreateSiteCustom {
|
|
|
64
64
|
* @memberof CreateSiteCustom
|
|
65
65
|
*/
|
|
66
66
|
division?: string | null;
|
|
67
|
+
/**
|
|
68
|
+
* Merchant identifier for payment processing
|
|
69
|
+
* @type {string}
|
|
70
|
+
* @memberof CreateSiteCustom
|
|
71
|
+
*/
|
|
72
|
+
merchantId?: string | null;
|
|
73
|
+
/**
|
|
74
|
+
* Account number for payment processing
|
|
75
|
+
* @type {string}
|
|
76
|
+
* @memberof CreateSiteCustom
|
|
77
|
+
*/
|
|
78
|
+
accountNumber?: string | null;
|
|
67
79
|
/**
|
|
68
80
|
* Site address.
|
|
69
81
|
* @type {CreateAddress}
|
|
@@ -100,6 +112,8 @@ export function CreateSiteCustomFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
100
112
|
'phoneNumber': json['phoneNumber'],
|
|
101
113
|
'siteCode': json['siteCode'] == null ? undefined : json['siteCode'],
|
|
102
114
|
'division': json['division'] == null ? undefined : json['division'],
|
|
115
|
+
'merchantId': json['merchantId'] == null ? undefined : json['merchantId'],
|
|
116
|
+
'accountNumber': json['accountNumber'] == null ? undefined : json['accountNumber'],
|
|
103
117
|
'address': CreateAddressFromJSON(json['address']),
|
|
104
118
|
};
|
|
105
119
|
}
|
|
@@ -121,6 +135,8 @@ export function CreateSiteCustomToJSONTyped(value?: CreateSiteCustom | null, ign
|
|
|
121
135
|
'phoneNumber': value['phoneNumber'],
|
|
122
136
|
'siteCode': value['siteCode'],
|
|
123
137
|
'division': value['division'],
|
|
138
|
+
'merchantId': value['merchantId'],
|
|
139
|
+
'accountNumber': value['accountNumber'],
|
|
124
140
|
'address': CreateAddressToJSON(value['address']),
|
|
125
141
|
};
|
|
126
142
|
}
|
|
@@ -52,7 +52,7 @@ export interface CreateSubscriptionCharge {
|
|
|
52
52
|
* @type {string}
|
|
53
53
|
* @memberof CreateSubscriptionCharge
|
|
54
54
|
*/
|
|
55
|
-
planId
|
|
55
|
+
planId?: string;
|
|
56
56
|
/**
|
|
57
57
|
* Name of plan
|
|
58
58
|
* @type {string}
|
|
@@ -64,13 +64,13 @@ export interface CreateSubscriptionCharge {
|
|
|
64
64
|
* @type {string}
|
|
65
65
|
* @memberof CreateSubscriptionCharge
|
|
66
66
|
*/
|
|
67
|
-
chargeId
|
|
67
|
+
chargeId?: string;
|
|
68
68
|
/**
|
|
69
69
|
* Name of charge
|
|
70
70
|
* @type {string}
|
|
71
71
|
* @memberof CreateSubscriptionCharge
|
|
72
72
|
*/
|
|
73
|
-
chargeName
|
|
73
|
+
chargeName?: string;
|
|
74
74
|
/**
|
|
75
75
|
* How charge will be priced
|
|
76
76
|
* @type {string}
|
|
@@ -312,9 +312,6 @@ export interface CreateSubscriptionCharge {
|
|
|
312
312
|
*/
|
|
313
313
|
export function instanceOfCreateSubscriptionCharge(value: object): value is CreateSubscriptionCharge {
|
|
314
314
|
if (!('productId' in value) || value['productId'] === undefined) return false;
|
|
315
|
-
if (!('planId' in value) || value['planId'] === undefined) return false;
|
|
316
|
-
if (!('chargeId' in value) || value['chargeId'] === undefined) return false;
|
|
317
|
-
if (!('chargeName' in value) || value['chargeName'] === undefined) return false;
|
|
318
315
|
if (!('assetId' in value) || value['assetId'] === undefined) return false;
|
|
319
316
|
return true;
|
|
320
317
|
}
|
|
@@ -331,10 +328,10 @@ export function CreateSubscriptionChargeFromJSONTyped(json: any, ignoreDiscrimin
|
|
|
331
328
|
|
|
332
329
|
'productId': json['productId'],
|
|
333
330
|
'productName': json['productName'] == null ? undefined : json['productName'],
|
|
334
|
-
'planId': json['planId'],
|
|
331
|
+
'planId': json['planId'] == null ? undefined : json['planId'],
|
|
335
332
|
'planName': json['planName'] == null ? undefined : json['planName'],
|
|
336
|
-
'chargeId': json['chargeId'],
|
|
337
|
-
'chargeName': json['chargeName'],
|
|
333
|
+
'chargeId': json['chargeId'] == null ? undefined : json['chargeId'],
|
|
334
|
+
'chargeName': json['chargeName'] == null ? undefined : json['chargeName'],
|
|
338
335
|
'pricingModel': json['pricingModel'] == null ? undefined : json['pricingModel'],
|
|
339
336
|
'listPrice': json['listPrice'] == null ? undefined : json['listPrice'],
|
|
340
337
|
'priceBase': json['priceBase'] == null ? undefined : json['priceBase'],
|
|
@@ -56,6 +56,18 @@ export interface JournalEntryEntries {
|
|
|
56
56
|
* @memberof JournalEntryEntries
|
|
57
57
|
*/
|
|
58
58
|
customerId: string;
|
|
59
|
+
/**
|
|
60
|
+
* Customer name associated with journal entry line
|
|
61
|
+
* @type {string}
|
|
62
|
+
* @memberof JournalEntryEntries
|
|
63
|
+
*/
|
|
64
|
+
customerName: string;
|
|
65
|
+
/**
|
|
66
|
+
* Custom fields on the journal entry line
|
|
67
|
+
* @type {object}
|
|
68
|
+
* @memberof JournalEntryEntries
|
|
69
|
+
*/
|
|
70
|
+
customFields: object;
|
|
59
71
|
}
|
|
60
72
|
|
|
61
73
|
/**
|
|
@@ -68,6 +80,8 @@ export function instanceOfJournalEntryEntries(value: object): value is JournalEn
|
|
|
68
80
|
if (!('credit' in value) || value['credit'] === undefined) return false;
|
|
69
81
|
if (!('description' in value) || value['description'] === undefined) return false;
|
|
70
82
|
if (!('customerId' in value) || value['customerId'] === undefined) return false;
|
|
83
|
+
if (!('customerName' in value) || value['customerName'] === undefined) return false;
|
|
84
|
+
if (!('customFields' in value) || value['customFields'] === undefined) return false;
|
|
71
85
|
return true;
|
|
72
86
|
}
|
|
73
87
|
|
|
@@ -87,6 +101,8 @@ export function JournalEntryEntriesFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
87
101
|
'credit': json['credit'],
|
|
88
102
|
'description': json['description'],
|
|
89
103
|
'customerId': json['customerId'],
|
|
104
|
+
'customerName': json['customerName'],
|
|
105
|
+
'customFields': json['customFields'],
|
|
90
106
|
};
|
|
91
107
|
}
|
|
92
108
|
|
|
@@ -107,6 +123,8 @@ export function JournalEntryEntriesToJSONTyped(value?: JournalEntryEntries | nul
|
|
|
107
123
|
'credit': value['credit'],
|
|
108
124
|
'description': value['description'],
|
|
109
125
|
'customerId': value['customerId'],
|
|
126
|
+
'customerName': value['customerName'],
|
|
127
|
+
'customFields': value['customFields'],
|
|
110
128
|
};
|
|
111
129
|
}
|
|
112
130
|
|
|
@@ -58,6 +58,24 @@ export interface JournalEntry {
|
|
|
58
58
|
* @memberof JournalEntry
|
|
59
59
|
*/
|
|
60
60
|
description: string;
|
|
61
|
+
/**
|
|
62
|
+
* The object that produced this journal entry. Used to join back to the source transaction (Invoice, Credit, Payment, Refund)
|
|
63
|
+
* @type {string}
|
|
64
|
+
* @memberof JournalEntry
|
|
65
|
+
*/
|
|
66
|
+
sourceType: JournalEntrySourceType;
|
|
67
|
+
/**
|
|
68
|
+
* Identifier of the object that produced this journal entry (e.g. INV-54921, CR-01287, PMT-13031, REF-00246).
|
|
69
|
+
* @type {string}
|
|
70
|
+
* @memberof JournalEntry
|
|
71
|
+
*/
|
|
72
|
+
sourceId: string;
|
|
73
|
+
/**
|
|
74
|
+
* Total transaction amount for the journal entry in the transaction currency
|
|
75
|
+
* @type {string}
|
|
76
|
+
* @memberof JournalEntry
|
|
77
|
+
*/
|
|
78
|
+
transactionAmount: string;
|
|
61
79
|
/**
|
|
62
80
|
* Journal entries
|
|
63
81
|
* @type {Array<JournalEntryEntries>}
|
|
@@ -108,6 +126,19 @@ export interface JournalEntry {
|
|
|
108
126
|
transactionConversionRate: number;
|
|
109
127
|
}
|
|
110
128
|
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* @export
|
|
132
|
+
*/
|
|
133
|
+
export const JournalEntrySourceType = {
|
|
134
|
+
Invoice: 'Invoice',
|
|
135
|
+
Credit: 'Credit',
|
|
136
|
+
Payment: 'Payment',
|
|
137
|
+
Refund: 'Refund'
|
|
138
|
+
} as const;
|
|
139
|
+
export type JournalEntrySourceType = typeof JournalEntrySourceType[keyof typeof JournalEntrySourceType];
|
|
140
|
+
|
|
141
|
+
|
|
111
142
|
/**
|
|
112
143
|
* Check if a given object implements the JournalEntry interface.
|
|
113
144
|
*/
|
|
@@ -117,6 +148,9 @@ export function instanceOfJournalEntry(value: object): value is JournalEntry {
|
|
|
117
148
|
if (!('customerId' in value) || value['customerId'] === undefined) return false;
|
|
118
149
|
if (!('customerName' in value) || value['customerName'] === undefined) return false;
|
|
119
150
|
if (!('description' in value) || value['description'] === undefined) return false;
|
|
151
|
+
if (!('sourceType' in value) || value['sourceType'] === undefined) return false;
|
|
152
|
+
if (!('sourceId' in value) || value['sourceId'] === undefined) return false;
|
|
153
|
+
if (!('transactionAmount' in value) || value['transactionAmount'] === undefined) return false;
|
|
120
154
|
if (!('entries' in value) || value['entries'] === undefined) return false;
|
|
121
155
|
if (!('customFields' in value) || value['customFields'] === undefined) return false;
|
|
122
156
|
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
@@ -143,6 +177,9 @@ export function JournalEntryFromJSONTyped(json: any, ignoreDiscriminator: boolea
|
|
|
143
177
|
'customerId': json['customerId'],
|
|
144
178
|
'customerName': json['customerName'],
|
|
145
179
|
'description': json['description'],
|
|
180
|
+
'sourceType': json['sourceType'],
|
|
181
|
+
'sourceId': json['sourceId'],
|
|
182
|
+
'transactionAmount': json['transactionAmount'],
|
|
146
183
|
'entries': ((json['entries'] as Array<any>).map(JournalEntryEntriesFromJSON)),
|
|
147
184
|
'customFields': json['customFields'],
|
|
148
185
|
'createdAt': json['createdAt'],
|
|
@@ -170,6 +207,9 @@ export function JournalEntryToJSONTyped(value?: JournalEntry | null, ignoreDiscr
|
|
|
170
207
|
'customerId': value['customerId'],
|
|
171
208
|
'customerName': value['customerName'],
|
|
172
209
|
'description': value['description'],
|
|
210
|
+
'sourceType': value['sourceType'],
|
|
211
|
+
'sourceId': value['sourceId'],
|
|
212
|
+
'transactionAmount': value['transactionAmount'],
|
|
173
213
|
'entries': ((value['entries'] as Array<any>).map(JournalEntryEntriesToJSON)),
|
|
174
214
|
'customFields': value['customFields'],
|
|
175
215
|
'createdAt': value['createdAt'],
|
|
@@ -155,6 +155,12 @@ export interface Order {
|
|
|
155
155
|
* @memberof Order
|
|
156
156
|
*/
|
|
157
157
|
orderType: OrderType;
|
|
158
|
+
/**
|
|
159
|
+
* Idempotency key to prevent duplicate orders on retry
|
|
160
|
+
* @type {string}
|
|
161
|
+
* @memberof Order
|
|
162
|
+
*/
|
|
163
|
+
idempotencyKey?: string;
|
|
158
164
|
/**
|
|
159
165
|
* Order ID
|
|
160
166
|
* @type {string}
|
|
@@ -230,6 +236,7 @@ export function OrderFromJSONTyped(json: any, ignoreDiscriminator: boolean): Ord
|
|
|
230
236
|
'assetId': json['assetId'] == null ? undefined : json['assetId'],
|
|
231
237
|
'subscriptionId': json['subscriptionId'] == null ? undefined : json['subscriptionId'],
|
|
232
238
|
'orderType': OrderTypeFromJSON(json['orderType']),
|
|
239
|
+
'idempotencyKey': json['idempotencyKey'] == null ? undefined : json['idempotencyKey'],
|
|
233
240
|
'id': json['id'],
|
|
234
241
|
'customerName': json['customerName'],
|
|
235
242
|
'separateInvoice': json['separateInvoice'],
|
|
@@ -268,6 +275,7 @@ export function OrderToJSONTyped(value?: Order | null, ignoreDiscriminator: bool
|
|
|
268
275
|
'assetId': value['assetId'],
|
|
269
276
|
'subscriptionId': value['subscriptionId'],
|
|
270
277
|
'orderType': OrderTypeToJSON(value['orderType']),
|
|
278
|
+
'idempotencyKey': value['idempotencyKey'],
|
|
271
279
|
'id': value['id'],
|
|
272
280
|
'customerName': value['customerName'],
|
|
273
281
|
'separateInvoice': value['separateInvoice'],
|
|
@@ -119,6 +119,12 @@ export interface ProductCustom {
|
|
|
119
119
|
* @memberof ProductCustom
|
|
120
120
|
*/
|
|
121
121
|
oneTimeCharge: boolean;
|
|
122
|
+
/**
|
|
123
|
+
* Product ID to use when writing off this product's charge
|
|
124
|
+
* @type {string}
|
|
125
|
+
* @memberof ProductCustom
|
|
126
|
+
*/
|
|
127
|
+
writeOffProductId?: string;
|
|
122
128
|
/**
|
|
123
129
|
* Product ID
|
|
124
130
|
* @type {string}
|
|
@@ -175,6 +181,7 @@ export function ProductCustomFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
175
181
|
'incomeAccount': json['incomeAccount'] == null ? undefined : json['incomeAccount'],
|
|
176
182
|
'productTaxGroupName': json['productTaxGroupName'] == null ? undefined : json['productTaxGroupName'],
|
|
177
183
|
'oneTimeCharge': json['oneTimeCharge'],
|
|
184
|
+
'writeOffProductId': json['writeOffProductId'] == null ? undefined : json['writeOffProductId'],
|
|
178
185
|
'id': json['id'],
|
|
179
186
|
'msExternalId': json['msExternalId'],
|
|
180
187
|
};
|
|
@@ -205,6 +212,7 @@ export function ProductCustomToJSONTyped(value?: ProductCustom | null, ignoreDis
|
|
|
205
212
|
'incomeAccount': value['incomeAccount'],
|
|
206
213
|
'productTaxGroupName': value['productTaxGroupName'],
|
|
207
214
|
'oneTimeCharge': value['oneTimeCharge'],
|
|
215
|
+
'writeOffProductId': value['writeOffProductId'],
|
|
208
216
|
'id': value['id'],
|
|
209
217
|
'msExternalId': value['msExternalId'],
|
|
210
218
|
};
|
|
@@ -24,7 +24,10 @@ export const ProductType = {
|
|
|
24
24
|
RENT_TREATMENT: 'RENT_TREATMENT',
|
|
25
25
|
INSURANCE: 'INSURANCE',
|
|
26
26
|
FEE: 'FEE',
|
|
27
|
-
MERCHANDISE: 'MERCHANDISE'
|
|
27
|
+
MERCHANDISE: 'MERCHANDISE',
|
|
28
|
+
WRITE_OFF: 'WRITE_OFF',
|
|
29
|
+
CREDIT: 'CREDIT',
|
|
30
|
+
DISCOUNT: 'DISCOUNT'
|
|
28
31
|
} as const;
|
|
29
32
|
export type ProductType = typeof ProductType[keyof typeof ProductType];
|
|
30
33
|
|
|
@@ -44,6 +44,12 @@ export interface RefundInvoice {
|
|
|
44
44
|
* @memberof RefundInvoice
|
|
45
45
|
*/
|
|
46
46
|
refundType: string;
|
|
47
|
+
/**
|
|
48
|
+
* Originating payment ID for Electronic refunds on credit invoices
|
|
49
|
+
* @type {string}
|
|
50
|
+
* @memberof RefundInvoice
|
|
51
|
+
*/
|
|
52
|
+
paymentId?: string;
|
|
47
53
|
}
|
|
48
54
|
|
|
49
55
|
/**
|
|
@@ -71,6 +77,7 @@ export function RefundInvoiceFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
71
77
|
'refundDate': json['refundDate'],
|
|
72
78
|
'refundAmount': json['refundAmount'],
|
|
73
79
|
'refundType': json['refundType'],
|
|
80
|
+
'paymentId': json['paymentId'] == null ? undefined : json['paymentId'],
|
|
74
81
|
};
|
|
75
82
|
}
|
|
76
83
|
|
|
@@ -89,6 +96,7 @@ export function RefundInvoiceToJSONTyped(value?: RefundInvoice | null, ignoreDis
|
|
|
89
96
|
'refundDate': value['refundDate'],
|
|
90
97
|
'refundAmount': value['refundAmount'],
|
|
91
98
|
'refundType': value['refundType'],
|
|
99
|
+
'paymentId': value['paymentId'],
|
|
92
100
|
};
|
|
93
101
|
}
|
|
94
102
|
|