Skip to content

Commit 313cd68

Browse files
author
serverpod_cloud
committed
feat: 59dfc75f0873ddc6d172e357b8374743bf42b3fa
1 parent c85cb72 commit 313cd68

1 file changed

Lines changed: 17 additions & 1 deletion

File tree

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

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ class OwnerBuilder {
1010
BillingInfo? _billingInfo;
1111
List<Project>? _projects;
1212
User? _user;
13+
DateTime? _trialEndingAt;
14+
String? _trialSubscriptionId;
1315

1416
OwnerBuilder()
1517
: _id = Uuid().v4obj(),
@@ -19,7 +21,9 @@ class OwnerBuilder {
1921
_billingEmails = [],
2022
_projects = [],
2123
_billingInfo = null,
22-
_user = UserBuilder().build();
24+
_user = UserBuilder().build(),
25+
_trialEndingAt = null,
26+
_trialSubscriptionId = null;
2327

2428
OwnerBuilder withId(UuidValue id) {
2529
_id = id;
@@ -77,6 +81,16 @@ class OwnerBuilder {
7781
return this;
7882
}
7983

84+
OwnerBuilder withTrialEndingAt(DateTime? trialEndingAt) {
85+
_trialEndingAt = trialEndingAt;
86+
return this;
87+
}
88+
89+
OwnerBuilder withTrialSubscriptionId(String? trialSubscriptionId) {
90+
_trialSubscriptionId = trialSubscriptionId;
91+
return this;
92+
}
93+
8094
Owner build() {
8195
return Owner(
8296
id: _id,
@@ -87,6 +101,8 @@ class OwnerBuilder {
87101
billingInfo: _billingInfo,
88102
user: _user,
89103
projects: _projects,
104+
trialEndingAt: _trialEndingAt,
105+
trialSubscriptionId: _trialSubscriptionId,
90106
);
91107
}
92108
}

0 commit comments

Comments
 (0)