Skip to content

Commit

Permalink
Merge pull request #190 from getlago/fix/string-quote
Browse files Browse the repository at this point in the history
fix(inputs): Fix string encoding as paramters
  • Loading branch information
julienbourdeau authored Jul 8, 2024
2 parents d7bb97d + 6fa4556 commit 59a7cd6
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions gross_revenue.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ type GrossRevenueRequest struct {
}

type GrossRevenueListInput struct {
AmountCurrency string `json:"currency,omitempty,string"`
ExternalCustomerId string `json:"external_customer_id,omitempty,string"`
AmountCurrency string `json:"currency,omitempty"`
ExternalCustomerId string `json:"external_customer_id,omitempty"`
Months int `json:"months,omitempty,string"`
}

Expand Down
2 changes: 1 addition & 1 deletion invoice_collection.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ type InvoiceCollectionRequest struct {
}

type InvoiceCollectionListInput struct {
AmountCurrency string `json:"currency,omitempty,string"`
AmountCurrency string `json:"currency,omitempty"`
Months int `json:"months,omitempty,string"`
}

Expand Down
2 changes: 1 addition & 1 deletion invoiced_usage.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ type InvoicedUsageRequest struct {
}

type InvoicedUsageListInput struct {
AmountCurrency string `json:"currency,omitempty,string"`
AmountCurrency string `json:"currency,omitempty"`
Months int `json:"months,omitempty,string"`
}

Expand Down
2 changes: 1 addition & 1 deletion mrr.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ type MrrRequest struct {
}

type MrrListInput struct {
AmountCurrency string `json:"currency,omitempty,string"`
AmountCurrency string `json:"currency,omitempty"`
Months int `json:"months,omitempty,string"`
}

Expand Down
2 changes: 1 addition & 1 deletion wallet.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ type WalletInput struct {
type WalletListInput struct {
PerPage int `json:"per_page,omitempty,string"`
Page int `json:"page,omitempty,string"`
ExternalCustomerID string `json:"external_customer_id,omitempty,string"`
ExternalCustomerID string `json:"external_customer_id,omitempty"`
}

type WalletResult struct {
Expand Down

0 comments on commit 59a7cd6

Please sign in to comment.