public function getLastPaymentMethods(): PaymentMethodCollection
{ return new PaymentMethodCollection( $this->
fmap(fn (CustomerEntity
$customer) =>
$customer->
getLastPaymentMethod()) );
} public function getDefaultBillingAddress(): CustomerAddressCollection
{ return new CustomerAddressCollection( $this->
fmap(fn (CustomerEntity
$customer) =>
$customer->
getDefaultBillingAddress()) );
} public function getDefaultShippingAddress(): CustomerAddressCollection
{ return new CustomerAddressCollection( $this->
fmap(fn (CustomerEntity
$customer) =>
$customer->
getDefaultShippingAddress()) );
}