BillingInfoBuilder constructor

BillingInfoBuilder({
  1. Owner? owner,
})

Implementation

BillingInfoBuilder({Owner? owner})
  : _id = Uuid().v4obj(),
    _createdAt = DateTime.now(),
    _updatedAt = DateTime.now(),
    _ownerId = owner?.id ?? Uuid().v4obj(),
    _owner = owner,
    _companyName = 'Serverpod',
    _addressLine1 = '123 Main St',
    _addressLine2 = null,
    _postalCode = '12345',
    _city = 'New York',
    _state = 'New York',
    _country = 'US',
    _vatNumber = null,
    _vatType = null,
    _customerType = BillingCustomerType.private;