-
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.
Merge pull request #164 from Flambe/master
- Loading branch information
Showing
6 changed files
with
53 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
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,25 @@ | ||
HTTP/1.1 200 OK | ||
Content-Type: application/xml; charset=utf-8 | ||
Location: https://api.recurly.com/v2/coupons/special/redemptions | ||
|
||
<?xml version="1.0" encoding="UTF-8"?> | ||
<redemptions type="array"> | ||
<redemption href="https://api.recurly.com/v2/accounts/with_address/redemption"> | ||
<coupon href="https://api.recurly.com/v2/coupons/special"/> | ||
<account href="https://api.recurly.com/v2/accounts/abcdef1234567890"/> | ||
<single_use type="boolean">false</single_use> | ||
<total_discounted_in_cents type="integer">0</total_discounted_in_cents> | ||
<currency>USD</currency> | ||
<state>active</state> | ||
<created_at type="datetime">2014-01-06T19:06:35Z</created_at> | ||
</redemption> | ||
<redemption href="https://api.recurly.com/v2/accounts/with_address/redemption"> | ||
<coupon href="https://api.recurly.com/v2/coupons/special"/> | ||
<account href="https://api.recurly.com/v2/accounts/1234567890abcdef"/> | ||
<single_use type="boolean">false</single_use> | ||
<total_discounted_in_cents type="integer">1238</total_discounted_in_cents> | ||
<currency>USD</currency> | ||
<state>active</state> | ||
<created_at type="datetime">2014-01-14T13:27:53Z</created_at> | ||
</redemption> | ||
</redemptions> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?php | ||
|
||
class Recurly_CouponRedemptionList extends Recurly_Pager | ||
{ | ||
public static function get($params = null, $client = null) | ||
{ | ||
$list = new Recurly_CouponRedemptionList(Recurly_Client::PATH_COUPON_REDEMPTIONS, $client); | ||
$list->_loadFrom(Recurly_Client::PATH_COUPON_REDEMPTIONS, $params); | ||
return $list; | ||
} | ||
|
||
protected function getNodeName() { | ||
return 'redemptions'; | ||
} | ||
} |