@digital8/lighting-illusions-ts-sdk 0.0.2056 → 0.0.2057

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 (176) hide show
  1. package/.openapi-generator/FILES +36 -16
  2. package/README.md +24 -13
  3. package/dist/apis/CartsApi.d.ts +8 -8
  4. package/dist/apis/CartsApi.js +8 -8
  5. package/dist/apis/CustomersApi.d.ts +17 -0
  6. package/dist/apis/CustomersApi.js +62 -0
  7. package/dist/apis/OrdersApi.d.ts +23 -8
  8. package/dist/apis/OrdersApi.js +69 -10
  9. package/dist/apis/ProductApi.d.ts +0 -16
  10. package/dist/apis/ProductApi.js +0 -59
  11. package/dist/apis/TransactionsApi.d.ts +3 -3
  12. package/dist/apis/TransactionsApi.js +2 -2
  13. package/dist/models/AddressResource.d.ts +0 -6
  14. package/dist/models/AddressResource.js +0 -2
  15. package/dist/models/AdminNoteResource.d.ts +12 -0
  16. package/dist/models/AdminNoteResource.js +8 -0
  17. package/dist/models/AdminOrderResource.d.ts +22 -4
  18. package/dist/models/AdminOrderResource.js +18 -6
  19. package/dist/models/AttachCartCouponRequest.d.ts +32 -0
  20. package/dist/models/AttachCartCouponRequest.js +51 -0
  21. package/dist/models/AttachCartItemRequest.d.ts +44 -0
  22. package/dist/models/{AttachLineItemRequest.js → AttachCartItemRequest.js} +13 -13
  23. package/dist/models/AttachOrderCouponRequest.d.ts +32 -0
  24. package/dist/models/AttachOrderCouponRequest.js +51 -0
  25. package/dist/models/AttachOrderLineItemRequest.d.ts +44 -0
  26. package/dist/models/AttachOrderLineItemRequest.js +57 -0
  27. package/dist/models/CartCouponLiteResource.d.ts +56 -0
  28. package/dist/models/CartCouponLiteResource.js +67 -0
  29. package/dist/models/CartCouponLiteResourceArrayResponse.d.ts +33 -0
  30. package/dist/models/CartCouponLiteResourceArrayResponse.js +50 -0
  31. package/dist/models/CartListResource.d.ts +48 -0
  32. package/dist/models/CartListResource.js +26 -0
  33. package/dist/models/CartResource.d.ts +5 -5
  34. package/dist/models/CartResource.js +5 -5
  35. package/dist/models/CreateTransactionRequest.d.ts +0 -6
  36. package/dist/models/CreateTransactionRequest.js +0 -2
  37. package/dist/models/CustomerListResource.d.ts +7 -0
  38. package/dist/models/CustomerListResource.js +5 -0
  39. package/dist/models/DetachCartCouponRequest.d.ts +32 -0
  40. package/dist/models/DetachCartCouponRequest.js +51 -0
  41. package/dist/models/DetachOrderCouponRequest.d.ts +32 -0
  42. package/dist/models/DetachOrderCouponRequest.js +51 -0
  43. package/dist/models/FrontendCartResource.d.ts +144 -0
  44. package/dist/models/FrontendCartResource.js +121 -0
  45. package/dist/models/FrontendCartResourceArrayResponse.d.ts +33 -0
  46. package/dist/models/FrontendCartResourceArrayResponse.js +50 -0
  47. package/dist/models/FrontendCartResourceCouponsInner.d.ts +56 -0
  48. package/dist/models/FrontendCartResourceCouponsInner.js +57 -0
  49. package/dist/models/FrontendLineItemResource.d.ts +81 -0
  50. package/dist/models/FrontendLineItemResource.js +82 -0
  51. package/dist/models/FrontendLineItemResourceArrayResponse.d.ts +33 -0
  52. package/dist/models/FrontendLineItemResourceArrayResponse.js +50 -0
  53. package/dist/models/FrontendOrderResource.d.ts +174 -0
  54. package/dist/models/FrontendOrderResource.js +139 -0
  55. package/dist/models/FrontendOrderResourceArrayResponse.d.ts +33 -0
  56. package/dist/models/FrontendOrderResourceArrayResponse.js +50 -0
  57. package/dist/models/PaymentSource.d.ts +1 -0
  58. package/dist/models/PaymentSource.js +2 -1
  59. package/dist/models/ProductChildLineItemLiteResource.d.ts +18 -0
  60. package/dist/models/ProductChildLineItemLiteResource.js +12 -0
  61. package/dist/models/SearchCartsRequest.d.ts +0 -1
  62. package/dist/models/SearchCartsRequest.js +1 -2
  63. package/dist/models/StoreFrontendResource.d.ts +2 -2
  64. package/dist/models/StoreFrontendResource.js +4 -4
  65. package/dist/models/StoreResource.d.ts +1 -1
  66. package/dist/models/StoreResource.js +1 -3
  67. package/dist/models/StoreSpecialDateResource.d.ts +2 -2
  68. package/dist/models/StoreSpecialDateResource.js +3 -1
  69. package/dist/models/TransactionLiteResource.d.ts +0 -12
  70. package/dist/models/TransactionLiteResource.js +0 -4
  71. package/dist/models/UpdateCartItemRequest.d.ts +38 -0
  72. package/dist/models/{UpdateLineItemRequest.js → UpdateCartItemRequest.js} +13 -13
  73. package/dist/models/UpdateCustomerRequest.d.ts +56 -0
  74. package/dist/models/UpdateCustomerRequest.js +63 -0
  75. package/dist/models/UpdateOrderLineItemRequest.d.ts +38 -0
  76. package/dist/models/UpdateOrderLineItemRequest.js +53 -0
  77. package/dist/models/UpdateOrderRequest.d.ts +0 -6
  78. package/dist/models/UpdateOrderRequest.js +0 -2
  79. package/dist/models/index.d.ts +18 -8
  80. package/dist/models/index.js +18 -8
  81. package/docs/AddressResource.md +0 -2
  82. package/docs/AdminNoteResource.md +4 -0
  83. package/docs/AdminOrderResource.md +9 -3
  84. package/docs/{AttachCouponRequest.md → AttachCartCouponRequest.md} +4 -4
  85. package/docs/{AttachLineItemRequest.md → AttachCartItemRequest.md} +4 -4
  86. package/docs/{SkuSearchProductChildRequest.md → AttachOrderCouponRequest.md} +6 -8
  87. package/docs/AttachOrderLineItemRequest.md +38 -0
  88. package/docs/CartCouponLiteResource.md +42 -0
  89. package/docs/{TransactionListResourceArrayResponse.md → CartCouponLiteResourceArrayResponse.md} +5 -5
  90. package/docs/CartListResource.md +16 -0
  91. package/docs/CartResource.md +3 -3
  92. package/docs/CartsApi.md +16 -16
  93. package/docs/CreateTransactionRequest.md +0 -2
  94. package/docs/CustomerListResource.md +2 -0
  95. package/docs/CustomersApi.md +69 -0
  96. package/docs/{DetachCouponRequest.md → DetachCartCouponRequest.md} +4 -4
  97. package/docs/DetachOrderCouponRequest.md +34 -0
  98. package/docs/FrontendCartResource.md +70 -0
  99. package/docs/FrontendCartResourceArrayResponse.md +34 -0
  100. package/docs/FrontendCartResourceCouponsInner.md +42 -0
  101. package/docs/FrontendLineItemResource.md +50 -0
  102. package/docs/FrontendLineItemResourceArrayResponse.md +34 -0
  103. package/docs/FrontendOrderResource.md +80 -0
  104. package/docs/FrontendOrderResourceArrayResponse.md +34 -0
  105. package/docs/OrdersApi.md +84 -18
  106. package/docs/ProductApi.md +0 -66
  107. package/docs/ProductChildLineItemLiteResource.md +6 -0
  108. package/docs/StoreSpecialDateResource.md +1 -1
  109. package/docs/TransactionLiteResource.md +0 -4
  110. package/docs/TransactionsApi.md +3 -3
  111. package/docs/{UpdateLineItemRequest.md → UpdateCartItemRequest.md} +4 -4
  112. package/docs/UpdateCustomerRequest.md +42 -0
  113. package/docs/UpdateOrderLineItemRequest.md +36 -0
  114. package/docs/UpdateOrderRequest.md +0 -2
  115. package/package.json +1 -1
  116. package/src/apis/CartsApi.ts +25 -25
  117. package/src/apis/CustomersApi.ts +58 -0
  118. package/src/apis/OrdersApi.ts +75 -26
  119. package/src/apis/ProductApi.ts +0 -49
  120. package/src/apis/TransactionsApi.ts +7 -7
  121. package/src/models/AddressResource.ts +0 -8
  122. package/src/models/AdminNoteResource.ts +18 -0
  123. package/src/models/AdminOrderResource.ts +42 -15
  124. package/src/models/AttachCartCouponRequest.ts +66 -0
  125. package/src/models/{AttachLineItemRequest.ts → AttachCartItemRequest.ts} +13 -13
  126. package/src/models/AttachOrderCouponRequest.ts +66 -0
  127. package/src/models/AttachOrderLineItemRequest.ts +83 -0
  128. package/src/models/CartCouponLiteResource.ts +102 -0
  129. package/src/models/CartCouponLiteResourceArrayResponse.ts +73 -0
  130. package/src/models/CartListResource.ts +69 -0
  131. package/src/models/CartResource.ts +15 -15
  132. package/src/models/CreateTransactionRequest.ts +0 -8
  133. package/src/models/CustomerListResource.ts +16 -0
  134. package/src/models/DetachCartCouponRequest.ts +66 -0
  135. package/src/models/DetachOrderCouponRequest.ts +66 -0
  136. package/src/models/FrontendCartResource.ts +254 -0
  137. package/src/models/FrontendCartResourceArrayResponse.ts +73 -0
  138. package/src/models/FrontendCartResourceCouponsInner.ts +97 -0
  139. package/src/models/FrontendLineItemResource.ts +145 -0
  140. package/src/models/FrontendLineItemResourceArrayResponse.ts +73 -0
  141. package/src/models/FrontendOrderResource.ts +298 -0
  142. package/src/models/FrontendOrderResourceArrayResponse.ts +73 -0
  143. package/src/models/PaymentSource.ts +2 -1
  144. package/src/models/ProductChildLineItemLiteResource.ts +27 -0
  145. package/src/models/SearchCartsRequest.ts +1 -2
  146. package/src/models/StoreFrontendResource.ts +5 -5
  147. package/src/models/StoreResource.ts +2 -3
  148. package/src/models/StoreSpecialDateResource.ts +4 -3
  149. package/src/models/TransactionLiteResource.ts +0 -16
  150. package/src/models/{UpdateLineItemRequest.ts → UpdateCartItemRequest.ts} +12 -12
  151. package/src/models/UpdateCustomerRequest.ts +100 -0
  152. package/src/models/UpdateOrderLineItemRequest.ts +74 -0
  153. package/src/models/UpdateOrderRequest.ts +0 -8
  154. package/src/models/index.ts +18 -8
  155. package/dist/models/AttachCouponRequest.d.ts +0 -32
  156. package/dist/models/AttachCouponRequest.js +0 -51
  157. package/dist/models/AttachLineItemRequest.d.ts +0 -44
  158. package/dist/models/DetachCouponRequest.d.ts +0 -32
  159. package/dist/models/DetachCouponRequest.js +0 -51
  160. package/dist/models/PaginatedTransactionListResourceResponse.d.ts +0 -40
  161. package/dist/models/PaginatedTransactionListResourceResponse.js +0 -57
  162. package/dist/models/SkuSearchProductChildRequest.d.ts +0 -38
  163. package/dist/models/SkuSearchProductChildRequest.js +0 -55
  164. package/dist/models/TransactionListResource.d.ts +0 -116
  165. package/dist/models/TransactionListResource.js +0 -97
  166. package/dist/models/TransactionListResourceArrayResponse.d.ts +0 -33
  167. package/dist/models/TransactionListResourceArrayResponse.js +0 -50
  168. package/dist/models/UpdateLineItemRequest.d.ts +0 -38
  169. package/docs/PaginatedTransactionListResourceResponse.md +0 -36
  170. package/docs/TransactionListResource.md +0 -62
  171. package/src/models/AttachCouponRequest.ts +0 -66
  172. package/src/models/DetachCouponRequest.ts +0 -66
  173. package/src/models/PaginatedTransactionListResourceResponse.ts +0 -90
  174. package/src/models/SkuSearchProductChildRequest.ts +0 -75
  175. package/src/models/TransactionListResource.ts +0 -187
  176. package/src/models/TransactionListResourceArrayResponse.ts +0 -73
