-
Notifications
You must be signed in to change notification settings - Fork 19
/
sourceexchangeratesupdate.go
58 lines (49 loc) · 1.64 KB
/
sourceexchangeratesupdate.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
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
package shared
import (
"github.com/airbytehq/terraform-provider-airbyte/internal/sdk/pkg/types"
"github.com/airbytehq/terraform-provider-airbyte/internal/sdk/pkg/utils"
)
type SourceExchangeRatesUpdate struct {
// Your API Key. See <a href="https://apilayer.com/marketplace/exchangerates_data-api">here</a>. The key is case sensitive.
AccessKey string `json:"access_key"`
// ISO reference currency. See <a href="https://www.ecb.europa.eu/stats/policy_and_exchange_rates/euro_reference_exchange_rates/html/index.en.html">here</a>. Free plan doesn't support Source Currency Switching, default base currency is EUR
Base *string `json:"base,omitempty"`
// Ignore weekends? (Exchanges don't run on weekends)
IgnoreWeekends *bool `default:"true" json:"ignore_weekends"`
// Start getting data from that date.
StartDate types.Date `json:"start_date"`
}
func (s SourceExchangeRatesUpdate) MarshalJSON() ([]byte, error) {
return utils.MarshalJSON(s, "", false)
}
func (s *SourceExchangeRatesUpdate) UnmarshalJSON(data []byte) error {
if err := utils.UnmarshalJSON(data, &s, "", false, false); err != nil {
return err
}
return nil
}
func (o *SourceExchangeRatesUpdate) GetAccessKey() string {
if o == nil {
return ""
}
return o.AccessKey
}
func (o *SourceExchangeRatesUpdate) GetBase() *string {
if o == nil {
return nil
}
return o.Base
}
func (o *SourceExchangeRatesUpdate) GetIgnoreWeekends() *bool {
if o == nil {
return nil
}
return o.IgnoreWeekends
}
func (o *SourceExchangeRatesUpdate) GetStartDate() types.Date {
if o == nil {
return types.Date{}
}
return o.StartDate
}