@digital8/lighting-illusions-ts-sdk 0.0.1807 → 0.0.1808

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 (169) hide show
  1. package/.openapi-generator/FILES +0 -66
  2. package/README.md +2 -46
  3. package/dist/apis/index.d.ts +0 -2
  4. package/dist/apis/index.js +0 -2
  5. package/dist/models/AddressFrontendResource.d.ts +1 -1
  6. package/dist/models/AddressFrontendResource.js +3 -1
  7. package/dist/models/AddressResource.d.ts +1 -1
  8. package/dist/models/AddressResource.js +1 -3
  9. package/dist/models/ExternalApiLogResource.d.ts +1 -1
  10. package/dist/models/ExternalApiLogResource.js +1 -3
  11. package/dist/models/IndexExternalApiLogRequest.d.ts +6 -0
  12. package/dist/models/IndexExternalApiLogRequest.js +2 -0
  13. package/dist/models/ProductChildSiteDetailLiteResource.d.ts +0 -7
  14. package/dist/models/ProductChildSiteDetailLiteResource.js +0 -5
  15. package/dist/models/SitePaymentConfigResource.d.ts +0 -6
  16. package/dist/models/SitePaymentConfigResource.js +0 -4
  17. package/dist/models/StoreResource.d.ts +1 -1
  18. package/dist/models/StoreResource.js +3 -1
  19. package/dist/models/UpdateSiteRequest.d.ts +0 -6
  20. package/dist/models/UpdateSiteRequest.js +0 -4
  21. package/dist/models/index.d.ts +0 -31
  22. package/dist/models/index.js +0 -31
  23. package/docs/IndexExternalApiLogRequest.md +2 -0
  24. package/docs/ProductChildSiteDetailLiteResource.md +0 -2
  25. package/docs/SitePaymentConfigResource.md +0 -2
  26. package/docs/UpdateSiteRequest.md +0 -2
  27. package/package.json +1 -1
  28. package/src/apis/index.ts +0 -2
  29. package/src/models/AddressFrontendResource.ts +3 -2
  30. package/src/models/AddressResource.ts +2 -3
  31. package/src/models/ExternalApiLogResource.ts +2 -3
  32. package/src/models/IndexExternalApiLogRequest.ts +8 -0
  33. package/src/models/ProductChildSiteDetailLiteResource.ts +0 -16
  34. package/src/models/SitePaymentConfigResource.ts +0 -9
  35. package/src/models/StoreResource.ts +3 -2
  36. package/src/models/UpdateSiteRequest.ts +0 -9
  37. package/src/models/index.ts +0 -31
  38. package/dist/apis/CartsApi.d.ts +0 -190
  39. package/dist/apis/CartsApi.js +0 -747
  40. package/dist/apis/CustomersApi.d.ts +0 -48
  41. package/dist/apis/CustomersApi.js +0 -196
  42. package/dist/models/AddressType.d.ts +0 -25
  43. package/dist/models/AddressType.js +0 -51
  44. package/dist/models/AdminCartResource.d.ts +0 -197
  45. package/dist/models/AdminCartResource.js +0 -140
  46. package/dist/models/AdminCartResourceArrayResponse.d.ts +0 -33
  47. package/dist/models/AdminCartResourceArrayResponse.js +0 -50
  48. package/dist/models/AttachCouponCartRequest.d.ts +0 -32
  49. package/dist/models/AttachCouponCartRequest.js +0 -51
  50. package/dist/models/AttachItemCartRequest.d.ts +0 -44
  51. package/dist/models/AttachItemCartRequest.js +0 -57
  52. package/dist/models/CartListResource.d.ts +0 -137
  53. package/dist/models/CartListResource.js +0 -106
  54. package/dist/models/CartListResourceArrayResponse.d.ts +0 -33
  55. package/dist/models/CartListResourceArrayResponse.js +0 -50
  56. package/dist/models/CartOrderSource.d.ts +0 -29
  57. package/dist/models/CartOrderSource.js +0 -55
  58. package/dist/models/CartStatus.d.ts +0 -26
  59. package/dist/models/CartStatus.js +0 -52
  60. package/dist/models/CustomerListResource.d.ts +0 -76
  61. package/dist/models/CustomerListResource.js +0 -77
  62. package/dist/models/CustomerListResourceArrayResponse.d.ts +0 -33
  63. package/dist/models/CustomerListResourceArrayResponse.js +0 -50
  64. package/dist/models/CustomerResource.d.ts +0 -76
  65. package/dist/models/CustomerResource.js +0 -77
  66. package/dist/models/CustomerResourceArrayResponse.d.ts +0 -33
  67. package/dist/models/CustomerResourceArrayResponse.js +0 -50
  68. package/dist/models/FrontendCartResource.d.ts +0 -155
  69. package/dist/models/FrontendCartResource.js +0 -118
  70. package/dist/models/FrontendCartResourceArrayResponse.d.ts +0 -33
  71. package/dist/models/FrontendCartResourceArrayResponse.js +0 -50
  72. package/dist/models/IndexCartRequest.d.ts +0 -154
  73. package/dist/models/IndexCartRequest.js +0 -105
  74. package/dist/models/IndexCustomerRequest.d.ts +0 -99
  75. package/dist/models/IndexCustomerRequest.js +0 -83
  76. package/dist/models/LiAddressResource.d.ts +0 -86
  77. package/dist/models/LiAddressResource.js +0 -83
  78. package/dist/models/LiAddressResourceArrayResponse.d.ts +0 -33
  79. package/dist/models/LiAddressResourceArrayResponse.js +0 -50
  80. package/dist/models/LineItemListResource.d.ts +0 -51
  81. package/dist/models/LineItemListResource.js +0 -62
  82. package/dist/models/LineItemListResourceArrayResponse.d.ts +0 -33
  83. package/dist/models/LineItemListResourceArrayResponse.js +0 -50
  84. package/dist/models/PaginatedCartListResourceResponse.d.ts +0 -40
  85. package/dist/models/PaginatedCartListResourceResponse.js +0 -57
  86. package/dist/models/PaginatedCustomerListResourceResponse.d.ts +0 -40
  87. package/dist/models/PaginatedCustomerListResourceResponse.js +0 -57
  88. package/dist/models/ShippingType.d.ts +0 -28
  89. package/dist/models/ShippingType.js +0 -54
  90. package/dist/models/StoreCartRequest.d.ts +0 -136
  91. package/dist/models/StoreCartRequest.js +0 -110
  92. package/dist/models/StoreCartRequestCustomer.d.ts +0 -50
  93. package/dist/models/StoreCartRequestCustomer.js +0 -55
  94. package/dist/models/StoreCartRequestItemsInner.d.ts +0 -44
  95. package/dist/models/StoreCartRequestItemsInner.js +0 -57
  96. package/dist/models/StoreCartRequestShippingAddress.d.ts +0 -74
  97. package/dist/models/StoreCartRequestShippingAddress.js +0 -63
  98. package/dist/models/StoreCustomerRequest.d.ts +0 -56
  99. package/dist/models/StoreCustomerRequest.js +0 -65
  100. package/dist/models/UpdateCartRequest.d.ts +0 -111
  101. package/dist/models/UpdateCartRequest.js +0 -95
  102. package/dist/models/UpdateItemCartRequest.d.ts +0 -38
  103. package/dist/models/UpdateItemCartRequest.js +0 -53
  104. package/docs/AddressType.md +0 -32
  105. package/docs/AdminCartResource.md +0 -88
  106. package/docs/AdminCartResourceArrayResponse.md +0 -34
  107. package/docs/AttachCouponCartRequest.md +0 -34
  108. package/docs/AttachItemCartRequest.md +0 -38
  109. package/docs/CartListResource.md +0 -68
  110. package/docs/CartListResourceArrayResponse.md +0 -34
  111. package/docs/CartOrderSource.md +0 -32
  112. package/docs/CartStatus.md +0 -32
  113. package/docs/CartsApi.md +0 -755
  114. package/docs/CustomerListResource.md +0 -48
  115. package/docs/CustomerListResourceArrayResponse.md +0 -34
  116. package/docs/CustomerResource.md +0 -48
  117. package/docs/CustomerResourceArrayResponse.md +0 -34
  118. package/docs/CustomersApi.md +0 -140
  119. package/docs/FrontendCartResource.md +0 -74
  120. package/docs/FrontendCartResourceArrayResponse.md +0 -34
  121. package/docs/IndexCartRequest.md +0 -66
  122. package/docs/IndexCustomerRequest.md +0 -50
  123. package/docs/LiAddressResource.md +0 -52
  124. package/docs/LiAddressResourceArrayResponse.md +0 -34
  125. package/docs/LineItemListResource.md +0 -40
  126. package/docs/LineItemListResourceArrayResponse.md +0 -34
  127. package/docs/PaginatedCartListResourceResponse.md +0 -36
  128. package/docs/PaginatedCustomerListResourceResponse.md +0 -36
  129. package/docs/ShippingType.md +0 -32
  130. package/docs/StoreCartRequest.md +0 -60
  131. package/docs/StoreCartRequestCustomer.md +0 -40
  132. package/docs/StoreCartRequestItemsInner.md +0 -38
  133. package/docs/StoreCartRequestShippingAddress.md +0 -48
  134. package/docs/StoreCustomerRequest.md +0 -42
  135. package/docs/UpdateCartRequest.md +0 -52
  136. package/docs/UpdateItemCartRequest.md +0 -36
  137. package/src/apis/CartsApi.ts +0 -626
  138. package/src/apis/CustomersApi.ts +0 -127
  139. package/src/models/AddressType.ts +0 -53
  140. package/src/models/AdminCartResource.ts +0 -320
  141. package/src/models/AdminCartResourceArrayResponse.ts +0 -73
  142. package/src/models/AttachCouponCartRequest.ts +0 -66
  143. package/src/models/AttachItemCartRequest.ts +0 -83
  144. package/src/models/CartListResource.ts +0 -233
  145. package/src/models/CartListResourceArrayResponse.ts +0 -73
  146. package/src/models/CartOrderSource.ts +0 -57
  147. package/src/models/CartStatus.ts +0 -54
  148. package/src/models/CustomerListResource.ts +0 -142
  149. package/src/models/CustomerListResourceArrayResponse.ts +0 -73
  150. package/src/models/CustomerResource.ts +0 -142
  151. package/src/models/CustomerResourceArrayResponse.ts +0 -73
  152. package/src/models/FrontendCartResource.ts +0 -260
  153. package/src/models/FrontendCartResourceArrayResponse.ts +0 -73
  154. package/src/models/IndexCartRequest.ts +0 -224
  155. package/src/models/IndexCustomerRequest.ts +0 -152
  156. package/src/models/LiAddressResource.ts +0 -145
  157. package/src/models/LiAddressResourceArrayResponse.ts +0 -73
  158. package/src/models/LineItemListResource.ts +0 -100
  159. package/src/models/LineItemListResourceArrayResponse.ts +0 -73
  160. package/src/models/PaginatedCartListResourceResponse.ts +0 -90
  161. package/src/models/PaginatedCustomerListResourceResponse.ts +0 -90
  162. package/src/models/ShippingType.ts +0 -56
  163. package/src/models/StoreCartRequest.ts +0 -223
  164. package/src/models/StoreCartRequestCustomer.ts +0 -89
  165. package/src/models/StoreCartRequestItemsInner.ts +0 -83
  166. package/src/models/StoreCartRequestShippingAddress.ts +0 -121
  167. package/src/models/StoreCustomerRequest.ts +0 -101
  168. package/src/models/UpdateCartRequest.ts +0 -181
  169. package/src/models/UpdateItemCartRequest.ts +0 -74
