mirror of
https://github.com/shaulascr/ecommerce_serang.git
synced 2025-08-13 10:42:21 +00:00
uodate address and shipping
This commit is contained in:
@ -0,0 +1,30 @@
|
|||||||
|
package com.alya.ecommerce_serang.data.api.response.cart
|
||||||
|
|
||||||
|
import com.google.gson.annotations.SerializedName
|
||||||
|
|
||||||
|
data class AddCartResponse(
|
||||||
|
|
||||||
|
@field:SerializedName("data")
|
||||||
|
val data: Data,
|
||||||
|
|
||||||
|
@field:SerializedName("message")
|
||||||
|
val message: String
|
||||||
|
)
|
||||||
|
|
||||||
|
data class Data(
|
||||||
|
|
||||||
|
@field:SerializedName("cart_id")
|
||||||
|
val cartId: Int,
|
||||||
|
|
||||||
|
@field:SerializedName("quantity")
|
||||||
|
val quantity: Int,
|
||||||
|
|
||||||
|
@field:SerializedName("product_id")
|
||||||
|
val productId: Int,
|
||||||
|
|
||||||
|
@field:SerializedName("created_at")
|
||||||
|
val createdAt: String,
|
||||||
|
|
||||||
|
@field:SerializedName("id")
|
||||||
|
val id: Int
|
||||||
|
)
|
@ -0,0 +1,48 @@
|
|||||||
|
package com.alya.ecommerce_serang.data.api.response.cart
|
||||||
|
|
||||||
|
import com.google.gson.annotations.SerializedName
|
||||||
|
|
||||||
|
data class ListCartResponse(
|
||||||
|
|
||||||
|
@field:SerializedName("data")
|
||||||
|
val data: List<DataItem>,
|
||||||
|
|
||||||
|
@field:SerializedName("message")
|
||||||
|
val message: String
|
||||||
|
)
|
||||||
|
|
||||||
|
data class DataItem(
|
||||||
|
|
||||||
|
@field:SerializedName("store_id")
|
||||||
|
val storeId: Int,
|
||||||
|
|
||||||
|
@field:SerializedName("cart_items")
|
||||||
|
val cartItems: List<CartItemsItem>,
|
||||||
|
|
||||||
|
@field:SerializedName("store_name")
|
||||||
|
val storeName: String,
|
||||||
|
|
||||||
|
@field:SerializedName("most_recent_item")
|
||||||
|
val mostRecentItem: String
|
||||||
|
)
|
||||||
|
|
||||||
|
data class CartItemsItem(
|
||||||
|
|
||||||
|
@field:SerializedName("quantity")
|
||||||
|
val quantity: Int,
|
||||||
|
|
||||||
|
@field:SerializedName("price")
|
||||||
|
val price: Int,
|
||||||
|
|
||||||
|
@field:SerializedName("product_id")
|
||||||
|
val productId: Int,
|
||||||
|
|
||||||
|
@field:SerializedName("created_at")
|
||||||
|
val createdAt: String,
|
||||||
|
|
||||||
|
@field:SerializedName("cart_item_id")
|
||||||
|
val cartItemId: Int,
|
||||||
|
|
||||||
|
@field:SerializedName("product_name")
|
||||||
|
val productName: String
|
||||||
|
)
|
@ -0,0 +1,33 @@
|
|||||||
|
package com.alya.ecommerce_serang.data.api.response.order
|
||||||
|
|
||||||
|
import com.google.gson.annotations.SerializedName
|
||||||
|
|
||||||
|
data class CourierCostResponse(
|
||||||
|
|
||||||
|
@field:SerializedName("courierCosts")
|
||||||
|
val courierCosts: List<CourierCostsItem>
|
||||||
|
)
|
||||||
|
|
||||||
|
data class CourierCostsItem(
|
||||||
|
|
||||||
|
@field:SerializedName("courier")
|
||||||
|
val courier: String,
|
||||||
|
|
||||||
|
@field:SerializedName("services")
|
||||||
|
val services: List<ServicesItem>
|
||||||
|
)
|
||||||
|
|
||||||
|
data class ServicesItem(
|
||||||
|
|
||||||
|
@field:SerializedName("cost")
|
||||||
|
val cost: Int,
|
||||||
|
|
||||||
|
@field:SerializedName("etd")
|
||||||
|
val etd: String,
|
||||||
|
|
||||||
|
@field:SerializedName("service")
|
||||||
|
val service: String,
|
||||||
|
|
||||||
|
@field:SerializedName("description")
|
||||||
|
val description: String
|
||||||
|
)
|
Reference in New Issue
Block a user