@digital8/lighting-illusions-ts-sdk 0.0.2049 → 0.0.2051
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 -18
- package/README.md +8 -14
- package/dist/apis/CartsApi.d.ts +8 -8
- package/dist/apis/CartsApi.js +8 -8
- package/dist/apis/CustomersApi.d.ts +0 -17
- package/dist/apis/CustomersApi.js +0 -62
- package/dist/apis/OrdersApi.d.ts +8 -8
- package/dist/apis/OrdersApi.js +10 -10
- package/dist/models/AddressResource.d.ts +1 -1
- package/dist/models/AddressResource.js +1 -3
- package/dist/models/AdminOrderResource.d.ts +1 -13
- package/dist/models/AdminOrderResource.js +3 -11
- package/dist/models/AttachCouponRequest.d.ts +32 -0
- package/dist/models/AttachCouponRequest.js +51 -0
- package/dist/models/AttachLineItemRequest.d.ts +44 -0
- package/dist/models/{AttachCartItemRequest.js → AttachLineItemRequest.js} +13 -13
- package/dist/models/CartListResource.d.ts +0 -48
- package/dist/models/CartListResource.js +0 -26
- package/dist/models/CartResource.d.ts +2 -2
- package/dist/models/CartResource.js +2 -2
- package/dist/models/DetachCouponRequest.d.ts +32 -0
- package/dist/models/DetachCouponRequest.js +51 -0
- package/dist/models/ExternalApiLogResource.d.ts +1 -1
- package/dist/models/ExternalApiLogResource.js +1 -3
- package/dist/models/StoreResource.d.ts +1 -1
- package/dist/models/StoreResource.js +1 -3
- package/dist/models/UpdateLineItemRequest.d.ts +38 -0
- package/dist/models/{UpdateCartItemRequest.js → UpdateLineItemRequest.js} +13 -13
- package/dist/models/index.d.ts +4 -9
- package/dist/models/index.js +4 -9
- package/docs/AdminOrderResource.md +2 -6
- package/docs/{AttachCartCouponRequest.md → AttachCouponRequest.md} +4 -4
- package/docs/{AttachCartItemRequest.md → AttachLineItemRequest.md} +4 -4
- package/docs/CartListResource.md +0 -16
- package/docs/CartResource.md +2 -2
- package/docs/CartsApi.md +16 -16
- package/docs/CustomersApi.md +0 -69
- package/docs/{DetachCartCouponRequest.md → DetachCouponRequest.md} +4 -4
- package/docs/OrdersApi.md +18 -18
- package/docs/{UpdateCartItemRequest.md → UpdateLineItemRequest.md} +4 -4
- package/package.json +1 -1
- package/src/apis/CartsApi.ts +25 -25
- package/src/apis/CustomersApi.ts +0 -58
- package/src/apis/OrdersApi.ts +26 -26
- package/src/models/AddressResource.ts +2 -3
- package/src/models/AdminOrderResource.ts +4 -22
- package/src/models/AttachCouponRequest.ts +66 -0
- package/src/models/{AttachCartItemRequest.ts → AttachLineItemRequest.ts} +13 -13
- package/src/models/CartListResource.ts +0 -69
- package/src/models/CartResource.ts +4 -4
- package/src/models/DetachCouponRequest.ts +66 -0
- package/src/models/ExternalApiLogResource.ts +2 -3
- package/src/models/StoreResource.ts +2 -3
- package/src/models/{UpdateCartItemRequest.ts → UpdateLineItemRequest.ts} +12 -12
- package/src/models/index.ts +4 -9
- package/dist/models/AttachCartCouponRequest.d.ts +0 -32
- package/dist/models/AttachCartCouponRequest.js +0 -51
- package/dist/models/AttachCartItemRequest.d.ts +0 -44
- package/dist/models/AttachOrderCouponRequest.d.ts +0 -32
- package/dist/models/AttachOrderCouponRequest.js +0 -51
- package/dist/models/AttachOrderLineItemRequest.d.ts +0 -44
- package/dist/models/AttachOrderLineItemRequest.js +0 -57
- package/dist/models/DetachCartCouponRequest.d.ts +0 -32
- package/dist/models/DetachCartCouponRequest.js +0 -51
- package/dist/models/DetachOrderCouponRequest.d.ts +0 -32
- package/dist/models/DetachOrderCouponRequest.js +0 -51
- package/dist/models/UpdateCartItemRequest.d.ts +0 -38
- package/dist/models/UpdateCustomerRequest.d.ts +0 -56
- package/dist/models/UpdateCustomerRequest.js +0 -63
- package/dist/models/UpdateOrderLineItemRequest.d.ts +0 -38
- package/dist/models/UpdateOrderLineItemRequest.js +0 -53
- package/docs/AttachOrderCouponRequest.md +0 -34
- package/docs/AttachOrderLineItemRequest.md +0 -38
- package/docs/DetachOrderCouponRequest.md +0 -34
- package/docs/UpdateCustomerRequest.md +0 -42
- package/docs/UpdateOrderLineItemRequest.md +0 -36
- package/src/models/AttachCartCouponRequest.ts +0 -66
- package/src/models/AttachOrderCouponRequest.ts +0 -66
- package/src/models/AttachOrderLineItemRequest.ts +0 -83
- package/src/models/DetachCartCouponRequest.ts +0 -66
- package/src/models/DetachOrderCouponRequest.ts +0 -66
- package/src/models/UpdateCustomerRequest.ts +0 -100
- package/src/models/UpdateOrderLineItemRequest.ts +0 -74
|
@@ -1,56 +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 UpdateCustomerRequest
|
|
16
|
-
*/
|
|
17
|
-
export interface UpdateCustomerRequest {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {number}
|
|
21
|
-
* @memberof UpdateCustomerRequest
|
|
22
|
-
*/
|
|
23
|
-
siteId?: number;
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof UpdateCustomerRequest
|
|
28
|
-
*/
|
|
29
|
-
firstName: string;
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof UpdateCustomerRequest
|
|
34
|
-
*/
|
|
35
|
-
lastName: string;
|
|
36
|
-
/**
|
|
37
|
-
*
|
|
38
|
-
* @type {string}
|
|
39
|
-
* @memberof UpdateCustomerRequest
|
|
40
|
-
*/
|
|
41
|
-
email: string;
|
|
42
|
-
/**
|
|
43
|
-
*
|
|
44
|
-
* @type {string}
|
|
45
|
-
* @memberof UpdateCustomerRequest
|
|
46
|
-
*/
|
|
47
|
-
phone?: string | null;
|
|
48
|
-
}
|
|
49
|
-
/**
|
|
50
|
-
* Check if a given object implements the UpdateCustomerRequest interface.
|
|
51
|
-
*/
|
|
52
|
-
export declare function instanceOfUpdateCustomerRequest(value: object): value is UpdateCustomerRequest;
|
|
53
|
-
export declare function UpdateCustomerRequestFromJSON(json: any): UpdateCustomerRequest;
|
|
54
|
-
export declare function UpdateCustomerRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateCustomerRequest;
|
|
55
|
-
export declare function UpdateCustomerRequestToJSON(json: any): UpdateCustomerRequest;
|
|
56
|
-
export declare function UpdateCustomerRequestToJSONTyped(value?: UpdateCustomerRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,63 +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.instanceOfUpdateCustomerRequest = instanceOfUpdateCustomerRequest;
|
|
17
|
-
exports.UpdateCustomerRequestFromJSON = UpdateCustomerRequestFromJSON;
|
|
18
|
-
exports.UpdateCustomerRequestFromJSONTyped = UpdateCustomerRequestFromJSONTyped;
|
|
19
|
-
exports.UpdateCustomerRequestToJSON = UpdateCustomerRequestToJSON;
|
|
20
|
-
exports.UpdateCustomerRequestToJSONTyped = UpdateCustomerRequestToJSONTyped;
|
|
21
|
-
/**
|
|
22
|
-
* Check if a given object implements the UpdateCustomerRequest interface.
|
|
23
|
-
*/
|
|
24
|
-
function instanceOfUpdateCustomerRequest(value) {
|
|
25
|
-
if (!('firstName' in value) || value['firstName'] === undefined)
|
|
26
|
-
return false;
|
|
27
|
-
if (!('lastName' in value) || value['lastName'] === undefined)
|
|
28
|
-
return false;
|
|
29
|
-
if (!('email' in value) || value['email'] === undefined)
|
|
30
|
-
return false;
|
|
31
|
-
return true;
|
|
32
|
-
}
|
|
33
|
-
function UpdateCustomerRequestFromJSON(json) {
|
|
34
|
-
return UpdateCustomerRequestFromJSONTyped(json, false);
|
|
35
|
-
}
|
|
36
|
-
function UpdateCustomerRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
-
if (json == null) {
|
|
38
|
-
return json;
|
|
39
|
-
}
|
|
40
|
-
return {
|
|
41
|
-
'siteId': json['site_id'] == null ? undefined : json['site_id'],
|
|
42
|
-
'firstName': json['first_name'],
|
|
43
|
-
'lastName': json['last_name'],
|
|
44
|
-
'email': json['email'],
|
|
45
|
-
'phone': json['phone'] == null ? undefined : json['phone'],
|
|
46
|
-
};
|
|
47
|
-
}
|
|
48
|
-
function UpdateCustomerRequestToJSON(json) {
|
|
49
|
-
return UpdateCustomerRequestToJSONTyped(json, false);
|
|
50
|
-
}
|
|
51
|
-
function UpdateCustomerRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
52
|
-
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
53
|
-
if (value == null) {
|
|
54
|
-
return value;
|
|
55
|
-
}
|
|
56
|
-
return {
|
|
57
|
-
'site_id': value['siteId'],
|
|
58
|
-
'first_name': value['firstName'],
|
|
59
|
-
'last_name': value['lastName'],
|
|
60
|
-
'email': value['email'],
|
|
61
|
-
'phone': value['phone'],
|
|
62
|
-
};
|
|
63
|
-
}
|
|
@@ -1,38 +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 UpdateOrderLineItemRequest
|
|
16
|
-
*/
|
|
17
|
-
export interface UpdateOrderLineItemRequest {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {number}
|
|
21
|
-
* @memberof UpdateOrderLineItemRequest
|
|
22
|
-
*/
|
|
23
|
-
quantity: number;
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {number}
|
|
27
|
-
* @memberof UpdateOrderLineItemRequest
|
|
28
|
-
*/
|
|
29
|
-
productPrice?: number | null;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Check if a given object implements the UpdateOrderLineItemRequest interface.
|
|
33
|
-
*/
|
|
34
|
-
export declare function instanceOfUpdateOrderLineItemRequest(value: object): value is UpdateOrderLineItemRequest;
|
|
35
|
-
export declare function UpdateOrderLineItemRequestFromJSON(json: any): UpdateOrderLineItemRequest;
|
|
36
|
-
export declare function UpdateOrderLineItemRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateOrderLineItemRequest;
|
|
37
|
-
export declare function UpdateOrderLineItemRequestToJSON(json: any): UpdateOrderLineItemRequest;
|
|
38
|
-
export declare function UpdateOrderLineItemRequestToJSONTyped(value?: UpdateOrderLineItemRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,53 +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.instanceOfUpdateOrderLineItemRequest = instanceOfUpdateOrderLineItemRequest;
|
|
17
|
-
exports.UpdateOrderLineItemRequestFromJSON = UpdateOrderLineItemRequestFromJSON;
|
|
18
|
-
exports.UpdateOrderLineItemRequestFromJSONTyped = UpdateOrderLineItemRequestFromJSONTyped;
|
|
19
|
-
exports.UpdateOrderLineItemRequestToJSON = UpdateOrderLineItemRequestToJSON;
|
|
20
|
-
exports.UpdateOrderLineItemRequestToJSONTyped = UpdateOrderLineItemRequestToJSONTyped;
|
|
21
|
-
/**
|
|
22
|
-
* Check if a given object implements the UpdateOrderLineItemRequest interface.
|
|
23
|
-
*/
|
|
24
|
-
function instanceOfUpdateOrderLineItemRequest(value) {
|
|
25
|
-
if (!('quantity' in value) || value['quantity'] === undefined)
|
|
26
|
-
return false;
|
|
27
|
-
return true;
|
|
28
|
-
}
|
|
29
|
-
function UpdateOrderLineItemRequestFromJSON(json) {
|
|
30
|
-
return UpdateOrderLineItemRequestFromJSONTyped(json, false);
|
|
31
|
-
}
|
|
32
|
-
function UpdateOrderLineItemRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
-
if (json == null) {
|
|
34
|
-
return json;
|
|
35
|
-
}
|
|
36
|
-
return {
|
|
37
|
-
'quantity': json['quantity'],
|
|
38
|
-
'productPrice': json['product_price'] == null ? undefined : json['product_price'],
|
|
39
|
-
};
|
|
40
|
-
}
|
|
41
|
-
function UpdateOrderLineItemRequestToJSON(json) {
|
|
42
|
-
return UpdateOrderLineItemRequestToJSONTyped(json, false);
|
|
43
|
-
}
|
|
44
|
-
function UpdateOrderLineItemRequestToJSONTyped(value, ignoreDiscriminator) {
|
|
45
|
-
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
46
|
-
if (value == null) {
|
|
47
|
-
return value;
|
|
48
|
-
}
|
|
49
|
-
return {
|
|
50
|
-
'quantity': value['quantity'],
|
|
51
|
-
'product_price': value['productPrice'],
|
|
52
|
-
};
|
|
53
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# AttachOrderCouponRequest
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type
|
|
8
|
-
------------ | -------------
|
|
9
|
-
`couponCode` | string
|
|
10
|
-
|
|
11
|
-
## Example
|
|
12
|
-
|
|
13
|
-
```typescript
|
|
14
|
-
import type { AttachOrderCouponRequest } from '@digital8/lighting-illusions-ts-sdk'
|
|
15
|
-
|
|
16
|
-
// TODO: Update the object below with actual values
|
|
17
|
-
const example = {
|
|
18
|
-
"couponCode": null,
|
|
19
|
-
} satisfies AttachOrderCouponRequest
|
|
20
|
-
|
|
21
|
-
console.log(example)
|
|
22
|
-
|
|
23
|
-
// Convert the instance to a JSON string
|
|
24
|
-
const exampleJSON: string = JSON.stringify(example)
|
|
25
|
-
console.log(exampleJSON)
|
|
26
|
-
|
|
27
|
-
// Parse the JSON string back to an object
|
|
28
|
-
const exampleParsed = JSON.parse(exampleJSON) as AttachOrderCouponRequest
|
|
29
|
-
console.log(exampleParsed)
|
|
30
|
-
```
|
|
31
|
-
|
|
32
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
33
|
-
|
|
34
|
-
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# AttachOrderLineItemRequest
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type
|
|
8
|
-
------------ | -------------
|
|
9
|
-
`productChildId` | number
|
|
10
|
-
`quantity` | number
|
|
11
|
-
`productPrice` | number
|
|
12
|
-
|
|
13
|
-
## Example
|
|
14
|
-
|
|
15
|
-
```typescript
|
|
16
|
-
import type { AttachOrderLineItemRequest } from '@digital8/lighting-illusions-ts-sdk'
|
|
17
|
-
|
|
18
|
-
// TODO: Update the object below with actual values
|
|
19
|
-
const example = {
|
|
20
|
-
"productChildId": null,
|
|
21
|
-
"quantity": null,
|
|
22
|
-
"productPrice": null,
|
|
23
|
-
} satisfies AttachOrderLineItemRequest
|
|
24
|
-
|
|
25
|
-
console.log(example)
|
|
26
|
-
|
|
27
|
-
// Convert the instance to a JSON string
|
|
28
|
-
const exampleJSON: string = JSON.stringify(example)
|
|
29
|
-
console.log(exampleJSON)
|
|
30
|
-
|
|
31
|
-
// Parse the JSON string back to an object
|
|
32
|
-
const exampleParsed = JSON.parse(exampleJSON) as AttachOrderLineItemRequest
|
|
33
|
-
console.log(exampleParsed)
|
|
34
|
-
```
|
|
35
|
-
|
|
36
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
37
|
-
|
|
38
|
-
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# DetachOrderCouponRequest
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type
|
|
8
|
-
------------ | -------------
|
|
9
|
-
`couponId` | number
|
|
10
|
-
|
|
11
|
-
## Example
|
|
12
|
-
|
|
13
|
-
```typescript
|
|
14
|
-
import type { DetachOrderCouponRequest } from '@digital8/lighting-illusions-ts-sdk'
|
|
15
|
-
|
|
16
|
-
// TODO: Update the object below with actual values
|
|
17
|
-
const example = {
|
|
18
|
-
"couponId": null,
|
|
19
|
-
} satisfies DetachOrderCouponRequest
|
|
20
|
-
|
|
21
|
-
console.log(example)
|
|
22
|
-
|
|
23
|
-
// Convert the instance to a JSON string
|
|
24
|
-
const exampleJSON: string = JSON.stringify(example)
|
|
25
|
-
console.log(exampleJSON)
|
|
26
|
-
|
|
27
|
-
// Parse the JSON string back to an object
|
|
28
|
-
const exampleParsed = JSON.parse(exampleJSON) as DetachOrderCouponRequest
|
|
29
|
-
console.log(exampleParsed)
|
|
30
|
-
```
|
|
31
|
-
|
|
32
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
33
|
-
|
|
34
|
-
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# UpdateCustomerRequest
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type
|
|
8
|
-
------------ | -------------
|
|
9
|
-
`siteId` | number
|
|
10
|
-
`firstName` | string
|
|
11
|
-
`lastName` | string
|
|
12
|
-
`email` | string
|
|
13
|
-
`phone` | string
|
|
14
|
-
|
|
15
|
-
## Example
|
|
16
|
-
|
|
17
|
-
```typescript
|
|
18
|
-
import type { UpdateCustomerRequest } from '@digital8/lighting-illusions-ts-sdk'
|
|
19
|
-
|
|
20
|
-
// TODO: Update the object below with actual values
|
|
21
|
-
const example = {
|
|
22
|
-
"siteId": null,
|
|
23
|
-
"firstName": null,
|
|
24
|
-
"lastName": null,
|
|
25
|
-
"email": null,
|
|
26
|
-
"phone": null,
|
|
27
|
-
} satisfies UpdateCustomerRequest
|
|
28
|
-
|
|
29
|
-
console.log(example)
|
|
30
|
-
|
|
31
|
-
// Convert the instance to a JSON string
|
|
32
|
-
const exampleJSON: string = JSON.stringify(example)
|
|
33
|
-
console.log(exampleJSON)
|
|
34
|
-
|
|
35
|
-
// Parse the JSON string back to an object
|
|
36
|
-
const exampleParsed = JSON.parse(exampleJSON) as UpdateCustomerRequest
|
|
37
|
-
console.log(exampleParsed)
|
|
38
|
-
```
|
|
39
|
-
|
|
40
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
41
|
-
|
|
42
|
-
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# UpdateOrderLineItemRequest
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type
|
|
8
|
-
------------ | -------------
|
|
9
|
-
`quantity` | number
|
|
10
|
-
`productPrice` | number
|
|
11
|
-
|
|
12
|
-
## Example
|
|
13
|
-
|
|
14
|
-
```typescript
|
|
15
|
-
import type { UpdateOrderLineItemRequest } from '@digital8/lighting-illusions-ts-sdk'
|
|
16
|
-
|
|
17
|
-
// TODO: Update the object below with actual values
|
|
18
|
-
const example = {
|
|
19
|
-
"quantity": null,
|
|
20
|
-
"productPrice": null,
|
|
21
|
-
} satisfies UpdateOrderLineItemRequest
|
|
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 UpdateOrderLineItemRequest
|
|
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,66 +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 AttachCartCouponRequest
|
|
20
|
-
*/
|
|
21
|
-
export interface AttachCartCouponRequest {
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {string}
|
|
25
|
-
* @memberof AttachCartCouponRequest
|
|
26
|
-
*/
|
|
27
|
-
couponCode: string;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* Check if a given object implements the AttachCartCouponRequest interface.
|
|
32
|
-
*/
|
|
33
|
-
export function instanceOfAttachCartCouponRequest(value: object): value is AttachCartCouponRequest {
|
|
34
|
-
if (!('couponCode' in value) || value['couponCode'] === undefined) return false;
|
|
35
|
-
return true;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
export function AttachCartCouponRequestFromJSON(json: any): AttachCartCouponRequest {
|
|
39
|
-
return AttachCartCouponRequestFromJSONTyped(json, false);
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
export function AttachCartCouponRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AttachCartCouponRequest {
|
|
43
|
-
if (json == null) {
|
|
44
|
-
return json;
|
|
45
|
-
}
|
|
46
|
-
return {
|
|
47
|
-
|
|
48
|
-
'couponCode': json['coupon_code'],
|
|
49
|
-
};
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
export function AttachCartCouponRequestToJSON(json: any): AttachCartCouponRequest {
|
|
53
|
-
return AttachCartCouponRequestToJSONTyped(json, false);
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
export function AttachCartCouponRequestToJSONTyped(value?: AttachCartCouponRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
-
if (value == null) {
|
|
58
|
-
return value;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
return {
|
|
62
|
-
|
|
63
|
-
'coupon_code': value['couponCode'],
|
|
64
|
-
};
|
|
65
|
-
}
|
|
66
|
-
|
|
@@ -1,66 +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 AttachOrderCouponRequest
|
|
20
|
-
*/
|
|
21
|
-
export interface AttachOrderCouponRequest {
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {string}
|
|
25
|
-
* @memberof AttachOrderCouponRequest
|
|
26
|
-
*/
|
|
27
|
-
couponCode: string;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* Check if a given object implements the AttachOrderCouponRequest interface.
|
|
32
|
-
*/
|
|
33
|
-
export function instanceOfAttachOrderCouponRequest(value: object): value is AttachOrderCouponRequest {
|
|
34
|
-
if (!('couponCode' in value) || value['couponCode'] === undefined) return false;
|
|
35
|
-
return true;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
export function AttachOrderCouponRequestFromJSON(json: any): AttachOrderCouponRequest {
|
|
39
|
-
return AttachOrderCouponRequestFromJSONTyped(json, false);
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
export function AttachOrderCouponRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AttachOrderCouponRequest {
|
|
43
|
-
if (json == null) {
|
|
44
|
-
return json;
|
|
45
|
-
}
|
|
46
|
-
return {
|
|
47
|
-
|
|
48
|
-
'couponCode': json['coupon_code'],
|
|
49
|
-
};
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
export function AttachOrderCouponRequestToJSON(json: any): AttachOrderCouponRequest {
|
|
53
|
-
return AttachOrderCouponRequestToJSONTyped(json, false);
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
export function AttachOrderCouponRequestToJSONTyped(value?: AttachOrderCouponRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
-
if (value == null) {
|
|
58
|
-
return value;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
return {
|
|
62
|
-
|
|
63
|
-
'coupon_code': value['couponCode'],
|
|
64
|
-
};
|
|
65
|
-
}
|
|
66
|
-
|
|
@@ -1,83 +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 AttachOrderLineItemRequest
|
|
20
|
-
*/
|
|
21
|
-
export interface AttachOrderLineItemRequest {
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {number}
|
|
25
|
-
* @memberof AttachOrderLineItemRequest
|
|
26
|
-
*/
|
|
27
|
-
productChildId: number;
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
* @type {number}
|
|
31
|
-
* @memberof AttachOrderLineItemRequest
|
|
32
|
-
*/
|
|
33
|
-
quantity: number;
|
|
34
|
-
/**
|
|
35
|
-
*
|
|
36
|
-
* @type {number}
|
|
37
|
-
* @memberof AttachOrderLineItemRequest
|
|
38
|
-
*/
|
|
39
|
-
productPrice?: number | null;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* Check if a given object implements the AttachOrderLineItemRequest interface.
|
|
44
|
-
*/
|
|
45
|
-
export function instanceOfAttachOrderLineItemRequest(value: object): value is AttachOrderLineItemRequest {
|
|
46
|
-
if (!('productChildId' in value) || value['productChildId'] === undefined) return false;
|
|
47
|
-
if (!('quantity' in value) || value['quantity'] === undefined) return false;
|
|
48
|
-
return true;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
export function AttachOrderLineItemRequestFromJSON(json: any): AttachOrderLineItemRequest {
|
|
52
|
-
return AttachOrderLineItemRequestFromJSONTyped(json, false);
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
export function AttachOrderLineItemRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AttachOrderLineItemRequest {
|
|
56
|
-
if (json == null) {
|
|
57
|
-
return json;
|
|
58
|
-
}
|
|
59
|
-
return {
|
|
60
|
-
|
|
61
|
-
'productChildId': json['product_child_id'],
|
|
62
|
-
'quantity': json['quantity'],
|
|
63
|
-
'productPrice': json['product_price'] == null ? undefined : json['product_price'],
|
|
64
|
-
};
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
export function AttachOrderLineItemRequestToJSON(json: any): AttachOrderLineItemRequest {
|
|
68
|
-
return AttachOrderLineItemRequestToJSONTyped(json, false);
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
export function AttachOrderLineItemRequestToJSONTyped(value?: AttachOrderLineItemRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
72
|
-
if (value == null) {
|
|
73
|
-
return value;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
return {
|
|
77
|
-
|
|
78
|
-
'product_child_id': value['productChildId'],
|
|
79
|
-
'quantity': value['quantity'],
|
|
80
|
-
'product_price': value['productPrice'],
|
|
81
|
-
};
|
|
82
|
-
}
|
|
83
|
-
|
|
@@ -1,66 +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 DetachCartCouponRequest
|
|
20
|
-
*/
|
|
21
|
-
export interface DetachCartCouponRequest {
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {Array<number>}
|
|
25
|
-
* @memberof DetachCartCouponRequest
|
|
26
|
-
*/
|
|
27
|
-
couponIds: Array<number>;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* Check if a given object implements the DetachCartCouponRequest interface.
|
|
32
|
-
*/
|
|
33
|
-
export function instanceOfDetachCartCouponRequest(value: object): value is DetachCartCouponRequest {
|
|
34
|
-
if (!('couponIds' in value) || value['couponIds'] === undefined) return false;
|
|
35
|
-
return true;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
export function DetachCartCouponRequestFromJSON(json: any): DetachCartCouponRequest {
|
|
39
|
-
return DetachCartCouponRequestFromJSONTyped(json, false);
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
export function DetachCartCouponRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DetachCartCouponRequest {
|
|
43
|
-
if (json == null) {
|
|
44
|
-
return json;
|
|
45
|
-
}
|
|
46
|
-
return {
|
|
47
|
-
|
|
48
|
-
'couponIds': json['coupon_ids'],
|
|
49
|
-
};
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
export function DetachCartCouponRequestToJSON(json: any): DetachCartCouponRequest {
|
|
53
|
-
return DetachCartCouponRequestToJSONTyped(json, false);
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
export function DetachCartCouponRequestToJSONTyped(value?: DetachCartCouponRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
-
if (value == null) {
|
|
58
|
-
return value;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
return {
|
|
62
|
-
|
|
63
|
-
'coupon_ids': value['couponIds'],
|
|
64
|
-
};
|
|
65
|
-
}
|
|
66
|
-
|