Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add default glas to Business Entities #794

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading