@compassdigital/sdk.typescript 4.696.0 → 4.698.0

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.
@@ -177,6 +177,37 @@ export interface OrderStatusResponseDto {
177
177
  updatedAt: string;
178
178
  }
179
179
 
180
+ export interface PostOrderPointDto {
181
+ // Human-readable address
182
+ address?: string;
183
+ // Latitude
184
+ lat: number;
185
+ // Longitude
186
+ lon: number;
187
+ }
188
+
189
+ export interface PostOrderRequestDto {
190
+ // CDL-encoded order id
191
+ orderId: string;
192
+ // Order number for display/audit
193
+ orderNumber: string;
194
+ // Site id the order belongs to
195
+ siteId: string;
196
+ // Station id the order belongs to
197
+ stationId: string;
198
+ pickUp: PostOrderPointDto;
199
+ dropOff: PostOrderPointDto;
200
+ // Guest-requested pickup time, forwarded to AVRIDE as scheduledPickUp
201
+ scheduledPickUp?: string;
202
+ }
203
+
204
+ export interface PostOrderResponseDto {
205
+ // AVRIDE order id (same as the decoded CDL order id)
206
+ partnerOrderId: string;
207
+ // AVRIDE order status immediately after creation
208
+ partnerOrderStatus: string;
209
+ }
210
+
180
211
  // GET /delivery/health - Delivery service readiness check
181
212
 
182
213
  export type GetDeliveryHealthResponse = HealthResponseDto;
@@ -230,3 +261,23 @@ export type PostDeliveryOrderStatusResponse = OrderStatusResponseDto;
230
261
  export interface PostDeliveryOrderStatusRequest extends BaseRequest, PostDeliveryOrderStatusPath {
231
262
  body: PostDeliveryOrderStatusBody;
232
263
  }
264
+
265
+ // POST /delivery/order - Create an AVRIDE scheduled order before payment processing
266
+
267
+ export type PostDeliveryOrderCreateBody = PostOrderRequestDto;
268
+
269
+ export type PostDeliveryOrderCreateResponse = PostOrderResponseDto;
270
+
271
+ export interface PostDeliveryOrderCreateRequest extends BaseRequest {
272
+ body: PostDeliveryOrderCreateBody;
273
+ }
274
+
275
+ // POST /delivery/order/{id}/cancel - Cancel an AVRIDE order (payment-failure compensation)
276
+
277
+ export interface PostDeliveryOrderCancelPath {
278
+ id: string;
279
+ }
280
+
281
+ export type PostDeliveryOrderCancelResponse = {};
282
+
283
+ export interface PostDeliveryOrderCancelRequest extends BaseRequest, PostDeliveryOrderCancelPath {}