diff --git a/account.go b/account.go index c35bf4e0c3..12cba40641 100644 --- a/account.go +++ b/account.go @@ -98,7 +98,7 @@ type LegalEntityParams struct { BusinessNameKana *string `form:"business_name_kana"` BusinessNameKanji *string `form:"business_name_kanji"` BusinessTaxID *string `form:"business_tax_id"` - BusinessVatID *string `form:"business_vat_id"` + BusinessVATID *string `form:"business_vat_id"` DOB *DOBParams `form:"dob"` FirstName *string `form:"first_name"` FirstNameKana *string `form:"first_name_kana"` @@ -364,7 +364,7 @@ type LegalEntity struct { BusinessNameKana string `json:"business_name_kana"` BusinessNameKanji string `json:"business_name_kanji"` BusinessTaxIDProvided bool `json:"business_tax_id_provided"` - BusinessVatIDProvided bool `json:"business_vat_id_provided"` + BusinessVATIDProvided bool `json:"business_vat_id_provided"` DOB DOB `json:"dob"` FirstName string `json:"first_name"` FirstNameKana string `json:"first_name_kana"` diff --git a/bitcoinreceiver.go b/bitcoinreceiver.go index 6676162409..54bb0dee57 100644 --- a/bitcoinreceiver.go +++ b/bitcoinreceiver.go @@ -7,30 +7,30 @@ import ( // BitcoinReceiverListParams is the set of parameters that can be used when listing BitcoinReceivers. // For more details see https://stripe.com/docs/api/#list_bitcoin_receivers. type BitcoinReceiverListParams struct { - ListParams `form:"*"` - Active *bool `form:"active"` - Filled *bool `form:"filled"` - Uncaptured *bool `form:"uncaptured_funds"` + ListParams `form:"*"` + Active *bool `form:"active"` + Filled *bool `form:"filled"` + UncapturedFunds *bool `form:"uncaptured_funds"` } // BitcoinReceiverParams is the set of parameters that can be used when creating a BitcoinReceiver. // For more details see https://stripe.com/docs/api/#create_bitcoin_receiver. type BitcoinReceiverParams struct { - Params `form:"*"` - Amount *int64 `form:"amount"` - Currency *string `form:"currency"` - Desc *string `form:"description"` - Email *string `form:"email"` + Params `form:"*"` + Amount *int64 `form:"amount"` + Currency *string `form:"currency"` + Description *string `form:"description"` + Email *string `form:"email"` } // BitcoinReceiverUpdateParams is the set of parameters that can be used when // updating a BitcoinReceiver. For more details see // https://stripe.com/docs/api/#update_bitcoin_receiver. type BitcoinReceiverUpdateParams struct { - Params `form:"*"` - Desc *string `form:"description"` - Email *string `form:"email"` - RefundAddr *string `form:"refund_address"` + Params `form:"*"` + Description *string `form:"description"` + Email *string `form:"email"` + RefundAddress *string `form:"refund_address"` } // BitcoinReceiver is the resource representing a Stripe bitcoin receiver. diff --git a/customer.go b/customer.go index 10e56f1eab..c63d0351c8 100644 --- a/customer.go +++ b/customer.go @@ -9,7 +9,7 @@ import ( type CustomerParams struct { Params `form:"*"` AccountBalance *int64 `form:"account_balance"` - BusinessVatID *string `form:"business_vat_id"` + BusinessVATID *string `form:"business_vat_id"` Coupon *string `form:"coupon"` DefaultSource *string `form:"default_source"` Description *string `form:"description"` @@ -50,7 +50,7 @@ type CustomerListParams struct { // For more details see https://stripe.com/docs/api#customers. type Customer struct { AccountBalance int64 `json:"account_balance"` - BusinessVatID string `json:"business_vat_id"` + BusinessVATID string `json:"business_vat_id"` Created int64 `json:"created"` Currency Currency `json:"currency"` DefaultSource *PaymentSource `json:"default_source"` diff --git a/error.go b/error.go index 9e3a7a543f..fb00d31969 100644 --- a/error.go +++ b/error.go @@ -19,10 +19,10 @@ const ( ErrorCodeCardDeclined ErrorCode = "card_declined" ErrorCodeExpiredCard ErrorCode = "expired_card" - ErrorCodeIncorrectCvc ErrorCode = "incorrect_cvc" + ErrorCodeIncorrectCVC ErrorCode = "incorrect_cvc" ErrorCodeIncorrectZip ErrorCode = "incorrect_zip" ErrorCodeIncorrectNumber ErrorCode = "incorrect_number" - ErrorCodeInvalidCvc ErrorCode = "invalid_cvc" + ErrorCodeInvalidCVC ErrorCode = "invalid_cvc" ErrorCodeInvalidExpiryMonth ErrorCode = "invalid_expiry_month" ErrorCodeInvalidExpiryYear ErrorCode = "invalid_expiry_year" ErrorCodeInvalidNumber ErrorCode = "invalid_number"