com.ning.billing.invoice.dao.InvoiceItemSqlDao.sql.stg Maven / Gradle / Ivy
group InvoiceItemSqlDao: EntitySqlDao;
tableName() ::= "invoice_items"
tableFields(prefix) ::= <<
type
, invoice_id
, account_id
, bundle_id
, subscription_id
, plan_name
, phase_name
, start_date
, end_date
, amount
, rate
, currency
, linked_item_id
, created_by
, created_date
>>
tableValues() ::= <<
:type
, :invoiceId
, :accountId
, :bundleId
, :subscriptionId
, :planName
, :phaseName
, :startDate
, :endDate
, :amount
, :rate
, :currency
, :linkedItemId
, :createdBy
, :createdDate
>>
getInvoiceItemsByInvoice() ::= <<
SELECT
FROM
WHERE invoice_id = :invoiceId
;
>>
getInvoiceItemsByAccount() ::= <<
SELECT
FROM
WHERE account_id = :accountId
;
>>
getInvoiceItemsBySubscription() ::= <<
SELECT
FROM
WHERE subscription_id = :subscriptionId
;
>>