diff --git a/init.php b/init.php index 356c8f5e3..081d233b1 100644 --- a/init.php +++ b/init.php @@ -77,6 +77,7 @@ require(dirname(__FILE__) . '/lib/FileUpload.php'); require(dirname(__FILE__) . '/lib/Invoice.php'); require(dirname(__FILE__) . '/lib/InvoiceItem.php'); +require(dirname(__FILE__) . '/lib/IssuerFraudRecord.php'); require(dirname(__FILE__) . '/lib/LoginLink.php'); require(dirname(__FILE__) . '/lib/Order.php'); require(dirname(__FILE__) . '/lib/OrderReturn.php'); diff --git a/lib/IssuerFraudRecord.php b/lib/IssuerFraudRecord.php new file mode 100644 index 000000000..20af4203c --- /dev/null +++ b/lib/IssuerFraudRecord.php @@ -0,0 +1,27 @@ + 'Stripe\\FileUpload', 'invoice' => 'Stripe\\Invoice', 'invoiceitem' => 'Stripe\\InvoiceItem', + 'issuer_fraud_record' => 'Stripe\\IssuerFraudRecord', 'login_link' => 'Stripe\\LoginLink', 'order' => 'Stripe\\Order', 'order_return' => 'Stripe\\OrderReturn', diff --git a/tests/Stripe/IssuerFraudRecordTest.php b/tests/Stripe/IssuerFraudRecordTest.php new file mode 100644 index 000000000..1869248a1 --- /dev/null +++ b/tests/Stripe/IssuerFraudRecordTest.php @@ -0,0 +1,29 @@ +expectsRequest( + 'get', + '/v1/issuer_fraud_records' + ); + $resources = IssuerFraudRecord::all(); + $this->assertTrue(is_array($resources->data)); + $this->assertInstanceOf("Stripe\\IssuerFraudRecord", $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", $resource); + } +}