@digital8/lighting-illusions-ts-sdk 0.0.1951 → 0.0.1952
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/.openapi-generator/FILES +26 -0
- package/README.md +17 -2
- package/dist/apis/TransactionsApi.d.ts +69 -0
- package/dist/apis/TransactionsApi.js +262 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/models/AddressFrontendResource.d.ts +1 -1
- package/dist/models/AddressFrontendResource.js +3 -1
- package/dist/models/AddressResource.d.ts +2 -2
- package/dist/models/AddressResource.js +6 -2
- package/dist/models/IndexTransactionRequest.d.ts +127 -0
- package/dist/models/IndexTransactionRequest.js +91 -0
- package/dist/models/OrderListResource.d.ts +7 -0
- package/dist/models/OrderListResource.js +5 -0
- package/dist/models/PaginatedTransactionResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedTransactionResourceResponse.js +57 -0
- package/dist/models/PaymentMethod.d.ts +30 -0
- package/dist/models/PaymentMethod.js +56 -0
- package/dist/models/PaymentSource.d.ts +26 -0
- package/dist/models/PaymentSource.js +52 -0
- package/dist/models/PaymentStatus.d.ts +25 -0
- package/dist/models/PaymentStatus.js +51 -0
- package/dist/models/RefundTransactionRequest.d.ts +38 -0
- package/dist/models/RefundTransactionRequest.js +53 -0
- package/dist/models/StoreListResource.d.ts +1 -1
- package/dist/models/StoreListResource.js +1 -3
- package/dist/models/StoreTransactionRequest.d.ts +81 -0
- package/dist/models/StoreTransactionRequest.js +78 -0
- package/dist/models/TransactionLiteResource.d.ts +74 -0
- package/dist/models/TransactionLiteResource.js +77 -0
- package/dist/models/TransactionLiteResourceArrayResponse.d.ts +33 -0
- package/dist/models/TransactionLiteResourceArrayResponse.js +50 -0
- package/dist/models/TransactionResource.d.ts +128 -0
- package/dist/models/TransactionResource.js +101 -0
- package/dist/models/TransactionResourceArrayResponse.d.ts +33 -0
- package/dist/models/TransactionResourceArrayResponse.js +50 -0
- package/dist/models/TransactionType.d.ts +25 -0
- package/dist/models/TransactionType.js +51 -0
- package/dist/models/UpdateOrderRequestBillingAddress.d.ts +6 -0
- package/dist/models/UpdateOrderRequestBillingAddress.js +2 -0
- package/dist/models/UpdateOrderRequestShippingAddress.d.ts +7 -1
- package/dist/models/UpdateOrderRequestShippingAddress.js +5 -1
- package/dist/models/index.d.ts +12 -0
- package/dist/models/index.js +12 -0
- package/docs/IndexTransactionRequest.md +60 -0
- package/docs/OrderListResource.md +2 -0
- package/docs/PaginatedTransactionResourceResponse.md +36 -0
- package/docs/PaymentMethod.md +32 -0
- package/docs/PaymentSource.md +32 -0
- package/docs/PaymentStatus.md +32 -0
- package/docs/RefundTransactionRequest.md +36 -0
- package/docs/StoreTransactionRequest.md +46 -0
- package/docs/TransactionLiteResource.md +48 -0
- package/docs/TransactionLiteResourceArrayResponse.md +34 -0
- package/docs/TransactionResource.md +66 -0
- package/docs/TransactionResourceArrayResponse.md +34 -0
- package/docs/TransactionType.md +32 -0
- package/docs/TransactionsApi.md +209 -0
- package/docs/UpdateOrderRequestBillingAddress.md +2 -0
- package/docs/UpdateOrderRequestShippingAddress.md +2 -0
- package/package.json +1 -1
- package/src/apis/TransactionsApi.ts +193 -0
- package/src/apis/index.ts +1 -0
- package/src/models/AddressFrontendResource.ts +3 -2
- package/src/models/AddressResource.ts +6 -4
- package/src/models/IndexTransactionRequest.ts +190 -0
- package/src/models/OrderListResource.ts +16 -0
- package/src/models/PaginatedTransactionResourceResponse.ts +90 -0
- package/src/models/PaymentMethod.ts +58 -0
- package/src/models/PaymentSource.ts +54 -0
- package/src/models/PaymentStatus.ts +53 -0
- package/src/models/RefundTransactionRequest.ts +74 -0
- package/src/models/StoreListResource.ts +2 -3
- package/src/models/StoreTransactionRequest.ts +131 -0
- package/src/models/TransactionLiteResource.ts +128 -0
- package/src/models/TransactionLiteResourceArrayResponse.ts +73 -0
- package/src/models/TransactionResource.ts +203 -0
- package/src/models/TransactionResourceArrayResponse.ts +73 -0
- package/src/models/TransactionType.ts +53 -0
- package/src/models/UpdateOrderRequestBillingAddress.ts +8 -0
- package/src/models/UpdateOrderRequestShippingAddress.ts +11 -2
- package/src/models/index.ts +12 -0
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* My API
|
|
6
|
+
* API documentation for my Laravel app
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfTransactionResource = instanceOfTransactionResource;
|
|
17
|
+
exports.TransactionResourceFromJSON = TransactionResourceFromJSON;
|
|
18
|
+
exports.TransactionResourceFromJSONTyped = TransactionResourceFromJSONTyped;
|
|
19
|
+
exports.TransactionResourceToJSON = TransactionResourceToJSON;
|
|
20
|
+
exports.TransactionResourceToJSONTyped = TransactionResourceToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the TransactionResource interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfTransactionResource(value) {
|
|
25
|
+
if (!('paymentSource' in value) || value['paymentSource'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('paymentMethod' in value) || value['paymentMethod'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('amount' in value) || value['amount'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('surcharge' in value) || value['surcharge'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('totalAmount' in value) || value['totalAmount'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('refundedAmount' in value) || value['refundedAmount'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
if (!('unrefundedAmount' in value) || value['unrefundedAmount'] === undefined)
|
|
42
|
+
return false;
|
|
43
|
+
if (!('reference' in value) || value['reference'] === undefined)
|
|
44
|
+
return false;
|
|
45
|
+
return true;
|
|
46
|
+
}
|
|
47
|
+
function TransactionResourceFromJSON(json) {
|
|
48
|
+
return TransactionResourceFromJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
function TransactionResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
51
|
+
if (json == null) {
|
|
52
|
+
return json;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
56
|
+
'paymentSource': json['payment_source'],
|
|
57
|
+
'paymentMethod': json['payment_method'],
|
|
58
|
+
'type': json['type'],
|
|
59
|
+
'status': json['status'],
|
|
60
|
+
'amount': json['amount'],
|
|
61
|
+
'surcharge': json['surcharge'],
|
|
62
|
+
'totalAmount': json['total_amount'],
|
|
63
|
+
'refundedAmount': json['refunded_amount'],
|
|
64
|
+
'unrefundedAmount': json['unrefunded_amount'],
|
|
65
|
+
'reference': json['reference'],
|
|
66
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
67
|
+
'extendedData': json['extended_data'] == null ? undefined : json['extended_data'],
|
|
68
|
+
'riskScore': json['risk_score'] == null ? undefined : json['risk_score'],
|
|
69
|
+
'fraudDecision': json['fraud_decision'] == null ? undefined : json['fraud_decision'],
|
|
70
|
+
'refundedTransactionId': json['refunded_transaction_id'] == null ? undefined : json['refunded_transaction_id'],
|
|
71
|
+
'createdAt': json['created_at'] == null ? undefined : (new Date(json['created_at'])),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
function TransactionResourceToJSON(json) {
|
|
75
|
+
return TransactionResourceToJSONTyped(json, false);
|
|
76
|
+
}
|
|
77
|
+
function TransactionResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
78
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
79
|
+
if (value == null) {
|
|
80
|
+
return value;
|
|
81
|
+
}
|
|
82
|
+
return {
|
|
83
|
+
'id': value['id'],
|
|
84
|
+
'payment_source': value['paymentSource'],
|
|
85
|
+
'payment_method': value['paymentMethod'],
|
|
86
|
+
'type': value['type'],
|
|
87
|
+
'status': value['status'],
|
|
88
|
+
'amount': value['amount'],
|
|
89
|
+
'surcharge': value['surcharge'],
|
|
90
|
+
'total_amount': value['totalAmount'],
|
|
91
|
+
'refunded_amount': value['refundedAmount'],
|
|
92
|
+
'unrefunded_amount': value['unrefundedAmount'],
|
|
93
|
+
'reference': value['reference'],
|
|
94
|
+
'description': value['description'],
|
|
95
|
+
'extended_data': value['extendedData'],
|
|
96
|
+
'risk_score': value['riskScore'],
|
|
97
|
+
'fraud_decision': value['fraudDecision'],
|
|
98
|
+
'refunded_transaction_id': value['refundedTransactionId'],
|
|
99
|
+
'created_at': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
|
|
100
|
+
};
|
|
101
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* My API
|
|
3
|
+
* API documentation for my Laravel app
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { TransactionResource } from './TransactionResource';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface TransactionResourceArrayResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface TransactionResourceArrayResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<TransactionResource>}
|
|
22
|
+
* @memberof TransactionResourceArrayResponse
|
|
23
|
+
*/
|
|
24
|
+
data?: Array<TransactionResource>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the TransactionResourceArrayResponse interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfTransactionResourceArrayResponse(value: object): value is TransactionResourceArrayResponse;
|
|
30
|
+
export declare function TransactionResourceArrayResponseFromJSON(json: any): TransactionResourceArrayResponse;
|
|
31
|
+
export declare function TransactionResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): TransactionResourceArrayResponse;
|
|
32
|
+
export declare function TransactionResourceArrayResponseToJSON(json: any): TransactionResourceArrayResponse;
|
|
33
|
+
export declare function TransactionResourceArrayResponseToJSONTyped(value?: TransactionResourceArrayResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* My API
|
|
6
|
+
* API documentation for my Laravel app
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfTransactionResourceArrayResponse = instanceOfTransactionResourceArrayResponse;
|
|
17
|
+
exports.TransactionResourceArrayResponseFromJSON = TransactionResourceArrayResponseFromJSON;
|
|
18
|
+
exports.TransactionResourceArrayResponseFromJSONTyped = TransactionResourceArrayResponseFromJSONTyped;
|
|
19
|
+
exports.TransactionResourceArrayResponseToJSON = TransactionResourceArrayResponseToJSON;
|
|
20
|
+
exports.TransactionResourceArrayResponseToJSONTyped = TransactionResourceArrayResponseToJSONTyped;
|
|
21
|
+
var TransactionResource_1 = require("./TransactionResource");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the TransactionResourceArrayResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfTransactionResourceArrayResponse(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function TransactionResourceArrayResponseFromJSON(json) {
|
|
29
|
+
return TransactionResourceArrayResponseFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function TransactionResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'data': json['data'] == null ? undefined : (json['data'].map(TransactionResource_1.TransactionResourceFromJSON)),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function TransactionResourceArrayResponseToJSON(json) {
|
|
40
|
+
return TransactionResourceArrayResponseToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function TransactionResourceArrayResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
43
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'data': value['data'] == null ? undefined : (value['data'].map(TransactionResource_1.TransactionResourceToJSON)),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* My API
|
|
3
|
+
* API documentation for my Laravel app
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
*/
|
|
16
|
+
export declare const TransactionType: {
|
|
17
|
+
readonly Transaction: "transaction";
|
|
18
|
+
readonly Refund: "refund";
|
|
19
|
+
};
|
|
20
|
+
export type TransactionType = typeof TransactionType[keyof typeof TransactionType];
|
|
21
|
+
export declare function instanceOfTransactionType(value: any): boolean;
|
|
22
|
+
export declare function TransactionTypeFromJSON(json: any): TransactionType;
|
|
23
|
+
export declare function TransactionTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): TransactionType;
|
|
24
|
+
export declare function TransactionTypeToJSON(value?: TransactionType | null): any;
|
|
25
|
+
export declare function TransactionTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): TransactionType;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* My API
|
|
6
|
+
* API documentation for my Laravel app
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.TransactionType = void 0;
|
|
17
|
+
exports.instanceOfTransactionType = instanceOfTransactionType;
|
|
18
|
+
exports.TransactionTypeFromJSON = TransactionTypeFromJSON;
|
|
19
|
+
exports.TransactionTypeFromJSONTyped = TransactionTypeFromJSONTyped;
|
|
20
|
+
exports.TransactionTypeToJSON = TransactionTypeToJSON;
|
|
21
|
+
exports.TransactionTypeToJSONTyped = TransactionTypeToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.TransactionType = {
|
|
27
|
+
Transaction: 'transaction',
|
|
28
|
+
Refund: 'refund'
|
|
29
|
+
};
|
|
30
|
+
function instanceOfTransactionType(value) {
|
|
31
|
+
for (var key in exports.TransactionType) {
|
|
32
|
+
if (Object.prototype.hasOwnProperty.call(exports.TransactionType, key)) {
|
|
33
|
+
if (exports.TransactionType[key] === value) {
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
return false;
|
|
39
|
+
}
|
|
40
|
+
function TransactionTypeFromJSON(json) {
|
|
41
|
+
return TransactionTypeFromJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function TransactionTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
function TransactionTypeToJSON(value) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
function TransactionTypeToJSONTyped(value, ignoreDiscriminator) {
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
@@ -21,6 +21,12 @@ export interface UpdateOrderRequestBillingAddress {
|
|
|
21
21
|
* @memberof UpdateOrderRequestBillingAddress
|
|
22
22
|
*/
|
|
23
23
|
addresseeName: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof UpdateOrderRequestBillingAddress
|
|
28
|
+
*/
|
|
29
|
+
addressee?: string | null;
|
|
24
30
|
/**
|
|
25
31
|
*
|
|
26
32
|
* @type {string}
|
|
@@ -35,6 +35,7 @@ function UpdateOrderRequestBillingAddressFromJSONTyped(json, ignoreDiscriminator
|
|
|
35
35
|
}
|
|
36
36
|
return {
|
|
37
37
|
'addresseeName': json['addressee_name'],
|
|
38
|
+
'addressee': json['addressee'] == null ? undefined : json['addressee'],
|
|
38
39
|
'company': json['company'] == null ? undefined : json['company'],
|
|
39
40
|
'line1': json['line_1'] == null ? undefined : json['line_1'],
|
|
40
41
|
'line2': json['line_2'] == null ? undefined : json['line_2'],
|
|
@@ -54,6 +55,7 @@ function UpdateOrderRequestBillingAddressToJSONTyped(value, ignoreDiscriminator)
|
|
|
54
55
|
}
|
|
55
56
|
return {
|
|
56
57
|
'addressee_name': value['addresseeName'],
|
|
58
|
+
'addressee': value['addressee'],
|
|
57
59
|
'company': value['company'],
|
|
58
60
|
'line_1': value['line1'],
|
|
59
61
|
'line_2': value['line2'],
|
|
@@ -20,7 +20,13 @@ export interface UpdateOrderRequestShippingAddress {
|
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof UpdateOrderRequestShippingAddress
|
|
22
22
|
*/
|
|
23
|
-
addresseeName
|
|
23
|
+
addresseeName: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof UpdateOrderRequestShippingAddress
|
|
28
|
+
*/
|
|
29
|
+
addressee?: string | null;
|
|
24
30
|
/**
|
|
25
31
|
*
|
|
26
32
|
* @type {string}
|
|
@@ -22,6 +22,8 @@ exports.UpdateOrderRequestShippingAddressToJSONTyped = UpdateOrderRequestShippin
|
|
|
22
22
|
* Check if a given object implements the UpdateOrderRequestShippingAddress interface.
|
|
23
23
|
*/
|
|
24
24
|
function instanceOfUpdateOrderRequestShippingAddress(value) {
|
|
25
|
+
if (!('addresseeName' in value) || value['addresseeName'] === undefined)
|
|
26
|
+
return false;
|
|
25
27
|
return true;
|
|
26
28
|
}
|
|
27
29
|
function UpdateOrderRequestShippingAddressFromJSON(json) {
|
|
@@ -32,7 +34,8 @@ function UpdateOrderRequestShippingAddressFromJSONTyped(json, ignoreDiscriminato
|
|
|
32
34
|
return json;
|
|
33
35
|
}
|
|
34
36
|
return {
|
|
35
|
-
'addresseeName': json['addressee_name']
|
|
37
|
+
'addresseeName': json['addressee_name'],
|
|
38
|
+
'addressee': json['addressee'] == null ? undefined : json['addressee'],
|
|
36
39
|
'company': json['company'] == null ? undefined : json['company'],
|
|
37
40
|
'line1': json['line_1'] == null ? undefined : json['line_1'],
|
|
38
41
|
'line2': json['line_2'] == null ? undefined : json['line_2'],
|
|
@@ -52,6 +55,7 @@ function UpdateOrderRequestShippingAddressToJSONTyped(value, ignoreDiscriminator
|
|
|
52
55
|
}
|
|
53
56
|
return {
|
|
54
57
|
'addressee_name': value['addresseeName'],
|
|
58
|
+
'addressee': value['addressee'],
|
|
55
59
|
'company': value['company'],
|
|
56
60
|
'line_1': value['line1'],
|
|
57
61
|
'line_2': value['line2'],
|
package/dist/models/index.d.ts
CHANGED
|
@@ -158,6 +158,7 @@ export * from './IndexSiteRequest';
|
|
|
158
158
|
export * from './IndexStoreRequest';
|
|
159
159
|
export * from './IndexSupplierRequest';
|
|
160
160
|
export * from './IndexTagRequest';
|
|
161
|
+
export * from './IndexTransactionRequest';
|
|
161
162
|
export * from './LabelListResource';
|
|
162
163
|
export * from './LabelListResourceArrayResponse';
|
|
163
164
|
export * from './LabelLiteResource';
|
|
@@ -265,7 +266,11 @@ export * from './PaginatedSupplierResourceResponse';
|
|
|
265
266
|
export * from './PaginatedTagListResourceResponse';
|
|
266
267
|
export * from './PaginatedTagLiteResourceResponse';
|
|
267
268
|
export * from './PaginatedTagResourceResponse';
|
|
269
|
+
export * from './PaginatedTransactionResourceResponse';
|
|
268
270
|
export * from './PagingMetadata';
|
|
271
|
+
export * from './PaymentMethod';
|
|
272
|
+
export * from './PaymentSource';
|
|
273
|
+
export * from './PaymentStatus';
|
|
269
274
|
export * from './PreviewAutomationRulesProductCategoryRequest';
|
|
270
275
|
export * from './PreviewAutomationRulesResource';
|
|
271
276
|
export * from './PreviewAutomationRulesResourceArrayResponse';
|
|
@@ -365,6 +370,7 @@ export * from './RedirectFrontendResource';
|
|
|
365
370
|
export * from './RedirectFrontendResourceArrayResponse';
|
|
366
371
|
export * from './RedirectListResource';
|
|
367
372
|
export * from './RedirectListResourceArrayResponse';
|
|
373
|
+
export * from './RefundTransactionRequest';
|
|
368
374
|
export * from './SEOResource';
|
|
369
375
|
export * from './SEOResourceArrayResponse';
|
|
370
376
|
export * from './SearchLinkablesMenuItemRequest';
|
|
@@ -435,6 +441,7 @@ export * from './StoreStoreRequestSpecialDatesInner';
|
|
|
435
441
|
export * from './StoreStoreSpecialDateRequest';
|
|
436
442
|
export * from './StoreSupplierRequest';
|
|
437
443
|
export * from './StoreTagRequest';
|
|
444
|
+
export * from './StoreTransactionRequest';
|
|
438
445
|
export * from './SupplierFrontendResource';
|
|
439
446
|
export * from './SupplierFrontendResourceArrayResponse';
|
|
440
447
|
export * from './SupplierListResource';
|
|
@@ -452,6 +459,11 @@ export * from './TagLiteResourceArrayResponse';
|
|
|
452
459
|
export * from './TagResource';
|
|
453
460
|
export * from './TagResourceArrayResponse';
|
|
454
461
|
export * from './TagType';
|
|
462
|
+
export * from './TransactionLiteResource';
|
|
463
|
+
export * from './TransactionLiteResourceArrayResponse';
|
|
464
|
+
export * from './TransactionResource';
|
|
465
|
+
export * from './TransactionResourceArrayResponse';
|
|
466
|
+
export * from './TransactionType';
|
|
455
467
|
export * from './UpdateAssetForAssetableRequest';
|
|
456
468
|
export * from './UpdateAttributeRequest';
|
|
457
469
|
export * from './UpdateAttributeValueRequest';
|
package/dist/models/index.js
CHANGED
|
@@ -176,6 +176,7 @@ __exportStar(require("./IndexSiteRequest"), exports);
|
|
|
176
176
|
__exportStar(require("./IndexStoreRequest"), exports);
|
|
177
177
|
__exportStar(require("./IndexSupplierRequest"), exports);
|
|
178
178
|
__exportStar(require("./IndexTagRequest"), exports);
|
|
179
|
+
__exportStar(require("./IndexTransactionRequest"), exports);
|
|
179
180
|
__exportStar(require("./LabelListResource"), exports);
|
|
180
181
|
__exportStar(require("./LabelListResourceArrayResponse"), exports);
|
|
181
182
|
__exportStar(require("./LabelLiteResource"), exports);
|
|
@@ -283,7 +284,11 @@ __exportStar(require("./PaginatedSupplierResourceResponse"), exports);
|
|
|
283
284
|
__exportStar(require("./PaginatedTagListResourceResponse"), exports);
|
|
284
285
|
__exportStar(require("./PaginatedTagLiteResourceResponse"), exports);
|
|
285
286
|
__exportStar(require("./PaginatedTagResourceResponse"), exports);
|
|
287
|
+
__exportStar(require("./PaginatedTransactionResourceResponse"), exports);
|
|
286
288
|
__exportStar(require("./PagingMetadata"), exports);
|
|
289
|
+
__exportStar(require("./PaymentMethod"), exports);
|
|
290
|
+
__exportStar(require("./PaymentSource"), exports);
|
|
291
|
+
__exportStar(require("./PaymentStatus"), exports);
|
|
287
292
|
__exportStar(require("./PreviewAutomationRulesProductCategoryRequest"), exports);
|
|
288
293
|
__exportStar(require("./PreviewAutomationRulesResource"), exports);
|
|
289
294
|
__exportStar(require("./PreviewAutomationRulesResourceArrayResponse"), exports);
|
|
@@ -383,6 +388,7 @@ __exportStar(require("./RedirectFrontendResource"), exports);
|
|
|
383
388
|
__exportStar(require("./RedirectFrontendResourceArrayResponse"), exports);
|
|
384
389
|
__exportStar(require("./RedirectListResource"), exports);
|
|
385
390
|
__exportStar(require("./RedirectListResourceArrayResponse"), exports);
|
|
391
|
+
__exportStar(require("./RefundTransactionRequest"), exports);
|
|
386
392
|
__exportStar(require("./SEOResource"), exports);
|
|
387
393
|
__exportStar(require("./SEOResourceArrayResponse"), exports);
|
|
388
394
|
__exportStar(require("./SearchLinkablesMenuItemRequest"), exports);
|
|
@@ -453,6 +459,7 @@ __exportStar(require("./StoreStoreRequestSpecialDatesInner"), exports);
|
|
|
453
459
|
__exportStar(require("./StoreStoreSpecialDateRequest"), exports);
|
|
454
460
|
__exportStar(require("./StoreSupplierRequest"), exports);
|
|
455
461
|
__exportStar(require("./StoreTagRequest"), exports);
|
|
462
|
+
__exportStar(require("./StoreTransactionRequest"), exports);
|
|
456
463
|
__exportStar(require("./SupplierFrontendResource"), exports);
|
|
457
464
|
__exportStar(require("./SupplierFrontendResourceArrayResponse"), exports);
|
|
458
465
|
__exportStar(require("./SupplierListResource"), exports);
|
|
@@ -470,6 +477,11 @@ __exportStar(require("./TagLiteResourceArrayResponse"), exports);
|
|
|
470
477
|
__exportStar(require("./TagResource"), exports);
|
|
471
478
|
__exportStar(require("./TagResourceArrayResponse"), exports);
|
|
472
479
|
__exportStar(require("./TagType"), exports);
|
|
480
|
+
__exportStar(require("./TransactionLiteResource"), exports);
|
|
481
|
+
__exportStar(require("./TransactionLiteResourceArrayResponse"), exports);
|
|
482
|
+
__exportStar(require("./TransactionResource"), exports);
|
|
483
|
+
__exportStar(require("./TransactionResourceArrayResponse"), exports);
|
|
484
|
+
__exportStar(require("./TransactionType"), exports);
|
|
473
485
|
__exportStar(require("./UpdateAssetForAssetableRequest"), exports);
|
|
474
486
|
__exportStar(require("./UpdateAttributeRequest"), exports);
|
|
475
487
|
__exportStar(require("./UpdateAttributeValueRequest"), exports);
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
|
|
2
|
+
# IndexTransactionRequest
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`search` | string
|
|
10
|
+
`sortBy` | string
|
|
11
|
+
`sortDirection` | string
|
|
12
|
+
`perPage` | number
|
|
13
|
+
`page` | number
|
|
14
|
+
`paymentSource` | Array<string>
|
|
15
|
+
`type` | Array<string>
|
|
16
|
+
`paymentMethod` | Array<string>
|
|
17
|
+
`status` | Array<string>
|
|
18
|
+
`beforeCreatedAt` | Date
|
|
19
|
+
`afterCreatedAt` | Date
|
|
20
|
+
`relatedId` | number
|
|
21
|
+
`relatedType` | string
|
|
22
|
+
`includesRelations` | boolean
|
|
23
|
+
|
|
24
|
+
## Example
|
|
25
|
+
|
|
26
|
+
```typescript
|
|
27
|
+
import type { IndexTransactionRequest } from '@digital8/lighting-illusions-ts-sdk'
|
|
28
|
+
|
|
29
|
+
// TODO: Update the object below with actual values
|
|
30
|
+
const example = {
|
|
31
|
+
"search": null,
|
|
32
|
+
"sortBy": null,
|
|
33
|
+
"sortDirection": null,
|
|
34
|
+
"perPage": null,
|
|
35
|
+
"page": null,
|
|
36
|
+
"paymentSource": null,
|
|
37
|
+
"type": null,
|
|
38
|
+
"paymentMethod": null,
|
|
39
|
+
"status": null,
|
|
40
|
+
"beforeCreatedAt": null,
|
|
41
|
+
"afterCreatedAt": null,
|
|
42
|
+
"relatedId": null,
|
|
43
|
+
"relatedType": null,
|
|
44
|
+
"includesRelations": null,
|
|
45
|
+
} satisfies IndexTransactionRequest
|
|
46
|
+
|
|
47
|
+
console.log(example)
|
|
48
|
+
|
|
49
|
+
// Convert the instance to a JSON string
|
|
50
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
51
|
+
console.log(exampleJSON)
|
|
52
|
+
|
|
53
|
+
// Parse the JSON string back to an object
|
|
54
|
+
const exampleParsed = JSON.parse(exampleJSON) as IndexTransactionRequest
|
|
55
|
+
console.log(exampleParsed)
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
59
|
+
|
|
60
|
+
|
|
@@ -21,6 +21,7 @@ Name | Type
|
|
|
21
21
|
`customer` | [CustomerListResource](CustomerListResource.md)
|
|
22
22
|
`status` | Array<number>
|
|
23
23
|
`lineItems` | [Array<LineItemListResource>](LineItemListResource.md)
|
|
24
|
+
`transactions` | [Array<TransactionLiteResource>](TransactionLiteResource.md)
|
|
24
25
|
|
|
25
26
|
## Example
|
|
26
27
|
|
|
@@ -44,6 +45,7 @@ const example = {
|
|
|
44
45
|
"customer": null,
|
|
45
46
|
"status": null,
|
|
46
47
|
"lineItems": null,
|
|
48
|
+
"transactions": null,
|
|
47
49
|
} satisfies OrderListResource
|
|
48
50
|
|
|
49
51
|
console.log(example)
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
|
|
2
|
+
# PaginatedTransactionResourceResponse
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`data` | [Array<TransactionResource>](TransactionResource.md)
|
|
10
|
+
`meta` | [PagingMetadata](PagingMetadata.md)
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import type { PaginatedTransactionResourceResponse } from '@digital8/lighting-illusions-ts-sdk'
|
|
16
|
+
|
|
17
|
+
// TODO: Update the object below with actual values
|
|
18
|
+
const example = {
|
|
19
|
+
"data": null,
|
|
20
|
+
"meta": null,
|
|
21
|
+
} satisfies PaginatedTransactionResourceResponse
|
|
22
|
+
|
|
23
|
+
console.log(example)
|
|
24
|
+
|
|
25
|
+
// Convert the instance to a JSON string
|
|
26
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
27
|
+
console.log(exampleJSON)
|
|
28
|
+
|
|
29
|
+
// Parse the JSON string back to an object
|
|
30
|
+
const exampleParsed = JSON.parse(exampleJSON) as PaginatedTransactionResourceResponse
|
|
31
|
+
console.log(exampleParsed)
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
35
|
+
|
|
36
|
+
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
|
|
2
|
+
# PaymentMethod
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import type { PaymentMethod } from '@digital8/lighting-illusions-ts-sdk'
|
|
14
|
+
|
|
15
|
+
// TODO: Update the object below with actual values
|
|
16
|
+
const example = {
|
|
17
|
+
} satisfies PaymentMethod
|
|
18
|
+
|
|
19
|
+
console.log(example)
|
|
20
|
+
|
|
21
|
+
// Convert the instance to a JSON string
|
|
22
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
23
|
+
console.log(exampleJSON)
|
|
24
|
+
|
|
25
|
+
// Parse the JSON string back to an object
|
|
26
|
+
const exampleParsed = JSON.parse(exampleJSON) as PaymentMethod
|
|
27
|
+
console.log(exampleParsed)
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
31
|
+
|
|
32
|
+
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
|
|
2
|
+
# PaymentSource
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import type { PaymentSource } from '@digital8/lighting-illusions-ts-sdk'
|
|
14
|
+
|
|
15
|
+
// TODO: Update the object below with actual values
|
|
16
|
+
const example = {
|
|
17
|
+
} satisfies PaymentSource
|
|
18
|
+
|
|
19
|
+
console.log(example)
|
|
20
|
+
|
|
21
|
+
// Convert the instance to a JSON string
|
|
22
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
23
|
+
console.log(exampleJSON)
|
|
24
|
+
|
|
25
|
+
// Parse the JSON string back to an object
|
|
26
|
+
const exampleParsed = JSON.parse(exampleJSON) as PaymentSource
|
|
27
|
+
console.log(exampleParsed)
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
31
|
+
|
|
32
|
+
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
|
|
2
|
+
# PaymentStatus
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import type { PaymentStatus } from '@digital8/lighting-illusions-ts-sdk'
|
|
14
|
+
|
|
15
|
+
// TODO: Update the object below with actual values
|
|
16
|
+
const example = {
|
|
17
|
+
} satisfies PaymentStatus
|
|
18
|
+
|
|
19
|
+
console.log(example)
|
|
20
|
+
|
|
21
|
+
// Convert the instance to a JSON string
|
|
22
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
23
|
+
console.log(exampleJSON)
|
|
24
|
+
|
|
25
|
+
// Parse the JSON string back to an object
|
|
26
|
+
const exampleParsed = JSON.parse(exampleJSON) as PaymentStatus
|
|
27
|
+
console.log(exampleParsed)
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
31
|
+
|
|
32
|
+
|