You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/recurly/resources/coupon.php
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -587,7 +587,7 @@ public function setState(string $state): void
587
587
588
588
/**
589
589
* Getter method for the temporal_amount attribute.
590
-
* If `duration` is "temporal" than `temporal_amount` is an integer which is multiplied by `temporal_unit` to define the duration that the coupon will be applied to invoices for.
590
+
* If `duration` is "temporal" than `temporal_amount` is an integer which is multiplied by `temporal_unit` to define the duration that the coupon will be applied to invoices for. When `temporal_unit` is "billing_period", this is the number of complete billing cycles.
591
591
*
592
592
* @return ?int
593
593
*/
@@ -610,7 +610,7 @@ public function setTemporalAmount(int $temporal_amount): void
610
610
611
611
/**
612
612
* Getter method for the temporal_unit attribute.
613
-
* If `duration` is "temporal" than `temporal_unit` is multiplied by `temporal_amount` to define the duration that the coupon will be applied to invoices for.
613
+
* If `duration` is "temporal" than `temporal_unit` is multiplied by `temporal_amount` to define the duration that the coupon will be applied to invoices for. Use "billing_period" to apply the coupon for a fixed number of billing cycles. Requires `redemption_resource=subscription`.
@@ -296,6 +298,29 @@ public function setCurrency(string $currency): void
296
298
$this->_currency = $currency;
297
299
}
298
300
301
+
/**
302
+
* Getter method for the custom_fields attribute.
303
+
* A list of custom fields that were on the account at the time of invoice creation and were marked to be displayed on invoices. Read-only; cannot be set directly on the invoice.
0 commit comments