aboutsummaryrefslogtreecommitdiff
path: root/payment_fee.go
diff options
context:
space:
mode:
Diffstat (limited to 'payment_fee.go')
-rw-r--r--payment_fee.go25
1 files changed, 25 insertions, 0 deletions
diff --git a/payment_fee.go b/payment_fee.go
new file mode 100644
index 0000000..4b8f10f
--- /dev/null
+++ b/payment_fee.go
@@ -0,0 +1,25 @@
+// SPDX-FileCopyrightText: 2023 M. Shulhan <ms@kilabit.info>
+// SPDX-License-Identifier: GPL-3.0-or-later
+
+package duitku
+
+// [PaymentFee] contains fee for payment method.
+//
+// If the settings in the merchant portal fees are charged to the
+// merchant, the TotalFee will appear 0.
+// The TotalFee will appear if it is charged to the customer.
+//
+// [PaymentFee]: https://docs.duitku.com/api/en/#payment-fee
+type PaymentFee struct {
+ // Payment method code.
+ PaymentMethod string `json:"paymentMethod"`
+
+ // Payment method name.
+ PaymentName string `json:"paymentName"`
+
+ // Payment method image url.
+ PaymentImage string `json:"paymentImage"`
+
+ // Payment Fee.
+ TotalFee string `json:"totalFee"`
+}