mirror of
https://github.com/shaulascr/ecommerce_serang.git
synced 2025-08-13 02:32:22 +00:00
Merge remote-tracking branch 'origin/master'
This commit is contained in:
@ -11,6 +11,39 @@ data class OrderListResponse(
|
|||||||
val message: String? = null
|
val message: String? = null
|
||||||
)
|
)
|
||||||
|
|
||||||
|
data class OrderItemsItem(
|
||||||
|
|
||||||
|
@field:SerializedName("order_item_id")
|
||||||
|
val orderItemId: Int? = null,
|
||||||
|
|
||||||
|
@field:SerializedName("review_id")
|
||||||
|
val reviewId: Any? = null,
|
||||||
|
|
||||||
|
@field:SerializedName("quantity")
|
||||||
|
val quantity: Int? = null,
|
||||||
|
|
||||||
|
@field:SerializedName("price")
|
||||||
|
val price: Int? = null,
|
||||||
|
|
||||||
|
@field:SerializedName("subtotal")
|
||||||
|
val subtotal: Int? = null,
|
||||||
|
|
||||||
|
@field:SerializedName("product_image")
|
||||||
|
val productImage: String? = null,
|
||||||
|
|
||||||
|
@field:SerializedName("product_id")
|
||||||
|
val productId: Int? = null,
|
||||||
|
|
||||||
|
@field:SerializedName("store_name")
|
||||||
|
val storeName: String? = null,
|
||||||
|
|
||||||
|
@field:SerializedName("product_price")
|
||||||
|
val productPrice: Int? = null,
|
||||||
|
|
||||||
|
@field:SerializedName("product_name")
|
||||||
|
val productName: String? = null
|
||||||
|
)
|
||||||
|
|
||||||
data class OrdersItem(
|
data class OrdersItem(
|
||||||
|
|
||||||
@field:SerializedName("receipt_num")
|
@field:SerializedName("receipt_num")
|
||||||
@ -130,36 +163,3 @@ data class OrdersItem(
|
|||||||
@field:SerializedName("city_id")
|
@field:SerializedName("city_id")
|
||||||
val cityId: Int? = null
|
val cityId: Int? = null
|
||||||
)
|
)
|
||||||
|
|
||||||
data class OrderItemsItem(
|
|
||||||
|
|
||||||
@field:SerializedName("order_item_id")
|
|
||||||
val orderItemId: Int? = null,
|
|
||||||
|
|
||||||
@field:SerializedName("review_id")
|
|
||||||
val reviewId: Any? = null,
|
|
||||||
|
|
||||||
@field:SerializedName("quantity")
|
|
||||||
val quantity: Int? = null,
|
|
||||||
|
|
||||||
@field:SerializedName("price")
|
|
||||||
val price: Int? = null,
|
|
||||||
|
|
||||||
@field:SerializedName("subtotal")
|
|
||||||
val subtotal: Int? = null,
|
|
||||||
|
|
||||||
@field:SerializedName("product_image")
|
|
||||||
val productImage: String? = null,
|
|
||||||
|
|
||||||
@field:SerializedName("product_id")
|
|
||||||
val productId: Int? = null,
|
|
||||||
|
|
||||||
@field:SerializedName("store_name")
|
|
||||||
val storeName: String? = null,
|
|
||||||
|
|
||||||
@field:SerializedName("product_price")
|
|
||||||
val productPrice: Int? = null,
|
|
||||||
|
|
||||||
@field:SerializedName("product_name")
|
|
||||||
val productName: String? = null
|
|
||||||
)
|
|
||||||
|
@ -108,7 +108,7 @@ class SellsAdapter(
|
|||||||
Log.d("SellsAdapter", "Adjusting display for status: $status")
|
Log.d("SellsAdapter", "Adjusting display for status: $status")
|
||||||
|
|
||||||
when (status) {
|
when (status) {
|
||||||
"unpaid" -> {
|
"pending" -> {
|
||||||
layoutOrders.visibility = View.VISIBLE
|
layoutOrders.visibility = View.VISIBLE
|
||||||
layoutPayments.visibility = View.GONE
|
layoutPayments.visibility = View.GONE
|
||||||
layoutShipments.visibility = View.GONE
|
layoutShipments.visibility = View.GONE
|
||||||
|
@ -9,7 +9,7 @@ class SellsViewPagerAdapter(fragmentActivity: FragmentActivity)
|
|||||||
|
|
||||||
private val sellsStatuses = listOf(
|
private val sellsStatuses = listOf(
|
||||||
"all", // Semua Pesanan
|
"all", // Semua Pesanan
|
||||||
"unpaid", // Pesanan Masuk
|
"pending", // Pesanan Masuk
|
||||||
"processed", // Konfirmasi Pembayaran
|
"processed", // Konfirmasi Pembayaran
|
||||||
"paid", // Perlu Dikirim
|
"paid", // Perlu Dikirim
|
||||||
"shipped", // Dikirim
|
"shipped", // Dikirim
|
||||||
|
Reference in New Issue
Block a user