aboutsummaryrefslogtreecommitdiff
path: root/item_detail.go
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2023-01-31 21:24:56 +0700
committerShulhan <ms@kilabit.info>2023-02-01 15:07:22 +0700
commita5b22d2d0d018d7822a492979f36470e9f9cc78c (patch)
tree8050420b39923a9757b347b817c36ba711e0d8d7 /item_detail.go
parentb4b6699c27b04893c73c50553070682799220080 (diff)
downloadduitku-a5b22d2d0d018d7822a492979f36470e9f9cc78c.tar.xz
all: implement API for Merchant Inquiry
The MerchantInquiry API request payment to the Duitku system (via virtual account numbers, QRIS, e-wallet, and so on). Ref: https://docs.duitku.com/api/en/#request-transaction
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"`
+}