public interface PaymentsApi
| Modifier and Type | Method and Description |
|---|---|
retrofit2.Call<CompleteOrderResponse> |
apiOrdersApproveOrderIdPost(String orderId,
String dropbuddyId)
Allows a dropbuddy approve a dropbuddy's proposal
Only custom requests can be approved.
|
retrofit2.Call<InlineResponse2003> |
apiOrdersEstimateCustomPost(Order body)
Information about estimating custom orders
Information about estimating custom orders
|
retrofit2.Call<InlineResponse2002> |
apiOrdersEstimatePost(Order body)
Generate an estimated cost based on request preferences
Generate an estimated cost based on request preferences
|
retrofit2.Call<CompleteOrder> |
apiOrdersPlaceDispatchPost(String pickupAddress,
String dropoffAddress,
Location pickupLocation,
Location dropoffLocation,
String description,
String recipientName,
String recipientPhonenumber,
Double valueOfItem,
String itemType,
String deliveryType,
String pickupName,
String pickupPhonenumber,
String pickupEmail,
String recipientEmail,
String source,
Long pickupTime,
Long dropoffTime,
Integer quantity,
String sizeFit)
You can place dispatch type requests via this endpoint
More information
|
retrofit2.Call<CompleteOrder> |
apiOrdersPlaceFoodPost(Location pickupLocation,
Location dropoffLocation,
String recipientName,
String recipientPhonenumber,
String description,
String recipientEmail,
Double valueOfItem,
String sizeFit,
String deliveryType,
String source,
Long pickupTime,
Long dropoffTime)
Place shopping type requests
More Information
|
retrofit2.Call<CompleteOrder> |
apiOrdersPlaceShoppingPost(Location pickupLocation,
Location dropoffLocation,
String recipientName,
String recipientPhonenumber,
String description,
Double valueOfItem,
String recipientEmail,
String sizeFit,
String deliveryType,
String source,
Long pickupTime,
Long dropoffTime)
Place shopping type requests
More Information
|
@POST(value="api/orders/approve/{order_id}")
retrofit2.Call<CompleteOrderResponse> apiOrdersApproveOrderIdPost(@Path(value="order_id")
String orderId,
@Body
String dropbuddyId)
orderId - Order identifier value (required)dropbuddyId - DropBuddy Identification value (optional)@POST(value="api/orders/estimate/custom") retrofit2.Call<InlineResponse2003> apiOrdersEstimateCustomPost(@Body Order body)
body - Should be sent as body of the request (required)@POST(value="api/orders/estimate") retrofit2.Call<InlineResponse2002> apiOrdersEstimatePost(@Body Order body)
body - Should be sent as body of the request (required)@POST(value="api/orders/place/dispatch") retrofit2.Call<CompleteOrder> apiOrdersPlaceDispatchPost(@Body String pickupAddress, @Body String dropoffAddress, @Body Location pickupLocation, @Body Location dropoffLocation, @Body String description, @Body String recipientName, @Body String recipientPhonenumber, @Body Double valueOfItem, @Body String itemType, @Body String deliveryType, @Body String pickupName, @Body String pickupPhonenumber, @Body String pickupEmail, @Body String recipientEmail, @Body String source, @Body Long pickupTime, @Body Long dropoffTime, @Body Integer quantity, @Body String sizeFit)
pickupAddress - Geocode selected on the map by the user for the pickup address (required)dropoffAddress - Geocode selected on the map by the user for the dropoff address (required)pickupLocation - Location object for the pickup address. This is more precise and recommended (required)dropoffLocation - Location object for the dropoff address. This is more precise and recommended (required)description - Information describing the request (required)recipientName - Name of recipient is required (required)recipientPhonenumber - Phonenumber of recipient is required (required)valueOfItem - Items value (required)itemType - Defaults to `parcel` - Avaliable options `document`, `parcel`, `other` (optional)deliveryType - Defaults to `REGULAR` if not set `REGULAR`, `NEXTDAY`, `PRIME` (optional)pickupName - Uses user information if not provided (optional)pickupPhonenumber - Uses user information if not provided (optional)pickupEmail - defaults user information if not provided (optional)recipientEmail - Recipient email address not necessary (optional)source - Source of the request (optional)pickupTime - Pickup Time in millis (optional)dropoffTime - Pickup Time in millis (optional)quantity - Quantity of items that should be delivered. Item must be the same (optional)sizeFit - Defaults to `BIKE` if not set `TRUCK`, `CAR`, `BIKE`, `BAG` (optional)@POST(value="api/orders/place/food") retrofit2.Call<CompleteOrder> apiOrdersPlaceFoodPost(@Body Location pickupLocation, @Body Location dropoffLocation, @Body String recipientName, @Body String recipientPhonenumber, @Body String description, @Body String recipientEmail, @Body Double valueOfItem, @Body String sizeFit, @Body String deliveryType, @Body String source, @Body Long pickupTime, @Body Long dropoffTime)
pickupLocation - Location object for the pickup address. This is more precise and recommended (required)dropoffLocation - Location object for the dropoff address. This is more precise and recommended (required)recipientName - Name of recipient is required (required)recipientPhonenumber - Phonenumber of recipient is required (required)description - Information describing the request (required)recipientEmail - Recipient email address not necessary (optional)valueOfItem - Total Shopping value (optional)sizeFit - Defaults to `BIKE` if not set `TRUCK`, `CAR`, `BIKE`, `BAG` (optional)deliveryType - Defaults to `REGULAR` if not set `REGULAR`, `NEXTDAY`, `PRIME` (optional)source - Source of the request (optional)pickupTime - Pickup Time in millis (optional)dropoffTime - Pickup Time in millis (optional)@POST(value="api/orders/place/shopping") retrofit2.Call<CompleteOrder> apiOrdersPlaceShoppingPost(@Body Location pickupLocation, @Body Location dropoffLocation, @Body String recipientName, @Body String recipientPhonenumber, @Body String description, @Body Double valueOfItem, @Body String recipientEmail, @Body String sizeFit, @Body String deliveryType, @Body String source, @Body Long pickupTime, @Body Long dropoffTime)
pickupLocation - Location object for the pickup address. This is more precise and recommended (required)dropoffLocation - Location object for the dropoff address. This is more precise and recommended (required)recipientName - Name of recipient is required (required)recipientPhonenumber - Phonenumber of recipient is required (required)description - Information describing the request (required)valueOfItem - Total Shopping value (required)recipientEmail - Recipient email address not necessary (optional)sizeFit - Defaults to `BIKE` if not set `TRUCK`, `CAR`, `BIKE`, `BAG` (optional)deliveryType - Defaults to `REGULAR` if not set `REGULAR`, `NEXTDAY`, `PRIME` (optional)source - Source of the request (optional)pickupTime - Pickup Time in millis (optional)dropoffTime - Pickup Time in millis (optional)Copyright © 2017. All rights reserved.