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: src/BitPaySDK/Model/Subscription/BillData.php
+13-11Lines changed: 13 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -43,17 +43,17 @@ class BillData
43
43
* @param string|null $number Recurring bill identifier, specified by merchant
44
44
* @param string|null $currency The three digit currency code used to compute the billData's amount.
45
45
* @param string|null $email The email address of the receiver for this billData.
46
-
* @param string|\DateTime|null $dueDate Date and time at which a bill is due, ISO-8601 format yyyy-mm-ddThh:mm:ssZ (UTC).
46
+
* @param string|\DateTime|null $dueDate Date and time at which a bill is due, ISO-8601 format yyyy-mm-ddThh:mm:ssZ
47
+
* (UTC).
47
48
* @param array|null $items The list of line items to add to this billData.
48
49
*/
49
50
publicfunction__construct(
50
-
?string$number = null,
51
-
?string$currency = null,
52
-
?string$email = null,
51
+
?string$number = null,
52
+
?string$currency = null,
53
+
?string$email = null,
53
54
string|\DateTime|null$dueDate = null,
54
-
?array$items = null
55
-
)
56
-
{
55
+
?array$items = null
56
+
) {
57
57
$this->number = $number;
58
58
$this->currency = $currency ?: Currency::USD;
59
59
$this->email = $email;
@@ -73,7 +73,8 @@ public function __construct(
73
73
/**
74
74
* Gets billData emailBill
75
75
*
76
-
* If set to `true`, BitPay will automatically issue recurring bills to the `email` address provided once the status of the subscription is set to `active`.
76
+
* If set to `true`, BitPay will automatically issue recurring bills to the `email` address provided once the
77
+
* status of the subscription is set to `active`.
77
78
*
78
79
* @return bool|null
79
80
*/
@@ -85,7 +86,8 @@ public function getEmailBill(): ?bool
85
86
/**
86
87
* Sets billData's emailBill
87
88
*
88
-
* If set to `true`, BitPay will automatically issue recurring bills to the `email` address provided once the status of the subscription is set to `active`.
89
+
* If set to `true`, BitPay will automatically issue recurring bills to the `email` address provided once the
90
+
* status of the subscription is set to `active`.
89
91
*
90
92
* @param bool|null $emailBill
91
93
* @return void
@@ -438,8 +440,8 @@ public function setPhone(string $phone): void
438
440
*
439
441
* Date and time at which a billData is due, ISO-8601 format yyyy-mm-ddThh:mm:ssZ. (UTC)
440
442
*
441
-
* @see Env::BITPAY_DATETIME_FORMAT
442
443
* @return string|null the number
444
+
* @see Env::BITPAY_DATETIME_FORMAT
443
445
*/
444
446
publicfunctiongetDueDate(): ?string
445
447
{
@@ -451,8 +453,8 @@ public function getDueDate(): ?string
451
453
*
452
454
* Date and time at which a billData is due, ISO-8601 format yyyy-mm-ddThh:mm:ssZ. (UTC)
453
455
*
454
-
* @see Env::BITPAY_DATETIME_FORMAT
455
456
* @param string $dueDate Date and time at which a billData is due
Copy file name to clipboardExpand all lines: src/BitPaySDK/Model/Subscription/SubscriptionSchedule.php
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,9 @@
12
12
namespaceBitPaySDK\Model\Subscription;
13
13
14
14
/**
15
-
* Schedule of repeat bill due dates. Can be `weekly`, `monthly`, `quarterly`, `yearly`, or a simple cron expression specifying seconds, minutes, hours, day of month, month, and day of week. BitPay maintains the difference between the due date and the delivery date in all subsequent, automatically-generated bills.
15
+
* Schedule of repeat bill due dates. Can be `weekly`, `monthly`, `quarterly`, `yearly`, or a simple cron expression
16
+
* specifying seconds, minutes, hours, day of month, month, and day of week. BitPay maintains the difference between
17
+
* the due date and the delivery date in all subsequent, automatically-generated bills.
0 commit comments