@digital8/lighting-illusions-ts-sdk 0.0.2097 → 0.0.2098
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 +18 -20
- package/README.md +12 -13
- package/dist/apis/OrdersApi.d.ts +17 -15
- package/dist/apis/OrdersApi.js +60 -59
- package/dist/models/AddressResource.d.ts +1 -1
- package/dist/models/AddressResource.js +1 -3
- package/dist/models/AdminOrderLineItemResource.d.ts +93 -0
- package/dist/models/AdminOrderLineItemResource.js +90 -0
- package/dist/models/AdminOrderLineItemResourceArrayResponse.d.ts +33 -0
- package/dist/models/AdminOrderLineItemResourceArrayResponse.js +50 -0
- package/dist/models/AdminOrderResource.d.ts +16 -3
- package/dist/models/AdminOrderResource.js +12 -3
- package/dist/models/OrderFulfillmentLineItemResource.d.ts +45 -0
- package/dist/models/OrderFulfillmentLineItemResource.js +60 -0
- package/dist/models/OrderFulfillmentLineItemResourceArrayResponse.d.ts +33 -0
- package/dist/models/OrderFulfillmentLineItemResourceArrayResponse.js +50 -0
- package/dist/models/OrderFulfillmentResource.d.ts +86 -0
- package/dist/models/OrderFulfillmentResource.js +81 -0
- package/dist/models/OrderFulfillmentResourceArrayResponse.d.ts +33 -0
- package/dist/models/OrderFulfillmentResourceArrayResponse.js +50 -0
- package/dist/models/OrderStatusId.d.ts +39 -0
- package/dist/models/OrderStatusId.js +65 -0
- package/dist/models/PaginatedOrderFulfillmentResourceResponse.d.ts +40 -0
- package/dist/models/PaginatedOrderFulfillmentResourceResponse.js +57 -0
- package/dist/models/PaymentSource.d.ts +0 -1
- package/dist/models/PaymentSource.js +1 -2
- package/dist/models/ProductChildLineItemLiteResource.d.ts +0 -18
- package/dist/models/ProductChildLineItemLiteResource.js +0 -12
- package/dist/models/SearchOrderFulfillmentsRequest.d.ts +120 -0
- package/dist/models/SearchOrderFulfillmentsRequest.js +88 -0
- package/dist/models/StoreFrontendResource.d.ts +1 -1
- package/dist/models/StoreFrontendResource.js +1 -3
- package/dist/models/index.d.ts +9 -10
- package/dist/models/index.js +9 -10
- package/docs/{FrontendLineItemResource.md → AdminOrderLineItemResource.md} +18 -14
- package/docs/{FrontendOrderResourceArrayResponse.md → AdminOrderLineItemResourceArrayResponse.md} +5 -5
- package/docs/AdminOrderResource.md +5 -1
- package/docs/{FrontendCartResourceCouponsInner.md → OrderFulfillmentLineItemResource.md} +8 -12
- package/docs/{CartCouponLiteResourceArrayResponse.md → OrderFulfillmentLineItemResourceArrayResponse.md} +5 -5
- package/docs/OrderFulfillmentResource.md +52 -0
- package/docs/{FrontendLineItemResourceArrayResponse.md → OrderFulfillmentResourceArrayResponse.md} +5 -5
- package/docs/{OrderOmnisendEvent.md → OrderStatusId.md} +4 -4
- package/docs/OrdersApi.md +66 -66
- package/docs/{FrontendCartResourceArrayResponse.md → PaginatedOrderFulfillmentResourceResponse.md} +7 -5
- package/docs/ProductChildLineItemLiteResource.md +0 -6
- package/docs/SearchOrderFulfillmentsRequest.md +58 -0
- package/package.json +1 -1
- package/src/apis/OrdersApi.ts +54 -49
- package/src/models/AddressResource.ts +2 -3
- package/src/models/AdminOrderLineItemResource.ts +163 -0
- package/src/models/AdminOrderLineItemResourceArrayResponse.ts +73 -0
- package/src/models/AdminOrderResource.ts +36 -11
- package/src/models/OrderFulfillmentLineItemResource.ts +92 -0
- package/src/models/OrderFulfillmentLineItemResourceArrayResponse.ts +73 -0
- package/src/models/OrderFulfillmentResource.ts +144 -0
- package/src/models/OrderFulfillmentResourceArrayResponse.ts +73 -0
- package/src/models/OrderStatusId.ts +67 -0
- package/src/models/PaginatedOrderFulfillmentResourceResponse.ts +90 -0
- package/src/models/PaymentSource.ts +1 -2
- package/src/models/ProductChildLineItemLiteResource.ts +0 -27
- package/src/models/SearchOrderFulfillmentsRequest.ts +181 -0
- package/src/models/StoreFrontendResource.ts +2 -3
- package/src/models/index.ts +9 -10
- package/dist/models/CartCouponLiteResource.d.ts +0 -56
- package/dist/models/CartCouponLiteResource.js +0 -67
- package/dist/models/CartCouponLiteResourceArrayResponse.d.ts +0 -33
- package/dist/models/CartCouponLiteResourceArrayResponse.js +0 -50
- package/dist/models/FrontendCartResource.d.ts +0 -144
- package/dist/models/FrontendCartResource.js +0 -121
- package/dist/models/FrontendCartResourceArrayResponse.d.ts +0 -33
- package/dist/models/FrontendCartResourceArrayResponse.js +0 -50
- package/dist/models/FrontendCartResourceCouponsInner.d.ts +0 -56
- package/dist/models/FrontendCartResourceCouponsInner.js +0 -57
- package/dist/models/FrontendLineItemResource.d.ts +0 -81
- package/dist/models/FrontendLineItemResource.js +0 -82
- package/dist/models/FrontendLineItemResourceArrayResponse.d.ts +0 -33
- package/dist/models/FrontendLineItemResourceArrayResponse.js +0 -50
- package/dist/models/FrontendOrderResource.d.ts +0 -174
- package/dist/models/FrontendOrderResource.js +0 -141
- package/dist/models/FrontendOrderResourceArrayResponse.d.ts +0 -33
- package/dist/models/FrontendOrderResourceArrayResponse.js +0 -50
- package/dist/models/OrderOmnisendEvent.d.ts +0 -25
- package/dist/models/OrderOmnisendEvent.js +0 -51
- package/docs/CartCouponLiteResource.md +0 -42
- package/docs/FrontendCartResource.md +0 -70
- package/docs/FrontendOrderResource.md +0 -80
- package/src/models/CartCouponLiteResource.ts +0 -102
- package/src/models/CartCouponLiteResourceArrayResponse.ts +0 -73
- package/src/models/FrontendCartResource.ts +0 -254
- package/src/models/FrontendCartResourceArrayResponse.ts +0 -73
- package/src/models/FrontendCartResourceCouponsInner.ts +0 -97
- package/src/models/FrontendLineItemResource.ts +0 -145
- package/src/models/FrontendLineItemResourceArrayResponse.ts +0 -73
- package/src/models/FrontendOrderResource.ts +0 -299
- package/src/models/FrontendOrderResourceArrayResponse.ts +0 -73
- package/src/models/OrderOmnisendEvent.ts +0 -53
|
@@ -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.instanceOfFrontendOrderResourceArrayResponse = instanceOfFrontendOrderResourceArrayResponse;
|
|
17
|
-
exports.FrontendOrderResourceArrayResponseFromJSON = FrontendOrderResourceArrayResponseFromJSON;
|
|
18
|
-
exports.FrontendOrderResourceArrayResponseFromJSONTyped = FrontendOrderResourceArrayResponseFromJSONTyped;
|
|
19
|
-
exports.FrontendOrderResourceArrayResponseToJSON = FrontendOrderResourceArrayResponseToJSON;
|
|
20
|
-
exports.FrontendOrderResourceArrayResponseToJSONTyped = FrontendOrderResourceArrayResponseToJSONTyped;
|
|
21
|
-
var FrontendOrderResource_1 = require("./FrontendOrderResource");
|
|
22
|
-
/**
|
|
23
|
-
* Check if a given object implements the FrontendOrderResourceArrayResponse interface.
|
|
24
|
-
*/
|
|
25
|
-
function instanceOfFrontendOrderResourceArrayResponse(value) {
|
|
26
|
-
return true;
|
|
27
|
-
}
|
|
28
|
-
function FrontendOrderResourceArrayResponseFromJSON(json) {
|
|
29
|
-
return FrontendOrderResourceArrayResponseFromJSONTyped(json, false);
|
|
30
|
-
}
|
|
31
|
-
function FrontendOrderResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
-
if (json == null) {
|
|
33
|
-
return json;
|
|
34
|
-
}
|
|
35
|
-
return {
|
|
36
|
-
'data': json['data'] == null ? undefined : (json['data'].map(FrontendOrderResource_1.FrontendOrderResourceFromJSON)),
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
function FrontendOrderResourceArrayResponseToJSON(json) {
|
|
40
|
-
return FrontendOrderResourceArrayResponseToJSONTyped(json, false);
|
|
41
|
-
}
|
|
42
|
-
function FrontendOrderResourceArrayResponseToJSONTyped(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(FrontendOrderResource_1.FrontendOrderResourceToJSON)),
|
|
49
|
-
};
|
|
50
|
-
}
|
|
@@ -1,25 +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
|
-
*/
|
|
16
|
-
export declare const OrderOmnisendEvent: {
|
|
17
|
-
readonly PlacedOrder: "placed order";
|
|
18
|
-
readonly PaidForOrder: "paid for order";
|
|
19
|
-
};
|
|
20
|
-
export type OrderOmnisendEvent = typeof OrderOmnisendEvent[keyof typeof OrderOmnisendEvent];
|
|
21
|
-
export declare function instanceOfOrderOmnisendEvent(value: any): boolean;
|
|
22
|
-
export declare function OrderOmnisendEventFromJSON(json: any): OrderOmnisendEvent;
|
|
23
|
-
export declare function OrderOmnisendEventFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderOmnisendEvent;
|
|
24
|
-
export declare function OrderOmnisendEventToJSON(value?: OrderOmnisendEvent | null): any;
|
|
25
|
-
export declare function OrderOmnisendEventToJSONTyped(value: any, ignoreDiscriminator: boolean): OrderOmnisendEvent;
|
|
@@ -1,51 +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.OrderOmnisendEvent = void 0;
|
|
17
|
-
exports.instanceOfOrderOmnisendEvent = instanceOfOrderOmnisendEvent;
|
|
18
|
-
exports.OrderOmnisendEventFromJSON = OrderOmnisendEventFromJSON;
|
|
19
|
-
exports.OrderOmnisendEventFromJSONTyped = OrderOmnisendEventFromJSONTyped;
|
|
20
|
-
exports.OrderOmnisendEventToJSON = OrderOmnisendEventToJSON;
|
|
21
|
-
exports.OrderOmnisendEventToJSONTyped = OrderOmnisendEventToJSONTyped;
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @export
|
|
25
|
-
*/
|
|
26
|
-
exports.OrderOmnisendEvent = {
|
|
27
|
-
PlacedOrder: 'placed order',
|
|
28
|
-
PaidForOrder: 'paid for order'
|
|
29
|
-
};
|
|
30
|
-
function instanceOfOrderOmnisendEvent(value) {
|
|
31
|
-
for (var key in exports.OrderOmnisendEvent) {
|
|
32
|
-
if (Object.prototype.hasOwnProperty.call(exports.OrderOmnisendEvent, key)) {
|
|
33
|
-
if (exports.OrderOmnisendEvent[key] === value) {
|
|
34
|
-
return true;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
return false;
|
|
39
|
-
}
|
|
40
|
-
function OrderOmnisendEventFromJSON(json) {
|
|
41
|
-
return OrderOmnisendEventFromJSONTyped(json, false);
|
|
42
|
-
}
|
|
43
|
-
function OrderOmnisendEventFromJSONTyped(json, ignoreDiscriminator) {
|
|
44
|
-
return json;
|
|
45
|
-
}
|
|
46
|
-
function OrderOmnisendEventToJSON(value) {
|
|
47
|
-
return value;
|
|
48
|
-
}
|
|
49
|
-
function OrderOmnisendEventToJSONTyped(value, ignoreDiscriminator) {
|
|
50
|
-
return value;
|
|
51
|
-
}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# CartCouponLiteResource
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type
|
|
8
|
-
------------ | -------------
|
|
9
|
-
`id` | number
|
|
10
|
-
`code` | string
|
|
11
|
-
`name` | string
|
|
12
|
-
`discount` | number
|
|
13
|
-
`appliesTo` | string
|
|
14
|
-
|
|
15
|
-
## Example
|
|
16
|
-
|
|
17
|
-
```typescript
|
|
18
|
-
import type { CartCouponLiteResource } from '@digital8/lighting-illusions-ts-sdk'
|
|
19
|
-
|
|
20
|
-
// TODO: Update the object below with actual values
|
|
21
|
-
const example = {
|
|
22
|
-
"id": null,
|
|
23
|
-
"code": null,
|
|
24
|
-
"name": null,
|
|
25
|
-
"discount": null,
|
|
26
|
-
"appliesTo": null,
|
|
27
|
-
} satisfies CartCouponLiteResource
|
|
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 CartCouponLiteResource
|
|
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,70 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# FrontendCartResource
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type
|
|
8
|
-
------------ | -------------
|
|
9
|
-
`id` | number
|
|
10
|
-
`lifecycleStatus` | string
|
|
11
|
-
`siteId` | number
|
|
12
|
-
`sessionToken` | string
|
|
13
|
-
`guestEmail` | string
|
|
14
|
-
`customer` | [CustomerListResource](CustomerListResource.md)
|
|
15
|
-
`shippingType` | string
|
|
16
|
-
`shippingAddress` | [AddressResource](AddressResource.md)
|
|
17
|
-
`billingAddress` | [AddressResource](AddressResource.md)
|
|
18
|
-
`lineItems` | [Array<FrontendLineItemResource>](FrontendLineItemResource.md)
|
|
19
|
-
`coupons` | [Array<FrontendCartResourceCouponsInner>](FrontendCartResourceCouponsInner.md)
|
|
20
|
-
`subtotal` | number
|
|
21
|
-
`promotionalDiscount` | number
|
|
22
|
-
`couponSubtotalDiscount` | number
|
|
23
|
-
`couponShippingDiscount` | number
|
|
24
|
-
`shipping` | number
|
|
25
|
-
`transitInsurance` | number
|
|
26
|
-
`gst` | number
|
|
27
|
-
`grandTotal` | number
|
|
28
|
-
|
|
29
|
-
## Example
|
|
30
|
-
|
|
31
|
-
```typescript
|
|
32
|
-
import type { FrontendCartResource } from '@digital8/lighting-illusions-ts-sdk'
|
|
33
|
-
|
|
34
|
-
// TODO: Update the object below with actual values
|
|
35
|
-
const example = {
|
|
36
|
-
"id": null,
|
|
37
|
-
"lifecycleStatus": null,
|
|
38
|
-
"siteId": null,
|
|
39
|
-
"sessionToken": null,
|
|
40
|
-
"guestEmail": null,
|
|
41
|
-
"customer": null,
|
|
42
|
-
"shippingType": null,
|
|
43
|
-
"shippingAddress": null,
|
|
44
|
-
"billingAddress": null,
|
|
45
|
-
"lineItems": null,
|
|
46
|
-
"coupons": null,
|
|
47
|
-
"subtotal": null,
|
|
48
|
-
"promotionalDiscount": null,
|
|
49
|
-
"couponSubtotalDiscount": null,
|
|
50
|
-
"couponShippingDiscount": null,
|
|
51
|
-
"shipping": null,
|
|
52
|
-
"transitInsurance": null,
|
|
53
|
-
"gst": null,
|
|
54
|
-
"grandTotal": null,
|
|
55
|
-
} satisfies FrontendCartResource
|
|
56
|
-
|
|
57
|
-
console.log(example)
|
|
58
|
-
|
|
59
|
-
// Convert the instance to a JSON string
|
|
60
|
-
const exampleJSON: string = JSON.stringify(example)
|
|
61
|
-
console.log(exampleJSON)
|
|
62
|
-
|
|
63
|
-
// Parse the JSON string back to an object
|
|
64
|
-
const exampleParsed = JSON.parse(exampleJSON) as FrontendCartResource
|
|
65
|
-
console.log(exampleParsed)
|
|
66
|
-
```
|
|
67
|
-
|
|
68
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
69
|
-
|
|
70
|
-
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# FrontendOrderResource
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
Name | Type
|
|
8
|
-
------------ | -------------
|
|
9
|
-
`id` | number
|
|
10
|
-
`cartId` | number
|
|
11
|
-
`siteId` | number
|
|
12
|
-
`placedAt` | Date
|
|
13
|
-
`source` | string
|
|
14
|
-
`paymentToken` | string
|
|
15
|
-
`accessToken` | object
|
|
16
|
-
`shippingType` | string
|
|
17
|
-
`customer` | [CustomerListResource](CustomerListResource.md)
|
|
18
|
-
`status` | object
|
|
19
|
-
`shippingAddress` | [AddressResource](AddressResource.md)
|
|
20
|
-
`billingAddress` | [AddressResource](AddressResource.md)
|
|
21
|
-
`lineItems` | [Array<FrontendLineItemResource>](FrontendLineItemResource.md)
|
|
22
|
-
`coupons` | [Array<CartCouponLiteResource>](CartCouponLiteResource.md)
|
|
23
|
-
`subtotal` | number
|
|
24
|
-
`promotionalDiscount` | number
|
|
25
|
-
`couponSubtotalDiscount` | number
|
|
26
|
-
`couponShippingDiscount` | number
|
|
27
|
-
`shipping` | number
|
|
28
|
-
`transitInsurance` | number
|
|
29
|
-
`gst` | number
|
|
30
|
-
`grandTotal` | number
|
|
31
|
-
`amountPaid` | number
|
|
32
|
-
`amountDue` | number
|
|
33
|
-
|
|
34
|
-
## Example
|
|
35
|
-
|
|
36
|
-
```typescript
|
|
37
|
-
import type { FrontendOrderResource } from '@digital8/lighting-illusions-ts-sdk'
|
|
38
|
-
|
|
39
|
-
// TODO: Update the object below with actual values
|
|
40
|
-
const example = {
|
|
41
|
-
"id": null,
|
|
42
|
-
"cartId": null,
|
|
43
|
-
"siteId": null,
|
|
44
|
-
"placedAt": null,
|
|
45
|
-
"source": null,
|
|
46
|
-
"paymentToken": null,
|
|
47
|
-
"accessToken": null,
|
|
48
|
-
"shippingType": null,
|
|
49
|
-
"customer": null,
|
|
50
|
-
"status": null,
|
|
51
|
-
"shippingAddress": null,
|
|
52
|
-
"billingAddress": null,
|
|
53
|
-
"lineItems": null,
|
|
54
|
-
"coupons": null,
|
|
55
|
-
"subtotal": null,
|
|
56
|
-
"promotionalDiscount": null,
|
|
57
|
-
"couponSubtotalDiscount": null,
|
|
58
|
-
"couponShippingDiscount": null,
|
|
59
|
-
"shipping": null,
|
|
60
|
-
"transitInsurance": null,
|
|
61
|
-
"gst": null,
|
|
62
|
-
"grandTotal": null,
|
|
63
|
-
"amountPaid": null,
|
|
64
|
-
"amountDue": null,
|
|
65
|
-
} satisfies FrontendOrderResource
|
|
66
|
-
|
|
67
|
-
console.log(example)
|
|
68
|
-
|
|
69
|
-
// Convert the instance to a JSON string
|
|
70
|
-
const exampleJSON: string = JSON.stringify(example)
|
|
71
|
-
console.log(exampleJSON)
|
|
72
|
-
|
|
73
|
-
// Parse the JSON string back to an object
|
|
74
|
-
const exampleParsed = JSON.parse(exampleJSON) as FrontendOrderResource
|
|
75
|
-
console.log(exampleParsed)
|
|
76
|
-
```
|
|
77
|
-
|
|
78
|
-
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
79
|
-
|
|
80
|
-
|
|
@@ -1,102 +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 CartCouponLiteResource
|
|
20
|
-
*/
|
|
21
|
-
export interface CartCouponLiteResource {
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {number}
|
|
25
|
-
* @memberof CartCouponLiteResource
|
|
26
|
-
*/
|
|
27
|
-
id: number;
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
* @type {string}
|
|
31
|
-
* @memberof CartCouponLiteResource
|
|
32
|
-
*/
|
|
33
|
-
code: string;
|
|
34
|
-
/**
|
|
35
|
-
*
|
|
36
|
-
* @type {string}
|
|
37
|
-
* @memberof CartCouponLiteResource
|
|
38
|
-
*/
|
|
39
|
-
name: string;
|
|
40
|
-
/**
|
|
41
|
-
*
|
|
42
|
-
* @type {number}
|
|
43
|
-
* @memberof CartCouponLiteResource
|
|
44
|
-
*/
|
|
45
|
-
discount: number;
|
|
46
|
-
/**
|
|
47
|
-
*
|
|
48
|
-
* @type {string}
|
|
49
|
-
* @memberof CartCouponLiteResource
|
|
50
|
-
*/
|
|
51
|
-
appliesTo: string;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
/**
|
|
55
|
-
* Check if a given object implements the CartCouponLiteResource interface.
|
|
56
|
-
*/
|
|
57
|
-
export function instanceOfCartCouponLiteResource(value: object): value is CartCouponLiteResource {
|
|
58
|
-
if (!('id' in value) || value['id'] === undefined) return false;
|
|
59
|
-
if (!('code' in value) || value['code'] === undefined) return false;
|
|
60
|
-
if (!('name' in value) || value['name'] === undefined) return false;
|
|
61
|
-
if (!('discount' in value) || value['discount'] === undefined) return false;
|
|
62
|
-
if (!('appliesTo' in value) || value['appliesTo'] === undefined) return false;
|
|
63
|
-
return true;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
export function CartCouponLiteResourceFromJSON(json: any): CartCouponLiteResource {
|
|
67
|
-
return CartCouponLiteResourceFromJSONTyped(json, false);
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
export function CartCouponLiteResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): CartCouponLiteResource {
|
|
71
|
-
if (json == null) {
|
|
72
|
-
return json;
|
|
73
|
-
}
|
|
74
|
-
return {
|
|
75
|
-
|
|
76
|
-
'id': json['id'],
|
|
77
|
-
'code': json['code'],
|
|
78
|
-
'name': json['name'],
|
|
79
|
-
'discount': json['discount'],
|
|
80
|
-
'appliesTo': json['appliesTo'],
|
|
81
|
-
};
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
export function CartCouponLiteResourceToJSON(json: any): CartCouponLiteResource {
|
|
85
|
-
return CartCouponLiteResourceToJSONTyped(json, false);
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
export function CartCouponLiteResourceToJSONTyped(value?: CartCouponLiteResource | null, ignoreDiscriminator: boolean = false): any {
|
|
89
|
-
if (value == null) {
|
|
90
|
-
return value;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
return {
|
|
94
|
-
|
|
95
|
-
'id': value['id'],
|
|
96
|
-
'code': value['code'],
|
|
97
|
-
'name': value['name'],
|
|
98
|
-
'discount': value['discount'],
|
|
99
|
-
'appliesTo': value['appliesTo'],
|
|
100
|
-
};
|
|
101
|
-
}
|
|
102
|
-
|
|
@@ -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 { CartCouponLiteResource } from './CartCouponLiteResource';
|
|
17
|
-
import {
|
|
18
|
-
CartCouponLiteResourceFromJSON,
|
|
19
|
-
CartCouponLiteResourceFromJSONTyped,
|
|
20
|
-
CartCouponLiteResourceToJSON,
|
|
21
|
-
CartCouponLiteResourceToJSONTyped,
|
|
22
|
-
} from './CartCouponLiteResource';
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @export
|
|
27
|
-
* @interface CartCouponLiteResourceArrayResponse
|
|
28
|
-
*/
|
|
29
|
-
export interface CartCouponLiteResourceArrayResponse {
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {Array<CartCouponLiteResource>}
|
|
33
|
-
* @memberof CartCouponLiteResourceArrayResponse
|
|
34
|
-
*/
|
|
35
|
-
data?: Array<CartCouponLiteResource>;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* Check if a given object implements the CartCouponLiteResourceArrayResponse interface.
|
|
40
|
-
*/
|
|
41
|
-
export function instanceOfCartCouponLiteResourceArrayResponse(value: object): value is CartCouponLiteResourceArrayResponse {
|
|
42
|
-
return true;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
export function CartCouponLiteResourceArrayResponseFromJSON(json: any): CartCouponLiteResourceArrayResponse {
|
|
46
|
-
return CartCouponLiteResourceArrayResponseFromJSONTyped(json, false);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
export function CartCouponLiteResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CartCouponLiteResourceArrayResponse {
|
|
50
|
-
if (json == null) {
|
|
51
|
-
return json;
|
|
52
|
-
}
|
|
53
|
-
return {
|
|
54
|
-
|
|
55
|
-
'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(CartCouponLiteResourceFromJSON)),
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
export function CartCouponLiteResourceArrayResponseToJSON(json: any): CartCouponLiteResourceArrayResponse {
|
|
60
|
-
return CartCouponLiteResourceArrayResponseToJSONTyped(json, false);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
export function CartCouponLiteResourceArrayResponseToJSONTyped(value?: CartCouponLiteResourceArrayResponse | 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(CartCouponLiteResourceToJSON)),
|
|
71
|
-
};
|
|
72
|
-
}
|
|
73
|
-
|