@digital8/lighting-illusions-ts-sdk 0.0.1813 → 0.0.1815

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/AddressResource.d.ts +1 -1
  6. package/dist/models/AddressResource.js +3 -1
  7. package/dist/models/IndexExternalApiLogRequest.d.ts +6 -0
  8. package/dist/models/IndexExternalApiLogRequest.js +2 -0
  9. package/dist/models/ProductChildSiteDetailLiteResource.d.ts +0 -7
  10. package/dist/models/ProductChildSiteDetailLiteResource.js +0 -5
  11. package/dist/models/SitePaymentConfigResource.d.ts +0 -6
  12. package/dist/models/SitePaymentConfigResource.js +0 -4
  13. package/dist/models/StoreFrontendResource.d.ts +1 -1
  14. package/dist/models/StoreFrontendResource.js +3 -1
  15. package/dist/models/StoreListResource.d.ts +1 -1
  16. package/dist/models/StoreListResource.js +1 -3
  17. package/dist/models/StoreResource.d.ts +1 -1
  18. package/dist/models/StoreResource.js +1 -3
  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/AddressResource.ts +3 -2
  30. package/src/models/IndexExternalApiLogRequest.ts +8 -0
  31. package/src/models/ProductChildSiteDetailLiteResource.ts +0 -16
  32. package/src/models/SitePaymentConfigResource.ts +0 -9
  33. package/src/models/StoreFrontendResource.ts +3 -2
  34. package/src/models/StoreListResource.ts +2 -3
  35. package/src/models/StoreResource.ts +2 -3
  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 -204
  45. package/dist/models/AdminCartResource.js +0 -147
  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 -143
  53. package/dist/models/CartListResource.js +0 -110
  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 -162
  69. package/dist/models/FrontendCartResource.js +0 -125
  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 -142
  91. package/dist/models/StoreCartRequest.js +0 -112
  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 -68
  97. package/dist/models/StoreCartRequestShippingAddress.js +0 -69
  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 -117
  101. package/dist/models/UpdateCartRequest.js +0 -97
  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 -90
  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 -70
  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 -76
  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 -62
  131. package/docs/StoreCartRequestCustomer.md +0 -40
  132. package/docs/StoreCartRequestItemsInner.md +0 -38
  133. package/docs/StoreCartRequestShippingAddress.md +0 -46
  134. package/docs/StoreCustomerRequest.md +0 -42
  135. package/docs/UpdateCartRequest.md +0 -54
  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 -337
  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 -242
  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 -277
  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 -231
  164. package/src/models/StoreCartRequestCustomer.ts +0 -89
  165. package/src/models/StoreCartRequestItemsInner.ts +0 -83
  166. package/src/models/StoreCartRequestShippingAddress.ts +0 -117
  167. package/src/models/StoreCustomerRequest.ts +0 -101
  168. package/src/models/UpdateCartRequest.ts +0 -189
  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,231 +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 {boolean}
