@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.
Files changed (83) hide show
  1. package/.openapi-generator/FILES +8 -18
  2. package/README.md +8 -14
  3. package/dist/apis/CartsApi.d.ts +8 -8
  4. package/dist/apis/CartsApi.js +8 -8
  5. package/dist/apis/CustomersApi.d.ts +0 -17
  6. package/dist/apis/CustomersApi.js +0 -62
  7. package/dist/apis/OrdersApi.d.ts +8 -8
  8. package/dist/apis/OrdersApi.js +10 -10
  9. package/dist/models/AddressResource.d.ts +1 -1
  10. package/dist/models/AddressResource.js +1 -3
  11. package/dist/models/AdminOrderResource.d.ts +1 -13
  12. package/dist/models/AdminOrderResource.js +3 -11
  13. package/dist/models/AttachCouponRequest.d.ts +32 -0
  14. package/dist/models/AttachCouponRequest.js +51 -0
  15. package/dist/models/AttachLineItemRequest.d.ts +44 -0
  16. package/dist/models/{AttachCartItemRequest.js → AttachLineItemRequest.js} +13 -13
  17. package/dist/models/CartListResource.d.ts +0 -48
  18. package/dist/models/CartListResource.js +0 -26
  19. package/dist/models/CartResource.d.ts +2 -2
  20. package/dist/models/CartResource.js +2 -2
  21. package/dist/models/DetachCouponRequest.d.ts +32 -0
  22. package/dist/models/DetachCouponRequest.js +51 -0
  23. package/dist/models/ExternalApiLogResource.d.ts +1 -1
  24. package/dist/models/ExternalApiLogResource.js +1 -3
  25. package/dist/models/StoreResource.d.ts +1 -1
  26. package/dist/models/StoreResource.js +1 -3
  27. package/dist/models/UpdateLineItemRequest.d.ts +38 -0
  28. package/dist/models/{UpdateCartItemRequest.js → UpdateLineItemRequest.js} +13 -13
  29. package/dist/models/index.d.ts +4 -9
  30. package/dist/models/index.js +4 -9
  31. package/docs/AdminOrderResource.md +2 -6
  32. package/docs/{AttachCartCouponRequest.md → AttachCouponRequest.md} +4 -4
  33. package/docs/{AttachCartItemRequest.md → AttachLineItemRequest.md} +4 -4
  34. package/docs/CartListResource.md +0 -16
  35. package/docs/CartResource.md +2 -2
  36. package/docs/CartsApi.md +16 -16
  37. package/docs/CustomersApi.md +0 -69
  38. package/docs/{DetachCartCouponRequest.md → DetachCouponRequest.md} +4 -4
  39. package/docs/OrdersApi.md +18 -18
  40. package/docs/{UpdateCartItemRequest.md → UpdateLineItemRequest.md} +4 -4
  41. package/package.json +1 -1
  42. package/src/apis/CartsApi.ts +25 -25
  43. package/src/apis/CustomersApi.ts +0 -58
  44. package/src/apis/OrdersApi.ts +26 -26
  45. package/src/models/AddressResource.ts +2 -3
  46. package/src/models/AdminOrderResource.ts +4 -22
  47. package/src/models/AttachCouponRequest.ts +66 -0
  48. package/src/models/{AttachCartItemRequest.ts → AttachLineItemRequest.ts} +13 -13
  49. package/src/models/CartListResource.ts +0 -69
  50. package/src/models/CartResource.ts +4 -4
  51. package/src/models/DetachCouponRequest.ts +66 -0
  52. package/src/models/ExternalApiLogResource.ts +2 -3
  53. package/src/models/StoreResource.ts +2 -3
  54. package/src/models/{UpdateCartItemRequest.ts → UpdateLineItemRequest.ts} +12 -12
  55. package/src/models/index.ts +4 -9
  56. package/dist/models/AttachCartCouponRequest.d.ts +0 -32
  57. package/dist/models/AttachCartCouponRequest.js +0 -51
  58. package/dist/models/AttachCartItemRequest.d.ts +0 -44
  59. package/dist/models/AttachOrderCouponRequest.d.ts +0 -32
  60. package/dist/models/AttachOrderCouponRequest.js +0 -51
  61. package/dist/models/AttachOrderLineItemRequest.d.ts +0 -44
  62. package/dist/models/AttachOrderLineItemRequest.js +0 -57
  63. package/dist/models/DetachCartCouponRequest.d.ts +0 -32
  64. package/dist/models/DetachCartCouponRequest.js +0 -51
  65. package/dist/models/DetachOrderCouponRequest.d.ts +0 -32
  66. package/dist/models/DetachOrderCouponRequest.js +0 -51
  67. package/dist/models/UpdateCartItemRequest.d.ts +0 -38
  68. package/dist/models/UpdateCustomerRequest.d.ts +0 -56
  69. package/dist/models/UpdateCustomerRequest.js +0 -63
  70. package/dist/models/UpdateOrderLineItemRequest.d.ts +0 -38
  71. package/dist/models/UpdateOrderLineItemRequest.js +0 -53
  72. package/docs/AttachOrderCouponRequest.md +0 -34
  73. package/docs/AttachOrderLineItemRequest.md +0 -38
  74. package/docs/DetachOrderCouponRequest.md +0 -34
  75. package/docs/UpdateCustomerRequest.md +0 -42
  76. package/docs/UpdateOrderLineItemRequest.md +0 -36
  77. package/src/models/AttachCartCouponRequest.ts +0 -66
  78. package/src/models/AttachOrderCouponRequest.ts +0 -66
  79. package/src/models/AttachOrderLineItemRequest.ts +0 -83
  80. package/src/models/DetachCartCouponRequest.ts +0 -66
  81. package/src/models/DetachOrderCouponRequest.ts +0 -66
  82. package/src/models/UpdateCustomerRequest.ts +0 -100
  83. package/src/models/UpdateOrderLineItemRequest.ts +0 -74
