Skip to content

Commit

Permalink
Merge pull request #492 from recurly/v3-v2019-10-10
Browse files Browse the repository at this point in the history
Tue Apr 14 20:57:43 UTC 2020 Upgrade API version v2019-10-10
  • Loading branch information
bhelx authored Apr 20, 2020
2 parents 9fa6406 + 7eb9252 commit ce68cfd
Show file tree
Hide file tree
Showing 5 changed files with 4,098 additions and 3,732 deletions.
49 changes: 49 additions & 0 deletions lib/recurly/resources/add_on.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,13 @@ class AddOn extends RecurlyResource
private $_revenue_schedule_type;
private $_state;
private $_tax_code;
private $_tier_type;
private $_tiers;
private $_updated_at;

protected static $array_hints = array(
'setCurrencies' => '\Recurly\Resources\AddOnPricing',
'setTiers' => '\Recurly\Resources\Tier',
);


Expand Down Expand Up @@ -427,6 +430,52 @@ public function setTaxCode(string $tax_code): void
$this->_tax_code = $tax_code;
}

/**
* Getter method for the tier_type attribute.
* The type of tiering used by the Add-on.
*
* @return string
*/
public function getTierType(): string
{
return $this->_tier_type;
}

/**
* Setter method for the tier_type attribute.
*
* @param string $tier_type
*
* @return void
*/
public function setTierType(string $tier_type): void
{
$this->_tier_type = $tier_type;
}

/**
* Getter method for the tiers attribute.
* Tiers
*
* @return array
*/
public function getTiers(): array
{
return $this->_tiers;
}

/**
* Setter method for the tiers attribute.
*
* @param array $tiers
*
* @return void
*/
public function setTiers(array $tiers): void
{
$this->_tiers = $tiers;
}

/**
* Getter method for the updated_at attribute.
* Last updated at
Expand Down
49 changes: 49 additions & 0 deletions lib/recurly/resources/subscription_add_on.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,13 @@ class SubscriptionAddOn extends RecurlyResource
private $_object;
private $_quantity;
private $_subscription_id;
private $_tier_type;
private $_tiers;
private $_unit_amount;
private $_updated_at;

protected static $array_hints = array(
'setTiers' => '\Recurly\Resources\SubscriptionAddOnTier',
);


Expand Down Expand Up @@ -187,6 +190,52 @@ public function setSubscriptionId(string $subscription_id): void
$this->_subscription_id = $subscription_id;
}

/**
* Getter method for the tier_type attribute.
* The type of tiering used by the Add-on.
*
* @return string
*/
public function getTierType(): string
{
return $this->_tier_type;
}

/**
* Setter method for the tier_type attribute.
*
* @param string $tier_type
*
* @return void
*/
public function setTierType(string $tier_type): void
{
$this->_tier_type = $tier_type;
}

/**
* Getter method for the tiers attribute.
* Empty unless `tier_type` is `tiered`, `volume`, or `stairstep`.
*
* @return array
*/
public function getTiers(): array
{
return $this->_tiers;
}

/**
* Setter method for the tiers attribute.
*
* @param array $tiers
*
* @return void
*/
public function setTiers(array $tiers): void
{
$this->_tiers = $tiers;
}

/**
* Getter method for the unit_amount attribute.
* This is priced in the subscription's currency.
Expand Down
67 changes: 67 additions & 0 deletions lib/recurly/resources/subscription_add_on_tier.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
<?php
/**
* This file is automatically created by Recurly's OpenAPI generation process
* and thus any edits you make by hand will be lost. If you wish to make a
* change to this file, please create a Github issue explaining the changes you
* need and we will usher them to the appropriate places.
*/
namespace Recurly\Resources;

use Recurly\RecurlyResource;

// phpcs:disable
class SubscriptionAddOnTier extends RecurlyResource
{
private $_ending_quantity;
private $_unit_amount;

protected static $array_hints = array(
);


/**
* Getter method for the ending_quantity attribute.
* Ending quantity
*
* @return int
*/
public function getEndingQuantity(): int
{
return $this->_ending_quantity;
}

/**
* Setter method for the ending_quantity attribute.
*
* @param int $ending_quantity
*
* @return void
*/
public function setEndingQuantity(int $ending_quantity): void
{
$this->_ending_quantity = $ending_quantity;
}

/**
* Getter method for the unit_amount attribute.
* Unit amount
*
* @return float
*/
public function getUnitAmount(): float
{
return $this->_unit_amount;
}

/**
* Setter method for the unit_amount attribute.
*
* @param float $unit_amount
*
* @return void
*/
public function setUnitAmount(float $unit_amount): void
{
$this->_unit_amount = $unit_amount;
}
}
68 changes: 68 additions & 0 deletions lib/recurly/resources/tier.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
<?php
/**
* This file is automatically created by Recurly's OpenAPI generation process
* and thus any edits you make by hand will be lost. If you wish to make a
* change to this file, please create a Github issue explaining the changes you
* need and we will usher them to the appropriate places.
*/
namespace Recurly\Resources;

use Recurly\RecurlyResource;

// phpcs:disable
class Tier extends RecurlyResource
{
private $_currencies;
private $_ending_quantity;

protected static $array_hints = array(
'setCurrencies' => '\Recurly\Resources\Pricing',
);


/**
* Getter method for the currencies attribute.
* Tier pricing
*
* @return array
*/
public function getCurrencies(): array
{
return $this->_currencies;
}

/**
* Setter method for the currencies attribute.
*
* @param array $currencies
*
* @return void
*/
public function setCurrencies(array $currencies): void
{
$this->_currencies = $currencies;
}

/**
* Getter method for the ending_quantity attribute.
* Ending quantity
*
* @return int
*/
public function getEndingQuantity(): int
{
return $this->_ending_quantity;
}

/**
* Setter method for the ending_quantity attribute.
*
* @param int $ending_quantity
*
* @return void
*/
public function setEndingQuantity(int $ending_quantity): void
{
$this->_ending_quantity = $ending_quantity;
}
}
Loading

0 comments on commit ce68cfd

Please sign in to comment.