@digital8/lighting-illusions-ts-sdk 0.0.2034 → 0.0.2035

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 (125) hide show
  1. package/.openapi-generator/FILES +18 -8
  2. package/README.md +12 -7
  3. package/dist/apis/OrdersApi.d.ts +15 -0
  4. package/dist/apis/OrdersApi.js +59 -0
  5. package/dist/apis/ProductApi.d.ts +0 -16
  6. package/dist/apis/ProductApi.js +0 -59
  7. package/dist/apis/TransactionsApi.d.ts +3 -3
  8. package/dist/apis/TransactionsApi.js +2 -2
  9. package/dist/models/AddressFrontendResource.d.ts +1 -1
  10. package/dist/models/AddressFrontendResource.js +3 -1
  11. package/dist/models/AddressResource.d.ts +1 -7
  12. package/dist/models/AddressResource.js +3 -3
  13. package/dist/models/AdminNoteResource.d.ts +12 -0
  14. package/dist/models/AdminNoteResource.js +8 -0
  15. package/dist/models/AdminOrderResource.d.ts +3 -3
  16. package/dist/models/AdminOrderResource.js +3 -3
  17. package/dist/models/CartCouponLiteResource.d.ts +56 -0
  18. package/dist/models/CartCouponLiteResource.js +67 -0
  19. package/dist/models/CartCouponLiteResourceArrayResponse.d.ts +33 -0
  20. package/dist/models/CartCouponLiteResourceArrayResponse.js +50 -0
  21. package/dist/models/CartResource.d.ts +3 -3
  22. package/dist/models/CartResource.js +3 -3
  23. package/dist/models/CreateTransactionRequest.d.ts +0 -6
  24. package/dist/models/CreateTransactionRequest.js +0 -2
  25. package/dist/models/CustomerListResource.d.ts +7 -0
  26. package/dist/models/CustomerListResource.js +5 -0
  27. package/dist/models/ExternalApiLogResource.d.ts +1 -1
  28. package/dist/models/ExternalApiLogResource.js +3 -1
  29. package/dist/models/FrontendCartResource.d.ts +144 -0
  30. package/dist/models/FrontendCartResource.js +121 -0
  31. package/dist/models/FrontendCartResourceArrayResponse.d.ts +33 -0
  32. package/dist/models/FrontendCartResourceArrayResponse.js +50 -0
  33. package/dist/models/FrontendCartResourceCouponsInner.d.ts +56 -0
  34. package/dist/models/FrontendCartResourceCouponsInner.js +57 -0
  35. package/dist/models/FrontendLineItemResource.d.ts +81 -0
  36. package/dist/models/FrontendLineItemResource.js +82 -0
  37. package/dist/models/FrontendLineItemResourceArrayResponse.d.ts +33 -0
  38. package/dist/models/FrontendLineItemResourceArrayResponse.js +50 -0
  39. package/dist/models/FrontendOrderResource.d.ts +168 -0
  40. package/dist/models/FrontendOrderResource.js +137 -0
  41. package/dist/models/FrontendOrderResourceArrayResponse.d.ts +33 -0
  42. package/dist/models/FrontendOrderResourceArrayResponse.js +50 -0
  43. package/dist/models/PaymentSource.d.ts +1 -0
  44. package/dist/models/PaymentSource.js +2 -1
  45. package/dist/models/ProductChildLineItemLiteResource.d.ts +18 -0
  46. package/dist/models/ProductChildLineItemLiteResource.js +12 -0
  47. package/dist/models/StoreFrontendResource.d.ts +1 -1
  48. package/dist/models/StoreFrontendResource.js +3 -1
  49. package/dist/models/StoreListResource.d.ts +1 -1
  50. package/dist/models/StoreListResource.js +3 -1
  51. package/dist/models/StoreResource.d.ts +2 -2
  52. package/dist/models/StoreResource.js +4 -4
  53. package/dist/models/StoreSpecialDateResource.d.ts +2 -2
  54. package/dist/models/StoreSpecialDateResource.js +3 -1
  55. package/dist/models/TransactionLiteResource.d.ts +0 -12
  56. package/dist/models/TransactionLiteResource.js +0 -4
  57. package/dist/models/UpdateOrderRequest.d.ts +0 -6
  58. package/dist/models/UpdateOrderRequest.js +0 -2
  59. package/dist/models/index.d.ts +9 -4
  60. package/dist/models/index.js +9 -4
  61. package/docs/AddressResource.md +0 -2
  62. package/docs/AdminNoteResource.md +4 -0
  63. package/docs/AdminOrderResource.md +1 -1
  64. package/docs/CartCouponLiteResource.md +42 -0
  65. package/docs/{TransactionListResourceArrayResponse.md → CartCouponLiteResourceArrayResponse.md} +5 -5
  66. package/docs/CartResource.md +1 -1
  67. package/docs/CreateTransactionRequest.md +0 -2
  68. package/docs/CustomerListResource.md +2 -0
  69. package/docs/FrontendCartResource.md +70 -0
  70. package/docs/{SkuSearchProductChildRequest.md → FrontendCartResourceArrayResponse.md} +6 -8
  71. package/docs/FrontendCartResourceCouponsInner.md +42 -0
  72. package/docs/FrontendLineItemResource.md +50 -0
  73. package/docs/{PaginatedTransactionListResourceResponse.md → FrontendLineItemResourceArrayResponse.md} +5 -7
  74. package/docs/FrontendOrderResource.md +78 -0
  75. package/docs/FrontendOrderResourceArrayResponse.md +34 -0
  76. package/docs/OrdersApi.md +66 -0
  77. package/docs/ProductApi.md +0 -66
  78. package/docs/ProductChildLineItemLiteResource.md +6 -0
  79. package/docs/StoreSpecialDateResource.md +1 -1
  80. package/docs/TransactionLiteResource.md +0 -4
  81. package/docs/TransactionsApi.md +3 -3
  82. package/docs/UpdateOrderRequest.md +0 -2
  83. package/package.json +1 -1
  84. package/src/apis/OrdersApi.ts +49 -0
  85. package/src/apis/ProductApi.ts +0 -49
  86. package/src/apis/TransactionsApi.ts +7 -7
  87. package/src/models/AddressFrontendResource.ts +3 -2
  88. package/src/models/AddressResource.ts +3 -10
  89. package/src/models/AdminNoteResource.ts +18 -0
  90. package/src/models/AdminOrderResource.ts +11 -11
  91. package/src/models/CartCouponLiteResource.ts +102 -0
  92. package/src/models/CartCouponLiteResourceArrayResponse.ts +73 -0
  93. package/src/models/CartResource.ts +11 -11
  94. package/src/models/CreateTransactionRequest.ts +0 -8
  95. package/src/models/CustomerListResource.ts +16 -0
  96. package/src/models/ExternalApiLogResource.ts +3 -2
  97. package/src/models/FrontendCartResource.ts +254 -0
  98. package/src/models/FrontendCartResourceArrayResponse.ts +73 -0
  99. package/src/models/FrontendCartResourceCouponsInner.ts +97 -0
  100. package/src/models/FrontendLineItemResource.ts +145 -0
  101. package/src/models/FrontendLineItemResourceArrayResponse.ts +73 -0
  102. package/src/models/FrontendOrderResource.ts +290 -0
  103. package/src/models/FrontendOrderResourceArrayResponse.ts +73 -0
  104. package/src/models/PaymentSource.ts +2 -1
  105. package/src/models/ProductChildLineItemLiteResource.ts +27 -0
  106. package/src/models/StoreFrontendResource.ts +3 -2
  107. package/src/models/StoreListResource.ts +3 -2
  108. package/src/models/StoreResource.ts +5 -5
  109. package/src/models/StoreSpecialDateResource.ts +4 -3
  110. package/src/models/TransactionLiteResource.ts +0 -16
  111. package/src/models/UpdateOrderRequest.ts +0 -8
  112. package/src/models/index.ts +9 -4
  113. package/dist/models/PaginatedTransactionListResourceResponse.d.ts +0 -40
  114. package/dist/models/PaginatedTransactionListResourceResponse.js +0 -57
  115. package/dist/models/SkuSearchProductChildRequest.d.ts +0 -38
  116. package/dist/models/SkuSearchProductChildRequest.js +0 -55
  117. package/dist/models/TransactionListResource.d.ts +0 -116
  118. package/dist/models/TransactionListResource.js +0 -97
  119. package/dist/models/TransactionListResourceArrayResponse.d.ts +0 -33
  120. package/dist/models/TransactionListResourceArrayResponse.js +0 -50
  121. package/docs/TransactionListResource.md +0 -62
  122. package/src/models/PaginatedTransactionListResourceResponse.ts +0 -90
  123. package/src/models/SkuSearchProductChildRequest.ts +0 -75
  124. package/src/models/TransactionListResource.ts +0 -187
  125. package/src/models/TransactionListResourceArrayResponse.ts +0 -73
