ZEPETO.Multiplay.Product
Tipe | Deskripsi |
|---|---|
ProductError | Kode error yang menunjukkan penyebab kegagalan permintaan terkait produk in-World. |
PurchaseType | Enum yang merepresentasikan tipe pembelian produk in-World. |
Enum yang merepresentasikan status produk in-World. | |
ProductType | Enum yang merepresentasikan tipe produk in-World. |
Informasi produk in-World. |
ProductError
enum
Kode error yang menunjukkan penyebab kegagalan permintaan terkait produk in-World.
Nama | Nilai | Deskripsi |
|---|---|---|
Unknown | -1 | Error: Kesalahan tidak dikenal. |
NetworkError | 0 | Error: Kesalahan terkait masalah jaringan, termasuk koneksi terputus atau koneksi tidak stabil. |
PurchaseType
enum
Enum yang merepresentasikan tipe pembelian produk in-World.
Nama | Nilai | Deskripsi |
|---|---|---|
Consumable | "CONSUMABLE" | Produk in-World habis pakai. |
NonConsumable | "NON_CONSUMABLE" | Produk in-World tidak habis pakai. |
ProductStatus
enum
Enum yang merepresentasikan status produk in-World.
Nama | Nilai | Deskripsi |
|---|---|---|
Active | "ACTIVE" | Status aktif. |
InActive | "INACTIVE" | Status tidak aktif. |
Forbidden | "FORBIDDEN" | Status terlarang karena masa penggunaan berakhir. |
ProductType
enum
Enum yang merepresentasikan tipe produk in-World.
Nama | Nilai | Deskripsi |
|---|---|---|
Item | "ITEM" | Produk in-World berupa item tunggal. |
ItemPackage | "ITEM_PACKAGE" | Paket produk in-World yang berisi beberapa item. |
CurrencyPackage | "CURRENCY_PACKAGE" | Paket produk in-World yang berisi beberapa mata uang. |
ProductRecord
interface
Informasi produk in-World.
Properti
Nama | Tipe | Deskripsi |
|---|---|---|
productId | string | ID produk in-World. |
name | string | Nama produk in-World. |
price | number | Harga produk in-World. |
purchaseType | PurchaseType | PurchaseType dari produk in-World. |
status | ProductStatus dari produk in-World. | |
productType | ProductType | ProductType dari produk in-World. |
currency | { currencyId: string; name: string; isOfficialCurrency: boolean } | Mengembalikan jenis mata uang yang digunakan untuk membeli produk in-World. |
itemPackageUnits | { productId: string; itemName: string; quantity: number }[] | Item yang termasuk dalam produk in-World jika ProductType adalah ItemPackage. |
currencyPackageUnits | { currencyId: string; currencyName: string; quantity: number }[] | Mata uang yang termasuk dalam produk in-World jika ProductType adalah CurrencyPackage. |