-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
agreements.go
35 lines (30 loc) · 1.18 KB
/
agreements.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
package gocardless
type AgreementRequestBody struct {
InstitutionID string `json:"institution_id"`
MaxHistoricalDays string `json:"max_historical_days"`
AccessValidForDays string `json:"access_valid_for_days"`
AccessScope []string `json:"access_scope"`
}
type Agreement struct {
ID string `json:"id"`
Created *TimeWithTimeZoneInfoZ `json:"created"`
InstitutionID string `json:"institution_id"`
MaxHistoricalDays int `json:"max_historical_days"`
AccessValidForDays int `json:"access_valid_for_days"`
AccessScope []string `json:"access_scope"`
Accepted *TimeWithTimeZoneInfoZ `json:"accepted"`
}
type ListAgreementsParams struct {
Limit int `url:"limit,omitempty" json:"limit,omitempty"`
Offset int `url:"offset,omitempty" json:"offset,omitempty"`
}
type Agreements struct {
Count int `json:"count"`
Next string `json:"next"`
Previous string `json:"previous"`
Results []Agreement `json:"results"`
}
type UpdateRequestBody struct {
UserAgent string `json:"user_agent"`
IPAddress string `json:"ip_address"`
}