Skip to content

Commit

Permalink
feat(wallet): Rename wallet rule_type into trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
rsempe committed May 16, 2024
1 parent 3ee95e1 commit b2c6003
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/lago/api/resources/wallet.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ def whitelist_recurring_rules(rules)
:lago_id,
:paid_credits,
:granted_credits,
:rule_type,
:threshold_credits,
:trigger,
:interval,
)

Expand Down
2 changes: 1 addition & 1 deletion spec/factories/wallet.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
recurring_transaction_rules do
[
{
rule_type: 'interval',
trigger: 'interval',
interval: 'monthly',
paid_credits: '105',
granted_credits: '105',
Expand Down
2 changes: 1 addition & 1 deletion spec/lago/api/resources/wallet_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@

expect(wallet.lago_id).to eq('this-is-lago-id')
expect(wallet.name).to eq(factory_wallet.name)
expect(wallet.recurring_transaction_rules.first.rule_type).to eq('interval')
expect(wallet.recurring_transaction_rules.first.trigger).to eq('interval')
expect(wallet.recurring_transaction_rules.first.interval).to eq('monthly')
end
end
Expand Down

0 comments on commit b2c6003

Please sign in to comment.