aboutsummaryrefslogtreecommitdiff
path: root/address.go
diff options
context:
space:
mode:
Diffstat (limited to 'address.go')
-rw-r--r--address.go17
1 files changed, 17 insertions, 0 deletions
diff --git a/address.go b/address.go
new file mode 100644
index 0000000..825dab5
--- /dev/null
+++ b/address.go
@@ -0,0 +1,17 @@
+// SPDX-FileCopyrightText: 2023 M. Shulhan <ms@kilabit.info>
+// SPDX-License-Identifier: GPL-3.0-or-later
+
+package duitku
+
+// [Address] contains detailed address of customer.
+//
+// [Address]: https://docs.duitku.com/api/en/#address
+type Address struct {
+ FirstName string `json:"firstName"`
+ LastName string `json:"lastName"`
+ Address string `json:"address"`
+ City string `json:"city"`
+ PostalCode string `json:"postalCode"`
+ Phone string `json:"phone"`
+ CountryCode string `json:"countryCode"`
+}