-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add revrec attributes to items and giftcards
- Loading branch information
Showing
6 changed files
with
124 additions
and
2 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
HTTP/1.1 200 OK | ||
Content-Type: application/xml; charset=utf-8 | ||
|
||
<?xml version="1.0" encoding="UTF-8"?> | ||
<gift_card href="https://api.recurly.com/v2/gift_cards/1988596967980562362"> | ||
<gifter_account href="https://api.recurly.com/v2/accounts/myaccount" /> | ||
<invoice href="https://api.recurly.com/v2/invoices/1000" /> | ||
<recipient_account href="https://api.recurly.com/v2/accounts/myaccount" /> | ||
<id type="integer">1988596967980562362</id> | ||
<redemption_code>AI4VOVO1RC74H9E2</redemption_code> | ||
<product_code>gift_card</product_code> | ||
<unit_amount_in_cents type="integer">2000</unit_amount_in_cents> | ||
<currency>USD</currency> | ||
<balance_in_cents type="integer">2000</balance_in_cents> | ||
<delivery> | ||
<method>email</method> | ||
<deliver_at nil="nil"></deliver_at> | ||
<email_address>[email protected]</email_address> | ||
<first_name>John</first_name> | ||
<last_name>Smith</last_name> | ||
<address> | ||
<address1></address1> | ||
<address2></address2> | ||
<city></city> | ||
<state></state> | ||
<zip></zip> | ||
<country></country> | ||
<phone nil="nil"></phone> | ||
</address> | ||
<gifter_name>Sally</gifter_name> | ||
<personal_message>Hi John, Happy Birthday! I hope you have a great day! Love, Sally</personal_message> | ||
</delivery> | ||
<liability_gl_account_id>t5ejtge1xw0x</liability_gl_account_id> | ||
<revenue_gl_account_id>t5ejtgf1vxh1</revenue_gl_account_id> | ||
<performance_obligation_id>4</performance_obligation_id> | ||
<created_at type="datetime">2016-04-15T07:00:00Z</created_at> | ||
<updated_at type="datetime">2016-12-27T07:00:00Z</updated_at> | ||
<delivered_at type="datetime">2016-12-25T07:00:05Z</delivered_at> | ||
<redeemed_at type="datetime">2016-12-27T07:00:00Z</redeemed_at> | ||
<canceled_at nil="nil"></canceled_at> | ||
</gift_card> |
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,27 @@ | ||
HTTP/1.1 200 OK | ||
Content-Type: application/xml; charset=utf-8 | ||
|
||
<?xml version="1.0" encoding="UTF-8"?> | ||
<item href="https://api.recurly.com/v2/items/plastic_gloves"> | ||
<item_code>plastic_gloves</item_code> | ||
<name>Awesome Plastic Gloves</name> | ||
<description>Sleek Plastic</description> | ||
<external_sku>awesome-plastic-gloves</external_sku> | ||
<accounting_code>1569273944</accounting_code> | ||
<revenue_schedule_type>never</revenue_schedule_type> | ||
<tax_exempt type="boolean">true</tax_exempt> | ||
<tax_code nil="nil"/> | ||
<state>active</state> | ||
<custom_fields type="array"> | ||
<custom_field> | ||
<name>color</name> | ||
<value>blue</value> | ||
</custom_field> | ||
</custom_fields> | ||
<liability_gl_account_id>t5ejtge1xw0x</liability_gl_account_id> | ||
<revenue_gl_account_id>t5ejtgf1vxh1</revenue_gl_account_id> | ||
<performance_obligation_id>5</performance_obligation_id> | ||
<created_at type="datetime">2019-09-23T21:25:45Z</created_at> | ||
<updated_at type="datetime">2019-09-23T21:25:45Z</updated_at> | ||
<deleted_at nil="nil"/> | ||
</item> |
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