@digital8/lighting-illusions-ts-sdk 0.0.1956 → 0.0.1957
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 +4 -8
- package/README.md +4 -6
- package/dist/apis/TransactionsApi.d.ts +3 -3
- package/dist/apis/TransactionsApi.js +2 -2
- package/dist/models/AddressFrontendResource.d.ts +1 -1
- package/dist/models/AddressFrontendResource.js +3 -1
- package/dist/models/AddressResource.d.ts +0 -6
- package/dist/models/AddressResource.js +0 -4
- package/dist/models/AdminOrderResource.d.ts +6 -0
- package/dist/models/AdminOrderResource.js +4 -0
- package/dist/models/CartListResource.d.ts +6 -0
- package/dist/models/CartListResource.js +4 -0
- package/dist/models/CartResource.d.ts +6 -0
- package/dist/models/CartResource.js +4 -0
- package/dist/models/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +3 -1
- package/dist/models/OrderListResource.d.ts +7 -0
- package/dist/models/OrderListResource.js +5 -0
- package/dist/models/StoreCartRequest.d.ts +6 -0
- package/dist/models/StoreCartRequest.js +2 -0
- package/dist/models/StoreCartRequestShippingAddress.d.ts +0 -6
- package/dist/models/StoreCartRequestShippingAddress.js +0 -2
- package/dist/models/StoreFrontendResource.d.ts +1 -1
- package/dist/models/StoreFrontendResource.js +1 -3
- package/dist/models/StoreListResource.d.ts +1 -1
- package/dist/models/StoreListResource.js +1 -3
- package/dist/models/StoreSpecialDateFrontendResource.d.ts +2 -2
- package/dist/models/StoreSpecialDateFrontendResource.js +3 -1
- 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 +0 -24
- package/dist/models/TransactionResource.js +0 -8
- package/dist/models/UpdateCartRequest.d.ts +6 -0
- package/dist/models/UpdateCartRequest.js +2 -0
- package/dist/models/UpdateOrderRequest.d.ts +9 -3
- package/dist/models/UpdateOrderRequest.js +5 -3
- package/dist/models/UpdateOrderRequestBillingAddress.d.ts +0 -6
- package/dist/models/UpdateOrderRequestBillingAddress.js +0 -2
- package/dist/models/index.d.ts +2 -4
- package/dist/models/index.js +2 -4
- package/docs/AddressResource.md +0 -2
- package/docs/AdminOrderResource.md +2 -0
- package/docs/CartListResource.md +2 -0
- package/docs/CartResource.md +2 -0
- package/docs/OrderListResource.md +2 -0
- package/docs/StoreCartRequest.md +2 -0
- package/docs/StoreCartRequestShippingAddress.md +0 -2
- package/docs/StoreSpecialDateFrontendResource.md +1 -1
- package/docs/{TransactionListResource.md → TransactionLiteResource.md} +4 -30
- package/docs/{TransactionListResourceArrayResponse.md → TransactionLiteResourceArrayResponse.md} +5 -5
- package/docs/TransactionResource.md +0 -8
- package/docs/TransactionsApi.md +3 -3
- package/docs/UpdateCartRequest.md +2 -0
- package/docs/UpdateOrderRequest.md +3 -1
- package/docs/UpdateOrderRequestBillingAddress.md +0 -2
- package/package.json +1 -1
- package/src/apis/TransactionsApi.ts +7 -7
- package/src/models/AddressFrontendResource.ts +3 -2
- package/src/models/AddressResource.ts +0 -9
- package/src/models/AdminOrderResource.ts +9 -0
- package/src/models/CartListResource.ts +9 -0
- package/src/models/CartResource.ts +9 -0
- package/src/models/ExternalApiLogResource.ts +3 -2
- package/src/models/OrderListResource.ts +16 -0
- package/src/models/StoreCartRequest.ts +8 -0
- package/src/models/StoreCartRequestShippingAddress.ts +0 -8
- package/src/models/StoreFrontendResource.ts +2 -3
- package/src/models/StoreListResource.ts +2 -3
- package/src/models/StoreSpecialDateFrontendResource.ts +4 -3
- package/src/models/TransactionLiteResource.ts +128 -0
- package/src/models/TransactionLiteResourceArrayResponse.ts +73 -0
- package/src/models/TransactionResource.ts +0 -32
- package/src/models/UpdateCartRequest.ts +8 -0
- package/src/models/UpdateOrderRequest.ts +18 -10
- package/src/models/UpdateOrderRequestBillingAddress.ts +0 -8
- package/src/models/index.ts +2 -4
- package/dist/models/PaginatedTransactionListResourceResponse.d.ts +0 -40
- package/dist/models/PaginatedTransactionListResourceResponse.js +0 -57
- package/dist/models/TransactionListResource.d.ts +0 -152
- package/dist/models/TransactionListResource.js +0 -109
- package/dist/models/TransactionListResourceArrayResponse.d.ts +0 -33
- package/dist/models/TransactionListResourceArrayResponse.js +0 -50
- package/dist/models/UpdateOrderRequestShippingAddress.d.ts +0 -80
- package/dist/models/UpdateOrderRequestShippingAddress.js +0 -67
- package/docs/PaginatedTransactionListResourceResponse.md +0 -36
- package/docs/UpdateOrderRequestShippingAddress.md +0 -50
- package/src/models/PaginatedTransactionListResourceResponse.ts +0 -90
- package/src/models/TransactionListResource.ts +0 -235
- package/src/models/TransactionListResourceArrayResponse.ts +0 -73
- package/src/models/UpdateOrderRequestShippingAddress.ts +0 -130
|
@@ -1,109 +0,0 @@
|
|
|
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.instanceOfTransactionListResource = instanceOfTransactionListResource;
|
|
17
|
-
exports.TransactionListResourceFromJSON = TransactionListResourceFromJSON;
|
|
18
|
-
exports.TransactionListResourceFromJSONTyped = TransactionListResourceFromJSONTyped;
|
|
19
|
-
exports.TransactionListResourceToJSON = TransactionListResourceToJSON;
|
|
20
|
-
exports.TransactionListResourceToJSONTyped = TransactionListResourceToJSONTyped;
|
|
21
|
-
/**
|
|
22
|
-
* Check if a given object implements the TransactionListResource interface.
|
|
23
|
-
*/
|
|
24
|
-
function instanceOfTransactionListResource(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 TransactionListResourceFromJSON(json) {
|
|
48
|
-
return TransactionListResourceFromJSONTyped(json, false);
|
|
49
|
-
}
|
|
50
|
-
function TransactionListResourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
51
|
-
if (json == null) {
|
|
52
|
-
return json;
|
|
53
|
-
}
|
|
54
|
-
return {
|
|
55
|
-
'id': json['id'] == null ? undefined : json['id'],
|
|
56
|
-
'orderId': json['order_id'] == null ? undefined : json['order_id'],
|
|
57
|
-
'cartId': json['cart_id'] == null ? undefined : json['cart_id'],
|
|
58
|
-
'adminId': json['admin_id'] == null ? undefined : json['admin_id'],
|
|
59
|
-
'paymentSource': json['payment_source'],
|
|
60
|
-
'paymentMethod': json['payment_method'],
|
|
61
|
-
'type': json['type'],
|
|
62
|
-
'status': json['status'],
|
|
63
|
-
'amount': json['amount'],
|
|
64
|
-
'surcharge': json['surcharge'],
|
|
65
|
-
'totalAmount': json['total_amount'],
|
|
66
|
-
'refundedAmount': json['refunded_amount'],
|
|
67
|
-
'unrefundedAmount': json['unrefunded_amount'],
|
|
68
|
-
'reference': json['reference'],
|
|
69
|
-
'description': json['description'] == null ? undefined : json['description'],
|
|
70
|
-
'extendedData': json['extended_data'] == null ? undefined : json['extended_data'],
|
|
71
|
-
'riskScore': json['risk_score'] == null ? undefined : json['risk_score'],
|
|
72
|
-
'fraudDecision': json['fraud_decision'] == null ? undefined : json['fraud_decision'],
|
|
73
|
-
'refundedTransactionId': json['refunded_transaction_id'] == null ? undefined : json['refunded_transaction_id'],
|
|
74
|
-
'createdAt': json['created_at'] == null ? undefined : (new Date(json['created_at'])),
|
|
75
|
-
'updatedAt': json['updated_at'] == null ? undefined : (new Date(json['updated_at'])),
|
|
76
|
-
};
|
|
77
|
-
}
|
|
78
|
-
function TransactionListResourceToJSON(json) {
|
|
79
|
-
return TransactionListResourceToJSONTyped(json, false);
|
|
80
|
-
}
|
|
81
|
-
function TransactionListResourceToJSONTyped(value, ignoreDiscriminator) {
|
|
82
|
-
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
83
|
-
if (value == null) {
|
|
84
|
-
return value;
|
|
85
|
-
}
|
|
86
|
-
return {
|
|
87
|
-
'id': value['id'],
|
|
88
|
-
'order_id': value['orderId'],
|
|
89
|
-
'cart_id': value['cartId'],
|
|
90
|
-
'admin_id': value['adminId'],
|
|
91
|
-
'payment_source': value['paymentSource'],
|
|
92
|
-
'payment_method': value['paymentMethod'],
|
|
93
|
-
'type': value['type'],
|
|
94
|
-
'status': value['status'],
|
|
95
|
-
'amount': value['amount'],
|
|
96
|
-
'surcharge': value['surcharge'],
|
|
97
|
-
'total_amount': value['totalAmount'],
|
|
98
|
-
'refunded_amount': value['refundedAmount'],
|
|
99
|
-
'unrefunded_amount': value['unrefundedAmount'],
|
|
100
|
-
'reference': value['reference'],
|
|
101
|
-
'description': value['description'],
|
|
102
|
-
'extended_data': value['extendedData'],
|
|
103
|
-
'risk_score': value['riskScore'],
|
|
104
|
-
'fraud_decision': value['fraudDecision'],
|
|
105
|
-
'refunded_transaction_id': value['refundedTransactionId'],
|
|
106
|
-
'created_at': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
|
|
107
|
-
'updated_at': value['updatedAt'] == null ? value['updatedAt'] : value['updatedAt'].toISOString(),
|
|
108
|
-
};
|
|
109
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
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 { TransactionListResource } from './TransactionListResource';
|
|
13
|
-
/**
|
|
14
|
-
*
|
|
15
|
-
* @export
|
|
16
|
-
* @interface TransactionListResourceArrayResponse
|
|
17
|
-
*/
|
|
18
|
-
export interface TransactionListResourceArrayResponse {
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
* @type {Array<TransactionListResource>}
|
|
22
|
-
* @memberof TransactionListResourceArrayResponse
|
|
23
|
-
*/
|
|
24
|
-
data?: Array<TransactionListResource>;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Check if a given object implements the TransactionListResourceArrayResponse interface.
|
|
28
|
-
*/
|
|
29
|
-
export declare function instanceOfTransactionListResourceArrayResponse(value: object): value is TransactionListResourceArrayResponse;
|
|
30
|
-
export declare function TransactionListResourceArrayResponseFromJSON(json: any): TransactionListResourceArrayResponse;
|
|
31
|
-
export declare function TransactionListResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): TransactionListResourceArrayResponse;
|
|
32
|
-
export declare function TransactionListResourceArrayResponseToJSON(json: any): TransactionListResourceArrayResponse;
|
|
33
|
-
export declare function TransactionListResourceArrayResponseToJSONTyped(value?: TransactionListResourceArrayResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,50 +0,0 @@
|
|
|
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.instanceOfTransactionListResourceArrayResponse = instanceOfTransactionListResourceArrayResponse;
|
|
17
|
-
exports.TransactionListResourceArrayResponseFromJSON = TransactionListResourceArrayResponseFromJSON;
|
|
18
|
-
exports.TransactionListResourceArrayResponseFromJSONTyped = TransactionListResourceArrayResponseFromJSONTyped;
|
|
19
|
-
exports.TransactionListResourceArrayResponseToJSON = TransactionListResourceArrayResponseToJSON;
|
|
20
|
-
exports.TransactionListResourceArrayResponseToJSONTyped = TransactionListResourceArrayResponseToJSONTyped;
|
|
21
|
-
var TransactionListResource_1 = require("./TransactionListResource");
|
|
22
|
-
/**
|
|
23
|
-
* Check if a given object implements the TransactionListResourceArrayResponse interface.
|
|
24
|
-
*/
|
|
25
|
-
function instanceOfTransactionListResourceArrayResponse(value) {
|
|
26
|
-
return true;
|
|
27
|
-
}
|
|
28
|
-
function TransactionListResourceArrayResponseFromJSON(json) {
|
|
29
|
-
return TransactionListResourceArrayResponseFromJSONTyped(json, false);
|
|
30
|
-
}
|
|
31
|
-
function TransactionListResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
-
if (json == null) {
|
|
33
|
-
return json;
|
|
34
|
-
}
|
|
35
|
-
return {
|
|
36
|
-
'data': json['data'] == null ? undefined : (json['data'].map(TransactionListResource_1.TransactionListResourceFromJSON)),
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
function TransactionListResourceArrayResponseToJSON(json) {
|
|
40
|
-
return TransactionListResourceArrayResponseToJSONTyped(json, false);
|
|
41
|
-
}
|
|
42
|
-
function TransactionListResourceArrayResponseToJSONTyped(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(TransactionListResource_1.TransactionListResourceToJSON)),
|
|
49
|
-
};
|
|
50
|
-
}
|
|
@@ -1,80 +0,0 @@
|
|
|
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
|
-
* @interface UpdateOrderRequestShippingAddress
|
|
16
|
-
*/
|
|
17
|
-
export interface UpdateOrderRequestShippingAddress {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof UpdateOrderRequestShippingAddress
|
|
22
|
-
*/
|
|
23
|
-
addresseeName: string;
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof UpdateOrderRequestShippingAddress
|
|
28
|
-
*/
|
|
29
|
-
addressee?: string | null;
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof UpdateOrderRequestShippingAddress
|
|
34
|
-
*/
|
|
35
|
-
company?: string | null;
|
|
36
|
-
/**
|
|
37
|
-
*
|
|
38
|
-
* @type {string}
|
|
39
|
-
* @memberof UpdateOrderRequestShippingAddress
|
|
40
|
-
*/
|
|
41
|
-
line1?: string | null;
|
|
42
|
-
/**
|
|
43
|
-
*
|
|
44
|
-
* @type {string}
|
|
45
|
-
* @memberof UpdateOrderRequestShippingAddress
|
|
46
|
-
*/
|
|
47
|
-
line2?: string | null;
|
|
48
|
-
/**
|
|
49
|
-
*
|
|
50
|
-
* @type {string}
|
|
51
|
-
* @memberof UpdateOrderRequestShippingAddress
|
|
52
|
-
*/
|
|
53
|
-
suburb?: string | null;
|
|
54
|
-
/**
|
|
55
|
-
*
|
|
56
|
-
* @type {string}
|
|
57
|
-
* @memberof UpdateOrderRequestShippingAddress
|
|
58
|
-
*/
|
|
59
|
-
state?: string | null;
|
|
60
|
-
/**
|
|
61
|
-
*
|
|
62
|
-
* @type {string}
|
|
63
|
-
* @memberof UpdateOrderRequestShippingAddress
|
|
64
|
-
*/
|
|
65
|
-
postcode?: string | null;
|
|
66
|
-
/**
|
|
67
|
-
*
|
|
68
|
-
* @type {string}
|
|
69
|
-
* @memberof UpdateOrderRequestShippingAddress
|
|
70
|
-
*/
|
|
71
|
-
country?: string | null;
|
|
72
|
-
}
|
|
73
|
-
/**
|
|
74
|
-
* Check if a given object implements the UpdateOrderRequestShippingAddress interface.
|
|
75
|
-
*/
|
|
76
|
-
export declare function instanceOfUpdateOrderRequestShippingAddress(value: object): value is UpdateOrderRequestShippingAddress;
|
|
77
|
-
export declare function UpdateOrderRequestShippingAddressFromJSON(json: any): UpdateOrderRequestShippingAddress;
|
|
78
|
-
export declare function UpdateOrderRequestShippingAddressFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateOrderRequestShippingAddress;
|
|
79
|
-
export declare function UpdateOrderRequestShippingAddressToJSON(json: any): UpdateOrderRequestShippingAddress;
|
|
80
|
-
export declare function UpdateOrderRequestShippingAddressToJSONTyped(value?: UpdateOrderRequestShippingAddress | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,67 +0,0 @@
|
|
|
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.instanceOfUpdateOrderRequestShippingAddress = instanceOfUpdateOrderRequestShippingAddress;
|
|
17
|
-
exports.UpdateOrderRequestShippingAddressFromJSON = UpdateOrderRequestShippingAddressFromJSON;
|
|
18
|
-
exports.UpdateOrderRequestShippingAddressFromJSONTyped = UpdateOrderRequestShippingAddressFromJSONTyped;
|
|
19
|
-
exports.UpdateOrderRequestShippingAddressToJSON = UpdateOrderRequestShippingAddressToJSON;
|
|
20
|
-
exports.UpdateOrderRequestShippingAddressToJSONTyped = UpdateOrderRequestShippingAddressToJSONTyped;
|
|
21
|
-
/**
|
|
22
|
-
* Check if a given object implements the UpdateOrderRequestShippingAddress interface.
|
|
23
|
-
*/
|
|
24
|
-
function instanceOfUpdateOrderRequestShippingAddress(value) {
|
|
25
|
-
if (!('addresseeName' in value) || value['addresseeName'] === undefined)
|
|
26
|
-
return false;
|
|
27
|
-
return true;
|
|
28
|
-
}
|
|
29
|
-
function UpdateOrderRequestShippingAddressFromJSON(json) {
|
|
30
|
-
return UpdateOrderRequestShippingAddressFromJSONTyped(json, false);
|
|
31
|
-
}
|
|
32
|
-
function UpdateOrderRequestShippingAddressFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
-
if (json == null) {
|
|
34
|
-
return json;
|
|
35
|
-
}
|
|
36
|
-
return {
|
|
37
|
-
'addresseeName': json['addressee_name'],
|
|
38
|
-
'addressee': json['addressee'] == null ? undefined : json['addressee'],
|
|
39
|
-
'company': json['company'] == null ? undefined : json['company'],
|
|
40
|
-
'line1': json['line_1'] == null ? undefined : json['line_1'],
|
|
41
|
-
'line2': json['line_2'] == null ? undefined : json['line_2'],
|
|
42
|
-
'suburb': json['suburb'] == null ? undefined : json['suburb'],
|
|
43
|
-
'state': json['state'] == null ? undefined : json['state'],
|
|
44
|
-
'postcode': json['postcode'] == null ? undefined : json['postcode'],
|
|
45
|
-
'country': json['country'] == null ? undefined : json['country'],
|
|
46
|
-
};
|
|
47
|
-
}
|
|
48
|
-
function UpdateOrderRequestShippingAddressToJSON(json) {
|
|
49
|
-
return UpdateOrderRequestShippingAddressToJSONTyped(json, false);
|
|
50
|
-
}
|
|
51
|
-
function UpdateOrderRequestShippingAddressToJSONTyped(value, ignoreDiscriminator) {
|
|
52
|
-
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
53
|
-
if (value == null) {
|
|
54
|
-
return value;
|
|
55
|
-
}
|
|
56
|
-
return {
|
|
57
|
-
'addressee_name': value['addresseeName'],
|
|
58
|
-
'addressee': value['addressee'],
|
|
59
|
-
'company': value['company'],
|
|
60
|
-
'line_1': value['line1'],
|
|
61
|
-
'line_2': value['line2'],
|
|
62
|
-
'suburb': value['suburb'],
|
|
63
|
-
'state': value['state'],
|
|
64
|
-
'postcode': value['postcode'],
|
|
65
|
-
'country': value['country'],
|
|
66
|
-
};
|
|
67
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# PaginatedTransactionListResourceResponse
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type
|
|
8
|
-
------------ | -------------
|
|
9
|
-
`data` | [Array<TransactionListResource>](TransactionListResource.md)
|
|
10
|
-
`meta` | [PagingMetadata](PagingMetadata.md)
|
|
11
|
-
|
|
12
|
-
## Example
|
|
13
|
-
|
|
14
|
-
```typescript
|
|
15
|
-
import type { PaginatedTransactionListResourceResponse } 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 PaginatedTransactionListResourceResponse
|
|
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 PaginatedTransactionListResourceResponse
|
|
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
|
-
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# UpdateOrderRequestShippingAddress
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type
|
|
8
|
-
------------ | -------------
|
|
9
|
-
`addresseeName` | string
|
|
10
|
-
`addressee` | string
|
|
11
|
-
`company` | string
|
|
12
|
-
`line1` | string
|
|
13
|
-
`line2` | string
|
|
14
|
-
`suburb` | string
|
|
15
|
-
`state` | string
|
|
16
|
-
`postcode` | string
|
|
17
|
-
`country` | string
|
|
18
|
-
|
|
19
|
-
## Example
|
|
20
|
-
|
|
21
|
-
```typescript
|
|
22
|
-
import type { UpdateOrderRequestShippingAddress } from '@digital8/lighting-illusions-ts-sdk'
|
|
23
|
-
|
|
24
|
-
// TODO: Update the object below with actual values
|
|
25
|
-
const example = {
|
|
26
|
-
"addresseeName": null,
|
|
27
|
-
"addressee": null,
|
|
28
|
-
"company": null,
|
|
29
|
-
"line1": null,
|
|
30
|
-
"line2": null,
|
|
31
|
-
"suburb": null,
|
|
32
|
-
"state": null,
|
|
33
|
-
"postcode": null,
|
|
34
|
-
"country": null,
|
|
35
|
-
} satisfies UpdateOrderRequestShippingAddress
|
|
36
|
-
|
|
37
|
-
console.log(example)
|
|
38
|
-
|
|
39
|
-
// Convert the instance to a JSON string
|
|
40
|
-
const exampleJSON: string = JSON.stringify(example)
|
|
41
|
-
console.log(exampleJSON)
|
|
42
|
-
|
|
43
|
-
// Parse the JSON string back to an object
|
|
44
|
-
const exampleParsed = JSON.parse(exampleJSON) as UpdateOrderRequestShippingAddress
|
|
45
|
-
console.log(exampleParsed)
|
|
46
|
-
```
|
|
47
|
-
|
|
48
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
49
|
-
|
|
50
|
-
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* My API
|
|
5
|
-
* API documentation for my Laravel app
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.0
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
import { mapValues } from '../runtime';
|
|
16
|
-
import type { PagingMetadata } from './PagingMetadata';
|
|
17
|
-
import {
|
|
18
|
-
PagingMetadataFromJSON,
|
|
19
|
-
PagingMetadataFromJSONTyped,
|
|
20
|
-
PagingMetadataToJSON,
|
|
21
|
-
PagingMetadataToJSONTyped,
|
|
22
|
-
} from './PagingMetadata';
|
|
23
|
-
import type { TransactionListResource } from './TransactionListResource';
|
|
24
|
-
import {
|
|
25
|
-
TransactionListResourceFromJSON,
|
|
26
|
-
TransactionListResourceFromJSONTyped,
|
|
27
|
-
TransactionListResourceToJSON,
|
|
28
|
-
TransactionListResourceToJSONTyped,
|
|
29
|
-
} from './TransactionListResource';
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
*
|
|
33
|
-
* @export
|
|
34
|
-
* @interface PaginatedTransactionListResourceResponse
|
|
35
|
-
*/
|
|
36
|
-
export interface PaginatedTransactionListResourceResponse {
|
|
37
|
-
/**
|
|
38
|
-
*
|
|
39
|
-
* @type {Array<TransactionListResource>}
|
|
40
|
-
* @memberof PaginatedTransactionListResourceResponse
|
|
41
|
-
*/
|
|
42
|
-
data: Array<TransactionListResource>;
|
|
43
|
-
/**
|
|
44
|
-
*
|
|
45
|
-
* @type {PagingMetadata}
|
|
46
|
-
* @memberof PaginatedTransactionListResourceResponse
|
|
47
|
-
*/
|
|
48
|
-
meta: PagingMetadata;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
/**
|
|
52
|
-
* Check if a given object implements the PaginatedTransactionListResourceResponse interface.
|
|
53
|
-
*/
|
|
54
|
-
export function instanceOfPaginatedTransactionListResourceResponse(value: object): value is PaginatedTransactionListResourceResponse {
|
|
55
|
-
if (!('data' in value) || value['data'] === undefined) return false;
|
|
56
|
-
if (!('meta' in value) || value['meta'] === undefined) return false;
|
|
57
|
-
return true;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
export function PaginatedTransactionListResourceResponseFromJSON(json: any): PaginatedTransactionListResourceResponse {
|
|
61
|
-
return PaginatedTransactionListResourceResponseFromJSONTyped(json, false);
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
export function PaginatedTransactionListResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedTransactionListResourceResponse {
|
|
65
|
-
if (json == null) {
|
|
66
|
-
return json;
|
|
67
|
-
}
|
|
68
|
-
return {
|
|
69
|
-
|
|
70
|
-
'data': ((json['data'] as Array<any>).map(TransactionListResourceFromJSON)),
|
|
71
|
-
'meta': PagingMetadataFromJSON(json['meta']),
|
|
72
|
-
};
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
export function PaginatedTransactionListResourceResponseToJSON(json: any): PaginatedTransactionListResourceResponse {
|
|
76
|
-
return PaginatedTransactionListResourceResponseToJSONTyped(json, false);
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
export function PaginatedTransactionListResourceResponseToJSONTyped(value?: PaginatedTransactionListResourceResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
80
|
-
if (value == null) {
|
|
81
|
-
return value;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
return {
|
|
85
|
-
|
|
86
|
-
'data': ((value['data'] as Array<any>).map(TransactionListResourceToJSON)),
|
|
87
|
-
'meta': PagingMetadataToJSON(value['meta']),
|
|
88
|
-
};
|
|
89
|
-
}
|
|
90
|
-
|