@digital8/lighting-illusions-ts-sdk 0.0.2031 → 0.0.2033

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 (74) hide show
  1. package/.openapi-generator/FILES +8 -0
  2. package/README.md +7 -2
  3. package/dist/apis/ProductApi.d.ts +16 -0
  4. package/dist/apis/ProductApi.js +59 -0
  5. package/dist/apis/TransactionsApi.d.ts +3 -3
  6. package/dist/apis/TransactionsApi.js +2 -2
  7. package/dist/models/AddressFrontendResource.d.ts +2 -2
  8. package/dist/models/AddressFrontendResource.js +4 -4
  9. package/dist/models/AddressResource.d.ts +7 -1
  10. package/dist/models/AddressResource.js +5 -1
  11. package/dist/models/AdminNoteResource.d.ts +0 -12
  12. package/dist/models/AdminNoteResource.js +0 -8
  13. package/dist/models/AdminOrderResource.d.ts +3 -3
  14. package/dist/models/AdminOrderResource.js +3 -3
  15. package/dist/models/CartResource.d.ts +3 -3
  16. package/dist/models/CartResource.js +3 -3
  17. package/dist/models/CreateTransactionRequest.d.ts +6 -0
  18. package/dist/models/CreateTransactionRequest.js +2 -0
  19. package/dist/models/CustomerListResource.d.ts +0 -7
  20. package/dist/models/CustomerListResource.js +0 -5
  21. package/dist/models/PaginatedTransactionListResourceResponse.d.ts +40 -0
  22. package/dist/models/PaginatedTransactionListResourceResponse.js +57 -0
  23. package/dist/models/SkuSearchProductChildRequest.d.ts +38 -0
  24. package/dist/models/SkuSearchProductChildRequest.js +55 -0
  25. package/dist/models/StoreFrontendResource.d.ts +2 -2
  26. package/dist/models/StoreFrontendResource.js +4 -4
  27. package/dist/models/StoreListResource.d.ts +1 -1
  28. package/dist/models/StoreListResource.js +1 -3
  29. package/dist/models/StoreResource.d.ts +1 -1
  30. package/dist/models/StoreResource.js +3 -1
  31. package/dist/models/TransactionListResource.d.ts +116 -0
  32. package/dist/models/TransactionListResource.js +97 -0
  33. package/dist/models/TransactionListResourceArrayResponse.d.ts +33 -0
  34. package/dist/models/TransactionListResourceArrayResponse.js +50 -0
  35. package/dist/models/TransactionLiteResource.d.ts +12 -0
  36. package/dist/models/TransactionLiteResource.js +4 -0
  37. package/dist/models/UpdateOrderRequest.d.ts +6 -0
  38. package/dist/models/UpdateOrderRequest.js +2 -0
  39. package/dist/models/index.d.ts +4 -0
  40. package/dist/models/index.js +4 -0
  41. package/docs/AddressResource.md +2 -0
  42. package/docs/AdminNoteResource.md +0 -4
  43. package/docs/AdminOrderResource.md +1 -1
  44. package/docs/CartResource.md +1 -1
  45. package/docs/CreateTransactionRequest.md +2 -0
  46. package/docs/CustomerListResource.md +0 -2
  47. package/docs/PaginatedTransactionListResourceResponse.md +36 -0
  48. package/docs/ProductApi.md +66 -0
  49. package/docs/SkuSearchProductChildRequest.md +36 -0
  50. package/docs/TransactionListResource.md +62 -0
  51. package/docs/TransactionListResourceArrayResponse.md +34 -0
  52. package/docs/TransactionLiteResource.md +4 -0
  53. package/docs/TransactionsApi.md +3 -3
  54. package/docs/UpdateOrderRequest.md +2 -0
  55. package/package.json +1 -1
  56. package/src/apis/ProductApi.ts +49 -0
  57. package/src/apis/TransactionsApi.ts +7 -7
  58. package/src/models/AddressFrontendResource.ts +5 -5
  59. package/src/models/AddressResource.ts +11 -2
  60. package/src/models/AdminNoteResource.ts +0 -18
  61. package/src/models/AdminOrderResource.ts +11 -11
  62. package/src/models/CartResource.ts +11 -11
  63. package/src/models/CreateTransactionRequest.ts +8 -0
  64. package/src/models/CustomerListResource.ts +0 -16
  65. package/src/models/PaginatedTransactionListResourceResponse.ts +90 -0
  66. package/src/models/SkuSearchProductChildRequest.ts +75 -0
  67. package/src/models/StoreFrontendResource.ts +5 -5
  68. package/src/models/StoreListResource.ts +2 -3
  69. package/src/models/StoreResource.ts +3 -2
  70. package/src/models/TransactionListResource.ts +187 -0
  71. package/src/models/TransactionListResourceArrayResponse.ts +73 -0
  72. package/src/models/TransactionLiteResource.ts +16 -0
  73. package/src/models/UpdateOrderRequest.ts +8 -0
  74. package/src/models/index.ts +4 -0
