File tree Expand file tree Collapse file tree
ground_control_client/lib/src/test_tools/builders/billing Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ class BillingInfoBuilder {
3030 _city = 'New York' ,
3131 _state = 'New York' ,
3232 _country = 'US' ,
33- _vatNumber = 'SE1234567890' ,
33+ _vatNumber = null ,
3434 _vatType = null ,
3535 _customerType = BillingCustomerType .private;
3636
@@ -112,6 +112,21 @@ class BillingInfoBuilder {
112112 return this ;
113113 }
114114
115+ BillingInfoBuilder withBusinessUser () {
116+ _customerType = BillingCustomerType .business;
117+ _vatNumber = 'SE123456789123' ;
118+ _vatType = 'eu_vat' ;
119+ _country = 'SE' ;
120+ return this ;
121+ }
122+
123+ BillingInfoBuilder withPrivateUser () {
124+ _customerType = BillingCustomerType .private;
125+ _vatNumber = null ;
126+ _vatType = null ;
127+ return this ;
128+ }
129+
115130 BillingInfo build () {
116131 return BillingInfo (
117132 id: _id,
You can’t perform that action at this time.
0 commit comments