From 2fd04dd54075d8b041e6e209d943afccef7d117a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20Semp=C3=A9?= Date: Tue, 16 Apr 2024 17:17:47 +0200 Subject: [PATCH] feat: Add recurring_transaction_rules to WalletsController#index --- tests/fixtures/wallet_index.json | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/tests/fixtures/wallet_index.json b/tests/fixtures/wallet_index.json index 5edad663..255343e5 100644 --- a/tests/fixtures/wallet_index.json +++ b/tests/fixtures/wallet_index.json @@ -19,7 +19,16 @@ "ongoing_balance_cents": 800, "ongoing_usage_balance_cents": 200, "credits_ongoing_balance": "8.0", - "credits_ongoing_usage_balance": "2.0" + "credits_ongoing_usage_balance": "2.0", + "recurring_transaction_rules": [ + { + "lago_id": "12345", + "rule_type": "interval", + "interval": "monthly", + "paid_credits": "105.0", + "granted_credits": "105.0" + } + ] }, { "lago_id": "b7ab2926-1de8-4428-9bcd-779314ac1111", @@ -40,7 +49,8 @@ "ongoing_balance_cents": 800, "ongoing_usage_balance_cents": 200, "credits_ongoing_balance": "8.0", - "credits_ongoing_usage_balance": "2.0" + "credits_ongoing_usage_balance": "2.0", + "recurring_transaction_rules": [] } ], "meta": {