-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #696 from recurly/add-taxable-address-sources
add taxable address sources to business entity and adjustment
- Loading branch information
Showing
6 changed files
with
80 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
54 changes: 54 additions & 0 deletions
54
tests/fixtures/adjustment/charged-with-taxable-address-sources.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
POST https://api.recurly.com/v2/accounts/chargemock/adjustments HTTP/1.1 | ||
X-Api-Version: {api-version} | ||
Accept: application/xml | ||
Authorization: Basic YXBpa2V5Og== | ||
User-Agent: {user-agent} | ||
Content-Type: application/xml; charset=utf-8 | ||
|
||
<?xml version="1.0" encoding="UTF-8"?> | ||
<adjustment type="charge"> | ||
<currency>USD</currency> | ||
<description>test charge</description> | ||
<destination_tax_address_source>destination</destination_tax_address_source> | ||
<origin_tax_address_source>origin</origin_tax_address_source> | ||
<unit_amount_in_cents type="integer">1000</unit_amount_in_cents> | ||
</adjustment> | ||
HTTP/1.1 201 Created | ||
Content-Type: application/xml; charset=utf-8 | ||
Location: https://api.recurly.com/v2/adjustments/6f56942e01241200964cb6425c85b9d4 | ||
|
||
<?xml version="1.0" encoding="UTF-8"?> | ||
<adjustment href="https://api.recurly.com/v2/adjustments/6f56942e01241200964cb6425c85b9d4" type="charge"> | ||
<account href="https://api.recurly.com/v2/accounts/chargemock"/> | ||
<bill_for_account href="https://api.recurly.com/v2/accounts/chargemock"/> | ||
<item_code nil="nil"></item_code> | ||
<external_sku nil="nil"></external_sku> | ||
<credit_adjustments href="https://api.recurly.com/v2/adjustments/6f56942e01241200964cb6425c85b9d4/credit_adjustments"/> | ||
<refundable_total_in_cents type="integer">0</refundable_total_in_cents> | ||
<uuid>6f56942e01241200964cb6425c85b9d4</uuid> | ||
<state>pending</state> | ||
<description>test charge</description> | ||
<accounting_code nil="nil"></accounting_code> | ||
<product_code nil="nil"></product_code> | ||
<origin>debit</origin> | ||
<unit_amount_in_cents type="integer">1000</unit_amount_in_cents> | ||
<quantity type="integer">1</quantity> | ||
<discount_in_cents type="integer">0</discount_in_cents> | ||
<tax_in_cents type="integer">0</tax_in_cents> | ||
<total_in_cents type="integer">1000</total_in_cents> | ||
<tax_inclusive type="boolean">false</tax_inclusive> | ||
<currency>USD</currency> | ||
<proration_rate nil="nil"></proration_rate> | ||
<tax_exempt type="boolean">false</tax_exempt> | ||
<tax_code nil="nil"></tax_code> | ||
<start_date type="datetime">2024-02-26T23:38:41Z</start_date> | ||
<end_date nil="nil"></end_date> | ||
<created_at type="datetime">2024-02-26T23:38:42Z</created_at> | ||
<updated_at type="datetime">2024-02-26T23:38:42Z</updated_at> | ||
<revenue_schedule_type></revenue_schedule_type> | ||
<custom_fields type="array"> | ||
</custom_fields> | ||
<origin_tax_address_source>origin</origin_tax_address_source> | ||
<destination_tax_address_source>destination</destination_tax_address_source> | ||
</adjustment> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters