Skip to content

Commit

Permalink
bill cycle day can be 0
Browse files Browse the repository at this point in the history
  • Loading branch information
mdemin914 committed Oct 12, 2012
1 parent 21bc757 commit 2833cd7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion lib/zuora/config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ def initialize(data={})
@data = {}
update!(data)
end

def update!(data)
data.each do |key, value|
self[key] = value
Expand Down
2 changes: 1 addition & 1 deletion lib/zuora/objects/account.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class Account < Base
validates_inclusion_of :payment_term, :in => ['Due Upon Receipt','Net 30','Net 45','Net 90']
validates_inclusion_of :batch, :in => (1..20).map{|n| "Batch#{n}" }
validates_inclusion_of :bcd_setting_option, :in => ['AutoSet','ManualSet'], :allow_nil => true
validates_inclusion_of :bill_cycle_day, :in => (1..30).to_a + (1..30).map(&:to_s)
validates_inclusion_of :bill_cycle_day, :in => (0..30).to_a + (1..30).map(&:to_s)
validates_inclusion_of :status, :in => ['Draft','Active','Canceled'], :allow_nil => true

define_attributes do
Expand Down

0 comments on commit 2833cd7

Please sign in to comment.