@@ -81,12 +81,6 @@ 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;
90
84
  /**
91
85
  *
92
86
  * @type {number}
@@ -167,7 +161,6 @@ export function UpdateOrderRequestFromJSONTyped(json: any, ignoreDiscriminator:
167
161
  'insuranceAmount': json['insurance_amount'],
168
162
  'includeInsurance': json['include_insurance'] == null ? undefined : json['include_insurance'],
169
163
  'overrideInsurance': json['override_insurance'] == null ? undefined : json['override_insurance'],
170
- 'useAsBillingAddress': json['use_as_billing_address'] == null ? undefined : json['use_as_billing_address'],
171
164
  'shippingAddressId': json['shipping_address_id'] == null ? undefined : json['shipping_address_id'],
172
165
  'billingAddressId': json['billing_address_id'] == null ? undefined : json['billing_address_id'],
173
166
  'shippingAddress': json['shipping_address'] == null ? undefined : CreateCartRequestShippingAddressFromJSON(json['shipping_address']),
@@ -195,7 +188,6 @@ export function UpdateOrderRequestToJSONTyped(value?: UpdateOrderRequest | null,
195
188
  'insurance_amount': value['insuranceAmount'],
196
189
  'include_insurance': value['includeInsurance'],
197
190
  'override_insurance': value['overrideInsurance'],
198
- 'use_as_billing_address': value['useAsBillingAddress'],
199
191
  'shipping_address_id': value['shippingAddressId'],
200
192
  'billing_address_id': value['billingAddressId'],
201
193
  'shipping_address': CreateCartRequestShippingAddressToJSON(value['shippingAddress']),
@@ -61,6 +61,8 @@ export * from './BlogFrontendResource';
61
61
  export * from './BlogFrontendResourceArrayResponse';
62
62
  export * from './BlogResource';
63
63
  export * from './BlogResourceArrayResponse';
64
+ export * from './CartCouponLiteResource';
65
+ export * from './CartCouponLiteResourceArrayResponse';
64
66
  export * from './CartCouponResource';
65
67
  export * from './CartCouponResourceArrayResponse';
66
68
  export * from './CartListResource';
@@ -167,10 +169,17 @@ export * from './ExternalApiLogResource';
167
169
  export * from './ExternalApiLogResourceArrayResponse';
168
170
  export * from './ExternalApiProvider';
169
171
  export * from './ExternalApiSyncStatus';
172
+ export * from './FrontendCartResource';
173
+ export * from './FrontendCartResourceArrayResponse';
174
+ export * from './FrontendCartResourceCouponsInner';
170
175
  export * from './FrontendComponentLiteResource';
171
176
  export * from './FrontendComponentLiteResourceArrayResponse';
172
177
  export * from './FrontendComponentResource';
173
178
  export * from './FrontendComponentResourceArrayResponse';
179
+ export * from './FrontendLineItemResource';
180
+ export * from './FrontendLineItemResourceArrayResponse';
181
+ export * from './FrontendOrderResource';
182
+ export * from './FrontendOrderResourceArrayResponse';
174
183
  export * from './GenericResponse';
175
184
  export * from './GetUniqueEndpointsRequest';
176
185
  export * from './GlobalSearchCategoryResource';
@@ -329,7 +338,6 @@ export * from './PaginatedSupplierResourceResponse';
329
338
  export * from './PaginatedTagListResourceResponse';
330
339
  export * from './PaginatedTagLiteResourceResponse';
331
340
  export * from './PaginatedTagResourceResponse';
332
- export * from './PaginatedTransactionListResourceResponse';
333
341
  export * from './PaginatedTransactionResourceResponse';
334
342
  export * from './PagingMetadata';
335
343
  export * from './PaymentMethod';
@@ -531,7 +539,6 @@ export * from './SitePaymentConfigResource';
531
539
  export * from './SitePaymentConfigResourceArrayResponse';
532
540
  export * from './SiteResource';
533
541
  export * from './SiteResourceArrayResponse';
534
- export * from './SkuSearchProductChildRequest';
535
542
  export * from './StoreFrontendResource';
536
543
  export * from './StoreFrontendResourceArrayResponse';
537
544
  export * from './StoreListResource';
@@ -566,8 +573,6 @@ export * from './TagResource';
566
573
  export * from './TagResourceArrayResponse';
567
574
  export * from './TagType';
568
575
  export * from './Thumbnail';
569
- export * from './TransactionListResource';
570
- export * from './TransactionListResourceArrayResponse';
571
576
  export * from './TransactionLiteResource';
572
577
  export * from './TransactionLiteResourceArrayResponse';
573
578
  export * from './TransactionResource';
@@ -1,40 +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 { PagingMetadata } from './PagingMetadata';
13
- import type { TransactionListResource } from './TransactionListResource';
14
- /**
15
- *
16
- * @export
17
- * @interface PaginatedTransactionListResourceResponse
18
- */
19
- export interface PaginatedTransactionListResourceResponse {
20
- /**
21
- *
22
- * @type {Array<TransactionListResource>}
23
- * @memberof PaginatedTransactionListResourceResponse
24
- */
25
- data: Array<TransactionListResource>;
26
- /**
27
- *
28
- * @type {PagingMetadata}
29
- * @memberof PaginatedTransactionListResourceResponse
30
- */
31
- meta: PagingMetadata;
32
- }
33
- /**
34
- * Check if a given object implements the PaginatedTransactionListResourceResponse interface.
35
- */
36
- export declare function instanceOfPaginatedTransactionListResourceResponse(value: object): value is PaginatedTransactionListResourceResponse;
37
- export declare function PaginatedTransactionListResourceResponseFromJSON(json: any): PaginatedTransactionListResourceResponse;
38
- export declare function PaginatedTransactionListResourceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedTransactionListResourceResponse;
39
- export declare function PaginatedTransactionListResourceResponseToJSON(json: any): PaginatedTransactionListResourceResponse;
40
- export declare function PaginatedTransactionListResourceResponseToJSONTyped(value?: PaginatedTransactionListResourceResponse | null, ignoreDiscriminator?: boolean): any;
@@ -1,57 +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.instanceOfPaginatedTransactionListResourceResponse = instanceOfPaginatedTransactionListResourceResponse;
17
- exports.PaginatedTransactionListResourceResponseFromJSON = PaginatedTransactionListResourceResponseFromJSON;
18
- exports.PaginatedTransactionListResourceResponseFromJSONTyped = PaginatedTransactionListResourceResponseFromJSONTyped;
19
- exports.PaginatedTransactionListResourceResponseToJSON = PaginatedTransactionListResourceResponseToJSON;
20
- exports.PaginatedTransactionListResourceResponseToJSONTyped = PaginatedTransactionListResourceResponseToJSONTyped;
21
- var PagingMetadata_1 = require("./PagingMetadata");
22
- var TransactionListResource_1 = require("./TransactionListResource");
23
- /**
24
- * Check if a given object implements the PaginatedTransactionListResourceResponse interface.
25
- */
26
- function instanceOfPaginatedTransactionListResourceResponse(value) {
27
- if (!('data' in value) || value['data'] === undefined)
28
- return false;
29
- if (!('meta' in value) || value['meta'] === undefined)
30
- return false;
31
- return true;
32
- }
33
- function PaginatedTransactionListResourceResponseFromJSON(json) {
34
- return PaginatedTransactionListResourceResponseFromJSONTyped(json, false);
35
- }
36
- function PaginatedTransactionListResourceResponseFromJSONTyped(json, ignoreDiscriminator) {
37
- if (json == null) {
38
- return json;
39
- }
40
- return {
41
- 'data': (json['data'].map(TransactionListResource_1.TransactionListResourceFromJSON)),
42
- 'meta': (0, PagingMetadata_1.PagingMetadataFromJSON)(json['meta']),
43
- };
44
- }
45
- function PaginatedTransactionListResourceResponseToJSON(json) {
46
- return PaginatedTransactionListResourceResponseToJSONTyped(json, false);
47
- }
48
- function PaginatedTransactionListResourceResponseToJSONTyped(value, ignoreDiscriminator) {
49
- if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
50
- if (value == null) {
51
- return value;
52
- }
53
- return {
54
- 'data': (value['data'].map(TransactionListResource_1.TransactionListResourceToJSON)),
55
- 'meta': (0, PagingMetadata_1.PagingMetadataToJSON)(value['meta']),
56
- };
57
- }
@@ -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,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
-