add bid to channel update params
This commit is contained in:
parent
712e346bd2
commit
deab868c53
2 changed files with 7 additions and 5 deletions
|
@ -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) {
|
||||||
|
|
|
@ -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),
|
||||||
|
|
Loading…
Reference in a new issue