aboutsummaryrefslogtreecommitdiff
path: root/item_detail.go
diff options
context:
space:
mode:
Diffstat (limited to 'item_detail.go')
-rw-r--r--item_detail.go18
1 files changed, 18 insertions, 0 deletions
diff --git a/item_detail.go b/item_detail.go
new file mode 100644
index 0000000..04a3525
--- /dev/null
+++ b/item_detail.go
@@ -0,0 +1,18 @@
+// SPDX-FileCopyrightText: 2023 M. Shulhan <ms@kilabit.info>
+// SPDX-License-Identifier: GPL-3.0-or-later
+
+package duitku
+
+// [ItemDetail] define the subset of product being payed during payment.
+//
+// [ItemDetail]: https://docs.duitku.com/api/en/#item-details
+type ItemDetail struct {
+ // [REQ] Name of the item.
+ Name string `json:"name"`
+
+ // [REQ] Quantity of the item bought.
+ Quantity int64 `json:"quantity"`
+
+ // [REQ] Price of the Item. Note: Don't add decimal
+ Price int64 `json:"price"`
+}