Billing Agreement Term
Billing::AgreementTerm is the model we use to represent all value. For sync, Billing::AgreementTerm will be generated immediately after Billing::Agreement is created.
one Billing::Agreement could have many Billing::AgreementTerm, but for migration it will only have GIG AgreementTerm
Billing Agreement Term
| Billing:: Agreement | JodGig::Company (or other source) |
|---|---|
| id | PK, increment |
| billing_agreement_id | from created Billing::Agreement |
| billing_entitlement_id | |
| term_key | hardcode to "gig_fee_rate" since this is from JodGig |
| term_value | JodGig::Company.contract_service_margin |
| term_unit | hardcode to "bps" (100bps = 1percent) |
| admin_created_by | set to System's identities_admins id |
| admin_updated_by | set to System's identities_admins id |
| created_at | timestamp |
| updated_at | timestamp |