From 6fa4556c764e3ab1793b2db6f568aa1df5a47b97 Mon Sep 17 00:00:00 2001 From: Julien Bourdeau Date: Mon, 8 Jul 2024 14:16:19 +0200 Subject: [PATCH] fix(inputs): Fix string encoding as paramters --- gross_revenue.go | 4 ++-- invoice_collection.go | 2 +- invoiced_usage.go | 2 +- mrr.go | 2 +- wallet.go | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/gross_revenue.go b/gross_revenue.go index 4464285..fee9910 100644 --- a/gross_revenue.go +++ b/gross_revenue.go @@ -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"` } diff --git a/invoice_collection.go b/invoice_collection.go index c24d714..9b0fa74 100644 --- a/invoice_collection.go +++ b/invoice_collection.go @@ -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"` } diff --git a/invoiced_usage.go b/invoiced_usage.go index 9257d36..49784b7 100644 --- a/invoiced_usage.go +++ b/invoiced_usage.go @@ -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"` } diff --git a/mrr.go b/mrr.go index d3afe4d..19b5377 100644 --- a/mrr.go +++ b/mrr.go @@ -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"` } diff --git a/wallet.go b/wallet.go index ef86882..b09fcfc 100644 --- a/wallet.go +++ b/wallet.go @@ -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 {