my request is
{
"store_id": 1,
"coupon_code":"15135",
"payment_method":"visa",
"address_id":0,
"temp_address" :{
"lat" : "45.5555555",
"lng" : "45.5555555",
"address_description": "test info",
"address_title" : "test info",
"address_type" : "test info",
"address_name" : "test info",
}
}
is send request like this
@Multipart
@POST("orders")
fun checkOut(
@Part("store_id") store_id: RequestBody? = null,
@Part("coupon_code") coupon_code: RequestBody? = null,
@Part("address_id") address_id: RequestBody? = null,
@Part("payment_method") payment_method: RequestBody? = null,
@Part("note") note: RequestBody? = null,
): Deferred<Response<DefaultResponse>>
how add temp_address with my request to send this data