From 7e6587299b73325a4513645aea120ece163144d2 Mon Sep 17 00:00:00 2001 From: Olivier Bellone Date: Fri, 16 Aug 2019 10:26:31 -0700 Subject: [PATCH] Remove IssuerFraudRecord --- init.php | 1 - lib/IssuerFraudRecord.php | 24 --------------------- lib/Util/Util.php | 1 - tests/Stripe/IssuerFraudRecordTest.php | 29 -------------------------- 4 files changed, 55 deletions(-) delete mode 100644 lib/IssuerFraudRecord.php delete mode 100644 tests/Stripe/IssuerFraudRecordTest.php diff --git a/init.php b/init.php index bf409c73b5..aaca08f3de 100644 --- a/init.php +++ b/init.php @@ -87,7 +87,6 @@ require(dirname(__FILE__) . '/lib/Invoice.php'); require(dirname(__FILE__) . '/lib/InvoiceItem.php'); require(dirname(__FILE__) . '/lib/InvoiceLineItem.php'); -require(dirname(__FILE__) . '/lib/IssuerFraudRecord.php'); require(dirname(__FILE__) . '/lib/Issuing/Authorization.php'); require(dirname(__FILE__) . '/lib/Issuing/Card.php'); require(dirname(__FILE__) . '/lib/Issuing/CardDetails.php'); diff --git a/lib/IssuerFraudRecord.php b/lib/IssuerFraudRecord.php deleted file mode 100644 index 805dc50288..0000000000 --- a/lib/IssuerFraudRecord.php +++ /dev/null @@ -1,24 +0,0 @@ - \Stripe\Invoice::class, \Stripe\InvoiceItem::OBJECT_NAME => \Stripe\InvoiceItem::class, \Stripe\InvoiceLineItem::OBJECT_NAME => \Stripe\InvoiceLineItem::class, - \Stripe\IssuerFraudRecord::OBJECT_NAME => \Stripe\IssuerFraudRecord::class, \Stripe\Issuing\Authorization::OBJECT_NAME => \Stripe\Issuing\Authorization::class, \Stripe\Issuing\Card::OBJECT_NAME => \Stripe\Issuing\Card::class, \Stripe\Issuing\CardDetails::OBJECT_NAME => \Stripe\Issuing\CardDetails::class, diff --git a/tests/Stripe/IssuerFraudRecordTest.php b/tests/Stripe/IssuerFraudRecordTest.php deleted file mode 100644 index 5bcaec7455..0000000000 --- a/tests/Stripe/IssuerFraudRecordTest.php +++ /dev/null @@ -1,29 +0,0 @@ -expectsRequest( - 'get', - '/v1/issuer_fraud_records' - ); - $resources = IssuerFraudRecord::all(); - $this->assertTrue(is_array($resources->data)); - $this->assertInstanceOf(\Stripe\IssuerFraudRecord::class, $resources->data[0]); - } - - public function testIsRetrievable() - { - $this->expectsRequest( - 'get', - '/v1/issuer_fraud_records/' . self::TEST_RESOURCE_ID - ); - $resource = IssuerFraudRecord::retrieve(self::TEST_RESOURCE_ID); - $this->assertInstanceOf(\Stripe\IssuerFraudRecord::class, $resource); - } -}