From 13259318c6d0c3ccb5855b483014f939b7f65078 Mon Sep 17 00:00:00 2001 From: Dominic Charley-Roy Date: Tue, 31 May 2022 12:14:57 -0400 Subject: [PATCH] Add test for cash balance methods. --- test/resources/generated_examples_test.spec.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/test/resources/generated_examples_test.spec.js b/test/resources/generated_examples_test.spec.js index 3e6f355919..662d631532 100644 --- a/test/resources/generated_examples_test.spec.js +++ b/test/resources/generated_examples_test.spec.js @@ -877,6 +877,20 @@ describe('Apps.Secret', function() { }); }); +describe('CashBalance', function() { + it('retrieveCashBalance method', async function() { + const cashBalance = await stripe.customers.retrieveCashBalance('cus_123'); + expect(cashBalance).not.to.be.null; + }); + + it('updateCashBalance method', async function() { + const cashBalance = await stripe.customers.updateCashBalance('cus_123', { + settings: {reconciliation_mode: 'manual'}, + }); + expect(cashBalance).not.to.be.null; + }); +}); + describe('Charge', function() { it('create method', async function() { const charge = await stripe.charges.create({