-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrequests.go
More file actions
64 lines (55 loc) · 2.01 KB
/
requests.go
File metadata and controls
64 lines (55 loc) · 2.01 KB
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
package enotio
type GetPaymentTariffsRequest struct {
ShopID string `json:"shop_id"`
}
type CreateInvoiceRequest struct {
Amount float64 `json:"amount"`
OrderID string `json:"order_id"`
Currency Currency `json:"currency"`
ShopID string `json:"shop_id"`
HookURL string `json:"hook_url,omitempty"`
CustomFields string `json:"custom_fields,omitempty"`
Comment string `json:"comment,omitempty"`
FailURL string `json:"fail_url,omitempty"`
SuccessURL string `json:"success_url,omitempty"`
Expire int `json:"expire,omitempty"`
IncludeService []PaymentMethod `json:"include_service,omitempty"`
ExcludeService []PaymentMethod `json:"exclude_service,omitempty"`
}
type CreateH2HRequest struct {
InvoiceID string `json:"invoice_id"`
ShopID string `json:"shop_id"`
IP string `json:"ip"`
UserAgent string `json:"user_agent"`
PaymentData PaymentData `json:"payment_data"`
}
type PaymentData struct {
Bank string `json:"bank"`
}
type GetInvoiceInfoRequest struct {
ShopID string `json:"shop_id"`
InvoiceID string `json:"invoice_id,omitempty"`
OrderID string `json:"order_id,omitempty"`
}
type GetPayoffInfoRequest struct {
UserID string `json:"user_id"`
PayoffID string `json:"id,omitempty"`
OrderID string `json:"order_id,omitempty"`
}
type CreatePayoffRequest struct {
UserID string `json:"user_id"`
Service string `json:"service"`
WalletTo string `json:"wallet_to"`
Amount float64 `json:"amount"`
OrderID string `json:"order_id,omitempty"`
Comment string `json:"comment,omitempty"`
HookURL string `json:"hook_url,omitempty"`
Subtract int `json:"subtract,omitempty"`
PayoffData PayoffData `json:"payoff_data,omitempty"`
}
type PayoffData struct {
SbpBankType string `json:"sbp_bank_type,omitempty"`
}
type GetSbpBankListRequest struct {
UserID string `json:"user_id"`
}