@@ -0,0 +1,187 @@
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 TransactionListResource
20
+ */
21
+ export interface TransactionListResource {
22
+ /**
23
+ *
24
+ * @type {number}
25
+ * @memberof TransactionListResource
26
+ */
27
+ id: number;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof TransactionListResource
32
+ */
33
+ paymentSource: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof TransactionListResource
38
+ */
39
+ paymentMethod: string;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof TransactionListResource
44
+ */
45
+ type: string;
46
+ /**
47
+ *
48
+ * @type {string}
49
+ * @memberof TransactionListResource
50
+ */
51
+ status: string;
52
+ /**
53
+ *
54
+ * @type {number}
55
+ * @memberof TransactionListResource
56
+ */
57
+ totalAmount: number;
58
+ /**
59
+ *
60
+ * @type {number}
61
+ * @memberof TransactionListResource
62
+ */
63
+ surcharge: number;
64
+ /**
65
+ *
66
+ * @type {number}
67
+ * @memberof TransactionListResource
68
+ */
69
+ refundedAmount: number;
70
+ /**
71
+ *
72
+ * @type {number}
73
+ * @memberof TransactionListResource
74
+ */
75
+ unrefundedAmount: number;
76
+ /**
77
+ *
78
+ * @type {string}
79
+ * @memberof TransactionListResource
80
+ */
81
+ reference: string;
82
+ /**
83
+ *
84
+ * @type {string}
85
+ * @memberof TransactionListResource
86
+ */
87
+ description?: string | null;
88
+ /**
89
+ *
90
+ * @type {string}
91
+ * @memberof TransactionListResource
92
+ */
93
+ extendedData?: string | null;
94
+ /**
95
+ *
96
+ * @type {string}
97
+ * @memberof TransactionListResource
98
+ */
99
+ riskScore?: string | null;
100
+ /**
101
+ *
102
+ * @type {string}
103
+ * @memberof TransactionListResource
104
+ */
105
+ fraudDecision?: string | null;
106
+ /**
107
+ *
108
+ * @type {Date}
109
+ * @memberof TransactionListResource
110
+ */
111
+ createdAt?: Date | null;
112
+ }
113
+
114
+ /**
115
+ * Check if a given object implements the TransactionListResource interface.
116
+ */
117
+ export function instanceOfTransactionListResource(value: object): value is TransactionListResource {
118
+ if (!('id' in value) || value['id'] === undefined) return false;
119
+ if (!('paymentSource' in value) || value['paymentSource'] === undefined) return false;
120
+ if (!('paymentMethod' in value) || value['paymentMethod'] === undefined) return false;
121
+ if (!('type' in value) || value['type'] === undefined) return false;
122
+ if (!('status' in value) || value['status'] === undefined) return false;
123
+ if (!('totalAmount' in value) || value['totalAmount'] === undefined) return false;
124
+ if (!('surcharge' in value) || value['surcharge'] === undefined) return false;
125
+ if (!('refundedAmount' in value) || value['refundedAmount'] === undefined) return false;
126
+ if (!('unrefundedAmount' in value) || value['unrefundedAmount'] === undefined) return false;
127
+ if (!('reference' in value) || value['reference'] === undefined) return false;
128
+ return true;
129
+ }
130
+
131
+ export function TransactionListResourceFromJSON(json: any): TransactionListResource {
132
+ return TransactionListResourceFromJSONTyped(json, false);
133
+ }
134
+
135
+ export function TransactionListResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): TransactionListResource {
136
+ if (json == null) {
137
+ return json;
138
+ }
139
+ return {
140
+
141
+ 'id': json['id'],
142
+ 'paymentSource': json['paymentSource'],
143
+ 'paymentMethod': json['paymentMethod'],
144
+ 'type': json['type'],
145
+ 'status': json['status'],
146
+ 'totalAmount': json['totalAmount'],
147
+ 'surcharge': json['surcharge'],
148
+ 'refundedAmount': json['refundedAmount'],
149
+ 'unrefundedAmount': json['unrefundedAmount'],
150
+ 'reference': json['reference'],
151
+ 'description': json['description'] == null ? undefined : json['description'],
152
+ 'extendedData': json['extendedData'] == null ? undefined : json['extendedData'],
153
+ 'riskScore': json['riskScore'] == null ? undefined : json['riskScore'],
154
+ 'fraudDecision': json['fraudDecision'] == null ? undefined : json['fraudDecision'],
155
+ 'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
156
+ };
157
+ }
158
+
159
+ export function TransactionListResourceToJSON(json: any): TransactionListResource {
160
+ return TransactionListResourceToJSONTyped(json, false);
161
+ }
162
+
163
+ export function TransactionListResourceToJSONTyped(value?: TransactionListResource | null, ignoreDiscriminator: boolean = false): any {
164
+ if (value == null) {
165
+ return value;
166
+ }
167
+
168
+ return {
169
+
170
+ 'id': value['id'],
171
+ 'paymentSource': value['paymentSource'],
172
+ 'paymentMethod': value['paymentMethod'],
173
+ 'type': value['type'],
174
+ 'status': value['status'],
175
+ 'totalAmount': value['totalAmount'],
176
+ 'surcharge': value['surcharge'],
177
+ 'refundedAmount': value['refundedAmount'],
178
+ 'unrefundedAmount': value['unrefundedAmount'],
179
+ 'reference': value['reference'],
180
+ 'description': value['description'],
181
+ 'extendedData': value['extendedData'],
182
+ 'riskScore': value['riskScore'],
183
+ 'fraudDecision': value['fraudDecision'],
184
+ 'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
185
+ };
186
+ }
187
+
@@ -0,0 +1,73 @@
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 { TransactionListResource } from './TransactionListResource';
17
+ import {
18
+ TransactionListResourceFromJSON,
19
+ TransactionListResourceFromJSONTyped,
20
+ TransactionListResourceToJSON,
21
+ TransactionListResourceToJSONTyped,
22
+ } from './TransactionListResource';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface TransactionListResourceArrayResponse
28
+ */
29
+ export interface TransactionListResourceArrayResponse {
30
+ /**
31
+ *
32
+ * @type {Array<TransactionListResource>}
33
+ * @memberof TransactionListResourceArrayResponse
34
+ */
35
+ data?: Array<TransactionListResource>;
36
+ }
37
+
38
+ /**
39
+ * Check if a given object implements the TransactionListResourceArrayResponse interface.
40
+ */
41
+ export function instanceOfTransactionListResourceArrayResponse(value: object): value is TransactionListResourceArrayResponse {
42
+ return true;
43
+ }
44
+
45
+ export function TransactionListResourceArrayResponseFromJSON(json: any): TransactionListResourceArrayResponse {
46
+ return TransactionListResourceArrayResponseFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function TransactionListResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): TransactionListResourceArrayResponse {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'data': json['data'] == null ? undefined : ((json['data'] as Array<any>).map(TransactionListResourceFromJSON)),
56
+ };
57
+ }
58
+
59
+ export function TransactionListResourceArrayResponseToJSON(json: any): TransactionListResourceArrayResponse {
60
+ return TransactionListResourceArrayResponseToJSONTyped(json, false);
61
+ }
62
+
63
+ export function TransactionListResourceArrayResponseToJSONTyped(value?: TransactionListResourceArrayResponse | 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(TransactionListResourceToJSON)),
71
+ };
72
+ }
73
+
@@ -19,6 +19,12 @@ import { mapValues } from '../runtime';
19
19
  * @interface TransactionLiteResource
