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 @@ -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}
You can’t perform that action at this time.
0 commit comments