forked from levpay/infobip
-
Notifications
You must be signed in to change notification settings - Fork 0
/
number.go
31 lines (27 loc) · 1.13 KB
/
number.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 infobip
type NumberParmas struct {
Number string `json:"number,omitempty" url:"number,omitempty"`
Capabilities string `json:"capabilities,omitempty" url:"capabilities,omitempty"`
Country string `json:"country,omitempty" url:"country,omitempty"`
Limit int `json:"limit,omitempty" url:"limit,omitempty"`
Page int `json:"page,omitempty" url:"page,omitempty"`
}
type NumberResponse struct {
NumberCount int `json:"numberCount,omitempty"`
Numbers []Number `json:"numbers,omitempty"`
}
type Number struct {
NumberKey string `json:"numberKey"`
Number string `json:"number"`
Country string `json:"country"`
Type string `json:"type,omitempty"`
Capabilities []string `json:"capabilities"`
Shared bool `json:"shared,omitempty"`
Price NumberPrice `json:"price,omitempty"`
}
type NumberPrice struct {
PricePerMonth float32 `json:"pricePerMonth,omitempty"`
SetupPrice float32 `json:"setupPrice,omitempty"`
InitialMonthPrice float32 `json:"initialMonthPrice,omitempty"`
Currency string `json:"currency,omitempty"`
}