Skip to content

Commit

Permalink
Merge pull request #794 from recurly/add_rev_rec_to_business_entities
Browse files Browse the repository at this point in the history
Add default glas to Business Entities
  • Loading branch information
wsethbrown authored Feb 12, 2024
2 parents 96c9ec1 + 86e4060 commit c84be16
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Tests/Recurly/BusinessEntity_List_Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,7 @@ public function testGetAll() {
$this->assertEquals(2, count($subscriber_location_countries));
$this->assertInstanceOf('Recurly_SubscriberLocationCountry', $subscriber_location_countries[0]);
$this->assertInstanceOf('Recurly_SubscriberLocationCountry', $subscriber_location_countries[1]);
$this->assertEquals($business_entity->default_liability_gl_account_id, '12345');
$this->assertEquals($business_entity->default_revenue_gl_account_id, '56789');
}
}
2 changes: 2 additions & 0 deletions Tests/Recurly/BusinessEntity_Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,7 @@ public function testGetBusinessEntity() {
$this->assertEquals(2, count($subscriber_location_countries));
$this->assertInstanceOf('Recurly_SubscriberLocationCountry', $subscriber_location_countries[0]);
$this->assertInstanceOf('Recurly_SubscriberLocationCountry', $subscriber_location_countries[1]);
$this->assertEquals($business_entity->default_liability_gl_account_id, '12345');
$this->assertEquals($business_entity->default_revenue_gl_account_id, '56789');
}
}
2 changes: 2 additions & 0 deletions Tests/fixtures/business_entities/index-200.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ Content-Type: application/xml; charset=utf-8
</subscriber_location_countries>
<default_vat_number>1234</default_vat_number>
<default_registration_number>5678</default_registration_number>
<default_liability_gl_account_id>12345</default_liability_gl_account_id>
<default_revenue_gl_account_id>56789</default_revenue_gl_account_id>
<created_at type="datetime">2023-05-04T17:45:43Z</created_at>
<updated_at type="datetime">2023-05-04T17:45:43Z</updated_at>
</business_entity>
Expand Down
2 changes: 2 additions & 0 deletions Tests/fixtures/business_entities/show-200.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ Content-Type: application/xml; charset=utf-8
</subscriber_location_countries>
<default_vat_number>1234</default_vat_number>
<default_registration_number>5678</default_registration_number>
<default_liability_gl_account_id>12345</default_liability_gl_account_id>
<default_revenue_gl_account_id>56789</default_revenue_gl_account_id>
<created_at type="datetime">2023-05-04T17:45:43Z</created_at>
<updated_at type="datetime">2023-05-04T17:45:43Z</updated_at>
</business_entity>
2 changes: 2 additions & 0 deletions lib/recurly/business_entity.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
* @property string $id
* @property string $code
* @property string $name
* @property string $default_revenue_gl_account_id
* @property string $default_liability_gl_account_id
* @property Recurly_Address $invoice_display_address The nested invoice address information of the business entity: address1, address2, city, state, zip, country, phone.
* @property Recurly_Address $tax_address The nested tax address information of the business entity: address1, address2, city, state, zip, country, phone.
* @property Recurly_SubscriberLocationCountry[] $subscriber_location_countries
Expand Down

0 comments on commit c84be16

Please sign in to comment.