Skip to content

Commit

Permalink
Fixed missed parameters/properties names
Browse files Browse the repository at this point in the history
  • Loading branch information
remi-stripe committed Jun 6, 2018
1 parent 5dc66db commit c395132
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 19 deletions.
4 changes: 2 additions & 2 deletions account.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down Expand Up @@ -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"`
Expand Down
26 changes: 13 additions & 13 deletions bitcoinreceiver.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions customer.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down Expand Up @@ -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"`
Expand Down
4 changes: 2 additions & 2 deletions error.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit c395132

Please sign in to comment.