diff --git a/src/StripeResource.ts b/src/StripeResource.ts index fc7610eecc..59dc3fbe77 100644 --- a/src/StripeResource.ts +++ b/src/StripeResource.ts @@ -178,7 +178,7 @@ StripeResource.prototype = { } const dataInQuery = spec.method === 'GET' || spec.method === 'DELETE'; - const bodyData = dataInQuery ? {} : data; + const bodyData = dataInQuery ? null : data; const queryData = dataInQuery ? data : {}; return { diff --git a/src/Types.d.ts b/src/Types.d.ts index f6ab743848..6bb97a4ff1 100644 --- a/src/Types.d.ts +++ b/src/Types.d.ts @@ -61,7 +61,7 @@ export type RequestOptions = { export type RequestOpts = { requestMethod: string; requestPath: string; - bodyData: RequestData; + bodyData: RequestData | null; queryData: RequestData; auth: string | null; headers: RequestHeaders; @@ -155,7 +155,7 @@ export type RequestSender = { method: string, host: string | null, path: string, - data: RequestData, + data: RequestData | null, auth: string | null, options: RequestOptions, usage: Array, diff --git a/test/resources/Account.spec.js b/test/resources/Account.spec.js index d81d209a67..69ab7c13b7 100644 --- a/test/resources/Account.spec.js +++ b/test/resources/Account.spec.js @@ -33,7 +33,7 @@ describe('Account Resource', () => { expect(stripe.LAST_REQUEST).to.deep.equal({ method: 'DELETE', url: '/v1/accounts/acct_16Tzq6DBahdM4C8s', - data: {}, + data: null, headers: {}, settings: {}, }); @@ -59,7 +59,7 @@ describe('Account Resource', () => { expect(stripe.LAST_REQUEST).to.deep.equal({ method: 'GET', url: '/v1/account', - data: {}, + data: null, headers: {}, settings: {}, }); @@ -70,7 +70,7 @@ describe('Account Resource', () => { expect(stripe.LAST_REQUEST).to.deep.equal({ method: 'GET', url: '/v1/accounts/foo', - data: {}, + data: null, headers: {}, settings: {}, }); @@ -83,7 +83,7 @@ describe('Account Resource', () => { auth: key, method: 'GET', url: '/v1/account', - data: {}, + data: null, headers: {}, settings: {}, }); @@ -96,7 +96,7 @@ describe('Account Resource', () => { auth: params.apiKey, method: 'GET', url: '/v1/account', - data: {}, + data: null, headers: {}, settings: {}, }); @@ -107,7 +107,7 @@ describe('Account Resource', () => { expect(stripe.LAST_REQUEST).to.deep.equal({ method: 'GET', url: '/v1/account', - data: {}, + data: null, headers: {}, settings: {}, }); @@ -122,7 +122,7 @@ describe('Account Resource', () => { method: 'GET', url: '/v1/accounts/acct_123/capabilities', headers: {}, - data: {}, + data: null, settings: {}, }); }); @@ -133,7 +133,7 @@ describe('Account Resource', () => { method: 'GET', url: '/v1/accounts/acct_123/capabilities', headers: {}, - data: {}, + data: null, auth: TEST_AUTH_KEY, settings: {}, }); @@ -147,7 +147,7 @@ describe('Account Resource', () => { method: 'GET', url: '/v1/accounts/acct_123/capabilities/acap_123', headers: {}, - data: {}, + data: null, settings: {}, }); }); @@ -162,7 +162,7 @@ describe('Account Resource', () => { method: 'GET', url: '/v1/accounts/acct_123/capabilities/acap_123', headers: {}, - data: {}, + data: null, auth: TEST_AUTH_KEY, settings: {}, }); @@ -216,7 +216,7 @@ describe('Account Resource', () => { url: '/v1/accounts/accountIdFoo321/external_accounts/externalAccountIdFoo456', headers: {}, - data: {}, + data: null, settings: {}, }); }); @@ -232,7 +232,7 @@ describe('Account Resource', () => { url: '/v1/accounts/accountIdFoo321/external_accounts/externalAccountIdFoo456', headers: {}, - data: {}, + data: null, auth: TEST_AUTH_KEY, settings: {}, }); @@ -307,7 +307,7 @@ describe('Account Resource', () => { url: '/v1/accounts/accountIdFoo321/external_accounts/externalAccountIdFoo456', headers: {}, - data: {}, + data: null, settings: {}, }); }); @@ -323,7 +323,7 @@ describe('Account Resource', () => { url: '/v1/accounts/accountIdFoo321/external_accounts/externalAccountIdFoo456', headers: {}, - data: {}, + data: null, auth: TEST_AUTH_KEY, settings: {}, }); @@ -337,7 +337,7 @@ describe('Account Resource', () => { method: 'GET', url: '/v1/accounts/accountIdFoo321/external_accounts', headers: {}, - data: {}, + data: null, settings: {}, }); }); @@ -348,7 +348,7 @@ describe('Account Resource', () => { method: 'GET', url: '/v1/accounts/accountIdFoo321/external_accounts', headers: {}, - data: {}, + data: null, auth: TEST_AUTH_KEY, settings: {}, }); @@ -379,7 +379,7 @@ describe('Account Resource', () => { method: 'GET', url: '/v1/accounts/acct_123/persons/person_123', headers: {}, - data: {}, + data: null, settings: {}, }); }); @@ -390,7 +390,7 @@ describe('Account Resource', () => { method: 'GET', url: '/v1/accounts/acct_123/persons/person_123', headers: {}, - data: {}, + data: null, auth: TEST_AUTH_KEY, settings: {}, }); @@ -471,7 +471,7 @@ describe('Account Resource', () => { method: 'DELETE', url: '/v1/accounts/acct_123/persons/person_123', headers: {}, - data: {}, + data: null, settings: {}, }); }); @@ -482,7 +482,7 @@ describe('Account Resource', () => { method: 'DELETE', url: '/v1/accounts/acct_123/persons/person_123', headers: {}, - data: {}, + data: null, auth: TEST_AUTH_KEY, settings: {}, }); @@ -496,7 +496,7 @@ describe('Account Resource', () => { method: 'GET', url: '/v1/accounts/acct_123/persons', headers: {}, - data: {}, + data: null, settings: {}, }); }); @@ -507,7 +507,7 @@ describe('Account Resource', () => { method: 'GET', url: '/v1/accounts/acct_123/persons', headers: {}, - data: {}, + data: null, auth: TEST_AUTH_KEY, settings: {}, }); diff --git a/test/resources/ApplePayDomains.spec.js b/test/resources/ApplePayDomains.spec.js index 139650dcd6..a487e606a7 100644 --- a/test/resources/ApplePayDomains.spec.js +++ b/test/resources/ApplePayDomains.spec.js @@ -11,7 +11,7 @@ describe('ApplePayDomains Resource', () => { method: 'GET', url: '/v1/apple_pay/domains/apwc_retrieve', headers: {}, - data: {}, + data: null, settings: {}, }); }); @@ -24,7 +24,7 @@ describe('ApplePayDomains Resource', () => { method: 'DELETE', url: '/v1/apple_pay/domains/apwc_delete', headers: {}, - data: {}, + data: null, settings: {}, }); }); @@ -55,7 +55,7 @@ describe('ApplePayDomains Resource', () => { method: 'GET', url: '/v1/apple_pay/domains', headers: {}, - data: {}, + data: null, settings: {}, }); }); diff --git a/test/resources/ApplicationFees.spec.js b/test/resources/ApplicationFees.spec.js index af65e85eb9..00c474fbdd 100644 --- a/test/resources/ApplicationFees.spec.js +++ b/test/resources/ApplicationFees.spec.js @@ -10,7 +10,7 @@ describe('ApplicationFee Resource', () => { expect(stripe.LAST_REQUEST).to.deep.equal({ method: 'GET', url: '/v1/application_fees', - data: {}, + data: null, headers: {}, settings: {}, }); @@ -50,7 +50,7 @@ describe('ApplicationFee Resource', () => { expect(stripe.LAST_REQUEST).to.deep.equal({ method: 'GET', url: '/v1/application_fees/appFeeIdExample3242/refunds', - data: {}, + data: null, headers: {}, settings: {}, }); @@ -65,7 +65,7 @@ describe('ApplicationFee Resource', () => { method: 'GET', url: '/v1/application_fees/appFeeIdExample3242/refunds/refundIdExample2312', - data: {}, + data: null, headers: {}, settings: {}, }); diff --git a/test/resources/Balance.spec.js b/test/resources/Balance.spec.js index 87cf3cc46a..f310d9f222 100644 --- a/test/resources/Balance.spec.js +++ b/test/resources/Balance.spec.js @@ -10,7 +10,7 @@ describe('Balance Resource', () => { expect(stripe.LAST_REQUEST).to.deep.equal({ method: 'GET', url: '/v1/balance', - data: {}, + data: null, headers: {}, settings: {}, }); @@ -21,7 +21,7 @@ describe('Balance Resource', () => { expect(stripe.LAST_REQUEST).to.deep.equal({ method: 'GET', url: '/v1/balance', - data: {}, + data: null, auth: 'aGN0bIwXnHdw5645VABjPdSn8nWY7G11', headers: {}, settings: {}, diff --git a/test/resources/BalanceTransactions.spec.js b/test/resources/BalanceTransactions.spec.js index d30758b16c..66b64d8622 100644 --- a/test/resources/BalanceTransactions.spec.js +++ b/test/resources/BalanceTransactions.spec.js @@ -11,7 +11,7 @@ describe('BalanceTransactions Resource', function() { method: 'GET', url: '/v1/balance_transactions/txn_123', headers: {}, - data: {}, + data: null, settings: {}, }); }); @@ -24,7 +24,7 @@ describe('BalanceTransactions Resource', function() { method: 'GET', url: '/v1/balance_transactions', headers: {}, - data: {}, + data: null, settings: {}, }); }); diff --git a/test/resources/BillingPortal/Configurations.spec.js b/test/resources/BillingPortal/Configurations.spec.js index 77e5ef5d58..6838ee16d6 100644 --- a/test/resources/BillingPortal/Configurations.spec.js +++ b/test/resources/BillingPortal/Configurations.spec.js @@ -52,7 +52,7 @@ describe('BillingPortal', () => { method: 'GET', url: '/v1/billing_portal/configurations/bpc_123', headers: {}, - data: {}, + data: null, settings: {}, }); }); @@ -64,7 +64,7 @@ describe('BillingPortal', () => { method: 'GET', url: '/v1/billing_portal/configurations', headers: {}, - data: {}, + data: null, settings: {}, }); }); diff --git a/test/resources/Charges.spec.js b/test/resources/Charges.spec.js index 5f15873495..5007323987 100644 --- a/test/resources/Charges.spec.js +++ b/test/resources/Charges.spec.js @@ -10,7 +10,7 @@ describe('Charge Resource', () => { expect(stripe.LAST_REQUEST).to.deep.equal({ method: 'GET', url: '/v1/charges/chargeIdFoo123', - data: {}, + data: null, headers: {}, settings: {}, }); @@ -52,7 +52,7 @@ describe('Charge Resource', () => { expect(stripe.LAST_REQUEST).to.deep.equal({ method: 'GET', url: '/v1/charges', - data: {}, + data: null, headers: {}, settings: {}, }); diff --git a/test/resources/Checkout/Sessions.spec.js b/test/resources/Checkout/Sessions.spec.js index 21ea451eea..465b67bfce 100644 --- a/test/resources/Checkout/Sessions.spec.js +++ b/test/resources/Checkout/Sessions.spec.js @@ -45,7 +45,7 @@ describe('Checkout', () => { expect(stripe.LAST_REQUEST).to.deep.equal({ method: 'GET', url: '/v1/checkout/sessions/cs_123', - data: {}, + data: null, headers: {}, settings: {}, }); @@ -59,7 +59,7 @@ describe('Checkout', () => { method: 'GET', url: '/v1/checkout/sessions/cs_123/line_items', headers: {}, - data: {}, + data: null, settings: {}, }); }); diff --git a/test/resources/CountrySpecs.spec.js b/test/resources/CountrySpecs.spec.js index 1f7bc262e9..7ec709589c 100644 --- a/test/resources/CountrySpecs.spec.js +++ b/test/resources/CountrySpecs.spec.js @@ -10,7 +10,7 @@ describe('CountrySpecs Resource', () => { expect(stripe.LAST_REQUEST).to.deep.equal({ method: 'GET', url: '/v1/country_specs', - data: {}, + data: null, headers: {}, settings: {}, }); @@ -24,7 +24,7 @@ describe('CountrySpecs Resource', () => { expect(stripe.LAST_REQUEST).to.deep.equal({ method: 'GET', url: `/v1/country_specs/${country}`, - data: {}, + data: null, headers: {}, settings: {}, }); diff --git a/test/resources/Coupons.spec.js b/test/resources/Coupons.spec.js index 0ac6c47d80..35bd3a2e62 100644 --- a/test/resources/Coupons.spec.js +++ b/test/resources/Coupons.spec.js @@ -11,7 +11,7 @@ describe('Coupons Resource', () => { method: 'GET', url: '/v1/coupons/couponId123', headers: {}, - data: {}, + data: null, settings: {}, }); }); @@ -24,7 +24,7 @@ describe('Coupons Resource', () => { method: 'DELETE', url: '/v1/coupons/couponId123', headers: {}, - data: {}, + data: null, settings: {}, }); }); @@ -76,7 +76,7 @@ describe('Coupons Resource', () => { method: 'GET', url: '/v1/coupons', headers: {}, - data: {}, + data: null, settings: {}, }); }); diff --git a/test/resources/CreditNotes.spec.js b/test/resources/CreditNotes.spec.js index 31405905c0..72b8a01ad6 100644 --- a/test/resources/CreditNotes.spec.js +++ b/test/resources/CreditNotes.spec.js @@ -11,7 +11,7 @@ describe('CreditNotes Resource', () => { method: 'GET', url: '/v1/credit_notes/cn_123', headers: {}, - data: {}, + data: null, settings: {}, }); }); @@ -42,7 +42,7 @@ describe('CreditNotes Resource', () => { method: 'GET', url: '/v1/credit_notes?count=25', headers: {}, - data: {}, + data: null, settings: {}, }); }); @@ -55,7 +55,7 @@ describe('CreditNotes Resource', () => { method: 'GET', url: '/v1/credit_notes/cn_123/lines', headers: {}, - data: {}, + data: null, settings: {}, }); }); @@ -68,7 +68,7 @@ describe('CreditNotes Resource', () => { method: 'GET', url: '/v1/credit_notes/preview/lines', headers: {}, - data: {}, + data: null, settings: {}, }); }); @@ -98,7 +98,7 @@ describe('CreditNotes Resource', () => { method: 'GET', url: '/v1/credit_notes/preview?amount=100&invoice=in_123', headers: {}, - data: {}, + data: null, settings: {}, }); }); diff --git a/test/resources/Customers.spec.js b/test/resources/Customers.spec.js index dc2c69da3b..9596113fe6 100644 --- a/test/resources/Customers.spec.js +++ b/test/resources/Customers.spec.js @@ -13,7 +13,7 @@ describe('Customers Resource', () => { method: 'GET', url: '/v1/customers/cus_123', headers: {}, - data: {}, + data: null, settings: {}, }); }); @@ -24,7 +24,7 @@ describe('Customers Resource', () => { method: 'GET', url: '/v1/customers/cus_123', headers: {}, - data: {}, + data: null, auth: TEST_AUTH_KEY, settings: {}, }); @@ -146,7 +146,7 @@ describe('Customers Resource', () => { method: 'DELETE', url: '/v1/customers/cus_123', headers: {}, - data: {}, + data: null, settings: {}, }); }); @@ -159,7 +159,7 @@ describe('Customers Resource', () => { method: 'GET', url: '/v1/customers', headers: {}, - data: {}, + data: null, settings: {}, }); }); @@ -170,7 +170,7 @@ describe('Customers Resource', () => { method: 'GET', url: '/v1/customers', headers: {}, - data: {}, + data: null, auth: TEST_AUTH_KEY, settings: {}, }); @@ -185,7 +185,7 @@ describe('Customers Resource', () => { method: 'DELETE', url: '/v1/customers/cus_123/discount', headers: {}, - data: {}, + data: null, settings: {}, }); }); @@ -200,7 +200,7 @@ describe('Customers Resource', () => { method: 'GET', url: '/v1/customers/cus_123/sources/card_123', headers: {}, - data: {}, + data: null, settings: {}, }); }); @@ -211,7 +211,7 @@ describe('Customers Resource', () => { method: 'GET', url: '/v1/customers/cus_123/sources/card_123', headers: {}, - data: {}, + data: null, auth: TEST_AUTH_KEY, settings: {}, }); @@ -281,7 +281,7 @@ describe('Customers Resource', () => { method: 'DELETE', url: '/v1/customers/cus_123/sources/card_123', headers: {}, - data: {}, + data: null, settings: {}, }); }); @@ -292,7 +292,7 @@ describe('Customers Resource', () => { method: 'DELETE', url: '/v1/customers/cus_123/sources/card_123', headers: {}, - data: {}, + data: null, auth: TEST_AUTH_KEY, settings: {}, }); @@ -306,7 +306,7 @@ describe('Customers Resource', () => { method: 'GET', url: '/v1/customers/cus_123/sources', headers: {}, - data: {}, + data: null, settings: {}, }); }); @@ -317,7 +317,7 @@ describe('Customers Resource', () => { method: 'GET', url: '/v1/customers/cus_123/sources', headers: {}, - data: {}, + data: null, auth: TEST_AUTH_KEY, settings: {}, }); @@ -354,7 +354,7 @@ describe('Customers Resource', () => { method: 'GET', url: '/v1/customers/cus_123/tax_ids/txi_123', headers: {}, - data: {}, + data: null, settings: {}, }); }); @@ -384,7 +384,7 @@ describe('Customers Resource', () => { method: 'DELETE', url: '/v1/customers/cus_123/tax_ids/txi_123', headers: {}, - data: {}, + data: null, settings: {}, }); }); @@ -397,7 +397,7 @@ describe('Customers Resource', () => { method: 'GET', url: '/v1/customers/cus_123/tax_ids', headers: {}, - data: {}, + data: null, settings: {}, }); }); @@ -412,7 +412,7 @@ describe('Customers Resource', () => { method: 'GET', url: '/v1/customers/cus_123/balance_transactions/cbtxn_123', headers: {}, - data: {}, + data: null, settings: {}, }); }); @@ -456,7 +456,7 @@ describe('Customers Resource', () => { method: 'GET', url: '/v1/customers/cus_123/balance_transactions', headers: {}, - data: {}, + data: null, settings: {}, }); }); diff --git a/test/resources/Disputes.spec.js b/test/resources/Disputes.spec.js index b0a8ad6303..5500113eb6 100644 --- a/test/resources/Disputes.spec.js +++ b/test/resources/Disputes.spec.js @@ -10,7 +10,7 @@ describe('Dispute Resource', () => { expect(stripe.LAST_REQUEST).to.deep.equal({ method: 'GET', url: '/v1/disputes/dp_123', - data: {}, + data: null, headers: {}, settings: {}, }); @@ -23,7 +23,7 @@ describe('Dispute Resource', () => { expect(stripe.LAST_REQUEST).to.deep.equal({ method: 'GET', url: '/v1/disputes', - data: {}, + data: null, headers: {}, settings: {}, }); diff --git a/test/resources/EphemeralKeys.spec.js b/test/resources/EphemeralKeys.spec.js index 3c4f2d4201..413f6f22ad 100644 --- a/test/resources/EphemeralKeys.spec.js +++ b/test/resources/EphemeralKeys.spec.js @@ -87,7 +87,7 @@ describe('EphemeralKey Resource', () => { expect(stripe.LAST_REQUEST).to.deep.equal({ method: 'DELETE', url: '/v1/ephemeral_keys/ephkey_123', - data: {}, + data: null, headers: {}, settings: {}, }); diff --git a/test/resources/Events.spec.js b/test/resources/Events.spec.js index 98e1f91ade..b51581b032 100644 --- a/test/resources/Events.spec.js +++ b/test/resources/Events.spec.js @@ -11,7 +11,7 @@ describe('Events Resource', () => { method: 'GET', url: '/v1/events/eventIdBaz', headers: {}, - data: {}, + data: null, settings: {}, }); }); @@ -24,7 +24,7 @@ describe('Events Resource', () => { method: 'GET', url: '/v1/events?count=25', headers: {}, - data: {}, + data: null, settings: {}, }); }); diff --git a/test/resources/ExchangeRates.spec.js b/test/resources/ExchangeRates.spec.js index 2f37cb336b..41d977f9c4 100644 --- a/test/resources/ExchangeRates.spec.js +++ b/test/resources/ExchangeRates.spec.js @@ -10,7 +10,7 @@ describe('ExchangeRates Resource', () => { expect(stripe.LAST_REQUEST).to.deep.equal({ method: 'GET', url: '/v1/exchange_rates', - data: {}, + data: null, headers: {}, settings: {}, }); @@ -24,7 +24,7 @@ describe('ExchangeRates Resource', () => { expect(stripe.LAST_REQUEST).to.deep.equal({ method: 'GET', url: `/v1/exchange_rates/${currency}`, - data: {}, + data: null, headers: {}, settings: {}, }); diff --git a/test/resources/FileLinks.spec.js b/test/resources/FileLinks.spec.js index 5b0f459f36..a927f39e4d 100644 --- a/test/resources/FileLinks.spec.js +++ b/test/resources/FileLinks.spec.js @@ -11,7 +11,7 @@ describe('FileLinks Resource', () => { method: 'GET', url: '/v1/file_links/link_123', headers: {}, - data: {}, + data: null, settings: {}, }); }); @@ -50,7 +50,7 @@ describe('FileLinks Resource', () => { method: 'GET', url: '/v1/file_links', headers: {}, - data: {}, + data: null, settings: {}, }); }); diff --git a/test/resources/Files.spec.js b/test/resources/Files.spec.js index a5d2b4c3ba..15e24b012b 100644 --- a/test/resources/Files.spec.js +++ b/test/resources/Files.spec.js @@ -15,7 +15,7 @@ describe('Files Resource', () => { method: 'GET', url: '/v1/files/fil_12345', headers: {}, - data: {}, + data: null, settings: {}, }); }); @@ -26,7 +26,7 @@ describe('Files Resource', () => { method: 'GET', url: '/v1/files/fil_12345', headers: {}, - data: {}, + data: null, auth: TEST_AUTH_KEY, settings: {}, }); @@ -40,7 +40,7 @@ describe('Files Resource', () => { method: 'GET', url: '/v1/files', headers: {}, - data: {}, + data: null, settings: {}, }); }); diff --git a/test/resources/Identity/VerificationReport.spec.js b/test/resources/Identity/VerificationReport.spec.js index fac94cc434..2649072eb5 100644 --- a/test/resources/Identity/VerificationReport.spec.js +++ b/test/resources/Identity/VerificationReport.spec.js @@ -11,7 +11,7 @@ describe('Identity', () => { expect(stripe.LAST_REQUEST).to.deep.equal({ method: 'GET', url: '/v1/identity/verification_reports/vr_123', - data: {}, + data: null, headers: {}, settings: {}, }); @@ -24,7 +24,7 @@ describe('Identity', () => { expect(stripe.LAST_REQUEST).to.deep.equal({ method: 'GET', url: '/v1/identity/verification_reports', - data: {}, + data: null, headers: {}, settings: {}, }); diff --git a/test/resources/Identity/VerificationSession.spec.js b/test/resources/Identity/VerificationSession.spec.js index b821e32345..6f033891b6 100644 --- a/test/resources/Identity/VerificationSession.spec.js +++ b/test/resources/Identity/VerificationSession.spec.js @@ -24,7 +24,7 @@ describe('Identity', () => { expect(stripe.LAST_REQUEST).to.deep.equal({ method: 'GET', url: '/v1/identity/verification_sessions/vs_123', - data: {}, + data: null, headers: {}, settings: {}, }); @@ -37,7 +37,7 @@ describe('Identity', () => { expect(stripe.LAST_REQUEST).to.deep.equal({ method: 'GET', url: '/v1/identity/verification_sessions', - data: {}, + data: null, headers: {}, settings: {}, }); diff --git a/test/resources/InvoiceItems.spec.js b/test/resources/InvoiceItems.spec.js index 814655c243..d0e0f7c8d9 100644 --- a/test/resources/InvoiceItems.spec.js +++ b/test/resources/InvoiceItems.spec.js @@ -11,7 +11,7 @@ describe('InvoiceItems Resource', () => { method: 'GET', url: '/v1/invoiceitems/invoiceItemIdTesting123', headers: {}, - data: {}, + data: null, settings: {}, }); }); @@ -54,7 +54,7 @@ describe('InvoiceItems Resource', () => { method: 'DELETE', url: '/v1/invoiceitems/invoiceItemId2', headers: {}, - data: {}, + data: null, settings: {}, }); }); @@ -67,7 +67,7 @@ describe('InvoiceItems Resource', () => { method: 'GET', url: '/v1/invoiceitems', headers: {}, - data: {}, + data: null, settings: {}, }); }); diff --git a/test/resources/Invoices.spec.js b/test/resources/Invoices.spec.js index f8bb96db02..2a7413a775 100644 --- a/test/resources/Invoices.spec.js +++ b/test/resources/Invoices.spec.js @@ -11,7 +11,7 @@ describe('Invoices Resource', () => { method: 'GET', url: '/v1/invoices/in_123', headers: {}, - data: {}, + data: null, settings: {}, }); }); @@ -37,7 +37,7 @@ describe('Invoices Resource', () => { method: 'GET', url: '/v1/invoices?count=25', headers: {}, - data: {}, + data: null, settings: {}, }); }); @@ -63,7 +63,7 @@ describe('Invoices Resource', () => { method: 'DELETE', url: '/v1/invoices/in_123', headers: {}, - data: {}, + data: null, settings: {}, }); }); @@ -76,7 +76,7 @@ describe('Invoices Resource', () => { method: 'GET', url: '/v1/invoices/in_123/lines', headers: {}, - data: {}, + data: null, settings: {}, }); }); @@ -89,7 +89,7 @@ describe('Invoices Resource', () => { method: 'GET', url: '/v1/invoices/upcoming/lines', headers: {}, - data: {}, + data: null, settings: {}, }); }); @@ -107,7 +107,7 @@ describe('Invoices Resource', () => { url: '/v1/invoices/upcoming?customer=cus_abc&subscription_items[0][plan]=potato&subscription_items[1][plan]=rutabaga', headers: {}, - data: {}, + data: null, settings: {}, }); }); @@ -126,7 +126,7 @@ describe('Invoices Resource', () => { url: '/v1/invoices/upcoming/lines?customer=cus_abc&subscription_items[0][plan]=potato&subscription_items[1][plan]=rutabaga&limit=5', headers: {}, - data: {}, + data: null, settings: {}, }); }); diff --git a/test/resources/Issuing/Authorization.spec.js b/test/resources/Issuing/Authorization.spec.js index 6c2010aeb4..77fac6ecc0 100644 --- a/test/resources/Issuing/Authorization.spec.js +++ b/test/resources/Issuing/Authorization.spec.js @@ -11,7 +11,7 @@ describe('Issuing', () => { expect(stripe.LAST_REQUEST).to.deep.equal({ method: 'GET', url: '/v1/issuing/authorizations/iauth_123', - data: {}, + data: null, headers: {}, settings: {}, }); @@ -24,7 +24,7 @@ describe('Issuing', () => { expect(stripe.LAST_REQUEST).to.deep.equal({ method: 'GET', url: '/v1/issuing/authorizations', - data: {}, + data: null, headers: {}, settings: {}, }); diff --git a/test/resources/Issuing/Cardholders.spec.js b/test/resources/Issuing/Cardholders.spec.js index b9da562396..6986aff663 100644 --- a/test/resources/Issuing/Cardholders.spec.js +++ b/test/resources/Issuing/Cardholders.spec.js @@ -14,7 +14,7 @@ describe('Issuing', () => { method: 'GET', url: '/v1/issuing/cardholders/ich_123', headers: {}, - data: {}, + data: null, settings: {}, }); }); @@ -71,7 +71,7 @@ describe('Issuing', () => { method: 'GET', url: '/v1/issuing/cardholders', headers: {}, - data: {}, + data: null, settings: {}, }); }); diff --git a/test/resources/Issuing/Cards.spec.js b/test/resources/Issuing/Cards.spec.js index 6cd6f4c96d..45ea750031 100644 --- a/test/resources/Issuing/Cards.spec.js +++ b/test/resources/Issuing/Cards.spec.js @@ -14,7 +14,7 @@ describe('Issuing', () => { method: 'GET', url: '/v1/issuing/cards/ic_123', headers: {}, - data: {}, + data: null, settings: {}, }); }); @@ -69,7 +69,7 @@ describe('Issuing', () => { method: 'GET', url: '/v1/issuing/cards', headers: {}, - data: {}, + data: null, settings: {}, }); }); diff --git a/test/resources/Issuing/Disputes.spec.js b/test/resources/Issuing/Disputes.spec.js index 84fba9103e..49a9804b36 100644 --- a/test/resources/Issuing/Disputes.spec.js +++ b/test/resources/Issuing/Disputes.spec.js @@ -14,7 +14,7 @@ describe('Issuing', () => { method: 'GET', url: '/v1/issuing/disputes/idp_123', headers: {}, - data: {}, + data: null, settings: {}, }); }); @@ -67,7 +67,7 @@ describe('Issuing', () => { method: 'GET', url: '/v1/issuing/disputes', headers: {}, - data: {}, + data: null, settings: {}, }); }); diff --git a/test/resources/Issuing/Transactions.spec.js b/test/resources/Issuing/Transactions.spec.js index ef5f7cd026..78195a1daf 100644 --- a/test/resources/Issuing/Transactions.spec.js +++ b/test/resources/Issuing/Transactions.spec.js @@ -14,7 +14,7 @@ describe('Issuing', () => { method: 'GET', url: '/v1/issuing/transactions/ipi_123', headers: {}, - data: {}, + data: null, settings: {}, }); }); @@ -50,7 +50,7 @@ describe('Issuing', () => { method: 'GET', url: '/v1/issuing/transactions', headers: {}, - data: {}, + data: null, settings: {}, }); }); diff --git a/test/resources/Mandates.spec.js b/test/resources/Mandates.spec.js index e3966f611a..f528bf03e0 100644 --- a/test/resources/Mandates.spec.js +++ b/test/resources/Mandates.spec.js @@ -12,7 +12,7 @@ describe('Mandate Resource', () => { expect(stripe.LAST_REQUEST).to.deep.equal({ method: 'GET', url: `/v1/mandates/${MANDATE_TEST_ID}`, - data: {}, + data: null, headers: {}, settings: {}, }); diff --git a/test/resources/PaymentIntents.spec.js b/test/resources/PaymentIntents.spec.js index 019fb89695..b22e66591e 100644 --- a/test/resources/PaymentIntents.spec.js +++ b/test/resources/PaymentIntents.spec.js @@ -31,7 +31,7 @@ describe('Payment Intents Resource', () => { method: 'GET', url: '/v1/payment_intents', headers: {}, - data: {}, + data: null, settings: {}, }); }); @@ -44,7 +44,7 @@ describe('Payment Intents Resource', () => { method: 'GET', url: `/v1/payment_intents/${PAYMENT_INTENT_TEST_ID}`, headers: {}, - data: {}, + data: null, settings: {}, }); }); diff --git a/test/resources/PaymentMethods.spec.js b/test/resources/PaymentMethods.spec.js index fb19c4bba7..3509f19535 100644 --- a/test/resources/PaymentMethods.spec.js +++ b/test/resources/PaymentMethods.spec.js @@ -11,7 +11,7 @@ describe('PaymentMethods Resource', () => { method: 'GET', url: '/v1/payment_methods/pm_123', headers: {}, - data: {}, + data: null, settings: {}, }); }); @@ -44,7 +44,7 @@ describe('PaymentMethods Resource', () => { method: 'GET', url: '/v1/payment_methods?customer=cus_123&type=card', headers: {}, - data: {}, + data: null, settings: {}, }); }); diff --git a/test/resources/Payouts.spec.js b/test/resources/Payouts.spec.js index 1344927a1e..d16131814d 100644 --- a/test/resources/Payouts.spec.js +++ b/test/resources/Payouts.spec.js @@ -13,7 +13,7 @@ describe('Payouts Resource', () => { method: 'GET', url: `/v1/payouts/${PAYOUT_TEST_ID}`, headers: {}, - data: {}, + data: null, settings: {}, }); }); @@ -70,7 +70,7 @@ describe('Payouts Resource', () => { method: 'GET', url: '/v1/payouts', headers: {}, - data: {}, + data: null, settings: {}, }); }); diff --git a/test/resources/Plans.spec.js b/test/resources/Plans.spec.js index 2f875a0ec9..0b8ee9eeb8 100644 --- a/test/resources/Plans.spec.js +++ b/test/resources/Plans.spec.js @@ -11,7 +11,7 @@ describe('Plans Resource', () => { method: 'GET', url: '/v1/plans/plan_123', headers: {}, - data: {}, + data: null, settings: {}, }); }); @@ -116,7 +116,7 @@ describe('Plans Resource', () => { method: 'DELETE', url: '/v1/plans/plan_123', headers: {}, - data: {}, + data: null, settings: {}, }); }); @@ -129,7 +129,7 @@ describe('Plans Resource', () => { method: 'GET', url: '/v1/plans', headers: {}, - data: {}, + data: null, settings: {}, }); }); diff --git a/test/resources/Prices.spec.js b/test/resources/Prices.spec.js index c0c299a1bf..11c8777058 100644 --- a/test/resources/Prices.spec.js +++ b/test/resources/Prices.spec.js @@ -11,7 +11,7 @@ describe('Plans Resource', () => { method: 'GET', url: '/v1/prices/price_123', headers: {}, - data: {}, + data: null, settings: {}, }); }); @@ -70,7 +70,7 @@ describe('Plans Resource', () => { method: 'GET', url: '/v1/prices', headers: {}, - data: {}, + data: null, settings: {}, }); }); diff --git a/test/resources/Products.spec.js b/test/resources/Products.spec.js index f372885309..e45b1a440a 100644 --- a/test/resources/Products.spec.js +++ b/test/resources/Products.spec.js @@ -10,7 +10,7 @@ describe('Product Resource', () => { expect(stripe.LAST_REQUEST).to.deep.equal({ method: 'GET', url: '/v1/products/productIdFoo123', - data: {}, + data: null, headers: {}, settings: {}, }); @@ -46,7 +46,7 @@ describe('Product Resource', () => { expect(stripe.LAST_REQUEST).to.deep.equal({ method: 'GET', url: '/v1/products?limit=3', - data: {}, + data: null, headers: {}, settings: {}, }); @@ -59,7 +59,7 @@ describe('Product Resource', () => { expect(stripe.LAST_REQUEST).to.deep.equal({ method: 'GET', url: '/v1/products?shippable=true', - data: {}, + data: null, headers: {}, settings: {}, }); @@ -86,7 +86,7 @@ describe('Product Resource', () => { method: 'DELETE', url: '/v1/products/productIdFoo3242', headers: {}, - data: {}, + data: null, settings: {}, }); }); diff --git a/test/resources/PromotionCodes.spec.js b/test/resources/PromotionCodes.spec.js index 7092b2f3e2..36cb3431e7 100644 --- a/test/resources/PromotionCodes.spec.js +++ b/test/resources/PromotionCodes.spec.js @@ -11,7 +11,7 @@ describe('PromotionCodes Resource', () => { method: 'GET', url: '/v1/promotion_codes/promo_123', headers: {}, - data: {}, + data: null, settings: {}, }); }); @@ -61,7 +61,7 @@ describe('PromotionCodes Resource', () => { method: 'GET', url: '/v1/promotion_codes', headers: {}, - data: {}, + data: null, settings: {}, }); }); diff --git a/test/resources/Quotes.spec.js b/test/resources/Quotes.spec.js index dcddac105a..769562d0d5 100644 --- a/test/resources/Quotes.spec.js +++ b/test/resources/Quotes.spec.js @@ -31,7 +31,7 @@ describe('Quotes Resource', () => { method: 'GET', url: '/v1/quotes', headers: {}, - data: {}, + data: null, settings: {}, }); }); @@ -44,7 +44,7 @@ describe('Quotes Resource', () => { method: 'GET', url: `/v1/quotes/${QUOTE_TEST_ID}`, headers: {}, - data: {}, + data: null, settings: {}, }); }); @@ -111,7 +111,7 @@ describe('Quotes Resource', () => { method: 'GET', url: `/v1/quotes/${QUOTE_TEST_ID}/line_items`, headers: {}, - data: {}, + data: null, settings: {}, }); }); @@ -124,7 +124,7 @@ describe('Quotes Resource', () => { method: 'GET', url: `/v1/quotes/${QUOTE_TEST_ID}/computed_upfront_line_items`, headers: {}, - data: {}, + data: null, settings: {}, }); }); diff --git a/test/resources/Radar/EarlyFraudWarnings.spec.js b/test/resources/Radar/EarlyFraudWarnings.spec.js index bff8fe7e96..3423cced26 100644 --- a/test/resources/Radar/EarlyFraudWarnings.spec.js +++ b/test/resources/Radar/EarlyFraudWarnings.spec.js @@ -11,7 +11,7 @@ describe('Radar', () => { expect(stripe.LAST_REQUEST).to.deep.equal({ method: 'GET', url: '/v1/radar/early_fraud_warnings/issfr_123', - data: {}, + data: null, headers: {}, settings: {}, }); @@ -24,7 +24,7 @@ describe('Radar', () => { expect(stripe.LAST_REQUEST).to.deep.equal({ method: 'GET', url: '/v1/radar/early_fraud_warnings', - data: {}, + data: null, headers: {}, settings: {}, }); diff --git a/test/resources/Radar/ValueListItems.spec.js b/test/resources/Radar/ValueListItems.spec.js index 08209ed30c..0316b4aa5f 100644 --- a/test/resources/Radar/ValueListItems.spec.js +++ b/test/resources/Radar/ValueListItems.spec.js @@ -14,7 +14,7 @@ describe('Radar', () => { method: 'GET', url: '/v1/radar/value_list_items/rsli_123', headers: {}, - data: {}, + data: null, settings: {}, }); }); @@ -48,7 +48,7 @@ describe('Radar', () => { method: 'GET', url: '/v1/radar/value_list_items?value_list=rsl_123', headers: {}, - data: {}, + data: null, settings: {}, }); }); @@ -61,7 +61,7 @@ describe('Radar', () => { method: 'DELETE', url: '/v1/radar/value_list_items/rsli_123', headers: {}, - data: {}, + data: null, settings: {}, }); }); diff --git a/test/resources/Radar/ValueLists.spec.js b/test/resources/Radar/ValueLists.spec.js index 65a0a6b92d..ca5f987258 100644 --- a/test/resources/Radar/ValueLists.spec.js +++ b/test/resources/Radar/ValueLists.spec.js @@ -14,7 +14,7 @@ describe('Radar', () => { method: 'GET', url: '/v1/radar/value_lists/rsl_123', headers: {}, - data: {}, + data: null, settings: {}, }); }); @@ -46,7 +46,7 @@ describe('Radar', () => { method: 'GET', url: '/v1/radar/value_lists', headers: {}, - data: {}, + data: null, settings: {}, }); }); @@ -59,7 +59,7 @@ describe('Radar', () => { method: 'DELETE', url: '/v1/radar/value_lists/rsl_123', headers: {}, - data: {}, + data: null, settings: {}, }); }); diff --git a/test/resources/Refunds.spec.js b/test/resources/Refunds.spec.js index 48cc85ead5..3e99e46318 100644 --- a/test/resources/Refunds.spec.js +++ b/test/resources/Refunds.spec.js @@ -30,7 +30,7 @@ describe('Refund Resource', () => { expect(stripe.LAST_REQUEST).to.deep.equal({ method: 'GET', url: '/v1/refunds/re_123', - data: {}, + data: null, headers: {}, settings: {}, }); @@ -43,7 +43,7 @@ describe('Refund Resource', () => { expect(stripe.LAST_REQUEST).to.deep.equal({ method: 'GET', url: '/v1/refunds', - data: {}, + data: null, headers: {}, settings: {}, }); diff --git a/test/resources/Reporting/ReportRuns.spec.js b/test/resources/Reporting/ReportRuns.spec.js index a12fb402a2..07a8bd9724 100644 --- a/test/resources/Reporting/ReportRuns.spec.js +++ b/test/resources/Reporting/ReportRuns.spec.js @@ -14,7 +14,7 @@ describe('Reporting', () => { method: 'GET', url: '/v1/reporting/report_runs/frr_123', headers: {}, - data: {}, + data: null, settings: {}, }); }); @@ -50,7 +50,7 @@ describe('Reporting', () => { method: 'GET', url: '/v1/reporting/report_runs', headers: {}, - data: {}, + data: null, settings: {}, }); }); diff --git a/test/resources/Reporting/ReportTypes.spec.js b/test/resources/Reporting/ReportTypes.spec.js index b0e436cddd..673b61f586 100644 --- a/test/resources/Reporting/ReportTypes.spec.js +++ b/test/resources/Reporting/ReportTypes.spec.js @@ -14,7 +14,7 @@ describe('Reporting', () => { method: 'GET', url: '/v1/reporting/report_types/activity.summary.1', headers: {}, - data: {}, + data: null, settings: {}, }); }); @@ -27,7 +27,7 @@ describe('Reporting', () => { method: 'GET', url: '/v1/reporting/report_types', headers: {}, - data: {}, + data: null, settings: {}, }); }); diff --git a/test/resources/Reviews.spec.js b/test/resources/Reviews.spec.js index 212c06c73d..c4c571c564 100644 --- a/test/resources/Reviews.spec.js +++ b/test/resources/Reviews.spec.js @@ -10,7 +10,7 @@ describe('Review Resource', () => { expect(stripe.LAST_REQUEST).to.deep.equal({ method: 'GET', url: '/v1/reviews/prv_123', - data: {}, + data: null, headers: {}, settings: {}, }); @@ -23,7 +23,7 @@ describe('Review Resource', () => { expect(stripe.LAST_REQUEST).to.deep.equal({ method: 'GET', url: '/v1/reviews', - data: {}, + data: null, headers: {}, settings: {}, }); diff --git a/test/resources/SetupAttempts.spec.js b/test/resources/SetupAttempts.spec.js index 89b80d1793..7a89cd7c98 100644 --- a/test/resources/SetupAttempts.spec.js +++ b/test/resources/SetupAttempts.spec.js @@ -11,7 +11,7 @@ describe('Setup Attempts Resource', () => { method: 'GET', url: '/v1/setup_attempts?setup_intent=si_123', headers: {}, - data: {}, + data: null, settings: {}, }); }); diff --git a/test/resources/SetupIntents.spec.js b/test/resources/SetupIntents.spec.js index a8296776c9..e52b2f3969 100644 --- a/test/resources/SetupIntents.spec.js +++ b/test/resources/SetupIntents.spec.js @@ -29,7 +29,7 @@ describe('Setup Intents Resource', () => { method: 'GET', url: '/v1/setup_intents', headers: {}, - data: {}, + data: null, settings: {}, }); }); @@ -42,7 +42,7 @@ describe('Setup Intents Resource', () => { method: 'GET', url: `/v1/setup_intents/${SETUP_INTENT_TEST_ID}`, headers: {}, - data: {}, + data: null, settings: {}, }); }); diff --git a/test/resources/Sigma/ScheduledQueryRuns.spec.js b/test/resources/Sigma/ScheduledQueryRuns.spec.js index d9861e4aa3..a8c4802fa9 100644 --- a/test/resources/Sigma/ScheduledQueryRuns.spec.js +++ b/test/resources/Sigma/ScheduledQueryRuns.spec.js @@ -11,7 +11,7 @@ describe('Sigma', () => { expect(stripe.LAST_REQUEST).to.deep.equal({ method: 'GET', url: '/v1/sigma/scheduled_query_runs/sqr_123', - data: {}, + data: null, headers: {}, settings: {}, }); @@ -24,7 +24,7 @@ describe('Sigma', () => { expect(stripe.LAST_REQUEST).to.deep.equal({ method: 'GET', url: '/v1/sigma/scheduled_query_runs', - data: {}, + data: null, headers: {}, settings: {}, }); diff --git a/test/resources/Sources.spec.js b/test/resources/Sources.spec.js index 916db34bf5..8527650bd5 100644 --- a/test/resources/Sources.spec.js +++ b/test/resources/Sources.spec.js @@ -11,7 +11,7 @@ describe('Sources Resource', () => { method: 'GET', url: '/v1/sources/sourceId1', headers: {}, - data: {}, + data: null, settings: {}, }); }); @@ -70,7 +70,7 @@ describe('Sources Resource', () => { method: 'GET', url: '/v1/sources/src_foo/source_transactions', headers: {}, - data: {}, + data: null, settings: {}, }); }); diff --git a/test/resources/SubscriptionItems.spec.js b/test/resources/SubscriptionItems.spec.js index 92fe6db5b7..d6bfa3f817 100644 --- a/test/resources/SubscriptionItems.spec.js +++ b/test/resources/SubscriptionItems.spec.js @@ -11,7 +11,7 @@ describe('SubscriptionItems Resource', () => { method: 'GET', url: '/v1/subscription_items/test_sub_item', headers: {}, - data: {}, + data: null, settings: {}, }); }); @@ -24,7 +24,7 @@ describe('SubscriptionItems Resource', () => { method: 'DELETE', url: '/v1/subscription_items/test_sub_item', headers: {}, - data: {}, + data: null, settings: {}, }); }); @@ -77,7 +77,7 @@ describe('SubscriptionItems Resource', () => { method: 'GET', url: '/v1/subscription_items?limit=3&subscription=test_sub', headers: {}, - data: {}, + data: null, settings: {}, }); }); @@ -109,7 +109,7 @@ describe('SubscriptionItems Resource', () => { method: 'GET', url: '/v1/subscription_items/si_123/usage_record_summaries', headers: {}, - data: {}, + data: null, settings: {}, }); }); diff --git a/test/resources/SubscriptionSchedule.spec.js b/test/resources/SubscriptionSchedule.spec.js index fcaf9afc8e..831431ad03 100644 --- a/test/resources/SubscriptionSchedule.spec.js +++ b/test/resources/SubscriptionSchedule.spec.js @@ -44,7 +44,7 @@ describe('Subscription Schedule Resource', () => { expect(stripe.LAST_REQUEST).to.deep.equal({ method: 'GET', url: '/v1/subscription_schedules', - data: {}, + data: null, headers: {}, settings: {}, }); @@ -73,7 +73,7 @@ describe('Subscription Schedule Resource', () => { expect(stripe.LAST_REQUEST).to.deep.equal({ method: 'GET', url: '/v1/subscription_schedules/sub_sched_123', - data: {}, + data: null, headers: {}, settings: {}, }); diff --git a/test/resources/Subscriptions.spec.js b/test/resources/Subscriptions.spec.js index d43cccc022..e0be6bb232 100644 --- a/test/resources/Subscriptions.spec.js +++ b/test/resources/Subscriptions.spec.js @@ -11,7 +11,7 @@ describe('subscriptions Resource', () => { method: 'GET', url: '/v1/subscriptions/test_sub', headers: {}, - data: {}, + data: null, settings: {}, }); }); @@ -175,7 +175,7 @@ describe('subscriptions Resource', () => { method: 'GET', url: '/v1/subscriptions?limit=3&customer=test_cus&plan=gold', headers: {}, - data: {}, + data: null, settings: {}, }); }); @@ -189,7 +189,7 @@ describe('subscriptions Resource', () => { method: 'DELETE', url: '/v1/subscriptions/test_sub/discount', headers: {}, - data: {}, + data: null, settings: {}, }); }); diff --git a/test/resources/TaxCodes.spec.js b/test/resources/TaxCodes.spec.js index a7f3dca270..1ee5980d91 100644 --- a/test/resources/TaxCodes.spec.js +++ b/test/resources/TaxCodes.spec.js @@ -11,7 +11,7 @@ describe('TaxCodes Resource', () => { method: 'GET', url: '/v1/tax_codes/txcd_123', headers: {}, - data: {}, + data: null, settings: {}, }); }); @@ -24,7 +24,7 @@ describe('TaxCodes Resource', () => { method: 'GET', url: '/v1/tax_codes', headers: {}, - data: {}, + data: null, settings: {}, }); }); diff --git a/test/resources/TaxRates.spec.js b/test/resources/TaxRates.spec.js index af98e1756a..6dcd33bdab 100644 --- a/test/resources/TaxRates.spec.js +++ b/test/resources/TaxRates.spec.js @@ -11,7 +11,7 @@ describe('TaxRates Resource', () => { method: 'GET', url: '/v1/tax_rates/txr_123', headers: {}, - data: {}, + data: null, settings: {}, }); }); @@ -59,7 +59,7 @@ describe('TaxRates Resource', () => { method: 'GET', url: '/v1/tax_rates', headers: {}, - data: {}, + data: null, settings: {}, }); }); diff --git a/test/resources/Terminal/Locations.spec.js b/test/resources/Terminal/Locations.spec.js index dbb3b1c785..f7e0c446ee 100644 --- a/test/resources/Terminal/Locations.spec.js +++ b/test/resources/Terminal/Locations.spec.js @@ -14,7 +14,7 @@ describe('Terminal', () => { method: 'GET', url: '/v1/terminal/locations/loc_123', headers: {}, - data: {}, + data: null, settings: {}, }); }); @@ -58,7 +58,7 @@ describe('Terminal', () => { method: 'DELETE', url: '/v1/terminal/locations/loc_123', headers: {}, - data: {}, + data: null, settings: {}, }); }); @@ -88,7 +88,7 @@ describe('Terminal', () => { method: 'GET', url: '/v1/terminal/locations', headers: {}, - data: {}, + data: null, settings: {}, }); }); diff --git a/test/resources/Terminal/Readers.spec.js b/test/resources/Terminal/Readers.spec.js index 086de593fc..c430349d93 100644 --- a/test/resources/Terminal/Readers.spec.js +++ b/test/resources/Terminal/Readers.spec.js @@ -14,7 +14,7 @@ describe('Terminal', () => { method: 'GET', url: '/v1/terminal/readers/rdr_123', headers: {}, - data: {}, + data: null, settings: {}, }); }); @@ -46,7 +46,7 @@ describe('Terminal', () => { method: 'DELETE', url: '/v1/terminal/readers/rdr_123', headers: {}, - data: {}, + data: null, settings: {}, }); }); @@ -76,7 +76,7 @@ describe('Terminal', () => { method: 'GET', url: '/v1/terminal/readers', headers: {}, - data: {}, + data: null, settings: {}, }); }); diff --git a/test/resources/Tokens.spec.js b/test/resources/Tokens.spec.js index bf2a2cd8c7..20119905e6 100644 --- a/test/resources/Tokens.spec.js +++ b/test/resources/Tokens.spec.js @@ -26,7 +26,7 @@ describe('Tokens Resource', () => { method: 'GET', url: '/v1/tokens/tokenId1', headers: {}, - data: {}, + data: null, settings: {}, }); }); diff --git a/test/resources/Topups.spec.js b/test/resources/Topups.spec.js index fa8f8fb629..d1b2df64ab 100644 --- a/test/resources/Topups.spec.js +++ b/test/resources/Topups.spec.js @@ -10,7 +10,7 @@ describe('Topup Resource', () => { expect(stripe.LAST_REQUEST).to.deep.equal({ method: 'GET', url: '/v1/topups/tu_123', - data: {}, + data: null, headers: {}, settings: {}, }); @@ -48,7 +48,7 @@ describe('Topup Resource', () => { expect(stripe.LAST_REQUEST).to.deep.equal({ method: 'GET', url: '/v1/topups', - data: {}, + data: null, headers: {}, settings: {}, }); diff --git a/test/resources/Transfers.spec.js b/test/resources/Transfers.spec.js index 1372c2e996..cb5f936bfb 100644 --- a/test/resources/Transfers.spec.js +++ b/test/resources/Transfers.spec.js @@ -11,7 +11,7 @@ describe('Transfers Resource', () => { method: 'GET', url: '/v1/transfers/transferId1', headers: {}, - data: {}, + data: null, settings: {}, }); }); @@ -56,7 +56,7 @@ describe('Transfers Resource', () => { method: 'GET', url: '/v1/transfers', headers: {}, - data: {}, + data: null, settings: {}, }); }); diff --git a/test/resources/WebhookEndpoints.spec.js b/test/resources/WebhookEndpoints.spec.js index 6ed38bd327..8bd01cf850 100644 --- a/test/resources/WebhookEndpoints.spec.js +++ b/test/resources/WebhookEndpoints.spec.js @@ -11,7 +11,7 @@ describe('WebhookEndpoints Resource', () => { method: 'GET', url: '/v1/webhook_endpoints/we_123', headers: {}, - data: {}, + data: null, settings: {}, }); }); @@ -24,7 +24,7 @@ describe('WebhookEndpoints Resource', () => { method: 'DELETE', url: '/v1/webhook_endpoints/we_123', headers: {}, - data: {}, + data: null, settings: {}, }); }); @@ -74,7 +74,7 @@ describe('WebhookEndpoints Resource', () => { method: 'GET', url: '/v1/webhook_endpoints', headers: {}, - data: {}, + data: null, settings: {}, }); });