@@ -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 { LineItemListResource } from './LineItemListResource';
17
- import {
18
- LineItemListResourceFromJSON,
19
- LineItemListResourceFromJSONTyped,
20
- LineItemListResourceToJSON,
21
- LineItemListResourceToJSONTyped,
22
- } from './LineItemListResource';
23
-
24
- /**
25
- *
26
- * @export
27
- * @interface LineItemListResourceArrayResponse
28
- */
29
- export interface LineItemListResourceArrayResponse {
30
- /**
31
- *
32
- * @type {Array<LineItemListResource>}
33
- * @memberof LineItemListResourceArrayResponse
34
- */
35
- data?: Array<LineItemListResource>;
36
- }
37
-
38
- /**
39
- * Check if a given object implements the LineItemListResourceArrayResponse interface.
40
- */
41
- export function instanceOfLineItemListResourceArrayResponse(value: object): value is LineItemListResourceArrayResponse {
42
- return true;
43
- }
44
-
45
- export function LineItemListResourceArrayResponseFromJSON(json: any): LineItemListResourceArrayResponse {
46
- return LineItemListResourceArrayResponseFromJSONTyped(json, false);
47
- }
48
-
49
- export function LineItemListResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): LineItemListResourceArrayResponse {
50
- if (json == null) {
51
- return json;
52
- }
53
- return {
54
-
55
- 'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(LineItemListResourceFromJSON)),
56
- };
57
- }
58
-
59
- export function LineItemListResourceArrayResponseToJSON(json: any): LineItemListResourceArrayResponse {
60
- return LineItemListResourceArrayResponseToJSONTyped(json, false);
61
- }
62
-
63
- export function LineItemListResourceArrayResponseToJSONTyped(value?: LineItemListResourceArrayResponse | 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(LineItemListResourceToJSON)),
71
- };
72
- }
73
-
@@ -1,90 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * My API
5
- * API documentation for my Laravel app
6
- *
7
- * The version of the OpenAPI document: 1.0.0
8
- *
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
-
15
- import { mapValues } from '../runtime';
16
- import type { PagingMetadata } from './PagingMetadata';
17
- import {
18
- PagingMetadataFromJSON,
19
- PagingMetadataFromJSONTyped,
20
- PagingMetadataToJSON,
21
- PagingMetadataToJSONTyped,
22
- } from './PagingMetadata';
23
- import type { CartListResource } from './CartListResource';
24
- import {
25
- CartListResourceFromJSON,
26
- CartListResourceFromJSONTyped,
27
- CartListResourceToJSON,
28
- CartListResourceToJSONTyped,
29
- } from './CartListResource';
30
-
31
- /**
32
- *
33
- * @export
34
- * @interface PaginatedCartListResourceResponse
35
- */
36
- export interface PaginatedCartListResourceResponse {
37
- /**
38
- *
39
- * @type {Array<CartListResource>}
40
- * @memberof PaginatedCartListResourceResponse
41
- */
42
- data: Array<CartListResource>;
43
- /**
44
- *
45
- * @type {PagingMetadata}
46
- * @memberof PaginatedCartListResourceResponse
47
- */
48
- meta: PagingMetadata;
49
- }
50
-
51
- /**
52
- * Check if a given object implements the PaginatedCartListResourceResponse interface.
53
- */
54
- export function instanceOfPaginatedCartListResourceResponse(value: object): value is PaginatedCartListResourceResponse {
55
- if (!('data' in value) || value['data'] === undefined) return false;
56
- if (!('meta' in value) || value['meta'] === undefined) return false;
57
- return true;
58
- }
59
-
60
- export function PaginatedCartListResourceResponseFromJSON(json: any): PaginatedCartListResourceResponse {
61
- return PaginatedCartListResourceResponseFromJSONTyped(json, false);
62
- }
63
-
64
- export function PaginatedCartListResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedCartListResourceResponse {
65
- if (json == null) {
66
- return json;
67
- }
68
- return {
69
-
70
- 'data': ((json['data'] as Array<any>).map(CartListResourceFromJSON)),
71
- 'meta': PagingMetadataFromJSON(json['meta']),
72
- };
73
- }
74
-
75
- export function PaginatedCartListResourceResponseToJSON(json: any): PaginatedCartListResourceResponse {
76
- return PaginatedCartListResourceResponseToJSONTyped(json, false);
77
- }
78
-
79
- export function PaginatedCartListResourceResponseToJSONTyped(value?: PaginatedCartListResourceResponse | null, ignoreDiscriminator: boolean = false): any {
80
- if (value == null) {
81
- return value;
82
- }
83
-
84
- return {
85
-
86
- 'data': ((value['data'] as Array<any>).map(CartListResourceToJSON)),
87
- 'meta': PagingMetadataToJSON(value['meta']),
88
- };
89
- }
90
-
@@ -1,90 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * My API
5
- * API documentation for my Laravel app
6
- *
7
- * The version of the OpenAPI document: 1.0.0
8
- *
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
-
15
- import { mapValues } from '../runtime';
16
- import type { PagingMetadata } from './PagingMetadata';
17
- import {
18
- PagingMetadataFromJSON,
19
- PagingMetadataFromJSONTyped,
20
- PagingMetadataToJSON,
21
- PagingMetadataToJSONTyped,
22
- } from './PagingMetadata';
23
- import type { CustomerListResource } from './CustomerListResource';
24
- import {
25
- CustomerListResourceFromJSON,
26
- CustomerListResourceFromJSONTyped,
27
- CustomerListResourceToJSON,
28
- CustomerListResourceToJSONTyped,
29
- } from './CustomerListResource';
30
-
31
- /**
32
- *
33
- * @export
34
- * @interface PaginatedCustomerListResourceResponse
35
- */
36
- export interface PaginatedCustomerListResourceResponse {
37
- /**
38
- *
39
- * @type {Array<CustomerListResource>}
40
- * @memberof PaginatedCustomerListResourceResponse
41
- */
42
- data: Array<CustomerListResource>;
43
- /**
44
- *
45
- * @type {PagingMetadata}
46
- * @memberof PaginatedCustomerListResourceResponse
47
- */
48
- meta: PagingMetadata;
49
- }
50
-
51
- /**
52
- * Check if a given object implements the PaginatedCustomerListResourceResponse interface.
53
- */
54
- export function instanceOfPaginatedCustomerListResourceResponse(value: object): value is PaginatedCustomerListResourceResponse {
55
- if (!('data' in value) || value['data'] === undefined) return false;
56
- if (!('meta' in value) || value['meta'] === undefined) return false;
57
- return true;
58
- }
59
-
60
- export function PaginatedCustomerListResourceResponseFromJSON(json: any): PaginatedCustomerListResourceResponse {
61
- return PaginatedCustomerListResourceResponseFromJSONTyped(json, false);
62
- }
63
-
64
- export function PaginatedCustomerListResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedCustomerListResourceResponse {
65
- if (json == null) {
66
- return json;
67
- }
68
- return {
69
-
70
- 'data': ((json['data'] as Array<any>).map(CustomerListResourceFromJSON)),
71
- 'meta': PagingMetadataFromJSON(json['meta']),
72
- };
73
- }
74
-
75
- export function PaginatedCustomerListResourceResponseToJSON(json: any): PaginatedCustomerListResourceResponse {
76
- return PaginatedCustomerListResourceResponseToJSONTyped(json, false);
77
- }
78
-
79
- export function PaginatedCustomerListResourceResponseToJSONTyped(value?: PaginatedCustomerListResourceResponse | null, ignoreDiscriminator: boolean = false): any {
80
- if (value == null) {
81
- return value;
82
- }
83
-
84
- return {
85
-
86
- 'data': ((value['data'] as Array<any>).map(CustomerListResourceToJSON)),
87
- 'meta': PagingMetadataToJSON(value['meta']),
88
- };
89
- }
90
-
@@ -1,56 +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
-
16
- /**
17
- *
18
- * @export
19
- */
20
- export const ShippingType = {
21
- Pickup: 'pickup',
22
- Delivery: 'delivery',
23
- Express: 'express',
24
- Courier: 'courier',
25
- DontShip: 'dont_ship'
26
- } as const;
27
- export type ShippingType = typeof ShippingType[keyof typeof ShippingType];
28
-
29
-
30
- export function instanceOfShippingType(value: any): boolean {
31
- for (const key in ShippingType) {
32
- if (Object.prototype.hasOwnProperty.call(ShippingType, key)) {
33
- if (ShippingType[key as keyof typeof ShippingType] === value) {
34
- return true;
35
- }
36
- }
37
- }
38
- return false;
39
- }
40
-
41
- export function ShippingTypeFromJSON(json: any): ShippingType {
42
- return ShippingTypeFromJSONTyped(json, false);
43
- }
44
-
45
- export function ShippingTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): ShippingType {
46
- return json as ShippingType;
47
- }
48
-
49
- export function ShippingTypeToJSON(value?: ShippingType | null): any {
50
- return value as any;
51
- }
52
-
53
- export function ShippingTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): ShippingType {
54
- return value as ShippingType;
55
- }
56
-
@@ -1,223 +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 { StoreCartRequestShippingAddress } from './StoreCartRequestShippingAddress';
17
- import {
18
- StoreCartRequestShippingAddressFromJSON,
19
- StoreCartRequestShippingAddressFromJSONTyped,
20
- StoreCartRequestShippingAddressToJSON,
21
- StoreCartRequestShippingAddressToJSONTyped,
22
- } from './StoreCartRequestShippingAddress';
23
- import type { StoreCartRequestCustomer } from './StoreCartRequestCustomer';
24
- import {
25
- StoreCartRequestCustomerFromJSON,
26
- StoreCartRequestCustomerFromJSONTyped,
27
- StoreCartRequestCustomerToJSON,
28
- StoreCartRequestCustomerToJSONTyped,
29
- } from './StoreCartRequestCustomer';
30
- import type { StoreCartRequestItemsInner } from './StoreCartRequestItemsInner';
31
- import {
32
- StoreCartRequestItemsInnerFromJSON,
33
- StoreCartRequestItemsInnerFromJSONTyped,
34
- StoreCartRequestItemsInnerToJSON,
35
- StoreCartRequestItemsInnerToJSONTyped,
36
- } from './StoreCartRequestItemsInner';
37
-
38
- /**
39
- *
40
- * @export
41
- * @interface StoreCartRequest
42
- */
43
- export interface StoreCartRequest {
44
- /**
45
- *
46
- * @type {number}
47
- * @memberof StoreCartRequest
48
- */
49
- customerId?: number | null;
50
- /**
51
- *
52
- * @type {number}
53
- * @memberof StoreCartRequest
54
- */
55
- siteId: number;
56
- /**
57
- *
58
- * @type {string}
59
- * @memberof StoreCartRequest
60
- */
61
- sessionToken?: string | null;
62
- /**
63
- *
64
- * @type {string}
65
- * @memberof StoreCartRequest
66
- */
67
- paymentToken?: string | null;
68
- /**
69
- *
70
- * @type {StoreCartRequestSourceEnum}
71
- * @memberof StoreCartRequest
72
- */
73
- source: StoreCartRequestSourceEnum;
74
- /**
75
- *
76
- * @type {Array<StoreCartRequestItemsInner>}
77
- * @memberof StoreCartRequest
78
- */
79
- items: Array<StoreCartRequestItemsInner>;
80
- /**
81
- *
82
- * @type {StoreCartRequestCustomer}
83
- * @memberof StoreCartRequest
84
- */
85
- customer?: StoreCartRequestCustomer;
86
- /**
87
- *
88
- * @type {StoreCartRequestShippingTypeEnum}
89
- * @memberof StoreCartRequest
90
- */
91
- shippingType?: StoreCartRequestShippingTypeEnum | null;
92
- /**
93
- *
94
- * @type {number}
95
- * @memberof StoreCartRequest
96
- */
97
- shippingSubtotal?: number | null;
98
- /**
99
- *
100
- * @type {boolean}
101
- * @memberof StoreCartRequest
102
- */
103
- overrideShipping?: boolean;
104
- /**
105
- *
106
- * @type {number}
107
- * @memberof StoreCartRequest
108
- */
109
- insuranceAmount?: number | null;
110
- /**
111
- *
112
- * @type {boolean}
113
- * @memberof StoreCartRequest
114
- */
115
- overrideInsurance?: boolean;
116
- /**
117
- *
118
- * @type {StoreCartRequestShippingAddress}
119
- * @memberof StoreCartRequest
120
- */
121
- shippingAddress: StoreCartRequestShippingAddress;
122
- /**
123
- *
124
- * @type {StoreCartRequestShippingAddress}
125
- * @memberof StoreCartRequest
126
- */
127
- billingAddress: StoreCartRequestShippingAddress;
128
- }
129
-
130
-
131
- /**
132
- * @export
133
- */
134
- export const StoreCartRequestSourceEnum = {
135
- Checkout: 'checkout',
136
- Admin: 'admin',
137
- Phone: 'phone',
138
- Email: 'email',
139
- Ebay: 'ebay',
140
- InStore: 'in_store'
141
- } as const;
142
- export type StoreCartRequestSourceEnum = typeof StoreCartRequestSourceEnum[keyof typeof StoreCartRequestSourceEnum];
143
-
144
- /**
145
- * @export
146
- */
147
- export const StoreCartRequestShippingTypeEnum = {
148
- Pickup: 'pickup',
149
- Delivery: 'delivery',
150
- Express: 'express',
151
- Courier: 'courier',
152
- DontShip: 'dont_ship'
153
- } as const;
154
- export type StoreCartRequestShippingTypeEnum = typeof StoreCartRequestShippingTypeEnum[keyof typeof StoreCartRequestShippingTypeEnum];
155
-
156
-
157
- /**
158
- * Check if a given object implements the StoreCartRequest interface.
159
- */
160
- export function instanceOfStoreCartRequest(value: object): value is StoreCartRequest {
161
- if (!('siteId' in value) || value['siteId'] === undefined) return false;
162
- if (!('source' in value) || value['source'] === undefined) return false;
163
- if (!('items' in value) || value['items'] === undefined) return false;
164
- if (!('shippingAddress' in value) || value['shippingAddress'] === undefined) return false;
165
- if (!('billingAddress' in value) || value['billingAddress'] === undefined) return false;
166
- return true;
167
- }
168
-
169
- export function StoreCartRequestFromJSON(json: any): StoreCartRequest {
170
- return StoreCartRequestFromJSONTyped(json, false);
171
- }
172
-
173
- export function StoreCartRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): StoreCartRequest {
174
- if (json == null) {
175
- return json;
176
- }
177
- return {
178
-
179
- 'customerId': json['customer_id'] == null ? undefined : json['customer_id'],
180
- 'siteId': json['site_id'],
181
- 'sessionToken': json['session_token'] == null ? undefined : json['session_token'],
182
- 'paymentToken': json['payment_token'] == null ? undefined : json['payment_token'],
183
- 'source': json['source'],
184
- 'items': ((json['items'] as Array<any>).map(StoreCartRequestItemsInnerFromJSON)),
185
- 'customer': json['customer'] == null ? undefined : StoreCartRequestCustomerFromJSON(json['customer']),
186
- 'shippingType': json['shipping_type'] == null ? undefined : json['shipping_type'],
187
- 'shippingSubtotal': json['shipping_subtotal'] == null ? undefined : json['shipping_subtotal'],
188
- 'overrideShipping': json['override_shipping'] == null ? undefined : json['override_shipping'],
189
- 'insuranceAmount': json['insurance_amount'] == null ? undefined : json['insurance_amount'],
190
- 'overrideInsurance': json['override_insurance'] == null ? undefined : json['override_insurance'],
191
- 'shippingAddress': StoreCartRequestShippingAddressFromJSON(json['shipping_address']),
192
- 'billingAddress': StoreCartRequestShippingAddressFromJSON(json['billing_address']),
193
- };
194
- }
195
-
196
- export function StoreCartRequestToJSON(json: any): StoreCartRequest {
197
- return StoreCartRequestToJSONTyped(json, false);
198
- }
199
-
200
- export function StoreCartRequestToJSONTyped(value?: StoreCartRequest | null, ignoreDiscriminator: boolean = false): any {
201
- if (value == null) {
202
- return value;
203
- }
204
-
205
- return {
206
-
207
- 'customer_id': value['customerId'],
208
- 'site_id': value['siteId'],
209
- 'session_token': value['sessionToken'],
210
- 'payment_token': value['paymentToken'],
211
- 'source': value['source'],
212
- 'items': ((value['items'] as Array<any>).map(StoreCartRequestItemsInnerToJSON)),
213
- 'customer': StoreCartRequestCustomerToJSON(value['customer']),
214
- 'shipping_type': value['shippingType'],
215
- 'shipping_subtotal': value['shippingSubtotal'],
216
- 'override_shipping': value['overrideShipping'],
217
- 'insurance_amount': value['insuranceAmount'],
218
- 'override_insurance': value['overrideInsurance'],
219
- 'shipping_address': StoreCartRequestShippingAddressToJSON(value['shippingAddress']),
220
- 'billing_address': StoreCartRequestShippingAddressToJSON(value['billingAddress']),
221
- };
222
- }
223
-
@@ -1,89 +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 StoreCartRequestCustomer
20
- */
21
- export interface StoreCartRequestCustomer {
22
- /**
23
- *
24
- * @type {string}
25
- * @memberof StoreCartRequestCustomer
26
- */
27
- firstName?: string | null;
28
- /**
29
- *
30
- * @type {string}
31
- * @memberof StoreCartRequestCustomer
32
- */
33
- lastName?: string | null;
34
- /**
35
- *
36
- * @type {string}
37
- * @memberof StoreCartRequestCustomer
38
- */
39
- email?: string | null;
40
- /**
41
- *
42
- * @type {string}
43
- * @memberof StoreCartRequestCustomer
44
- */
45
- phone?: string | null;
46
- }
47
-
48
- /**
49
- * Check if a given object implements the StoreCartRequestCustomer interface.
50
- */
51
- export function instanceOfStoreCartRequestCustomer(value: object): value is StoreCartRequestCustomer {
52
- return true;
53
- }
54
-
55
- export function StoreCartRequestCustomerFromJSON(json: any): StoreCartRequestCustomer {
56
- return StoreCartRequestCustomerFromJSONTyped(json, false);
57
- }
58
-
59
- export function StoreCartRequestCustomerFromJSONTyped(json: any, ignoreDiscriminator: boolean): StoreCartRequestCustomer {
60
- if (json == null) {
61
- return json;
62
- }
63
- return {
64
-
65
- 'firstName': json['first_name'] == null ? undefined : json['first_name'],
66
- 'lastName': json['last_name'] == null ? undefined : json['last_name'],
67
- 'email': json['email'] == null ? undefined : json['email'],
68
- 'phone': json['phone'] == null ? undefined : json['phone'],
69
- };
70
- }
71
-
72
- export function StoreCartRequestCustomerToJSON(json: any): StoreCartRequestCustomer {
73
- return StoreCartRequestCustomerToJSONTyped(json, false);
74
- }
75
-
76
- export function StoreCartRequestCustomerToJSONTyped(value?: StoreCartRequestCustomer | null, ignoreDiscriminator: boolean = false): any {
77
- if (value == null) {
78
- return value;
79
- }
80
-
81
- return {
82
-
83
- 'first_name': value['firstName'],
84
- 'last_name': value['lastName'],
85
- 'email': value['email'],
86
- 'phone': value['phone'],
87
- };
88
- }
89
-
@@ -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 StoreCartRequestItemsInner
20
- */
21
- export interface StoreCartRequestItemsInner {
22
- /**
23
- *
24
- * @type {number}
25
- * @memberof StoreCartRequestItemsInner
26
- */
27
- productChildId: number;
28
- /**
29
- *
30
- * @type {number}
31
- * @memberof StoreCartRequestItemsInner
32
- */
33
- quantity: number;
34
- /**
35
- *
36
- * @type {number}
37
- * @memberof StoreCartRequestItemsInner
38
- */
39
- productPrice?: number | null;
40
- }
41
-
42
- /**
43
- * Check if a given object implements the StoreCartRequestItemsInner interface.
44
- */
45
- export function instanceOfStoreCartRequestItemsInner(value: object): value is StoreCartRequestItemsInner {
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 StoreCartRequestItemsInnerFromJSON(json: any): StoreCartRequestItemsInner {
52
- return StoreCartRequestItemsInnerFromJSONTyped(json, false);
53
- }
54
-
55
- export function StoreCartRequestItemsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): StoreCartRequestItemsInner {
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 StoreCartRequestItemsInnerToJSON(json: any): StoreCartRequestItemsInner {
68
- return StoreCartRequestItemsInnerToJSONTyped(json, false);
69
- }
70
-
71
- export function StoreCartRequestItemsInnerToJSONTyped(value?: StoreCartRequestItemsInner | 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
-