-
Notifications
You must be signed in to change notification settings - Fork 193
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
103 additions
and
30 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
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 |
---|---|---|
|
@@ -144,6 +144,7 @@ class Payment extends BaseResource | |
* | ||
* @example "[email protected]" | ||
* @var string|null | ||
* @deprecated 2024-06-01 The billingEmail field is deprecated. Use the "billingAddress" field instead. | ||
*/ | ||
public $billingEmail; | ||
|
||
|
@@ -207,6 +208,27 @@ class Payment extends BaseResource | |
*/ | ||
public $orderId; | ||
|
||
/** | ||
* The lines contain the actual items the customer bought. | ||
* | ||
* @var array|object[]|null | ||
*/ | ||
public $lines; | ||
|
||
/** | ||
* The person and the address the order is billed to. | ||
* | ||
* @var \stdClass|null | ||
*/ | ||
public $billingAddress; | ||
|
||
/** | ||
* The person and the address the order is shipped to. | ||
* | ||
* @var \stdClass|null | ||
*/ | ||
public $shippingAddress; | ||
|
||
/** | ||
* The settlement ID this payment belongs to. | ||
* | ||
|
@@ -729,7 +751,10 @@ public function update() | |
"dueDate" => $this->dueDate, | ||
]; | ||
|
||
$result = $this->client->payments->update($this->id, $body); | ||
$result = $this->client->payments->update( | ||
$this->id, | ||
$this->withPresetOptions($body) | ||
); | ||
|
||
return ResourceFactory::createFromApiResult($result, new Payment($this->client)); | ||
} | ||
|
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