20
20
  */
21
21
  export interface TransactionLiteResource {
22
+ /**
23
+ *
24
+ * @type {number}
25
+ * @memberof TransactionLiteResource
26
+ */
27
+ id?: number | null;
22
28
  /**
23
29
  *
24
30
  * @type {string}
@@ -73,6 +79,12 @@ export interface TransactionLiteResource {
73
79
  * @memberof TransactionLiteResource
74
80
  */
75
81
  reference: string;
82
+ /**
83
+ *
84
+ * @type {string}
85
+ * @memberof TransactionLiteResource
86
+ */
87
+ description?: string | null;
76
88
  /**
77
89
  *
78
90
  * @type {Date}
@@ -107,6 +119,7 @@ export function TransactionLiteResourceFromJSONTyped(json: any, ignoreDiscrimina
107
119
  }
108
120
  return {
109
121
 
122
+ 'id': json['id'] == null ? undefined : json['id'],
110
123
  'paymentSource': json['paymentSource'],
111
124
  'paymentMethod': json['paymentMethod'],
112
125
  'paymentMethodThumbnail': json['paymentMethodThumbnail'],
@@ -116,6 +129,7 @@ export function TransactionLiteResourceFromJSONTyped(json: any, ignoreDiscrimina
116
129
  'surcharge': json['surcharge'],
117
130
  'totalAmount': json['totalAmount'],
118
131
  'reference': json['reference'],
132
+ 'description': json['description'] == null ? undefined : json['description'],
119
133
  'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
120
134
  };
121
135
  }
@@ -131,6 +145,7 @@ export function TransactionLiteResourceToJSONTyped(value?: TransactionLiteResour
131
145
 
132
146
  return {
133
147
 
148
+ 'id': value['id'],
134
149
  'paymentSource': value['paymentSource'],
135
150
  'paymentMethod': value['paymentMethod'],
136
151
  'paymentMethodThumbnail': value['paymentMethodThumbnail'],
@@ -140,6 +155,7 @@ export function TransactionLiteResourceToJSONTyped(value?: TransactionLiteResour
140
155
  'surcharge': value['surcharge'],
141
156
  'totalAmount': value['totalAmount'],
142
157
  'reference': value['reference'],
158
+ 'description': value['description'],
143
159
  'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
144
160
  };
145
161
  }
@@ -81,6 +81,12 @@ export interface UpdateOrderRequest {
81
81
  * @memberof UpdateOrderRequest
82
82
  */
83
83
  overrideInsurance?: boolean;
84
+ /**
85
+ *
86
+ * @type {boolean}
87
+ * @memberof UpdateOrderRequest
88
+ */
89
+ useAsBillingAddress?: boolean;
84
90
  /**
85
91
  *
86
92
  * @type {number}
@@ -161,6 +167,7 @@ export function UpdateOrderRequestFromJSONTyped(json: any, ignoreDiscriminator:
161
167
  'insuranceAmount': json['insurance_amount'],
162
168
  'includeInsurance': json['include_insurance'] == null ? undefined : json['include_insurance'],
163
169
  'overrideInsurance': json['override_insurance'] == null ? undefined : json['override_insurance'],
170
+ 'useAsBillingAddress': json['use_as_billing_address'] == null ? undefined : json['use_as_billing_address'],
164
171
  'shippingAddressId': json['shipping_address_id'] == null ? undefined : json['shipping_address_id'],
165
172
  'billingAddressId': json['billing_address_id'] == null ? undefined : json['billing_address_id'],
166
173
  'shippingAddress': json['shipping_address'] == null ? undefined : CreateCartRequestShippingAddressFromJSON(json['shipping_address']),
@@ -188,6 +195,7 @@ export function UpdateOrderRequestToJSONTyped(value?: UpdateOrderRequest | null,
188
195
  'insurance_amount': value['insuranceAmount'],
189
196
  'include_insurance': value['includeInsurance'],
190
197
  'override_insurance': value['overrideInsurance'],
198
+ 'use_as_billing_address': value['useAsBillingAddress'],
191
199
  'shipping_address_id': value['shippingAddressId'],
192
200
  'billing_address_id': value['billingAddressId'],
193
201
  'shipping_address': CreateCartRequestShippingAddressToJSON(value['shippingAddress']),
@@ -329,6 +329,7 @@ export * from './PaginatedSupplierResourceResponse';
329
329
  export * from './PaginatedTagListResourceResponse';
330
330
  export * from './PaginatedTagLiteResourceResponse';
331
331
  export * from './PaginatedTagResourceResponse';
332
+ export * from './PaginatedTransactionListResourceResponse';
332
333
  export * from './PaginatedTransactionResourceResponse';
333
334
  export * from './PagingMetadata';
334
335
  export * from './PaymentMethod';
@@ -530,6 +531,7 @@ export * from './SitePaymentConfigResource';
530
531
  export * from './SitePaymentConfigResourceArrayResponse';
531
532
  export * from './SiteResource';
532
533
  export * from './SiteResourceArrayResponse';
534
+ export * from './SkuSearchProductChildRequest';
533
535
  export * from './StoreFrontendResource';
534
536
  export * from './StoreFrontendResourceArrayResponse';
535
537
  export * from './StoreListResource';
@@ -564,6 +566,8 @@ export * from './TagResource';
564
566
  export * from './TagResourceArrayResponse';
565
567
  export * from './TagType';
566
568
  export * from './Thumbnail';
569
+ export * from './TransactionListResource';
570
+ export * from './TransactionListResourceArrayResponse';
567
571
  export * from './TransactionLiteResource';
568
572
  export * from './TransactionLiteResourceArrayResponse';
569
573
  export * from './TransactionResource';