@digital8/lighting-illusions-ts-sdk 0.0.1939 → 0.0.1940

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 (146) hide show
  1. package/.openapi-generator/FILES +30 -16
  2. package/README.md +19 -10
  3. package/dist/apis/TransactionsApi.d.ts +69 -0
  4. package/dist/apis/TransactionsApi.js +262 -0
  5. package/dist/apis/index.d.ts +1 -0
  6. package/dist/apis/index.js +1 -0
  7. package/dist/models/AddressResource.d.ts +7 -1
  8. package/dist/models/AddressResource.js +4 -2
  9. package/dist/models/AdminOrderResource.d.ts +0 -6
  10. package/dist/models/AdminOrderResource.js +0 -4
  11. package/dist/models/CartListResource.d.ts +0 -6
  12. package/dist/models/CartListResource.js +0 -4
  13. package/dist/models/CartResource.d.ts +0 -6
  14. package/dist/models/CartResource.js +0 -4
  15. package/dist/models/IndexTransactionRequest.d.ts +127 -0
  16. package/dist/models/IndexTransactionRequest.js +91 -0
  17. package/dist/models/PaginatedTransactionListResourceResponse.d.ts +40 -0
  18. package/dist/models/PaginatedTransactionListResourceResponse.js +57 -0
  19. package/dist/models/PaginatedTransactionResourceResponse.d.ts +40 -0
  20. package/dist/models/PaginatedTransactionResourceResponse.js +57 -0
  21. package/dist/models/PaymentMethod.d.ts +30 -0
  22. package/dist/models/PaymentMethod.js +56 -0
  23. package/dist/models/PaymentSource.d.ts +26 -0
  24. package/dist/models/PaymentSource.js +52 -0
  25. package/dist/models/PaymentStatus.d.ts +25 -0
  26. package/dist/models/PaymentStatus.js +51 -0
  27. package/dist/models/ProductChildCartLiteResource.d.ts +0 -6
  28. package/dist/models/ProductChildCartLiteResource.js +0 -4
  29. package/dist/models/RefundTransactionRequest.d.ts +38 -0
  30. package/dist/models/RefundTransactionRequest.js +53 -0
  31. package/dist/models/StoreCartRequest.d.ts +0 -6
  32. package/dist/models/StoreCartRequest.js +0 -2
  33. package/dist/models/StoreCartRequestShippingAddress.d.ts +6 -0
  34. package/dist/models/StoreCartRequestShippingAddress.js +2 -0
  35. package/dist/models/StoreFrontendResource.d.ts +1 -1
  36. package/dist/models/StoreFrontendResource.js +3 -1
  37. package/dist/models/StoreResource.d.ts +1 -1
  38. package/dist/models/StoreResource.js +3 -1
  39. package/dist/models/StoreSpecialDateFrontendResource.d.ts +2 -2
  40. package/dist/models/StoreSpecialDateFrontendResource.js +1 -3
  41. package/dist/models/StoreTransactionRequest.d.ts +81 -0
  42. package/dist/models/StoreTransactionRequest.js +78 -0
  43. package/dist/models/TransactionListResource.d.ts +152 -0
  44. package/dist/models/TransactionListResource.js +109 -0
  45. package/dist/models/TransactionListResourceArrayResponse.d.ts +33 -0
  46. package/dist/models/TransactionListResourceArrayResponse.js +50 -0
  47. package/dist/models/TransactionResource.d.ts +152 -0
  48. package/dist/models/TransactionResource.js +109 -0
  49. package/dist/models/TransactionResourceArrayResponse.d.ts +33 -0
  50. package/dist/models/TransactionResourceArrayResponse.js +50 -0
  51. package/dist/models/TransactionType.d.ts +25 -0
  52. package/dist/models/TransactionType.js +51 -0
  53. package/dist/models/UpdateCartRequest.d.ts +0 -6
  54. package/dist/models/UpdateCartRequest.js +0 -2
  55. package/dist/models/UpdateOrderRequest.d.ts +3 -9
  56. package/dist/models/UpdateOrderRequest.js +3 -5
  57. package/dist/models/UpdateOrderRequestBillingAddress.d.ts +6 -0
  58. package/dist/models/UpdateOrderRequestBillingAddress.js +2 -0
  59. package/dist/models/UpdateOrderRequestShippingAddress.d.ts +80 -0
  60. package/dist/models/UpdateOrderRequestShippingAddress.js +67 -0
  61. package/dist/models/index.d.ts +14 -8
  62. package/dist/models/index.js +14 -8
  63. package/docs/AddressResource.md +2 -0
  64. package/docs/AdminOrderResource.md +0 -2
  65. package/docs/CartListResource.md +0 -2
  66. package/docs/CartResource.md +0 -2
  67. package/docs/IndexTransactionRequest.md +60 -0
  68. package/docs/PaginatedTransactionListResourceResponse.md +36 -0
  69. package/docs/{FrontendLineItemResourceArrayResponse.md → PaginatedTransactionResourceResponse.md} +7 -5
  70. package/docs/{CartCouponLiteResource.md → PaymentMethod.md} +4 -10
  71. package/docs/{CartCouponLiteResourceArrayResponse.md → PaymentSource.md} +4 -6
  72. package/docs/PaymentStatus.md +32 -0
  73. package/docs/ProductChildCartLiteResource.md +0 -2
  74. package/docs/RefundTransactionRequest.md +36 -0
  75. package/docs/StoreCartRequest.md +0 -2
  76. package/docs/StoreCartRequestShippingAddress.md +2 -0
  77. package/docs/StoreSpecialDateFrontendResource.md +1 -1
  78. package/docs/StoreTransactionRequest.md +46 -0
  79. package/docs/TransactionListResource.md +74 -0
  80. package/docs/{FrontendOrderResourceArrayResponse.md → TransactionListResourceArrayResponse.md} +5 -5
  81. package/docs/TransactionResource.md +74 -0
  82. package/docs/{FrontendCartResourceArrayResponse.md → TransactionResourceArrayResponse.md} +5 -5
  83. package/docs/TransactionType.md +32 -0
  84. package/docs/TransactionsApi.md +209 -0
  85. package/docs/UpdateCartRequest.md +0 -2
  86. package/docs/UpdateOrderRequest.md +1 -3
  87. package/docs/UpdateOrderRequestBillingAddress.md +2 -0
  88. package/docs/UpdateOrderRequestShippingAddress.md +50 -0
  89. package/package.json +1 -1
  90. package/src/apis/TransactionsApi.ts +193 -0
  91. package/src/apis/index.ts +1 -0
  92. package/src/models/AddressResource.ts +11 -3
  93. package/src/models/AdminOrderResource.ts +0 -9
  94. package/src/models/CartListResource.ts +0 -9
  95. package/src/models/CartResource.ts +0 -9
  96. package/src/models/IndexTransactionRequest.ts +190 -0
  97. package/src/models/PaginatedTransactionListResourceResponse.ts +90 -0
  98. package/src/models/PaginatedTransactionResourceResponse.ts +90 -0
  99. package/src/models/PaymentMethod.ts +58 -0
  100. package/src/models/PaymentSource.ts +54 -0
  101. package/src/models/PaymentStatus.ts +53 -0
  102. package/src/models/ProductChildCartLiteResource.ts +0 -9
  103. package/src/models/RefundTransactionRequest.ts +74 -0
  104. package/src/models/StoreCartRequest.ts +0 -8
  105. package/src/models/StoreCartRequestShippingAddress.ts +8 -0
  106. package/src/models/StoreFrontendResource.ts +3 -2
  107. package/src/models/StoreResource.ts +3 -2
  108. package/src/models/StoreSpecialDateFrontendResource.ts +3 -4
  109. package/src/models/StoreTransactionRequest.ts +131 -0
  110. package/src/models/TransactionListResource.ts +235 -0
  111. package/src/models/TransactionListResourceArrayResponse.ts +73 -0
  112. package/src/models/TransactionResource.ts +235 -0
  113. package/src/models/TransactionResourceArrayResponse.ts +73 -0
  114. package/src/models/TransactionType.ts +53 -0
  115. package/src/models/UpdateCartRequest.ts +0 -8
  116. package/src/models/UpdateOrderRequest.ts +10 -18
  117. package/src/models/UpdateOrderRequestBillingAddress.ts +8 -0
  118. package/src/models/UpdateOrderRequestShippingAddress.ts +130 -0
  119. package/src/models/index.ts +14 -8
  120. package/dist/models/CartCouponLiteResource.d.ts +0 -44
  121. package/dist/models/CartCouponLiteResource.js +0 -59
  122. package/dist/models/CartCouponLiteResourceArrayResponse.d.ts +0 -33
  123. package/dist/models/CartCouponLiteResourceArrayResponse.js +0 -50
  124. package/dist/models/FrontendCartResource.d.ts +0 -144
  125. package/dist/models/FrontendCartResource.js +0 -121
  126. package/dist/models/FrontendCartResourceArrayResponse.d.ts +0 -33
  127. package/dist/models/FrontendCartResourceArrayResponse.js +0 -50
  128. package/dist/models/FrontendLineItemResource.d.ts +0 -63
  129. package/dist/models/FrontendLineItemResource.js +0 -70
  130. package/dist/models/FrontendLineItemResourceArrayResponse.d.ts +0 -33
  131. package/dist/models/FrontendLineItemResourceArrayResponse.js +0 -50
  132. package/dist/models/FrontendOrderResource.d.ts +0 -168
  133. package/dist/models/FrontendOrderResource.js +0 -137
  134. package/dist/models/FrontendOrderResourceArrayResponse.d.ts +0 -33
  135. package/dist/models/FrontendOrderResourceArrayResponse.js +0 -50
  136. package/docs/FrontendCartResource.md +0 -70
  137. package/docs/FrontendLineItemResource.md +0 -44
  138. package/docs/FrontendOrderResource.md +0 -78
  139. package/src/models/CartCouponLiteResource.ts +0 -84
  140. package/src/models/CartCouponLiteResourceArrayResponse.ts +0 -73
  141. package/src/models/FrontendCartResource.ts +0 -254
  142. package/src/models/FrontendCartResourceArrayResponse.ts +0 -73
  143. package/src/models/FrontendLineItemResource.ts +0 -118
  144. package/src/models/FrontendLineItemResourceArrayResponse.ts +0 -73
  145. package/src/models/FrontendOrderResource.ts +0 -290
  146. package/src/models/FrontendOrderResourceArrayResponse.ts +0 -73