119
- * @memberof StoreCartRequest
120
- */
121
- useAsBillingAddress?: boolean;
122
- /**
123
- *
124
- * @type {StoreCartRequestShippingAddress}
125
- * @memberof StoreCartRequest
126
- */
127
- shippingAddress: StoreCartRequestShippingAddress;
128
- /**
129
- *
130
- * @type {StoreCartRequestShippingAddress}
131
- * @memberof StoreCartRequest
132
- */
133
- billingAddress: StoreCartRequestShippingAddress;
134
- }
135
-
136
-
137
- /**
138
- * @export
139
- */
140
- export const StoreCartRequestSourceEnum = {
141
- Checkout: 'checkout',
142
- Admin: 'admin',
143
- Phone: 'phone',
144
- Email: 'email',
145
- Ebay: 'ebay',
146
- InStore: 'in_store'
147
- } as const;
148
- export type StoreCartRequestSourceEnum = typeof StoreCartRequestSourceEnum[keyof typeof StoreCartRequestSourceEnum];
149
-
150
- /**
151
- * @export
152
- */
153
- export const StoreCartRequestShippingTypeEnum = {
154
- Pickup: 'pickup',
155
- Delivery: 'delivery',
156
- Express: 'express',
157
- Courier: 'courier',
158
- DontShip: 'dont_ship'
159
- } as const;
160
- export type StoreCartRequestShippingTypeEnum = typeof StoreCartRequestShippingTypeEnum[keyof typeof StoreCartRequestShippingTypeEnum];
161
-
162
-
163
- /**
164
- * Check if a given object implements the StoreCartRequest interface.
165
- */
166
- export function instanceOfStoreCartRequest(value: object): value is StoreCartRequest {
167
- if (!('siteId' in value) || value['siteId'] === undefined) return false;
168
- if (!('source' in value) || value['source'] === undefined) return false;
169
- if (!('items' in value) || value['items'] === undefined) return false;
170
- if (!('shippingAddress' in value) || value['shippingAddress'] === undefined) return false;
171
- if (!('billingAddress' in value) || value['billingAddress'] === undefined) return false;
172
- return true;
173
- }
174
-
175
- export function StoreCartRequestFromJSON(json: any): StoreCartRequest {
176
- return StoreCartRequestFromJSONTyped(json, false);
177
- }
178
-
179
- export function StoreCartRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): StoreCartRequest {
180
- if (json == null) {
181
- return json;
182
- }
183
- return {
184
-
185
- 'customerId': json['customer_id'] == null ? undefined : json['customer_id'],
186
- 'siteId': json['site_id'],
187
- 'sessionToken': json['session_token'] == null ? undefined : json['session_token'],
188
- 'paymentToken': json['payment_token'] == null ? undefined : json['payment_token'],
189
- 'source': json['source'],
190
- 'items': ((json['items'] as Array<any>).map(StoreCartRequestItemsInnerFromJSON)),
191
- 'customer': json['customer'] == null ? undefined : StoreCartRequestCustomerFromJSON(json['customer']),
192
- 'shippingType': json['shipping_type'] == null ? undefined : json['shipping_type'],
193
- 'shippingSubtotal': json['shipping_subtotal'] == null ? undefined : json['shipping_subtotal'],
194
- 'overrideShipping': json['override_shipping'] == null ? undefined : json['override_shipping'],
195
- 'insuranceAmount': json['insurance_amount'] == null ? undefined : json['insurance_amount'],
196
- 'overrideInsurance': json['override_insurance'] == null ? undefined : json['override_insurance'],
197
- 'useAsBillingAddress': json['use_as_billing_address'] == null ? undefined : json['use_as_billing_address'],
198
- 'shippingAddress': StoreCartRequestShippingAddressFromJSON(json['shipping_address']),
199
- 'billingAddress': StoreCartRequestShippingAddressFromJSON(json['billing_address']),
200
- };
201
- }
202
-
203
- export function StoreCartRequestToJSON(json: any): StoreCartRequest {
204
- return StoreCartRequestToJSONTyped(json, false);
205
- }
206
-
207
- export function StoreCartRequestToJSONTyped(value?: StoreCartRequest | null, ignoreDiscriminator: boolean = false): any {
208
- if (value == null) {
209
- return value;
210
- }
211
-
212
- return {
213
-
214
- 'customer_id': value['customerId'],
215
- 'site_id': value['siteId'],
216
- 'session_token': value['sessionToken'],
217
- 'payment_token': value['paymentToken'],
218
- 'source': value['source'],
219
- 'items': ((value['items'] as Array<any>).map(StoreCartRequestItemsInnerToJSON)),
220
- 'customer': StoreCartRequestCustomerToJSON(value['customer']),
221
- 'shipping_type': value['shippingType'],
222
- 'shipping_subtotal': value['shippingSubtotal'],
223
- 'override_shipping': value['overrideShipping'],
224
- 'insurance_amount': value['insuranceAmount'],
225
- 'override_insurance': value['overrideInsurance'],
226
- 'use_as_billing_address': value['useAsBillingAddress'],
227
- 'shipping_address': StoreCartRequestShippingAddressToJSON(value['shippingAddress']),
228
- 'billing_address': StoreCartRequestShippingAddressToJSON(value['billingAddress']),
229
- };
230
- }
231
-
@@ -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
-