Skip to content

Commit 20a87ea

Browse files
committed
♻️ Set null another some buyer attributes
Signed-off-by: Lloric Mayuga Garcia <[email protected]>
1 parent e36d436 commit 20a87ea

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
All notable changes to `paymaya-sdk-php` will be documented in this file
44

5+
## 0.0.3 - 2020-10-22
6+
7+
- Set null another some buyer attributes
8+
59
## 0.0.2 - 2020-10-22
610

711
- Set meta data as nullable

src/Request/Checkout/Buyer/BuyerRequest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ class BuyerRequest extends BaseRequest
1616
private ?string $gender = null;
1717

1818
private ?ContactRequest $contact_request = null;
19-
private ShippingAddressRequest $shipping_address_request;
20-
private BillingAddressRequest $billing_address_request;
19+
private ?ShippingAddressRequest $shipping_address_request = null;
20+
private ?BillingAddressRequest $billing_address_request = null;
2121

2222
private ?string $ip_address = null;
2323

@@ -70,14 +70,14 @@ public function setContactRequest(?ContactRequest $contactRequest): self
7070
return $this;
7171
}
7272

73-
public function setShippingAddressRequest(ShippingAddressRequest $shippingAddressRequest): self
73+
public function setShippingAddressRequest(?ShippingAddressRequest $shippingAddressRequest): self
7474
{
7575
$this->shipping_address_request = $shippingAddressRequest;
7676

7777
return $this;
7878
}
7979

80-
public function setBillingAddressRequest(BillingAddressRequest $billingAddressRequest): self
80+
public function setBillingAddressRequest(?BillingAddressRequest $billingAddressRequest): self
8181
{
8282
$this->billing_address_request = $billingAddressRequest;
8383

0 commit comments

Comments
 (0)