/**
* When the user was created in the system (not Aquarium). We use this as a basis for billing periods. Set to
* zero if unknown.
+ *
*/
startDateMillis: Long,
/**
* True iff this user state refers to a full billing period, that is a full billing month.
*/
- isFullBillingPeriod: Boolean,
+ isFullBillingMonthState: Boolean,
/**
* The full billing period for which this user state refers to.
* This is set when the user state refers to a full billing period (= month)
* and is used to cache the user state for subsequent queries.
*/
- fullBillingPeriod: BillingPeriod,
+ theFullBillingMonth: BillingMonth,
+
+ /**
+ *
+ */
/**
* Counts the number of resource events used to produce this user state for
credits: CreditSnapshot,
agreements: AgreementSnapshot,
roles: RolesSnapshot,
- paymentOrders: PaymentOrdersSnapshot,
- ownedGroups: OwnedGroupsSnapshot,
- groupMemberships: GroupMembershipsSnapshot,
ownedResources: OwnedResourcesSnapshot
) extends JsonSupport {
List(
active.snapshotTime,
credits.snapshotTime, agreements.snapshotTime, roles.snapshotTime,
- paymentOrders.snapshotTime, ownedGroups.snapshotTime, groupMemberships.snapshotTime,
ownedResources.snapshotTime)
}
}
}
-case class BillingPeriod(startMillis: Long, stopMillis: Long)
\ No newline at end of file
+case class BillingMonth(yearOfBillingMonth: Int, billingMonth: Int)
\ No newline at end of file