-
Notifications
You must be signed in to change notification settings - Fork 0
/
domains.go
31 lines (27 loc) · 1.51 KB
/
domains.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
package resellerclub
import (
"net/url"
)
type Domains struct {
client *Client
}
type DomainCommonResponse struct {
Description string `json:"description"` // Domain Name
EntityID Int64 `json:"entityid"` // Order ID of the Domain Order
ActionType string `json:"actiontype"` // Action Type
ActionTypeDesc string `json:"actiontypedesc"` // Description of the Privacy Protection Action
EaqID Int64 `json:"eaqid"` // Action ID of the Privacy Protection Action
ActionStatus string `json:"actionstatus"` // Action Status
ActionStatusDesc string `json:"actionstatusdesc"` // Description of the Action Status
InvoiceID Int64 `json:"invoiceid"` // Invoice ID of the Invoice
SellingCurrencySymbol string `json:"sellingcurrencysymbol"` // Selling Currency of the Reseller
SellingAmount Float64 `json:"sellingamount"` // Transaction Amount in the Selling Currency
UnutilisedSellingAmount Float64 `json:"unutilisedsellingamount"` // Unutilized Transaction Amount in the Selling Currency
DiscountAmount Float64 `json:"discount-amount"` // Discount Amount
CustomerID Int64 `json:"customerid"` // Customer ID associated with the Domain Order
}
func (domains *Domains) url(path string) *url.URL {
u := domains.client.url("/domains")
u.Path += path
return u
}