@@ -1,38 +0,0 @@
1
- /**
2
- * My API
3
- * API documentation for my Laravel app
4
- *
5
- * The version of the OpenAPI document: 1.0.0
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- /**
13
- *
14
- * @export
15
- * @interface SkuSearchProductChildRequest
16
- */
17
- export interface SkuSearchProductChildRequest {
18
- /**
19
- *
20
- * @type {string}
21
- * @memberof SkuSearchProductChildRequest
22
- */
23
- sku: string;
24
- /**
25
- *
26
- * @type {number}
27
- * @memberof SkuSearchProductChildRequest
28
- */
29
- siteId: number;
30
- }
31
- /**
32
- * Check if a given object implements the SkuSearchProductChildRequest interface.
33
- */
34
- export declare function instanceOfSkuSearchProductChildRequest(value: object): value is SkuSearchProductChildRequest;
35
- export declare function SkuSearchProductChildRequestFromJSON(json: any): SkuSearchProductChildRequest;
36
- export declare function SkuSearchProductChildRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SkuSearchProductChildRequest;
37
- export declare function SkuSearchProductChildRequestToJSON(json: any): SkuSearchProductChildRequest;
38
- export declare function SkuSearchProductChildRequestToJSONTyped(value?: SkuSearchProductChildRequest | null, ignoreDiscriminator?: boolean): any;
@@ -1,55 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * My API
6
- * API documentation for my Laravel app
7
- *
8
- * The version of the OpenAPI document: 1.0.0
9
- *
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.instanceOfSkuSearchProductChildRequest = instanceOfSkuSearchProductChildRequest;
17
- exports.SkuSearchProductChildRequestFromJSON = SkuSearchProductChildRequestFromJSON;
18
- exports.SkuSearchProductChildRequestFromJSONTyped = SkuSearchProductChildRequestFromJSONTyped;
19
- exports.SkuSearchProductChildRequestToJSON = SkuSearchProductChildRequestToJSON;
20
- exports.SkuSearchProductChildRequestToJSONTyped = SkuSearchProductChildRequestToJSONTyped;
21
- /**
22
- * Check if a given object implements the SkuSearchProductChildRequest interface.
23
- */
24
- function instanceOfSkuSearchProductChildRequest(value) {
25
- if (!('sku' in value) || value['sku'] === undefined)
26
- return false;
27
- if (!('siteId' in value) || value['siteId'] === undefined)
28
- return false;
29
- return true;
30
- }
31
- function SkuSearchProductChildRequestFromJSON(json) {
32
- return SkuSearchProductChildRequestFromJSONTyped(json, false);
33
- }
34
- function SkuSearchProductChildRequestFromJSONTyped(json, ignoreDiscriminator) {
35
- if (json == null) {
36
- return json;
37
- }
38
- return {
39
- 'sku': json['sku'],
40
- 'siteId': json['site_id'],
41
- };
42
- }
43
- function SkuSearchProductChildRequestToJSON(json) {
44
- return SkuSearchProductChildRequestToJSONTyped(json, false);
45
- }
46
- function SkuSearchProductChildRequestToJSONTyped(value, ignoreDiscriminator) {
47
- if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
48
- if (value == null) {
49
- return value;
50
- }
51
- return {
52
- 'sku': value['sku'],
53
- 'site_id': value['siteId'],
54
- };
55
- }
@@ -1,116 +0,0 @@
1
- /**
2
- * My API
3
- * API documentation for my Laravel app
4
- *
5
- * The version of the OpenAPI document: 1.0.0
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- /**
13
- *
14
- * @export
15
- * @interface TransactionListResource
16
- */
17
- export interface TransactionListResource {
18
- /**
19
- *
20
- * @type {number}
21
- * @memberof TransactionListResource
22
- */
23
- id: number;
24
- /**
25
- *
26
- * @type {string}
27
- * @memberof TransactionListResource
28
- */
29
- paymentSource: string;
30
- /**
31
- *
32
- * @type {string}
33
- * @memberof TransactionListResource
34
- */
35
- paymentMethod: string;
36
- /**
37
- *
38
- * @type {string}
39
- * @memberof TransactionListResource
40
- */
41
- type: string;
42
- /**
43
- *
44
- * @type {string}
45
- * @memberof TransactionListResource
46
- */
47
- status: string;
48
- /**
49
- *
50
- * @type {number}
51
- * @memberof TransactionListResource
52
- */
53
- totalAmount: number;
54
- /**
55
- *
56
- * @type {number}
57
- * @memberof TransactionListResource
58
- */
59
- surcharge: number;
60
- /**
61
- *
62
- * @type {number}
63
- * @memberof TransactionListResource
64
- */
65
- refundedAmount: number;
66
- /**
67
- *
68
- * @type {number}
69
- * @memberof TransactionListResource
70
- */
71
- unrefundedAmount: number;
72
- /**
73
- *
74
- * @type {string}
75
- * @memberof TransactionListResource
76
- */
77
- reference: string;
78
- /**
79
- *
80
- * @type {string}
81
- * @memberof TransactionListResource
82
- */
83
- description?: string | null;
84
- /**
85
- *
86
- * @type {string}
87
- * @memberof TransactionListResource
88
- */
89
- extendedData?: string | null;
90
- /**
91
- *
92
- * @type {string}
93
- * @memberof TransactionListResource
94
- */
95
- riskScore?: string | null;
96
- /**
97
- *
98
- * @type {string}
99
- * @memberof TransactionListResource
100
- */
101
- fraudDecision?: string | null;
102
- /**
103
- *
104
- * @type {Date}
105
- * @memberof TransactionListResource
106
- */
107
- createdAt?: Date | null;
108
- }
109
- /**
110
- * Check if a given object implements the TransactionListResource interface.
111
- */
112
- export declare function instanceOfTransactionListResource(value: object): value is TransactionListResource;
113
- export declare function TransactionListResourceFromJSON(json: any): TransactionListResource;
114
- export declare function TransactionListResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): TransactionListResource;
115
- export declare function TransactionListResourceToJSON(json: any): TransactionListResource;
116
- export declare function TransactionListResourceToJSONTyped(value?: TransactionListResource | null, ignoreDiscriminator?: boolean): any;
@@ -1,97 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * My API
6
- * API documentation for my Laravel app
7
- *
8
- * The version of the OpenAPI document: 1.0.0
9
- *
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.instanceOfTransactionListResource = instanceOfTransactionListResource;
17
- exports.TransactionListResourceFromJSON = TransactionListResourceFromJSON;
18
- exports.TransactionListResourceFromJSONTyped = TransactionListResourceFromJSONTyped;
19
- exports.TransactionListResourceToJSON = TransactionListResourceToJSON;
20
- exports.TransactionListResourceToJSONTyped = TransactionListResourceToJSONTyped;
21
- /**
22
- * Check if a given object implements the TransactionListResource interface.
23
- */
24
- function instanceOfTransactionListResource(value) {
25
- if (!('id' in value) || value['id'] === undefined)
26
- return false;
27
- if (!('paymentSource' in value) || value['paymentSource'] === undefined)
28
- return false;
29
- if (!('paymentMethod' in value) || value['paymentMethod'] === undefined)
30
- return false;
31
- if (!('type' in value) || value['type'] === undefined)
32
- return false;
33
- if (!('status' in value) || value['status'] === undefined)
34
- return false;
35
- if (!('totalAmount' in value) || value['totalAmount'] === undefined)
36
- return false;
37
- if (!('surcharge' in value) || value['surcharge'] === undefined)
38
- return false;
39
- if (!('refundedAmount' in value) || value['refundedAmount'] === undefined)
40
- return false;
41
- if (!('unrefundedAmount' in value) || value['unrefundedAmount'] === undefined)
42
- return false;
43
- if (!('reference' in value) || value['reference'] === undefined)
44
- return false;
45
- return true;
46
- }
47
- function TransactionListResourceFromJSON(json) {
48
- return TransactionListResourceFromJSONTyped(json, false);
49
- }
50
- function TransactionListResourceFromJSONTyped(json, ignoreDiscriminator) {
51
- if (json == null) {
52
- return json;
53
- }
54
- return {
55
- 'id': json['id'],
56
- 'paymentSource': json['paymentSource'],
57
- 'paymentMethod': json['paymentMethod'],
58
- 'type': json['type'],
59
- 'status': json['status'],
60
- 'totalAmount': json['totalAmount'],
61
- 'surcharge': json['surcharge'],
62
- 'refundedAmount': json['refundedAmount'],
63
- 'unrefundedAmount': json['unrefundedAmount'],
64
- 'reference': json['reference'],
65
- 'description': json['description'] == null ? undefined : json['description'],
66
- 'extendedData': json['extendedData'] == null ? undefined : json['extendedData'],
67
- 'riskScore': json['riskScore'] == null ? undefined : json['riskScore'],
68
- 'fraudDecision': json['fraudDecision'] == null ? undefined : json['fraudDecision'],
69
- 'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
70
- };
71
- }
72
- function TransactionListResourceToJSON(json) {
73
- return TransactionListResourceToJSONTyped(json, false);
74
- }
75
- function TransactionListResourceToJSONTyped(value, ignoreDiscriminator) {
76
- if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
77
- if (value == null) {
78
- return value;
79
- }
80
- return {
81
- 'id': value['id'],
82
- 'paymentSource': value['paymentSource'],
83
- 'paymentMethod': value['paymentMethod'],
84
- 'type': value['type'],
85
- 'status': value['status'],
86
- 'totalAmount': value['totalAmount'],
87
- 'surcharge': value['surcharge'],
88
- 'refundedAmount': value['refundedAmount'],
89
- 'unrefundedAmount': value['unrefundedAmount'],
90
- 'reference': value['reference'],
91
- 'description': value['description'],
92
- 'extendedData': value['extendedData'],
93
- 'riskScore': value['riskScore'],
94
- 'fraudDecision': value['fraudDecision'],
95
- 'createdAt': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
96
- };
97
- }
@@ -1,33 +0,0 @@
1
- /**
2
- * My API
3
- * API documentation for my Laravel app
4
- *
5
- * The version of the OpenAPI document: 1.0.0
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- import type { TransactionListResource } from './TransactionListResource';
13
- /**
14
- *
15
- * @export
16
- * @interface TransactionListResourceArrayResponse
17
- */
18
- export interface TransactionListResourceArrayResponse {
19
- /**
20
- *
21
- * @type {Array<TransactionListResource>}
22
- * @memberof TransactionListResourceArrayResponse
23
- */
24
- data?: Array<TransactionListResource>;
25
- }
26
- /**
27
- * Check if a given object implements the TransactionListResourceArrayResponse interface.
28
- */
29
- export declare function instanceOfTransactionListResourceArrayResponse(value: object): value is TransactionListResourceArrayResponse;
30
- export declare function TransactionListResourceArrayResponseFromJSON(json: any): TransactionListResourceArrayResponse;
31
- export declare function TransactionListResourceArrayResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): TransactionListResourceArrayResponse;
32
- export declare function TransactionListResourceArrayResponseToJSON(json: any): TransactionListResourceArrayResponse;
33
- export declare function TransactionListResourceArrayResponseToJSONTyped(value?: TransactionListResourceArrayResponse | null, ignoreDiscriminator?: boolean): any;
@@ -1,50 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * My API
6
- * API documentation for my Laravel app
7
- *
8
- * The version of the OpenAPI document: 1.0.0
9
- *
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.instanceOfTransactionListResourceArrayResponse = instanceOfTransactionListResourceArrayResponse;
17
- exports.TransactionListResourceArrayResponseFromJSON = TransactionListResourceArrayResponseFromJSON;
18
- exports.TransactionListResourceArrayResponseFromJSONTyped = TransactionListResourceArrayResponseFromJSONTyped;
19
- exports.TransactionListResourceArrayResponseToJSON = TransactionListResourceArrayResponseToJSON;
20
- exports.TransactionListResourceArrayResponseToJSONTyped = TransactionListResourceArrayResponseToJSONTyped;
21
- var TransactionListResource_1 = require("./TransactionListResource");
22
- /**
23
- * Check if a given object implements the TransactionListResourceArrayResponse interface.
24
- */
25
- function instanceOfTransactionListResourceArrayResponse(value) {
26
- return true;
27
- }
28
- function TransactionListResourceArrayResponseFromJSON(json) {
29
- return TransactionListResourceArrayResponseFromJSONTyped(json, false);
30
- }
31
- function TransactionListResourceArrayResponseFromJSONTyped(json, ignoreDiscriminator) {
32
- if (json == null) {
33
- return json;
34
- }
35
- return {
36
- 'data': json['data'] == null ? undefined : (json['data'].map(TransactionListResource_1.TransactionListResourceFromJSON)),
37
- };
38
- }
39
- function TransactionListResourceArrayResponseToJSON(json) {
40
- return TransactionListResourceArrayResponseToJSONTyped(json, false);
41
- }
42
- function TransactionListResourceArrayResponseToJSONTyped(value, ignoreDiscriminator) {
43
- if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
44
- if (value == null) {
45
- return value;
46
- }
47
- return {
48
- 'data': value['data'] == null ? undefined : (value['data'].map(TransactionListResource_1.TransactionListResourceToJSON)),
49
- };
50
- }
@@ -1,38 +0,0 @@
1
- /**
2
- * My API
3
- * API documentation for my Laravel app
4
- *
5
- * The version of the OpenAPI document: 1.0.0
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- /**
13
- *
14
- * @export
15
- * @interface UpdateLineItemRequest
16
- */
17
- export interface UpdateLineItemRequest {
18
- /**
19
- *
20
- * @type {number}
21
- * @memberof UpdateLineItemRequest
22
- */
23
- quantity: number;
24
- /**
25
- *
26
- * @type {number}
27
- * @memberof UpdateLineItemRequest
28
- */
29
- productPrice?: number | null;
30
- }
31
- /**
32
- * Check if a given object implements the UpdateLineItemRequest interface.
33
- */
34
- export declare function instanceOfUpdateLineItemRequest(value: object): value is UpdateLineItemRequest;
35
- export declare function UpdateLineItemRequestFromJSON(json: any): UpdateLineItemRequest;
36
- export declare function UpdateLineItemRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateLineItemRequest;
37
- export declare function UpdateLineItemRequestToJSON(json: any): UpdateLineItemRequest;
38
- export declare function UpdateLineItemRequestToJSONTyped(value?: UpdateLineItemRequest | null, ignoreDiscriminator?: boolean): any;
@@ -1,36 +0,0 @@
1
-
2
- # PaginatedTransactionListResourceResponse
3
-
4
-
5
- ## Properties
6
-
7
- Name | Type
8
- ------------ | -------------
9
- `data` | [Array&lt;TransactionListResource&gt;](TransactionListResource.md)
10
- `meta` | [PagingMetadata](PagingMetadata.md)
11
-
12
- ## Example
13
-
14
- ```typescript
15
- import type { PaginatedTransactionListResourceResponse } from '@digital8/lighting-illusions-ts-sdk'
16
-
17
- // TODO: Update the object below with actual values
18
- const example = {
19
- "data": null,
20
- "meta": null,
21
- } satisfies PaginatedTransactionListResourceResponse
22
-
23
- console.log(example)
24
-
25
- // Convert the instance to a JSON string
26
- const exampleJSON: string = JSON.stringify(example)
27
- console.log(exampleJSON)
28
-
29
- // Parse the JSON string back to an object
30
- const exampleParsed = JSON.parse(exampleJSON) as PaginatedTransactionListResourceResponse
31
- console.log(exampleParsed)
32
- ```
33
-
34
- [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
35
-
36
-
@@ -1,62 +0,0 @@
1
-
2
- # TransactionListResource
3
-
4
-
5
- ## Properties
6
-
7
- Name | Type
8
- ------------ | -------------
9
- `id` | number
10
- `paymentSource` | string
11
- `paymentMethod` | string
12
- `type` | string
13
- `status` | string
14
- `totalAmount` | number
15
- `surcharge` | number
16
- `refundedAmount` | number
17
- `unrefundedAmount` | number
18
- `reference` | string
19
- `description` | string
20
- `extendedData` | string
21
- `riskScore` | string
22
- `fraudDecision` | string
23
- `createdAt` | Date
24
-
25
- ## Example
26
-
27
- ```typescript
28
- import type { TransactionListResource } from '@digital8/lighting-illusions-ts-sdk'
29
-
30
- // TODO: Update the object below with actual values
31
- const example = {
32
- "id": null,
33
- "paymentSource": null,
34
- "paymentMethod": null,
35
- "type": null,
36
- "status": null,
37
- "totalAmount": null,
38
- "surcharge": null,
39
- "refundedAmount": null,
40
- "unrefundedAmount": null,
41
- "reference": null,
42
- "description": null,
43
- "extendedData": null,
44
- "riskScore": null,
45
- "fraudDecision": null,
46
- "createdAt": null,
47
- } satisfies TransactionListResource
48
-
49
- console.log(example)
50
-
51
- // Convert the instance to a JSON string
52
- const exampleJSON: string = JSON.stringify(example)
53
- console.log(exampleJSON)
54
-
55
- // Parse the JSON string back to an object
56
- const exampleParsed = JSON.parse(exampleJSON) as TransactionListResource
57
- console.log(exampleParsed)
58
- ```
59
-
60
- [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
61
-
62
-
@@ -1,66 +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 AttachCouponRequest
20
- */
21
- export interface AttachCouponRequest {
22
- /**
23
- *
24
- * @type {string}
25
- * @memberof AttachCouponRequest
26
- */
27
- couponCode: string;
28
- }
29
-
30
- /**
31
- * Check if a given object implements the AttachCouponRequest interface.
32
- */
33
- export function instanceOfAttachCouponRequest(value: object): value is AttachCouponRequest {
34
- if (!('couponCode' in value) || value['couponCode'] === undefined) return false;
35
- return true;
36
- }
37
-
38
- export function AttachCouponRequestFromJSON(json: any): AttachCouponRequest {
39
- return AttachCouponRequestFromJSONTyped(json, false);
40
- }
41
-
42
- export function AttachCouponRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AttachCouponRequest {
43
- if (json == null) {
44
- return json;
45
- }
46
- return {
47
-
48
- 'couponCode': json['coupon_code'],
49
- };
50
- }
51
-
52
- export function AttachCouponRequestToJSON(json: any): AttachCouponRequest {
53
- return AttachCouponRequestToJSONTyped(json, false);
54
- }
55
-
56
- export function AttachCouponRequestToJSONTyped(value?: AttachCouponRequest | null, ignoreDiscriminator: boolean = false): any {
57
- if (value == null) {
58
- return value;
59
- }
60
-
61
- return {
62
-
63
- 'coupon_code': value['couponCode'],
64
- };
65
- }
66
-
@@ -1,66 +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 DetachCouponRequest
20
- */
21
- export interface DetachCouponRequest {
22
- /**
23
- *
24
- * @type {Array<number>}
25
- * @memberof DetachCouponRequest
26
- */
27
- couponIds: Array<number>;
28
- }
29
-
30
- /**
31
- * Check if a given object implements the DetachCouponRequest interface.
32
- */
33
- export function instanceOfDetachCouponRequest(value: object): value is DetachCouponRequest {
34
- if (!('couponIds' in value) || value['couponIds'] === undefined) return false;
35
- return true;
36
- }
37
-
38
- export function DetachCouponRequestFromJSON(json: any): DetachCouponRequest {
39
- return DetachCouponRequestFromJSONTyped(json, false);
40
- }
41
-
42
- export function DetachCouponRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DetachCouponRequest {
43
- if (json == null) {
44
- return json;
45
- }
46
- return {
47
-
48
- 'couponIds': json['coupon_ids'],
49
- };
50
- }
51
-
52
- export function DetachCouponRequestToJSON(json: any): DetachCouponRequest {
53
- return DetachCouponRequestToJSONTyped(json, false);
54
- }
55
-
56
- export function DetachCouponRequestToJSONTyped(value?: DetachCouponRequest | null, ignoreDiscriminator: boolean = false): any {
57
- if (value == null) {
58
- return value;
59
- }
60
-
61
- return {
62
-
63
- 'coupon_ids': value['couponIds'],
64
- };
65
- }
66
-