@redotech/redo-api-schema 2.2.70 → 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 +130 -0
- package/lib/openapi.yaml +147 -1
- package/package.json +1 -1
package/lib/openapi.d.ts
CHANGED
|
@@ -63,6 +63,13 @@ 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
|
|
@@ -198,6 +205,37 @@ export interface components {
|
|
|
198
205
|
*/
|
|
199
206
|
message?: string;
|
|
200
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
|
+
};
|
|
201
239
|
/**
|
|
202
240
|
* Problem details
|
|
203
241
|
* @description Problem details. See [RFC 7807 Section 3](https://datatracker.ietf.org/doc/html/rfc7807#section-3).
|
|
@@ -617,6 +655,59 @@ export interface components {
|
|
|
617
655
|
* @enum {string}
|
|
618
656
|
*/
|
|
619
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
|
+
};
|
|
620
711
|
/**
|
|
621
712
|
* Webhook create
|
|
622
713
|
* @description Webhook create.
|
|
@@ -933,6 +1024,45 @@ export interface operations {
|
|
|
933
1024
|
};
|
|
934
1025
|
};
|
|
935
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
|
+
};
|
|
936
1066
|
/**
|
|
937
1067
|
* Get invoice
|
|
938
1068
|
* @description Get a list of invoices.
|
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:
|
|
@@ -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,6 +1100,52 @@ 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:
|
package/package.json
CHANGED