@digital8/lighting-illusions-ts-sdk 0.0.1954 → 0.0.1956
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 +8 -4
- package/README.md +6 -4
- package/dist/apis/TransactionsApi.d.ts +3 -3
- package/dist/apis/TransactionsApi.js +2 -2
- package/dist/models/AddressResource.d.ts +7 -1
- package/dist/models/AddressResource.js +7 -1
- package/dist/models/AdminOrderResource.d.ts +0 -6
- package/dist/models/AdminOrderResource.js +0 -4
- package/dist/models/CartListResource.d.ts +0 -6
- package/dist/models/CartListResource.js +0 -4
- package/dist/models/CartResource.d.ts +0 -6
- package/dist/models/CartResource.js +0 -4
- package/dist/models/OrderListResource.d.ts +0 -7
- package/dist/models/OrderListResource.js +0 -5
- package/dist/models/PaginatedTransactionListResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedTransactionListResourceResponse.js +57 -0
- package/dist/models/StoreCartRequest.d.ts +0 -6
- package/dist/models/StoreCartRequest.js +0 -2
- package/dist/models/StoreCartRequestShippingAddress.d.ts +6 -0
- package/dist/models/StoreCartRequestShippingAddress.js +2 -0
- package/dist/models/StoreListResource.d.ts +2 -2
- package/dist/models/StoreListResource.js +6 -2
- package/dist/models/StoreResource.d.ts +1 -1
- package/dist/models/StoreResource.js +3 -1
- package/dist/models/StoreSpecialDateFrontendResource.d.ts +2 -2
- package/dist/models/StoreSpecialDateFrontendResource.js +1 -3
- package/dist/models/TransactionListResource.d.ts +152 -0
- package/dist/models/TransactionListResource.js +109 -0
- package/dist/models/TransactionListResourceArrayResponse.d.ts +33 -0
- package/dist/models/TransactionListResourceArrayResponse.js +50 -0
- package/dist/models/TransactionResource.d.ts +24 -0
- package/dist/models/TransactionResource.js +8 -0
- package/dist/models/UpdateCartRequest.d.ts +0 -6
- package/dist/models/UpdateCartRequest.js +0 -2
- package/dist/models/UpdateOrderRequest.d.ts +3 -9
- package/dist/models/UpdateOrderRequest.js +3 -5
- package/dist/models/UpdateOrderRequestBillingAddress.d.ts +6 -0
- package/dist/models/UpdateOrderRequestBillingAddress.js +2 -0
- package/dist/models/UpdateOrderRequestShippingAddress.d.ts +80 -0
- package/dist/models/UpdateOrderRequestShippingAddress.js +67 -0
- package/dist/models/index.d.ts +4 -2
- package/dist/models/index.js +4 -2
- package/docs/AddressResource.md +2 -0
- package/docs/AdminOrderResource.md +0 -2
- package/docs/CartListResource.md +0 -2
- package/docs/CartResource.md +0 -2
- package/docs/OrderListResource.md +0 -2
- package/docs/PaginatedTransactionListResourceResponse.md +36 -0
- package/docs/StoreCartRequest.md +0 -2
- package/docs/StoreCartRequestShippingAddress.md +2 -0
- package/docs/StoreSpecialDateFrontendResource.md +1 -1
- package/docs/{TransactionLiteResource.md → TransactionListResource.md} +30 -4
- package/docs/{TransactionLiteResourceArrayResponse.md → TransactionListResourceArrayResponse.md} +5 -5
- package/docs/TransactionResource.md +8 -0
- package/docs/TransactionsApi.md +3 -3
- package/docs/UpdateCartRequest.md +0 -2
- package/docs/UpdateOrderRequest.md +1 -3
- package/docs/UpdateOrderRequestBillingAddress.md +2 -0
- package/docs/UpdateOrderRequestShippingAddress.md +50 -0
- package/package.json +1 -1
- package/src/apis/TransactionsApi.ts +7 -7
- package/src/models/AddressResource.ts +12 -2
- package/src/models/AdminOrderResource.ts +0 -9
- package/src/models/CartListResource.ts +0 -9
- package/src/models/CartResource.ts +0 -9
- package/src/models/OrderListResource.ts +0 -16
- package/src/models/PaginatedTransactionListResourceResponse.ts +90 -0
- package/src/models/StoreCartRequest.ts +0 -8
- package/src/models/StoreCartRequestShippingAddress.ts +8 -0
- package/src/models/StoreListResource.ts +6 -4
- package/src/models/StoreResource.ts +3 -2
- package/src/models/StoreSpecialDateFrontendResource.ts +3 -4
- package/src/models/TransactionListResource.ts +235 -0
- package/src/models/TransactionListResourceArrayResponse.ts +73 -0
- package/src/models/TransactionResource.ts +32 -0
- package/src/models/UpdateCartRequest.ts +0 -8
- package/src/models/UpdateOrderRequest.ts +10 -18
- package/src/models/UpdateOrderRequestBillingAddress.ts +8 -0
- package/src/models/UpdateOrderRequestShippingAddress.ts +130 -0
- package/src/models/index.ts +4 -2
- package/dist/models/TransactionLiteResource.d.ts +0 -74
- package/dist/models/TransactionLiteResource.js +0 -77
- package/dist/models/TransactionLiteResourceArrayResponse.d.ts +0 -33
- package/dist/models/TransactionLiteResourceArrayResponse.js +0 -50
- package/src/models/TransactionLiteResource.ts +0 -128
- package/src/models/TransactionLiteResourceArrayResponse.ts +0 -73
|
@@ -1,128 +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
|
-
/**
|
|
17
|
-
*
|
|
18
|
-
* @export
|
|
19
|
-
* @interface TransactionLiteResource
|
|
20
|
-
*/
|
|
21
|
-
export interface TransactionLiteResource {
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {string}
|
|
25
|
-
* @memberof TransactionLiteResource
|
|
26
|
-
*/
|
|
27
|
-
paymentMethod: string;
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
* @type {string}
|
|
31
|
-
* @memberof TransactionLiteResource
|
|
32
|
-
*/
|
|
33
|
-
type: string;
|
|
34
|
-
/**
|
|
35
|
-
*
|
|
36
|
-
* @type {string}
|
|
37
|
-
* @memberof TransactionLiteResource
|
|
38
|
-
*/
|
|
39
|
-
status: string;
|
|
40
|
-
/**
|
|
41
|
-
*
|
|
42
|
-
* @type {number}
|
|
43
|
-
* @memberof TransactionLiteResource
|
|
44
|
-
*/
|
|
45
|
-
amount: number;
|
|
46
|
-
/**
|
|
47
|
-
*
|
|
48
|
-
* @type {number}
|
|
49
|
-
* @memberof TransactionLiteResource
|
|
50
|
-
*/
|
|
51
|
-
surcharge: number;
|
|
52
|
-
/**
|
|
53
|
-
*
|
|
54
|
-
* @type {number}
|
|
55
|
-
* @memberof TransactionLiteResource
|
|
56
|
-
*/
|
|
57
|
-
totalAmount: number;
|
|
58
|
-
/**
|
|
59
|
-
*
|
|
60
|
-
* @type {string}
|
|
61
|
-
* @memberof TransactionLiteResource
|
|
62
|
-
*/
|
|
63
|
-
reference: string;
|
|
64
|
-
/**
|
|
65
|
-
*
|
|
66
|
-
* @type {Date}
|
|
67
|
-
* @memberof TransactionLiteResource
|
|
68
|
-
*/
|
|
69
|
-
createdAt?: Date | null;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
/**
|
|
73
|
-
* Check if a given object implements the TransactionLiteResource interface.
|
|
74
|
-
*/
|
|
75
|
-
export function instanceOfTransactionLiteResource(value: object): value is TransactionLiteResource {
|
|
76
|
-
if (!('paymentMethod' in value) || value['paymentMethod'] === undefined) return false;
|
|
77
|
-
if (!('type' in value) || value['type'] === undefined) return false;
|
|
78
|
-
if (!('status' in value) || value['status'] === undefined) return false;
|
|
79
|
-
if (!('amount' in value) || value['amount'] === undefined) return false;
|
|
80
|
-
if (!('surcharge' in value) || value['surcharge'] === undefined) return false;
|
|
81
|
-
if (!('totalAmount' in value) || value['totalAmount'] === undefined) return false;
|
|
82
|
-
if (!('reference' in value) || value['reference'] === undefined) return false;
|
|
83
|
-
return true;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
export function TransactionLiteResourceFromJSON(json: any): TransactionLiteResource {
|
|
87
|
-
return TransactionLiteResourceFromJSONTyped(json, false);
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
export function TransactionLiteResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): TransactionLiteResource {
|
|
91
|
-
if (json == null) {
|
|
92
|
-
return json;
|
|
93
|
-
}
|
|
94
|
-
return {
|
|
95
|
-
|
|
96
|
-
'paymentMethod': json['payment_method'],
|
|
97
|
-
'type': json['type'],
|
|
98
|
-
'status': json['status'],
|
|
99
|
-
'amount': json['amount'],
|
|
100
|
-
'surcharge': json['surcharge'],
|
|
101
|
-
'totalAmount': json['total_amount'],
|
|
102
|
-
'reference': json['reference'],
|
|
103
|
-
'createdAt': json['created_at'] == null ? undefined : (new Date(json['created_at'])),
|
|
104
|
-
};
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
export function TransactionLiteResourceToJSON(json: any): TransactionLiteResource {
|
|
108
|
-
return TransactionLiteResourceToJSONTyped(json, false);
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
export function TransactionLiteResourceToJSONTyped(value?: TransactionLiteResource | null, ignoreDiscriminator: boolean = false): any {
|
|
112
|
-
if (value == null) {
|
|
113
|
-
return value;
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
return {
|
|
117
|
-
|
|
118
|
-
'payment_method': value['paymentMethod'],
|
|
119
|
-
'type': value['type'],
|
|
120
|
-
'status': value['status'],
|
|
121
|
-
'amount': value['amount'],
|
|
122
|
-
'surcharge': value['surcharge'],
|
|
123
|
-
'total_amount': value['totalAmount'],
|
|
124
|
-
'reference': value['reference'],
|
|
125
|
-
'created_at': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
|
|
126
|
-
};
|
|
127
|
-
}
|
|
128
|
-
|
|
@@ -1,73 +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 { TransactionLiteResource } from './TransactionLiteResource';
|
|
17
|
-
import {
|
|
18
|
-
TransactionLiteResourceFromJSON,
|
|
19
|
-
TransactionLiteResourceFromJSONTyped,
|
|
20
|
-
TransactionLiteResourceToJSON,
|
|
21
|
-
TransactionLiteResourceToJSONTyped,
|
|
22
|
-
} from './TransactionLiteResource';
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @export
|
|
27
|
-
* @interface TransactionLiteResourceArrayResponse
|
|
28
|
-
*/
|
|
29
|
-
export interface TransactionLiteResourceArrayResponse {
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {Array<TransactionLiteResource>}
|
|
33
|
-
* @memberof TransactionLiteResourceArrayResponse
|
|
34
|
-
*/
|
|
35
|
-
data?: Array<TransactionLiteResource>;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* Check if a given object implements the TransactionLiteResourceArrayResponse interface.
|
|
40
|
-
*/
|
|
41
|
-
export function instanceOfTransactionLiteResourceArrayResponse(value: object): value is TransactionLiteResourceArrayResponse {
|
|
42
|
-
return true;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
export function TransactionLiteResourceArrayResponseFromJSON(json: any): TransactionLiteResourceArrayResponse {
|
|
46
|
-
return TransactionLiteResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
export function TransactionLiteResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): TransactionLiteResourceArrayResponse {
|
|
50
|
-
if (json == null) {
|
|
51
|
-
return json;
|
|
52
|
-
}
|
|
53
|
-
return {
|
|
54
|
-
|
|
55
|
-
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(TransactionLiteResourceFromJSON)),
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
export function TransactionLiteResourceArrayResponseToJSON(json: any): TransactionLiteResourceArrayResponse {
|
|
60
|
-
return TransactionLiteResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
export function TransactionLiteResourceArrayResponseToJSONTyped(value?: TransactionLiteResourceArrayResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
64
|
-
if (value == null) {
|
|
65
|
-
return value;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
return {
|
|
69
|
-
|
|
70
|
-
'data': value['data'] == null ? undefined : ((value['data'] as Array<any>).map(TransactionLiteResourceToJSON)),
|
|
71
|
-
};
|
|
72
|
-
}
|
|
73
|
-
|