@@ -101,7 +101,7 @@ export interface StoreResource {
101
101
  * @type {string}
102
102
  * @memberof StoreResource
103
103
  */
104
- website: string;
104
+ website?: string | null;
105
105
  /**
106
106
  *
107
107
  * @type {number}
@@ -151,7 +151,6 @@ export function instanceOfStoreResource(value: object): value is StoreResource {
151
151
  if (!('latitude' in value) || value['latitude'] === undefined) return false;
152
152
  if (!('tagLine' in value) || value['tagLine'] === undefined) return false;
153
153
  if (!('email' in value) || value['email'] === undefined) return false;
154
- if (!('website' in value) || value['website'] === undefined) return false;
155
154
  if (!('netsuiteId' in value) || value['netsuiteId'] === undefined) return false;
156
155
  if (!('displayNetsuiteId' in value) || value['displayNetsuiteId'] === undefined) return false;
157
156
  if (!('suppliers' in value) || value['suppliers'] === undefined) return false;
@@ -178,7 +177,7 @@ export function StoreResourceFromJSONTyped(json: any, ignoreDiscriminator: boole
178
177
  'latitude': json['latitude'],
179
178
  'tagLine': json['tagLine'],
180
179
  'email': json['email'],
181
- 'website': json['website'],
180
+ 'website': json['website'] == null ? undefined : json['website'],
182
181
  'netsuiteId': json['netsuiteId'],
183
182
  'displayNetsuiteId': json['displayNetsuiteId'],
184
183
  'openingHours': json['openingHours'] == null ? undefined : json['openingHours'],
@@ -16,36 +16,36 @@ import { mapValues } from '../runtime';
16
16
  /**
17
17
  *
18
18
  * @export
19
- * @interface UpdateCartItemRequest
19
+ * @interface UpdateLineItemRequest
20
20
  */
21
- export interface UpdateCartItemRequest {
21
+ export interface UpdateLineItemRequest {
22
22
  /**
23
23
  *
24
24
  * @type {number}
25
- * @memberof UpdateCartItemRequest
25
+ * @memberof UpdateLineItemRequest
26
26
  */
27
27
  quantity: number;
28
28
  /**
29
29
  *
30
30
  * @type {number}
31
- * @memberof UpdateCartItemRequest
31
+ * @memberof UpdateLineItemRequest
32
32
  */
33
33
  productPrice?: number | null;
34
34
  }
35
35
 
36
36
  /**
37
- * Check if a given object implements the UpdateCartItemRequest interface.
37
+ * Check if a given object implements the UpdateLineItemRequest interface.
38
38
  */
39
- export function instanceOfUpdateCartItemRequest(value: object): value is UpdateCartItemRequest {
39
+ export function instanceOfUpdateLineItemRequest(value: object): value is UpdateLineItemRequest {
40
40
  if (!('quantity' in value) || value['quantity'] === undefined) return false;
41
41
  return true;
42
42
  }
43
43
 
44
- export function UpdateCartItemRequestFromJSON(json: any): UpdateCartItemRequest {
45
- return UpdateCartItemRequestFromJSONTyped(json, false);
44
+ export function UpdateLineItemRequestFromJSON(json: any): UpdateLineItemRequest {
45
+ return UpdateLineItemRequestFromJSONTyped(json, false);
46
46
  }
47
47
 
48
- export function UpdateCartItemRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateCartItemRequest {
48
+ export function UpdateLineItemRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateLineItemRequest {
49
49
  if (json == null) {
50
50
  return json;
51
51
  }
@@ -56,11 +56,11 @@ export function UpdateCartItemRequestFromJSONTyped(json: any, ignoreDiscriminato
56
56
  };
57
57
  }
58
58
 
59
- export function UpdateCartItemRequestToJSON(json: any): UpdateCartItemRequest {
60
- return UpdateCartItemRequestToJSONTyped(json, false);
59
+ export function UpdateLineItemRequestToJSON(json: any): UpdateLineItemRequest {
60
+ return UpdateLineItemRequestToJSONTyped(json, false);
61
61
  }
62
62
 
63
- export function UpdateCartItemRequestToJSONTyped(value?: UpdateCartItemRequest | null, ignoreDiscriminator: boolean = false): any {
63
+ export function UpdateLineItemRequestToJSONTyped(value?: UpdateLineItemRequest | null, ignoreDiscriminator: boolean = false): any {
64
64
  if (value == null) {
65
65
  return value;
66
66
  }
@@ -23,15 +23,13 @@ export * from './AssetWithOverlayLinkResource';
23
23
  export * from './AssetWithOverlayLinkResourceArrayResponse';
24
24
  export * from './AttachAttributesToProductRangeRequest';
25
25
  export * from './AttachAttributesToProductRangeRequestAttributesInner';
26
- export * from './AttachCartCouponRequest';
27
- export * from './AttachCartItemRequest';
26
+ export * from './AttachCouponRequest';
28
27
  export * from './AttachDocumentablesToDocumentRequest';
29
28
  export * from './AttachDocumentablesToDocumentRequestDocumentablesInner';
30
29
  export * from './AttachDocumentsToProductChildRequest';
31
30
  export * from './AttachDocumentsToProductChildRequestDocumentsInner';
32
31
  export * from './AttachDocumentsToProductRangeRequest';
33
- export * from './AttachOrderCouponRequest';
34
- export * from './AttachOrderLineItemRequest';
32
+ export * from './AttachLineItemRequest';
35
33
  export * from './AttachProductChildrenRequest';
36
34
  export * from './AttachProductChildrenToProductRangeRequest';
37
35
  export * from './AttachProductsToProductCategoryRequest';
@@ -139,12 +137,11 @@ export * from './DeleteAttributeValueRequest';
139
137
  export * from './DescriptionResource';
140
138
  export * from './DescriptionResourceArrayResponse';
141
139
  export * from './DetachAttributesFromProductRangeRequest';
142
- export * from './DetachCartCouponRequest';
140
+ export * from './DetachCouponRequest';
143
141
  export * from './DetachDocumentablesFromDocumentRequest';
144
142
  export * from './DetachDocumentablesFromDocumentRequestDocumentablesInner';
145
143
  export * from './DetachDocumentsFromProductChildRequest';
146
144
  export * from './DetachDocumentsFromProductRangeRequest';
147
- export * from './DetachOrderCouponRequest';
148
145
  export * from './DetachProductChildrenFromProductRangeRequest';
149
146
  export * from './DetachProductsFromProductCategoryRequest';
150
147
  export * from './DetachStoresFromSupplierRequest';
@@ -581,17 +578,15 @@ export * from './UpdateAttributeProductTypeRequest';
581
578
  export * from './UpdateAttributeRequest';
582
579
  export * from './UpdateAttributeValueRequest';
583
580
  export * from './UpdateBlogCategoryRequest';
584
- export * from './UpdateCartItemRequest';
585
581
  export * from './UpdateCartRequest';
586
- export * from './UpdateCustomerRequest';
587
582
  export * from './UpdateDefinitionRequest';
588
583
  export * from './UpdateDocumentRequest';
589
584
  export * from './UpdateLabelRequest';
585
+ export * from './UpdateLineItemRequest';
590
586
  export * from './UpdateMenuItemRequest';
591
587
  export * from './UpdateMenuRequest';
592
588
  export * from './UpdateMenuRequestMenuItemOrderInner';
593
589
  export * from './UpdateModelAttributeRequest';
594
- export * from './UpdateOrderLineItemRequest';
595
590
  export * from './UpdateOrderRequest';
596
591
  export * from './UpdateOverlayTemplateAssetRequest';
597
592
  export * from './UpdateOverlayTemplateRequest';
@@ -1,32 +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 AttachCartCouponRequest
16
- */
17
- export interface AttachCartCouponRequest {
18
- /**
19
- *
20
- * @type {string}
21
- * @memberof AttachCartCouponRequest
22
- */
23
- couponCode: string;
24
- }
25
- /**
26
- * Check if a given object implements the AttachCartCouponRequest interface.
27
- */
28
- export declare function instanceOfAttachCartCouponRequest(value: object): value is AttachCartCouponRequest;
29
- export declare function AttachCartCouponRequestFromJSON(json: any): AttachCartCouponRequest;
30
- export declare function AttachCartCouponRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AttachCartCouponRequest;
31
- export declare function AttachCartCouponRequestToJSON(json: any): AttachCartCouponRequest;
32
- export declare function AttachCartCouponRequestToJSONTyped(value?: AttachCartCouponRequest | null, ignoreDiscriminator?: boolean): any;
@@ -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.instanceOfAttachCartCouponRequest = instanceOfAttachCartCouponRequest;
17
- exports.AttachCartCouponRequestFromJSON = AttachCartCouponRequestFromJSON;
18
- exports.AttachCartCouponRequestFromJSONTyped = AttachCartCouponRequestFromJSONTyped;
19
- exports.AttachCartCouponRequestToJSON = AttachCartCouponRequestToJSON;
20
- exports.AttachCartCouponRequestToJSONTyped = AttachCartCouponRequestToJSONTyped;
21
- /**
22
- * Check if a given object implements the AttachCartCouponRequest interface.
23
- */
24
- function instanceOfAttachCartCouponRequest(value) {
25
- if (!('couponCode' in value) || value['couponCode'] === undefined)
26
- return false;
27
- return true;
28
- }
29
- function AttachCartCouponRequestFromJSON(json) {
30
- return AttachCartCouponRequestFromJSONTyped(json, false);
31
- }
32
- function AttachCartCouponRequestFromJSONTyped(json, ignoreDiscriminator) {
33
- if (json == null) {
34
- return json;
35
- }
36
- return {
37
- 'couponCode': json['coupon_code'],
38
- };
39
- }
40
- function AttachCartCouponRequestToJSON(json) {
41
- return AttachCartCouponRequestToJSONTyped(json, false);
42
- }
43
- function AttachCartCouponRequestToJSONTyped(value, ignoreDiscriminator) {
44
- if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
45
- if (value == null) {
46
- return value;
47
- }
48
- return {
49
- 'coupon_code': value['couponCode'],
50
- };
51
- }
@@ -1,44 +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 AttachCartItemRequest
16
- */
17
- export interface AttachCartItemRequest {
18
- /**
19
- *
20
- * @type {number}
21
- * @memberof AttachCartItemRequest
22
- */
23
- productChildId: number;
24
- /**
25
- *
26
- * @type {number}
27
- * @memberof AttachCartItemRequest
28
- */
29
- quantity: number;
30
- /**
31
- *
32
- * @type {number}
33
- * @memberof AttachCartItemRequest
34
- */
35
- productPrice?: number | null;
36
- }
37
- /**
38
- * Check if a given object implements the AttachCartItemRequest interface.
39
- */
40
- export declare function instanceOfAttachCartItemRequest(value: object): value is AttachCartItemRequest;
41
- export declare function AttachCartItemRequestFromJSON(json: any): AttachCartItemRequest;
42
- export declare function AttachCartItemRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AttachCartItemRequest;
43
- export declare function AttachCartItemRequestToJSON(json: any): AttachCartItemRequest;
44
- export declare function AttachCartItemRequestToJSONTyped(value?: AttachCartItemRequest | null, ignoreDiscriminator?: boolean): any;
@@ -1,32 +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 AttachOrderCouponRequest
16
- */
17
- export interface AttachOrderCouponRequest {
18
- /**
19
- *
20
- * @type {string}
21
- * @memberof AttachOrderCouponRequest
22
- */
23
- couponCode: string;
24
- }
25
- /**
26
- * Check if a given object implements the AttachOrderCouponRequest interface.
27
- */
28
- export declare function instanceOfAttachOrderCouponRequest(value: object): value is AttachOrderCouponRequest;
29
- export declare function AttachOrderCouponRequestFromJSON(json: any): AttachOrderCouponRequest;
30
- export declare function AttachOrderCouponRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AttachOrderCouponRequest;
31
- export declare function AttachOrderCouponRequestToJSON(json: any): AttachOrderCouponRequest;
32
- export declare function AttachOrderCouponRequestToJSONTyped(value?: AttachOrderCouponRequest | null, ignoreDiscriminator?: boolean): any;
@@ -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.instanceOfAttachOrderCouponRequest = instanceOfAttachOrderCouponRequest;
17
- exports.AttachOrderCouponRequestFromJSON = AttachOrderCouponRequestFromJSON;
18
- exports.AttachOrderCouponRequestFromJSONTyped = AttachOrderCouponRequestFromJSONTyped;
19
- exports.AttachOrderCouponRequestToJSON = AttachOrderCouponRequestToJSON;
20
- exports.AttachOrderCouponRequestToJSONTyped = AttachOrderCouponRequestToJSONTyped;
21
- /**
22
- * Check if a given object implements the AttachOrderCouponRequest interface.
23
- */
24
- function instanceOfAttachOrderCouponRequest(value) {
25
- if (!('couponCode' in value) || value['couponCode'] === undefined)
26
- return false;
27
- return true;
28
- }
29
- function AttachOrderCouponRequestFromJSON(json) {
30
- return AttachOrderCouponRequestFromJSONTyped(json, false);
31
- }
32
- function AttachOrderCouponRequestFromJSONTyped(json, ignoreDiscriminator) {
33
- if (json == null) {
34
- return json;
35
- }
36
- return {
37
- 'couponCode': json['coupon_code'],
38
- };
39
- }
40
- function AttachOrderCouponRequestToJSON(json) {
41
- return AttachOrderCouponRequestToJSONTyped(json, false);
42
- }
43
- function AttachOrderCouponRequestToJSONTyped(value, ignoreDiscriminator) {
44
- if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
45
- if (value == null) {
46
- return value;
47
- }
48
- return {
49
- 'coupon_code': value['couponCode'],
50
- };
51
- }
@@ -1,44 +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 AttachOrderLineItemRequest
16
- */
17
- export interface AttachOrderLineItemRequest {
18
- /**
19
- *
20
- * @type {number}
21
- * @memberof AttachOrderLineItemRequest
22
- */
23
- productChildId: number;
24
- /**
25
- *
26
- * @type {number}
27
- * @memberof AttachOrderLineItemRequest
28
- */
29
- quantity: number;
30
- /**
31
- *
32
- * @type {number}
33
- * @memberof AttachOrderLineItemRequest
34
- */
35
- productPrice?: number | null;
36
- }
37
- /**
38
- * Check if a given object implements the AttachOrderLineItemRequest interface.
39
- */
40
- export declare function instanceOfAttachOrderLineItemRequest(value: object): value is AttachOrderLineItemRequest;
41
- export declare function AttachOrderLineItemRequestFromJSON(json: any): AttachOrderLineItemRequest;
42
- export declare function AttachOrderLineItemRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AttachOrderLineItemRequest;
43
- export declare function AttachOrderLineItemRequestToJSON(json: any): AttachOrderLineItemRequest;
44
- export declare function AttachOrderLineItemRequestToJSONTyped(value?: AttachOrderLineItemRequest | null, ignoreDiscriminator?: boolean): any;
@@ -1,57 +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.instanceOfAttachOrderLineItemRequest = instanceOfAttachOrderLineItemRequest;
17
- exports.AttachOrderLineItemRequestFromJSON = AttachOrderLineItemRequestFromJSON;
18
- exports.AttachOrderLineItemRequestFromJSONTyped = AttachOrderLineItemRequestFromJSONTyped;
19
- exports.AttachOrderLineItemRequestToJSON = AttachOrderLineItemRequestToJSON;
20
- exports.AttachOrderLineItemRequestToJSONTyped = AttachOrderLineItemRequestToJSONTyped;
21
- /**
22
- * Check if a given object implements the AttachOrderLineItemRequest interface.
23
- */
24
- function instanceOfAttachOrderLineItemRequest(value) {
25
- if (!('productChildId' in value) || value['productChildId'] === undefined)
26
- return false;
27
- if (!('quantity' in value) || value['quantity'] === undefined)
28
- return false;
29
- return true;
30
- }
31
- function AttachOrderLineItemRequestFromJSON(json) {
32
- return AttachOrderLineItemRequestFromJSONTyped(json, false);
33
- }
34
- function AttachOrderLineItemRequestFromJSONTyped(json, ignoreDiscriminator) {
35
- if (json == null) {
36
- return json;
37
- }
38
- return {
39
- 'productChildId': json['product_child_id'],
40
- 'quantity': json['quantity'],
41
- 'productPrice': json['product_price'] == null ? undefined : json['product_price'],
42
- };
43
- }
44
- function AttachOrderLineItemRequestToJSON(json) {
45
- return AttachOrderLineItemRequestToJSONTyped(json, false);
46
- }
47
- function AttachOrderLineItemRequestToJSONTyped(value, ignoreDiscriminator) {
48
- if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
49
- if (value == null) {
50
- return value;
51
- }
52
- return {
53
- 'product_child_id': value['productChildId'],
54
- 'quantity': value['quantity'],
55
- 'product_price': value['productPrice'],
56
- };
57
- }
@@ -1,32 +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 DetachCartCouponRequest
16
- */
17
- export interface DetachCartCouponRequest {
18
- /**
19
- *
20
- * @type {Array<number>}
21
- * @memberof DetachCartCouponRequest
22
- */
23
- couponIds: Array<number>;
24
- }
25
- /**
26
- * Check if a given object implements the DetachCartCouponRequest interface.
27
- */
28
- export declare function instanceOfDetachCartCouponRequest(value: object): value is DetachCartCouponRequest;
29
- export declare function DetachCartCouponRequestFromJSON(json: any): DetachCartCouponRequest;
30
- export declare function DetachCartCouponRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DetachCartCouponRequest;
31
- export declare function DetachCartCouponRequestToJSON(json: any): DetachCartCouponRequest;
32
- export declare function DetachCartCouponRequestToJSONTyped(value?: DetachCartCouponRequest | null, ignoreDiscriminator?: boolean): any;
@@ -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.instanceOfDetachCartCouponRequest = instanceOfDetachCartCouponRequest;
17
- exports.DetachCartCouponRequestFromJSON = DetachCartCouponRequestFromJSON;
18
- exports.DetachCartCouponRequestFromJSONTyped = DetachCartCouponRequestFromJSONTyped;
19
- exports.DetachCartCouponRequestToJSON = DetachCartCouponRequestToJSON;
20
- exports.DetachCartCouponRequestToJSONTyped = DetachCartCouponRequestToJSONTyped;
21
- /**
22
- * Check if a given object implements the DetachCartCouponRequest interface.
23
- */
24
- function instanceOfDetachCartCouponRequest(value) {
25
- if (!('couponIds' in value) || value['couponIds'] === undefined)
26
- return false;
27
- return true;
28
- }
29
- function DetachCartCouponRequestFromJSON(json) {
30
- return DetachCartCouponRequestFromJSONTyped(json, false);
31
- }
32
- function DetachCartCouponRequestFromJSONTyped(json, ignoreDiscriminator) {
33
- if (json == null) {
34
- return json;
35
- }
36
- return {
37
- 'couponIds': json['coupon_ids'],
38
- };
39
- }
40
- function DetachCartCouponRequestToJSON(json) {
41
- return DetachCartCouponRequestToJSONTyped(json, false);
42
- }
43
- function DetachCartCouponRequestToJSONTyped(value, ignoreDiscriminator) {
44
- if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
45
- if (value == null) {
46
- return value;
47
- }
48
- return {
49
- 'coupon_ids': value['couponIds'],
50
- };
51
- }
@@ -1,32 +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 DetachOrderCouponRequest
16
- */
17
- export interface DetachOrderCouponRequest {
18
- /**
19
- *
20
- * @type {number}
21
- * @memberof DetachOrderCouponRequest
22
- */
23
- couponId: number;
24
- }
25
- /**
26
- * Check if a given object implements the DetachOrderCouponRequest interface.
27
- */
28
- export declare function instanceOfDetachOrderCouponRequest(value: object): value is DetachOrderCouponRequest;
29
- export declare function DetachOrderCouponRequestFromJSON(json: any): DetachOrderCouponRequest;
30
- export declare function DetachOrderCouponRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DetachOrderCouponRequest;
31
- export declare function DetachOrderCouponRequestToJSON(json: any): DetachOrderCouponRequest;
32
- export declare function DetachOrderCouponRequestToJSONTyped(value?: DetachOrderCouponRequest | null, ignoreDiscriminator?: boolean): any;
@@ -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.instanceOfDetachOrderCouponRequest = instanceOfDetachOrderCouponRequest;
17
- exports.DetachOrderCouponRequestFromJSON = DetachOrderCouponRequestFromJSON;
18
- exports.DetachOrderCouponRequestFromJSONTyped = DetachOrderCouponRequestFromJSONTyped;
19
- exports.DetachOrderCouponRequestToJSON = DetachOrderCouponRequestToJSON;
20
- exports.DetachOrderCouponRequestToJSONTyped = DetachOrderCouponRequestToJSONTyped;
21
- /**
22
- * Check if a given object implements the DetachOrderCouponRequest interface.
23
- */
24
- function instanceOfDetachOrderCouponRequest(value) {
25
- if (!('couponId' in value) || value['couponId'] === undefined)
26
- return false;
27
- return true;
28
- }
29
- function DetachOrderCouponRequestFromJSON(json) {
30
- return DetachOrderCouponRequestFromJSONTyped(json, false);
31
- }
32
- function DetachOrderCouponRequestFromJSONTyped(json, ignoreDiscriminator) {
33
- if (json == null) {
34
- return json;
35
- }
36
- return {
37
- 'couponId': json['coupon_id'],
38
- };
39
- }
40
- function DetachOrderCouponRequestToJSON(json) {
41
- return DetachOrderCouponRequestToJSONTyped(json, false);
42
- }
43
- function DetachOrderCouponRequestToJSONTyped(value, ignoreDiscriminator) {
44
- if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
45
- if (value == null) {
46
- return value;
47
- }
48
- return {
49
- 'coupon_id': value['couponId'],
50
- };
51
- }
@@ -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 UpdateCartItemRequest
16
- */
17
- export interface UpdateCartItemRequest {
18
- /**
19
- *
20
- * @type {number}
21
- * @memberof UpdateCartItemRequest
22
- */
23
- quantity: number;
24
- /**
25
- *
26
- * @type {number}
27
- * @memberof UpdateCartItemRequest
28
- */
29
- productPrice?: number | null;
30
- }
31
- /**
32
- * Check if a given object implements the UpdateCartItemRequest interface.
33
- */
34
- export declare function instanceOfUpdateCartItemRequest(value: object): value is UpdateCartItemRequest;
35
- export declare function UpdateCartItemRequestFromJSON(json: any): UpdateCartItemRequest;
36
- export declare function UpdateCartItemRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateCartItemRequest;
37
- export declare function UpdateCartItemRequestToJSON(json: any): UpdateCartItemRequest;
38
- export declare function UpdateCartItemRequestToJSONTyped(value?: UpdateCartItemRequest | null, ignoreDiscriminator?: boolean): any;