Skip to content

Commit 4e22ecf

Browse files
author
serverpod_cloud
committed
fix: cebc1f9b0bcd8faa46f5978a5450feef975669d8
1 parent 114518a commit 4e22ecf

1 file changed

Lines changed: 16 additions & 1 deletion

File tree

ground_control_client/lib/src/test_tools/builders/billing/billing_info_builder.dart

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff 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,

0 commit comments

Comments
 (0)