From c2b28196200b3b01571c16ac4a728e3d09c3ea93 Mon Sep 17 00:00:00 2001 From: Toan Nguyen Date: Tue, 17 Dec 2024 09:36:02 +0700 Subject: [PATCH] fix unit tests --- .../expected.json | 38 +------------------ .../request.json | 10 +---- .../GetBillingCreditGrants/expected.json | 13 +------ .../query/GetBillingCreditGrants/request.json | 14 +------ 4 files changed, 5 insertions(+), 70 deletions(-) diff --git a/testdata/mock/query/GetBillingCreditBalanceTransactions/expected.json b/testdata/mock/query/GetBillingCreditBalanceTransactions/expected.json index 8d9df41..9c8fbef 100644 --- a/testdata/mock/query/GetBillingCreditBalanceTransactions/expected.json +++ b/testdata/mock/query/GetBillingCreditBalanceTransactions/expected.json @@ -7,44 +7,8 @@ { "created": 1028554472, "credit": null, - "credit_grant": { - "amount": { - "monetary": null, - "type": "monetary" - }, - "applicability_config": { - "scope": { - "price_type": "metered" - } - }, - "category": "paid", - "created": 1028554472, - "customer": { - "created": 1028554472, - "default_source": null, - "description": null, - "email": null, - "id": "If0SFBpGVu", - "livemode": true, - "object": "customer", - "shipping": null - }, - "effective_at": null, - "expires_at": null, - "id": "If0SFBpGVu", - "livemode": true, - "metadata": { - "undefined": "metadata" - }, - "name": null, - "object": "billing.credit_grant", - "test_clock": null, - "updated": 234430277, - "voided_at": null - }, "debit": null, "effective_at": 247108043, - "id": "obj_123", "livemode": true, "object": "billing.credit_balance_transaction", "test_clock": null, @@ -58,4 +22,4 @@ } ] } -] \ No newline at end of file +] diff --git a/testdata/mock/query/GetBillingCreditBalanceTransactions/request.json b/testdata/mock/query/GetBillingCreditBalanceTransactions/request.json index e431dd9..2b6779a 100644 --- a/testdata/mock/query/GetBillingCreditBalanceTransactions/request.json +++ b/testdata/mock/query/GetBillingCreditBalanceTransactions/request.json @@ -102,10 +102,6 @@ }, "type": "column" }, - "credit_grant": { - "column": "credit_grant", - "type": "column" - }, "debit": { "column": "debit", "fields": { @@ -170,10 +166,6 @@ "column": "effective_at", "type": "column" }, - "id": { - "column": "id", - "type": "column" - }, "livemode": { "column": "livemode", "type": "column" @@ -216,4 +208,4 @@ } } } -} \ No newline at end of file +} diff --git a/testdata/mock/query/GetBillingCreditGrants/expected.json b/testdata/mock/query/GetBillingCreditGrants/expected.json index 7e651fa..a98c5de 100644 --- a/testdata/mock/query/GetBillingCreditGrants/expected.json +++ b/testdata/mock/query/GetBillingCreditGrants/expected.json @@ -16,19 +16,8 @@ }, "category": "paid", "created": 1028554472, - "customer": { - "created": 1028554472, - "default_source": null, - "description": null, - "email": null, - "id": "VDgArzo7mA", - "livemode": true, - "object": "customer", - "shipping": null - }, "effective_at": null, "expires_at": null, - "id": "obj_123", "livemode": true, "metadata": { "undefined": "metadata" @@ -47,4 +36,4 @@ } ] } -] \ No newline at end of file +] diff --git a/testdata/mock/query/GetBillingCreditGrants/request.json b/testdata/mock/query/GetBillingCreditGrants/request.json index 0cd356e..94eed53 100644 --- a/testdata/mock/query/GetBillingCreditGrants/request.json +++ b/testdata/mock/query/GetBillingCreditGrants/request.json @@ -10,9 +10,7 @@ }, "expand": { "type": "literal", - "value": [ - "CHJYcI1Tyh" - ] + "value": ["CHJYcI1Tyh"] }, "limit": { "type": "literal", @@ -96,10 +94,6 @@ "column": "created", "type": "column" }, - "customer": { - "column": "customer", - "type": "column" - }, "effective_at": { "column": "effective_at", "type": "column" @@ -108,10 +102,6 @@ "column": "expires_at", "type": "column" }, - "id": { - "column": "id", - "type": "column" - }, "livemode": { "column": "livemode", "type": "column" @@ -166,4 +156,4 @@ } } } -} \ No newline at end of file +}