@@ -0,0 +1,190 @@
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 IndexTransactionRequest
20
+ */
21
+ export interface IndexTransactionRequest {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof IndexTransactionRequest
26
+ */
27
+ search?: string | null;
28
+ /**
29
+ *
30
+ * @type {IndexTransactionRequestSortByEnum}
31
+ * @memberof IndexTransactionRequest
32
+ */
33
+ sortBy?: IndexTransactionRequestSortByEnum;
34
+ /**
35
+ *
36
+ * @type {IndexTransactionRequestSortDirectionEnum}
37
+ * @memberof IndexTransactionRequest
38
+ */
39
+ sortDirection?: IndexTransactionRequestSortDirectionEnum;
40
+ /**
41
+ *
42
+ * @type {number}
43
+ * @memberof IndexTransactionRequest
44
+ */
45
+ perPage?: number;
46
+ /**
47
+ *
48
+ * @type {number}
49
+ * @memberof IndexTransactionRequest
50
+ */
51
+ page?: number;
52
+ /**
53
+ *
54
+ * @type {Array<string>}
55
+ * @memberof IndexTransactionRequest
56
+ */
57
+ paymentSource?: Array<string>;
58
+ /**
59
+ *
60
+ * @type {Array<string>}
61
+ * @memberof IndexTransactionRequest
62
+ */
63
+ type?: Array<string>;
64
+ /**
65
+ *
66
+ * @type {Array<string>}
67
+ * @memberof IndexTransactionRequest
68
+ */
69
+ paymentMethod?: Array<string>;
70
+ /**
71
+ *
72
+ * @type {Array<string>}
73
+ * @memberof IndexTransactionRequest
74
+ */
75
+ status?: Array<string>;
76
+ /**
77
+ *
78
+ * @type {Date}
79
+ * @memberof IndexTransactionRequest
80
+ */
81
+ beforeCreatedAt?: Date;
82
+ /**
83
+ *
84
+ * @type {Date}
85
+ * @memberof IndexTransactionRequest
86
+ */
87
+ afterCreatedAt?: Date;
88
+ /**
89
+ *
90
+ * @type {number}
91
+ * @memberof IndexTransactionRequest
92
+ */
93
+ relatedId?: number;
94
+ /**
95
+ *
96
+ * @type {string}
97
+ * @memberof IndexTransactionRequest
98
+ */
99
+ relatedType?: string;
100
+ /**
101
+ *
102
+ * @type {boolean}
103
+ * @memberof IndexTransactionRequest
104
+ */
105
+ includesRelations?: boolean;
106
+ }
107
+
108
+
109
+ /**
110
+ * @export
111
+ */
112
+ export const IndexTransactionRequestSortByEnum = {
113
+ Id: 'id',
114
+ CreatedAt: 'created_at',
115
+ TotalAmount: 'total_amount'
116
+ } as const;
117
+ export type IndexTransactionRequestSortByEnum = typeof IndexTransactionRequestSortByEnum[keyof typeof IndexTransactionRequestSortByEnum];
118
+
119
+ /**
120
+ * @export
121
+ */
122
+ export const IndexTransactionRequestSortDirectionEnum = {
123
+ Asc: 'asc',
124
+ Desc: 'desc'
125
+ } as const;
126
+ export type IndexTransactionRequestSortDirectionEnum = typeof IndexTransactionRequestSortDirectionEnum[keyof typeof IndexTransactionRequestSortDirectionEnum];
127
+
128
+
129
+ /**
130
+ * Check if a given object implements the IndexTransactionRequest interface.
131
+ */
132
+ export function instanceOfIndexTransactionRequest(value: object): value is IndexTransactionRequest {
133
+ return true;
134
+ }
135
+
136
+ export function IndexTransactionRequestFromJSON(json: any): IndexTransactionRequest {
137
+ return IndexTransactionRequestFromJSONTyped(json, false);
138
+ }
139
+
140
+ export function IndexTransactionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): IndexTransactionRequest {
141
+ if (json == null) {
142
+ return json;
143
+ }
144
+ return {
145
+
146
+ 'search': json['search'] == null ? undefined : json['search'],
147
+ 'sortBy': json['sortBy'] == null ? undefined : json['sortBy'],
148
+ 'sortDirection': json['sortDirection'] == null ? undefined : json['sortDirection'],
149
+ 'perPage': json['per_page'] == null ? undefined : json['per_page'],
150
+ 'page': json['page'] == null ? undefined : json['page'],
151
+ 'paymentSource': json['payment_source'] == null ? undefined : json['payment_source'],
152
+ 'type': json['type'] == null ? undefined : json['type'],
153
+ 'paymentMethod': json['payment_method'] == null ? undefined : json['payment_method'],
154
+ 'status': json['status'] == null ? undefined : json['status'],
155
+ 'beforeCreatedAt': json['before_created_at'] == null ? undefined : (new Date(json['before_created_at'])),
156
+ 'afterCreatedAt': json['after_created_at'] == null ? undefined : (new Date(json['after_created_at'])),
157
+ 'relatedId': json['related_id'] == null ? undefined : json['related_id'],
158
+ 'relatedType': json['related_type'] == null ? undefined : json['related_type'],
159
+ 'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'],
160
+ };
161
+ }
162
+
163
+ export function IndexTransactionRequestToJSON(json: any): IndexTransactionRequest {
164
+ return IndexTransactionRequestToJSONTyped(json, false);
165
+ }
166
+
167
+ export function IndexTransactionRequestToJSONTyped(value?: IndexTransactionRequest | null, ignoreDiscriminator: boolean = false): any {
168
+ if (value == null) {
169
+ return value;
170
+ }
171
+
172
+ return {
173
+
174
+ 'search': value['search'],
175
+ 'sortBy': value['sortBy'],
176
+ 'sortDirection': value['sortDirection'],
177
+ 'per_page': value['perPage'],
178
+ 'page': value['page'],
179
+ 'payment_source': value['paymentSource'],
180
+ 'type': value['type'],
181
+ 'payment_method': value['paymentMethod'],
182
+ 'status': value['status'],
183
+ 'before_created_at': value['beforeCreatedAt'] == null ? value['beforeCreatedAt'] : value['beforeCreatedAt'].toISOString(),
184
+ 'after_created_at': value['afterCreatedAt'] == null ? value['afterCreatedAt'] : value['afterCreatedAt'].toISOString(),
185
+ 'related_id': value['relatedId'],
186
+ 'related_type': value['relatedType'],
187
+ 'includes_relations': value['includesRelations'],
188
+ };
189
+ }
190
+
@@ -0,0 +1,90 @@
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 { TransactionListResource } from './TransactionListResource';
24
+ import {
25
+ TransactionListResourceFromJSON,
26
+ TransactionListResourceFromJSONTyped,
27
+ TransactionListResourceToJSON,
28
+ TransactionListResourceToJSONTyped,
29
+ } from './TransactionListResource';
30
+
31
+ /**
32
+ *
33
+ * @export
34
+ * @interface PaginatedTransactionListResourceResponse
35
+ */
36
+ export interface PaginatedTransactionListResourceResponse {
37
+ /**
38
+ *
39
+ * @type {Array<TransactionListResource>}
40
+ * @memberof PaginatedTransactionListResourceResponse
41
+ */
42
+ data: Array<TransactionListResource>;
43
+ /**
44
+ *
45
+ * @type {PagingMetadata}
46
+ * @memberof PaginatedTransactionListResourceResponse
47
+ */
48
+ meta: PagingMetadata;
49
+ }
50
+
51
+ /**
52
+ * Check if a given object implements the PaginatedTransactionListResourceResponse interface.
53
+ */
54
+ export function instanceOfPaginatedTransactionListResourceResponse(value: object): value is PaginatedTransactionListResourceResponse {
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 PaginatedTransactionListResourceResponseFromJSON(json: any): PaginatedTransactionListResourceResponse {
61
+ return PaginatedTransactionListResourceResponseFromJSONTyped(json, false);
62
+ }
63
+
64
+ export function PaginatedTransactionListResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedTransactionListResourceResponse {
65
+ if (json == null) {
66
+ return json;
67
+ }
68
+ return {
69
+
70
+ 'data': ((json['data'] as Array<any>).map(TransactionListResourceFromJSON)),
71
+ 'meta': PagingMetadataFromJSON(json['meta']),
72
+ };
73
+ }
74
+
75
+ export function PaginatedTransactionListResourceResponseToJSON(json: any): PaginatedTransactionListResourceResponse {
76
+ return PaginatedTransactionListResourceResponseToJSONTyped(json, false);
77
+ }
78
+
79
+ export function PaginatedTransactionListResourceResponseToJSONTyped(value?: PaginatedTransactionListResourceResponse | 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(TransactionListResourceToJSON)),
87
+ 'meta': PagingMetadataToJSON(value['meta']),
88
+ };
89
+ }
90
+
@@ -0,0 +1,90 @@
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 { TransactionResource } from './TransactionResource';
24
+ import {
25
+ TransactionResourceFromJSON,
26
+ TransactionResourceFromJSONTyped,
27
+ TransactionResourceToJSON,
28
+ TransactionResourceToJSONTyped,
29
+ } from './TransactionResource';
30
+
31
+ /**
32
+ *
33
+ * @export
34
+ * @interface PaginatedTransactionResourceResponse
35
+ */
36
+ export interface PaginatedTransactionResourceResponse {
37
+ /**
38
+ *
39
+ * @type {Array<TransactionResource>}
40
+ * @memberof PaginatedTransactionResourceResponse
41
+ */
42
+ data: Array<TransactionResource>;
43
+ /**
44
+ *
45
+ * @type {PagingMetadata}
46
+ * @memberof PaginatedTransactionResourceResponse
47
+ */
48
+ meta: PagingMetadata;
49
+ }
50
+
51
+ /**
52
+ * Check if a given object implements the PaginatedTransactionResourceResponse interface.
53
+ */
54
+ export function instanceOfPaginatedTransactionResourceResponse(value: object): value is PaginatedTransactionResourceResponse {
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 PaginatedTransactionResourceResponseFromJSON(json: any): PaginatedTransactionResourceResponse {
61
+ return PaginatedTransactionResourceResponseFromJSONTyped(json, false);
62
+ }
63
+
64
+ export function PaginatedTransactionResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedTransactionResourceResponse {
65
+ if (json == null) {
66
+ return json;
67
+ }
68
+ return {
69
+
70
+ 'data': ((json['data'] as Array<any>).map(TransactionResourceFromJSON)),
71
+ 'meta': PagingMetadataFromJSON(json['meta']),
72
+ };
73
+ }
74
+
75
+ export function PaginatedTransactionResourceResponseToJSON(json: any): PaginatedTransactionResourceResponse {
76
+ return PaginatedTransactionResourceResponseToJSONTyped(json, false);
77
+ }
78
+
79
+ export function PaginatedTransactionResourceResponseToJSONTyped(value?: PaginatedTransactionResourceResponse | 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(TransactionResourceToJSON)),
87
+ 'meta': PagingMetadataToJSON(value['meta']),
88
+ };
89
+ }
90
+
@@ -0,0 +1,58 @@
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 PaymentMethod = {
21
+ BankDeposit: 'bank_deposit',
22
+ Visa: 'visa',
23
+ Mastercard: 'mastercard',
24
+ AmericanExpress: 'american_express',
25
+ GooglePay: 'google_pay',
26
+ PayPal: 'pay_pal',
27
+ ApplePay: 'apple_pay'
28
+ } as const;
29
+ export type PaymentMethod = typeof PaymentMethod[keyof typeof PaymentMethod];
30
+
31
+
32
+ export function instanceOfPaymentMethod(value: any): boolean {
33
+ for (const key in PaymentMethod) {
34
+ if (Object.prototype.hasOwnProperty.call(PaymentMethod, key)) {
35
+ if (PaymentMethod[key as keyof typeof PaymentMethod] === value) {
36
+ return true;
37
+ }
38
+ }
39
+ }
40
+ return false;
41
+ }
42
+
43
+ export function PaymentMethodFromJSON(json: any): PaymentMethod {
44
+ return PaymentMethodFromJSONTyped(json, false);
45
+ }
46
+
47
+ export function PaymentMethodFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaymentMethod {
48
+ return json as PaymentMethod;
49
+ }
50
+
51
+ export function PaymentMethodToJSON(value?: PaymentMethod | null): any {
52
+ return value as any;
53
+ }
54
+
55
+ export function PaymentMethodToJSONTyped(value: any, ignoreDiscriminator: boolean): PaymentMethod {
56
+ return value as PaymentMethod;
57
+ }
58
+
@@ -0,0 +1,54 @@
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 PaymentSource = {
21
+ Checkout: 'checkout',
22
+ ExpressCheckout: 'express_checkout',
23
+ AdminPortal: 'admin_portal'
24
+ } as const;
25
+ export type PaymentSource = typeof PaymentSource[keyof typeof PaymentSource];
26
+
27
+
28
+ export function instanceOfPaymentSource(value: any): boolean {
29
+ for (const key in PaymentSource) {
30
+ if (Object.prototype.hasOwnProperty.call(PaymentSource, key)) {
31
+ if (PaymentSource[key as keyof typeof PaymentSource] === value) {
32
+ return true;
33
+ }
34
+ }
35
+ }
36
+ return false;
37
+ }
38
+
39
+ export function PaymentSourceFromJSON(json: any): PaymentSource {
40
+ return PaymentSourceFromJSONTyped(json, false);
41
+ }
42
+
43
+ export function PaymentSourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaymentSource {
44
+ return json as PaymentSource;
45
+ }
46
+
47
+ export function PaymentSourceToJSON(value?: PaymentSource | null): any {
48
+ return value as any;
49
+ }
50
+
51
+ export function PaymentSourceToJSONTyped(value: any, ignoreDiscriminator: boolean): PaymentSource {
52
+ return value as PaymentSource;
53
+ }
54
+
@@ -0,0 +1,53 @@
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 PaymentStatus = {
21
+ Success: 'success',
22
+ Failure: 'failure'
23
+ } as const;
24
+ export type PaymentStatus = typeof PaymentStatus[keyof typeof PaymentStatus];
25
+
26
+
27
+ export function instanceOfPaymentStatus(value: any): boolean {
28
+ for (const key in PaymentStatus) {
29
+ if (Object.prototype.hasOwnProperty.call(PaymentStatus, key)) {
30
+ if (PaymentStatus[key as keyof typeof PaymentStatus] === value) {
31
+ return true;
32
+ }
33
+ }
34
+ }
35
+ return false;
36
+ }
37
+
38
+ export function PaymentStatusFromJSON(json: any): PaymentStatus {
39
+ return PaymentStatusFromJSONTyped(json, false);
40
+ }
41
+
42
+ export function PaymentStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaymentStatus {
43
+ return json as PaymentStatus;
44
+ }
45
+
46
+ export function PaymentStatusToJSON(value?: PaymentStatus | null): any {
47
+ return value as any;
48
+ }
49
+
50
+ export function PaymentStatusToJSONTyped(value: any, ignoreDiscriminator: boolean): PaymentStatus {
51
+ return value as PaymentStatus;
52
+ }
53
+
@@ -70,12 +70,6 @@ export interface ProductChildCartLiteResource {
70
70
  * @memberof ProductChildCartLiteResource
71
71
  */
72
72
  name: string;
73
- /**
74
- *
75
- * @type {string}
76
- * @memberof ProductChildCartLiteResource
77
- */
78
- slug: string;
79
73
  /**
80
74
  *
81
75
  * @type {number}
@@ -112,7 +106,6 @@ export function instanceOfProductChildCartLiteResource(value: object): value is
112
106
  if (!('model' in value) || value['model'] === undefined) return false;
113
107
  if (!('modelNumber' in value) || value['modelNumber'] === undefined) return false;
114
108
  if (!('name' in value) || value['name'] === undefined) return false;
115
- if (!('slug' in value) || value['slug'] === undefined) return false;
116
109
  if (!('stock' in value) || value['stock'] === undefined) return false;
117
110
  if (!('salePrice' in value) || value['salePrice'] === undefined) return false;
118
111
  if (!('thumbnail' in value) || value['thumbnail'] === undefined) return false;
@@ -136,7 +129,6 @@ export function ProductChildCartLiteResourceFromJSONTyped(json: any, ignoreDiscr
136
129
  'model': json['model'],
137
130
  'modelNumber': json['model_number'],
138
131
  'name': json['name'],
139
- 'slug': json['slug'],
140
132
  'stock': json['stock'],
141
133
  'salePrice': json['sale_price'],
142
134
  'thumbnail': AssetLiteResourceFromJSON(json['thumbnail']),
@@ -161,7 +153,6 @@ export function ProductChildCartLiteResourceToJSONTyped(value?: ProductChildCart
161
153
  'model': value['model'],
162
154
  'model_number': value['modelNumber'],
163
155
  'name': value['name'],
164
- 'slug': value['slug'],
165
156
  'stock': value['stock'],
166
157
  'sale_price': value['salePrice'],
167
158
  'thumbnail': AssetLiteResourceToJSON(value['thumbnail']),
@@ -0,0 +1,74 @@
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 RefundTransactionRequest
20
+ */
21
+ export interface RefundTransactionRequest {
22
+ /**
23
+ *
24
+ * @type {number}
25
+ * @memberof RefundTransactionRequest
26
+ */
27
+ amount: number;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof RefundTransactionRequest
32
+ */
33
+ description?: string | null;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the RefundTransactionRequest interface.
38
+ */
39
+ export function instanceOfRefundTransactionRequest(value: object): value is RefundTransactionRequest {
40
+ if (!('amount' in value) || value['amount'] === undefined) return false;
41
+ return true;
42
+ }
43
+
44
+ export function RefundTransactionRequestFromJSON(json: any): RefundTransactionRequest {
45
+ return RefundTransactionRequestFromJSONTyped(json, false);
46
+ }
47
+
48
+ export function RefundTransactionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): RefundTransactionRequest {
49
+ if (json == null) {
50
+ return json;
51
+ }
52
+ return {
53
+
54
+ 'amount': json['amount'],
55
+ 'description': json['description'] == null ? undefined : json['description'],
56
+ };
57
+ }
58
+
59
+ export function RefundTransactionRequestToJSON(json: any): RefundTransactionRequest {
60
+ return RefundTransactionRequestToJSONTyped(json, false);
61
+ }
62
+
63
+ export function RefundTransactionRequestToJSONTyped(value?: RefundTransactionRequest | null, ignoreDiscriminator: boolean = false): any {
64
+ if (value == null) {
65
+ return value;
66
+ }
67
+
68
+ return {
69
+
70
+ 'amount': value['amount'],
71
+ 'description': value['description'],
72
+ };
73
+ }
74
+
@@ -113,12 +113,6 @@ export interface StoreCartRequest {
113
113
  * @memberof StoreCartRequest
114
114
  */
115
115
  insuranceAmount?: number | null;
116
- /**
117
- *
118
- * @type {boolean}
119
- * @memberof StoreCartRequest
120
- */
121
- includeInsurance?: boolean;
122
116
  /**
123
117
  *
124
118
  * @type {boolean}
@@ -215,7 +209,6 @@ export function StoreCartRequestFromJSONTyped(json: any, ignoreDiscriminator: bo
215
209
  'shippingSubtotal': json['shipping_subtotal'] == null ? undefined : json['shipping_subtotal'],
216
210
  'overrideShipping': json['override_shipping'] == null ? undefined : json['override_shipping'],
217
211
  'insuranceAmount': json['insurance_amount'] == null ? undefined : json['insurance_amount'],
218
- 'includeInsurance': json['include_insurance'] == null ? undefined : json['include_insurance'],
219
212
  'overrideInsurance': json['override_insurance'] == null ? undefined : json['override_insurance'],
220
213
  'useAsBillingAddress': json['use_as_billing_address'] == null ? undefined : json['use_as_billing_address'],
221
214
  'shippingAddressId': json['shipping_address_id'] == null ? undefined : json['shipping_address_id'],
@@ -248,7 +241,6 @@ export function StoreCartRequestToJSONTyped(value?: StoreCartRequest | null, ign
248
241
  'shipping_subtotal': value['shippingSubtotal'],
249
242
  'override_shipping': value['overrideShipping'],
250
243
  'insurance_amount': value['insuranceAmount'],
251
- 'include_insurance': value['includeInsurance'],
252
244
  'override_insurance': value['overrideInsurance'],
253
245
  'use_as_billing_address': value['useAsBillingAddress'],
254
246
  'shipping_address_id': value['shippingAddressId'],