-
Notifications
You must be signed in to change notification settings - Fork 44
/
search_result_types.go
68 lines (58 loc) · 2 KB
/
search_result_types.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
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
65
66
67
68
/* !!! DO NOT MODIFY !!!
*
* This file is auto-generated by internal/generator package.
*/
package omise
// SearchScope can be one of the following constants:
const (
UnspecifiedScope SearchScope = ""
ChargeScope SearchScope = "charge"
DisputeScope SearchScope = "dispute"
RecipientScope SearchScope = "recipient"
CustomerScope SearchScope = "customer"
RefundScope SearchScope = "refund"
TransferScope SearchScope = "transfer"
LinkScope SearchScope = "link"
)
// ChargeSearchResult represents search result structure returned by Omise's Search API
// that contains Charge struct as result elements.
type ChargeSearchResult struct {
SearchResult
Data []*Charge `json:"data"`
}
// DisputeSearchResult represents search result structure returned by Omise's Search API
// that contains Dispute struct as result elements.
type DisputeSearchResult struct {
SearchResult
Data []*Dispute `json:"data"`
}
// RecipientSearchResult represents search result structure returned by Omise's Search API
// that contains Recipient struct as result elements.
type RecipientSearchResult struct {
SearchResult
Data []*Recipient `json:"data"`
}
// CustomerSearchResult represents search result structure returned by Omise's Search API
// that contains Customer struct as result elements.
type CustomerSearchResult struct {
SearchResult
Data []*Customer `json:"data"`
}
// RefundSearchResult represents search result structure returned by Omise's Search API
// that contains Refund struct as result elements.
type RefundSearchResult struct {
SearchResult
Data []*Refund `json:"data"`
}
// TransferSearchResult represents search result structure returned by Omise's Search API
// that contains Transfer struct as result elements.
type TransferSearchResult struct {
SearchResult
Data []*Transfer `json:"data"`
}
// LinkSearchResult represents search result structure returned by Omise's Search API
// that contains Link struct as result elements.
type LinkSearchResult struct {
SearchResult
Data []*Link `json:"data"`
}