Skip to content

Commit

Permalink
Merge pull request #722 from sandervanhooft/payments_addresses
Browse files Browse the repository at this point in the history
Add new Payment address fields
  • Loading branch information
sandervanhooft authored Jun 10, 2024
2 parents f1652d8 + ffedac0 commit 88f3d94
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Resources/Order.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ class Order extends BaseResource
public $orderNumber;

/**
* The person and the address the order is billed to.
* The person and the address the order is shipped to.
*
* @var \stdClass
*/
Expand Down
15 changes: 15 additions & 0 deletions src/Resources/Payment.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -207,6 +208,20 @@ class Payment extends BaseResource
*/
public $orderId;

/**
* 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.
*
Expand Down

0 comments on commit 88f3d94

Please sign in to comment.