Skip to content

Commit

Permalink
Update Customer param account_balance to balance (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
paula4230 authored Sep 27, 2022
1 parent 6cde51e commit 0ec3889
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/stripe/methods/core/customers/update_customer.cr
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
class Stripe::Customer
def self.update(
customer : String | Customer,
account_balance : Int32 | Unset = Unset.new,
balance : Int32 | Unset = Unset.new,
coupon : String? | Unset = Unset.new,
default_source : String | Token | Unset = Unset.new,
name : String | Token? | Unset = Unset.new,
Expand All @@ -22,7 +22,7 @@ class Stripe::Customer
io = IO::Memory.new
builder = ParamsBuilder.new(io)

{% for x in %w(account_balance coupon default_source name description email phone invoice_prefix invoice_settings metadata shipping source tax_info) %}
{% for x in %w(balance coupon default_source name description email phone invoice_prefix invoice_settings metadata shipping source tax_info) %}
builder.add({{x}}, {{x.id}}) unless {{x.id}}.is_a?(Unset)
{% end %}

Expand Down

0 comments on commit 0ec3889

Please sign in to comment.