add bid to channel update params

This commit is contained in:
Niko Storni 2019-09-27 15:36:23 +02:00
parent 712e346bd2
commit deab868c53
2 changed files with 7 additions and 5 deletions

View file

@ -288,6 +288,7 @@ type ChannelUpdateOptions struct {
ClearTags *bool `json:"clear_tags,omitempty"` ClearTags *bool `json:"clear_tags,omitempty"`
ClearLanguages *bool `json:"clear_languages,omitempty"` ClearLanguages *bool `json:"clear_languages,omitempty"`
ClearLocations *bool `json:"clear_locations,omitempty"` ClearLocations *bool `json:"clear_locations,omitempty"`
Bid *string `json:"bid,omitempty"`
} }
func (d *Client) ChannelUpdate(claimID string, options ChannelUpdateOptions) (*TransactionSummary, error) { func (d *Client) ChannelUpdate(claimID string, options ChannelUpdateOptions) (*TransactionSummary, error) {

View file

@ -186,6 +186,7 @@ func TestClient_StreamCreate(t *testing.T) {
func TestClient_ChannelUpdate(t *testing.T) { func TestClient_ChannelUpdate(t *testing.T) {
d := NewClient("") d := NewClient("")
got, err := d.ChannelUpdate(channelID, ChannelUpdateOptions{ got, err := d.ChannelUpdate(channelID, ChannelUpdateOptions{
Bid: util.PtrToString("0.01"),
ClearLanguages: util.PtrToBool(true), ClearLanguages: util.PtrToBool(true),
ClearLocations: util.PtrToBool(true), ClearLocations: util.PtrToBool(true),
ClearTags: util.PtrToBool(true), ClearTags: util.PtrToBool(true),