@redotech/redo-api-schema 2.2.63 → 2.2.75
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.
- package/lib/openapi.d.ts +132 -7
- package/lib/openapi.yaml +155 -7
- package/package.json +1 -1
package/lib/openapi.d.ts
CHANGED
|
@@ -63,17 +63,19 @@ export interface paths {
|
|
|
63
63
|
};
|
|
64
64
|
};
|
|
65
65
|
};
|
|
66
|
+
"/stores/{storeId}/coverage-products": {
|
|
67
|
+
/**
|
|
68
|
+
* Get coverage products
|
|
69
|
+
* @description Get available coverage products.
|
|
70
|
+
*/
|
|
71
|
+
post: operations["Coverage products"];
|
|
72
|
+
};
|
|
66
73
|
"/stores/{storeId}/invoices": {
|
|
67
74
|
/**
|
|
68
75
|
* Get invoice
|
|
69
76
|
* @description Get a list of invoices.
|
|
70
77
|
*/
|
|
71
78
|
get: operations["Invoice list"];
|
|
72
|
-
parameters: {
|
|
73
|
-
path: {
|
|
74
|
-
storeId: components["parameters"]["store-id.param"];
|
|
75
|
-
};
|
|
76
|
-
};
|
|
77
79
|
};
|
|
78
80
|
"/stores/{storeId}/returns": {
|
|
79
81
|
/**
|
|
@@ -203,6 +205,37 @@ export interface components {
|
|
|
203
205
|
*/
|
|
204
206
|
message?: string;
|
|
205
207
|
}]>;
|
|
208
|
+
/**
|
|
209
|
+
* Coverage product
|
|
210
|
+
* @description Coverage product.
|
|
211
|
+
*/
|
|
212
|
+
"coverage-product.schema": {
|
|
213
|
+
/** @description Coverage. */
|
|
214
|
+
coverages?: ({
|
|
215
|
+
lineItems: {
|
|
216
|
+
/**
|
|
217
|
+
* ID
|
|
218
|
+
* @description Line item ID.
|
|
219
|
+
*/
|
|
220
|
+
id?: string;
|
|
221
|
+
}[];
|
|
222
|
+
/**
|
|
223
|
+
* Coverage
|
|
224
|
+
* @enum {unknown}
|
|
225
|
+
*/
|
|
226
|
+
type: "shipping_failure" | "return_shipping";
|
|
227
|
+
})[];
|
|
228
|
+
/**
|
|
229
|
+
* ID
|
|
230
|
+
* @description Coverage ID.
|
|
231
|
+
*/
|
|
232
|
+
id: string;
|
|
233
|
+
/**
|
|
234
|
+
* Price
|
|
235
|
+
* @description Price.
|
|
236
|
+
*/
|
|
237
|
+
price: components["schemas"]["money.schema"];
|
|
238
|
+
};
|
|
206
239
|
/**
|
|
207
240
|
* Problem details
|
|
208
241
|
* @description Problem details. See [RFC 7807 Section 3](https://datatracker.ietf.org/doc/html/rfc7807#section-3).
|
|
@@ -349,7 +382,7 @@ export interface components {
|
|
|
349
382
|
* @description ID of the location where the item was be fulfilled.
|
|
350
383
|
* @example 123
|
|
351
384
|
*/
|
|
352
|
-
fulfillmentLocationId: string |
|
|
385
|
+
fulfillmentLocationId: string | null;
|
|
353
386
|
/**
|
|
354
387
|
* ID
|
|
355
388
|
* @description Line item ID
|
|
@@ -622,6 +655,59 @@ export interface components {
|
|
|
622
655
|
* @enum {string}
|
|
623
656
|
*/
|
|
624
657
|
"return-status.schema": "manual_review" | "open" | "transit" | "delivered" | "flagged" | "cancelled" | "closed";
|
|
658
|
+
/**
|
|
659
|
+
* Storefront Cart
|
|
660
|
+
* @description Storefront cart.
|
|
661
|
+
*/
|
|
662
|
+
"storefront-cart.schema": {
|
|
663
|
+
/**
|
|
664
|
+
* Line items
|
|
665
|
+
* @description Line items.
|
|
666
|
+
*/
|
|
667
|
+
lineItems: {
|
|
668
|
+
/**
|
|
669
|
+
* ID
|
|
670
|
+
* @description Line item ID.
|
|
671
|
+
*/
|
|
672
|
+
id: string;
|
|
673
|
+
/**
|
|
674
|
+
* Price
|
|
675
|
+
* @description Total price.
|
|
676
|
+
*/
|
|
677
|
+
priceTotal?: components["schemas"]["money.schema"];
|
|
678
|
+
/** @description Product. */
|
|
679
|
+
product: {
|
|
680
|
+
/** ID */
|
|
681
|
+
id?: string;
|
|
682
|
+
};
|
|
683
|
+
/**
|
|
684
|
+
* Quantity
|
|
685
|
+
* @description Quantity.
|
|
686
|
+
*/
|
|
687
|
+
quantity: number;
|
|
688
|
+
/** @description Variant. */
|
|
689
|
+
variant: {
|
|
690
|
+
/** ID */
|
|
691
|
+
id?: string;
|
|
692
|
+
};
|
|
693
|
+
}[];
|
|
694
|
+
/**
|
|
695
|
+
* Price
|
|
696
|
+
* @description Total price.
|
|
697
|
+
*/
|
|
698
|
+
priceTotal?: components["schemas"]["money.schema"];
|
|
699
|
+
};
|
|
700
|
+
/**
|
|
701
|
+
* Storefront Customer
|
|
702
|
+
* @description Storefront customer.
|
|
703
|
+
*/
|
|
704
|
+
"storefront-customer.schema": {
|
|
705
|
+
/**
|
|
706
|
+
* ID
|
|
707
|
+
* @description Customer ID.
|
|
708
|
+
*/
|
|
709
|
+
id: string;
|
|
710
|
+
};
|
|
625
711
|
/**
|
|
626
712
|
* Webhook create
|
|
627
713
|
* @description Webhook create.
|
|
@@ -938,6 +1024,45 @@ export interface operations {
|
|
|
938
1024
|
};
|
|
939
1025
|
};
|
|
940
1026
|
};
|
|
1027
|
+
/**
|
|
1028
|
+
* Get coverage products
|
|
1029
|
+
* @description Get available coverage products.
|
|
1030
|
+
*/
|
|
1031
|
+
"Coverage products": {
|
|
1032
|
+
parameters: {
|
|
1033
|
+
path: {
|
|
1034
|
+
storeId: components["parameters"]["store-id.param"];
|
|
1035
|
+
};
|
|
1036
|
+
};
|
|
1037
|
+
requestBody: {
|
|
1038
|
+
content: {
|
|
1039
|
+
"application/json": {
|
|
1040
|
+
cart: components["schemas"]["storefront-cart.schema"];
|
|
1041
|
+
customer?: components["schemas"]["storefront-customer.schema"];
|
|
1042
|
+
};
|
|
1043
|
+
};
|
|
1044
|
+
};
|
|
1045
|
+
responses: {
|
|
1046
|
+
/** @description Success */
|
|
1047
|
+
200: {
|
|
1048
|
+
content: {
|
|
1049
|
+
"application/json": {
|
|
1050
|
+
/**
|
|
1051
|
+
* Coverage Products
|
|
1052
|
+
* @description Coverage products.
|
|
1053
|
+
*/
|
|
1054
|
+
coverageProducts: components["schemas"]["coverage-product.schema"][];
|
|
1055
|
+
};
|
|
1056
|
+
};
|
|
1057
|
+
};
|
|
1058
|
+
/** @description Error */
|
|
1059
|
+
default: {
|
|
1060
|
+
content: {
|
|
1061
|
+
"application/problem+json": components["schemas"]["error.schema"];
|
|
1062
|
+
};
|
|
1063
|
+
};
|
|
1064
|
+
};
|
|
1065
|
+
};
|
|
941
1066
|
/**
|
|
942
1067
|
* Get invoice
|
|
943
1068
|
* @description Get a list of invoices.
|
|
@@ -953,7 +1078,7 @@ export interface operations {
|
|
|
953
1078
|
200: {
|
|
954
1079
|
content: {
|
|
955
1080
|
"application/json": {
|
|
956
|
-
|
|
1081
|
+
invoices: components["schemas"]["invoice.schema"][];
|
|
957
1082
|
};
|
|
958
1083
|
};
|
|
959
1084
|
};
|
package/lib/openapi.yaml
CHANGED
|
@@ -140,6 +140,46 @@ components:
|
|
|
140
140
|
title: Message comment
|
|
141
141
|
type: object
|
|
142
142
|
title: Comment
|
|
143
|
+
coverage-product.schema:
|
|
144
|
+
description: Coverage product.
|
|
145
|
+
properties:
|
|
146
|
+
coverages:
|
|
147
|
+
description: Coverage.
|
|
148
|
+
items:
|
|
149
|
+
properties:
|
|
150
|
+
lineItems:
|
|
151
|
+
items:
|
|
152
|
+
properties:
|
|
153
|
+
id:
|
|
154
|
+
description: Line item ID.
|
|
155
|
+
title: ID
|
|
156
|
+
type: string
|
|
157
|
+
type: object
|
|
158
|
+
type: array
|
|
159
|
+
type:
|
|
160
|
+
enum:
|
|
161
|
+
- shipping_failure
|
|
162
|
+
- return_shipping
|
|
163
|
+
title: Coverage
|
|
164
|
+
required:
|
|
165
|
+
- lineItems
|
|
166
|
+
- type
|
|
167
|
+
type: object
|
|
168
|
+
type: array
|
|
169
|
+
id:
|
|
170
|
+
description: Coverage ID.
|
|
171
|
+
title: ID
|
|
172
|
+
type: string
|
|
173
|
+
price:
|
|
174
|
+
$ref: '#/components/schemas/money.schema'
|
|
175
|
+
description: Price.
|
|
176
|
+
title: Price
|
|
177
|
+
required:
|
|
178
|
+
- coverage
|
|
179
|
+
- id
|
|
180
|
+
- price
|
|
181
|
+
title: Coverage product
|
|
182
|
+
type: object
|
|
143
183
|
error.schema:
|
|
144
184
|
description: Problem details. See [RFC 7807 Section 3](https://datatracker.ietf.org/doc/html/rfc7807#section-3).
|
|
145
185
|
properties:
|
|
@@ -304,7 +344,7 @@ components:
|
|
|
304
344
|
example: '123'
|
|
305
345
|
type:
|
|
306
346
|
- string
|
|
307
|
-
- null
|
|
347
|
+
- 'null'
|
|
308
348
|
id:
|
|
309
349
|
description: Line item ID
|
|
310
350
|
title: ID
|
|
@@ -667,6 +707,66 @@ components:
|
|
|
667
707
|
example: open
|
|
668
708
|
title: Return status
|
|
669
709
|
type: string
|
|
710
|
+
storefront-cart.schema:
|
|
711
|
+
description: Storefront cart.
|
|
712
|
+
properties:
|
|
713
|
+
lineItems:
|
|
714
|
+
description: Line items.
|
|
715
|
+
items:
|
|
716
|
+
properties:
|
|
717
|
+
id:
|
|
718
|
+
description: Line item ID.
|
|
719
|
+
title: ID
|
|
720
|
+
type: string
|
|
721
|
+
priceTotal:
|
|
722
|
+
$ref: '#/components/schemas/money.schema'
|
|
723
|
+
description: Total price.
|
|
724
|
+
title: Price
|
|
725
|
+
product:
|
|
726
|
+
description: Product.
|
|
727
|
+
properties:
|
|
728
|
+
id:
|
|
729
|
+
title: ID
|
|
730
|
+
type: string
|
|
731
|
+
type: object
|
|
732
|
+
quantity:
|
|
733
|
+
description: Quantity.
|
|
734
|
+
title: Quantity
|
|
735
|
+
type: integer
|
|
736
|
+
variant:
|
|
737
|
+
description: Variant.
|
|
738
|
+
properties:
|
|
739
|
+
id:
|
|
740
|
+
title: ID
|
|
741
|
+
type: string
|
|
742
|
+
type: object
|
|
743
|
+
required:
|
|
744
|
+
- id
|
|
745
|
+
- quantity
|
|
746
|
+
- product
|
|
747
|
+
- variant
|
|
748
|
+
type: object
|
|
749
|
+
title: Line items
|
|
750
|
+
type: array
|
|
751
|
+
priceTotal:
|
|
752
|
+
$ref: '#/components/schemas/money.schema'
|
|
753
|
+
description: Total price.
|
|
754
|
+
title: Price
|
|
755
|
+
required:
|
|
756
|
+
- lineItems
|
|
757
|
+
title: Storefront Cart
|
|
758
|
+
type: object
|
|
759
|
+
storefront-customer.schema:
|
|
760
|
+
description: Storefront customer.
|
|
761
|
+
properties:
|
|
762
|
+
id:
|
|
763
|
+
description: Customer ID.
|
|
764
|
+
title: ID
|
|
765
|
+
type: string
|
|
766
|
+
required:
|
|
767
|
+
- id
|
|
768
|
+
title: Storefront Customer
|
|
769
|
+
type: object
|
|
670
770
|
webhook-create.schema:
|
|
671
771
|
description: Webhook create.
|
|
672
772
|
properties:
|
|
@@ -813,7 +913,7 @@ info:
|
|
|
813
913
|
If the response is not a 2xx status code, the event will be retried multiple
|
|
814
914
|
times before discarding it.
|
|
815
915
|
title: Redo API
|
|
816
|
-
version: 2.2.
|
|
916
|
+
version: 2.2.1
|
|
817
917
|
openapi: 3.1.0
|
|
818
918
|
paths:
|
|
819
919
|
/invoices/{invoiceId}/items.csv:
|
|
@@ -1000,21 +1100,71 @@ paths:
|
|
|
1000
1100
|
tags:
|
|
1001
1101
|
- Returns
|
|
1002
1102
|
summary: Return status
|
|
1103
|
+
/stores/{storeId}/coverage-products:
|
|
1104
|
+
description: Available coverage products.
|
|
1105
|
+
post:
|
|
1106
|
+
description: Get available coverage products.
|
|
1107
|
+
operationId: Coverage products
|
|
1108
|
+
parameters:
|
|
1109
|
+
- $ref: '#/components/parameters/store-id.param'
|
|
1110
|
+
requestBody:
|
|
1111
|
+
content:
|
|
1112
|
+
application/json:
|
|
1113
|
+
schema:
|
|
1114
|
+
properties:
|
|
1115
|
+
cart:
|
|
1116
|
+
$ref: '#/components/schemas/storefront-cart.schema'
|
|
1117
|
+
customer:
|
|
1118
|
+
$ref: '#/components/schemas/storefront-customer.schema'
|
|
1119
|
+
required:
|
|
1120
|
+
- cart
|
|
1121
|
+
type: object
|
|
1122
|
+
required: true
|
|
1123
|
+
responses:
|
|
1124
|
+
'200':
|
|
1125
|
+
content:
|
|
1126
|
+
application/json:
|
|
1127
|
+
schema:
|
|
1128
|
+
properties:
|
|
1129
|
+
coverageProducts:
|
|
1130
|
+
description: Coverage products.
|
|
1131
|
+
items:
|
|
1132
|
+
$ref: '#/components/schemas/coverage-product.schema'
|
|
1133
|
+
title: Coverage Products
|
|
1134
|
+
type: array
|
|
1135
|
+
required:
|
|
1136
|
+
- coverageProducts
|
|
1137
|
+
type: type
|
|
1138
|
+
description: Success
|
|
1139
|
+
default:
|
|
1140
|
+
content:
|
|
1141
|
+
application/problem+json:
|
|
1142
|
+
schema:
|
|
1143
|
+
$ref: '#/components/schemas/error.schema'
|
|
1144
|
+
description: Error
|
|
1145
|
+
summary: Get coverage products
|
|
1146
|
+
tags:
|
|
1147
|
+
- Coverage Products
|
|
1148
|
+
summary: Coverage products
|
|
1003
1149
|
/stores/{storeId}/invoices:
|
|
1004
1150
|
description: Return a list of invoices.
|
|
1005
1151
|
get:
|
|
1006
1152
|
description: Get a list of invoices.
|
|
1007
1153
|
operationId: Invoice list
|
|
1154
|
+
parameters:
|
|
1155
|
+
- $ref: '#/components/parameters/store-id.param'
|
|
1008
1156
|
responses:
|
|
1009
1157
|
'200':
|
|
1010
1158
|
content:
|
|
1011
1159
|
application/json:
|
|
1012
1160
|
schema:
|
|
1013
1161
|
properties:
|
|
1014
|
-
|
|
1015
|
-
|
|
1162
|
+
invoices:
|
|
1163
|
+
items:
|
|
1164
|
+
$ref: '#/components/schemas/invoice.schema'
|
|
1165
|
+
type: array
|
|
1016
1166
|
required:
|
|
1017
|
-
-
|
|
1167
|
+
- invoices
|
|
1018
1168
|
type: object
|
|
1019
1169
|
description: Success
|
|
1020
1170
|
default:
|
|
@@ -1028,8 +1178,6 @@ paths:
|
|
|
1028
1178
|
summary: Get invoice
|
|
1029
1179
|
tags:
|
|
1030
1180
|
- Invoice
|
|
1031
|
-
parameters:
|
|
1032
|
-
- $ref: '#/components/parameters/store-id.param'
|
|
1033
1181
|
summary: Invoice
|
|
1034
1182
|
/stores/{storeId}/returns:
|
|
1035
1183
|
description: List of returns for store.
|
package/package.json
CHANGED