mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Clean up transformers of old Swagger documentation stubs
This commit is contained in:
parent
86e786bd07
commit
d313151f2c
@ -27,9 +27,6 @@ use App\Utils\Traits\MakesHash;
|
|||||||
class AccountTransformer extends EntityTransformer
|
class AccountTransformer extends EntityTransformer
|
||||||
{
|
{
|
||||||
use MakesHash;
|
use MakesHash;
|
||||||
/**
|
|
||||||
* @SWG\Property(property="account_key", type="string", example="123456")
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var array
|
* @var array
|
||||||
|
@ -16,8 +16,6 @@ use App\Utils\Traits\MakesHash;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Class ContactTransformer.
|
* Class ContactTransformer.
|
||||||
*
|
|
||||||
* @SWG\Definition(definition="ClientContact", @SWG\Xml(name="ClientContact"))
|
|
||||||
*/
|
*/
|
||||||
class ClientContactLoginTransformer extends EntityTransformer
|
class ClientContactLoginTransformer extends EntityTransformer
|
||||||
{
|
{
|
||||||
|
@ -17,7 +17,6 @@ use App\Utils\Traits\MakesHash;
|
|||||||
/**
|
/**
|
||||||
* Class ContactTransformer.
|
* Class ContactTransformer.
|
||||||
*
|
*
|
||||||
* @SWG\Definition(definition="ClientContact", @SWG\Xml(name="ClientContact"))
|
|
||||||
*/
|
*/
|
||||||
class ClientContactTransformer extends EntityTransformer
|
class ClientContactTransformer extends EntityTransformer
|
||||||
{
|
{
|
||||||
|
@ -16,14 +16,12 @@ use App\Models\ClientContact;
|
|||||||
use App\Utils\Traits\MakesHash;
|
use App\Utils\Traits\MakesHash;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @SWG\Definition(definition="Client", @SWG\Xml(name="Client"))
|
* class ClientTransformer
|
||||||
*/
|
*/
|
||||||
class ClientTransformer extends EntityTransformer
|
class ClientTransformer extends EntityTransformer
|
||||||
{
|
{
|
||||||
use MakesHash;
|
use MakesHash;
|
||||||
/**
|
|
||||||
* @SWG\Property(property="id", type="integer", example=1, readOnly=true)
|
|
||||||
*/
|
|
||||||
protected $defaultIncludes = [
|
protected $defaultIncludes = [
|
||||||
'contacts',
|
'contacts',
|
||||||
];
|
];
|
||||||
|
@ -28,10 +28,6 @@ class CompanyTransformer extends EntityTransformer
|
|||||||
use MakesHash;
|
use MakesHash;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @SWG\Property(property="account_key", type="string", example="123456")
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @var array
|
* @var array
|
||||||
*/
|
*/
|
||||||
protected $defaultIncludes = [
|
protected $defaultIncludes = [
|
||||||
@ -77,8 +73,6 @@ class CompanyTransformer extends EntityTransformer
|
|||||||
'work_phone' => $company->work_phone,
|
'work_phone' => $company->work_phone,
|
||||||
'work_email' => $company->work_email,
|
'work_email' => $company->work_email,
|
||||||
'country_id' => (int) $company->country_id,
|
'country_id' => (int) $company->country_id,
|
||||||
'domain' => $company->domain,
|
|
||||||
'db' => $company->db,
|
|
||||||
'vat_number' => $company->vat_number,
|
'vat_number' => $company->vat_number,
|
||||||
'id_number' => $company->id_number,
|
'id_number' => $company->id_number,
|
||||||
'size_id' => (int) $company->size_id,
|
'size_id' => (int) $company->size_id,
|
||||||
|
@ -17,9 +17,6 @@ use App\Models\CompanyUser;
|
|||||||
use App\Models\User;
|
use App\Models\User;
|
||||||
use App\Transformers\CompanyTokenTransformer;
|
use App\Transformers\CompanyTokenTransformer;
|
||||||
|
|
||||||
/**
|
|
||||||
* @SWG\Definition(definition="CompanyUser", @SWG\Xml(name="CompanyUser"))
|
|
||||||
*/
|
|
||||||
class CompanyUserTransformer extends EntityTransformer
|
class CompanyUserTransformer extends EntityTransformer
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@ -15,9 +15,6 @@ use App\Models\Invoice;
|
|||||||
use App\Transformers\EntityTransformer;
|
use App\Transformers\EntityTransformer;
|
||||||
use App\Utils\Traits\MakesHash;
|
use App\Utils\Traits\MakesHash;
|
||||||
|
|
||||||
/**
|
|
||||||
* @SWG\Definition(definition="Invoice", required={"invoice_number"}, @SWG\Xml(name="Invoice"))
|
|
||||||
*/
|
|
||||||
class InvoiceTransformer extends EntityTransformer
|
class InvoiceTransformer extends EntityTransformer
|
||||||
{
|
{
|
||||||
use MakesHash;
|
use MakesHash;
|
||||||
|
@ -15,9 +15,6 @@ use App\Models\Invoice;
|
|||||||
use App\Models\InvoiceInvitation;
|
use App\Models\InvoiceInvitation;
|
||||||
use App\Utils\Traits\MakesHash;
|
use App\Utils\Traits\MakesHash;
|
||||||
|
|
||||||
/**
|
|
||||||
* @SWG\Definition(definition="Invoice", required={"invoice_number"}, @SWG\Xml(name="Invoice"))
|
|
||||||
*/
|
|
||||||
class InvoiceInvitationTransformer extends EntityTransformer
|
class InvoiceInvitationTransformer extends EntityTransformer
|
||||||
{
|
{
|
||||||
use MakesHash;
|
use MakesHash;
|
||||||
|
@ -13,23 +13,7 @@ namespace App\Transformers;
|
|||||||
|
|
||||||
class InvoiceItemTransformer extends EntityTransformer
|
class InvoiceItemTransformer extends EntityTransformer
|
||||||
{
|
{
|
||||||
/**
|
|
||||||
* @SWG\Property(property="id", type="integer", example=1, readOnly=true)
|
|
||||||
* @SWG\Property(property="product_key", type="string", example="Item")
|
|
||||||
* @SWG\Property(property="updated_at", type="integer", example=1451160233, readOnly=true)
|
|
||||||
* @SWG\Property(property="archived_at", type="integer", example=1451160233, readOnly=true)
|
|
||||||
* @SWG\Property(property="notes", type="string", example="Notes")
|
|
||||||
* @SWG\Property(property="cost", type="number", format="float", example=10.00)
|
|
||||||
* @SWG\Property(property="qty", type="number", format="float", example=1)
|
|
||||||
* @SWG\Property(property="tax_name1", type="string", example="VAT")
|
|
||||||
* @SWG\Property(property="tax_name2", type="string", example="Upkeep")
|
|
||||||
* @SWG\Property(property="tax_rate1", type="number", format="float", example="17.5")
|
|
||||||
* @SWG\Property(property="tax_rate2", type="number", format="float", example="30.0")
|
|
||||||
* @SWG\Property(property="invoice_item_type_id", type="integer", example=1)
|
|
||||||
* @SWG\Property(property="custom_value1", type="string", example="Value")
|
|
||||||
* @SWG\Property(property="custom_value2", type="string", example="Value")
|
|
||||||
* @SWG\Property(property="discount", type="number", format="float", example=10)
|
|
||||||
*/
|
|
||||||
public function transform($item)
|
public function transform($item)
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
|
@ -14,58 +14,10 @@ namespace App\Transformers;
|
|||||||
use App\Models\Invoice;
|
use App\Models\Invoice;
|
||||||
use App\Utils\Traits\MakesHash;
|
use App\Utils\Traits\MakesHash;
|
||||||
|
|
||||||
/**
|
|
||||||
* @SWG\Definition(definition="Invoice", required={"invoice_number"}, @SWG\Xml(name="Invoice"))
|
|
||||||
*/
|
|
||||||
class InvoiceTransformer extends EntityTransformer
|
class InvoiceTransformer extends EntityTransformer
|
||||||
{
|
{
|
||||||
use MakesHash;
|
use MakesHash;
|
||||||
/**
|
|
||||||
* @SWG\Property(property="id", type="integer", example=1, readOnly=true)
|
|
||||||
* @SWG\Property(property="amount", type="number", format="float", example=10, readOnly=true)
|
|
||||||
* @SWG\Property(property="balance", type="number", format="float", example=10, readOnly=true)
|
|
||||||
* @SWG\Property(property="updated_at", type="integer", example=1451160233, readOnly=true)
|
|
||||||
* @SWG\Property(property="archived_at", type="integer", example=1451160233, readOnly=true)
|
|
||||||
* @SWG\Property(property="is_deleted", type="boolean", example=false, readOnly=true)
|
|
||||||
* @SWG\Property(property="client_id", type="integer", example=1)
|
|
||||||
* @SWG\Property(property="status_id", type="integer", example=1, readOnly=true)
|
|
||||||
* @SWG\Property(property="invoice_number", type="string", example="0001")
|
|
||||||
* @SWG\Property(property="discount", type="number", format="float", example=10)
|
|
||||||
* @SWG\Property(property="po_number", type="string", example="0001")
|
|
||||||
* @SWG\Property(property="invoice_date", type="string", format="date", example="2018-01-01")
|
|
||||||
* @SWG\Property(property="due_date", type="string", format="date", example="2018-01-01")
|
|
||||||
* @SWG\Property(property="terms", type="string", example="sample")
|
|
||||||
* @SWG\Property(property="private_notes", type="string", example="Notes")
|
|
||||||
* @SWG\Property(property="public_notes", type="string", example="Notes")
|
|
||||||
* @SWG\Property(property="invoice_type_id", type="integer", example=1, readOnly=true)
|
|
||||||
* @SWG\Property(property="is_recurring", type="boolean", example=false)
|
|
||||||
* @SWG\Property(property="frequency_id", type="integer", example=1)
|
|
||||||
* @SWG\Property(property="start_date", type="string", format="date", example="2018-01-01")
|
|
||||||
* @SWG\Property(property="end_date", type="string", format="date", example="2018-01-01")
|
|
||||||
* @SWG\Property(property="last_sent_date", type="string", format="date", example="2018-01-01", readOnly=true)
|
|
||||||
* @SWG\Property(property="recurring_invoice_id", type="integer", example=1, readOnly=true)
|
|
||||||
* @SWG\Property(property="tax_name1", type="string", example="VAT")
|
|
||||||
* @SWG\Property(property="tax_name2", type="string", example="Upkeep")
|
|
||||||
* @SWG\Property(property="tax_rate1", type="number", format="float", example="17.5")
|
|
||||||
* @SWG\Property(property="tax_rate2", type="number", format="float", example="30.0")
|
|
||||||
* @SWG\Property(property="is_amount_discount", type="boolean", example=false)
|
|
||||||
* @SWG\Property(property="invoice_footer", type="string", example="Footer")
|
|
||||||
* @SWG\Property(property="partial", type="number",format="float", example=10)
|
|
||||||
* @SWG\Property(property="partial_due_date", type="string", format="date", example="2018-01-01")
|
|
||||||
* @SWG\Property(property="has_tasks", type="boolean", example=false, readOnly=true)
|
|
||||||
* @SWG\Property(property="auto_bill", type="boolean", example=false)
|
|
||||||
* @SWG\Property(property="custom_value1", type="number",format="float", example=10)
|
|
||||||
* @SWG\Property(property="custom_value2", type="number",format="float", example=10)
|
|
||||||
* @SWG\Property(property="custom_taxes1", type="boolean", example=false)
|
|
||||||
* @SWG\Property(property="custom_taxes2", type="boolean", example=false)
|
|
||||||
* @SWG\Property(property="has_expenses", type="boolean", example=false, readOnly=true)
|
|
||||||
* @SWG\Property(property="quote_invoice_id", type="integer", example=1, readOnly=true)
|
|
||||||
* @SWG\Property(property="custom_text_value1", type="string", example="Custom Text Value")
|
|
||||||
* @SWG\Property(property="custom_text_value2", type="string", example="Custom Text Value")
|
|
||||||
* @SWG\Property(property="is_quote", type="boolean", example=false, readOnly=true)
|
|
||||||
* @SWG\Property(property="is_public", type="boolean", example=false)
|
|
||||||
* @SWG\Property(property="filename", type="string", example="Filename", readOnly=true)
|
|
||||||
*/
|
|
||||||
protected $defaultIncludes = [
|
protected $defaultIncludes = [
|
||||||
// 'invoice_items',
|
// 'invoice_items',
|
||||||
];
|
];
|
||||||
|
@ -17,26 +17,9 @@ use App\Models\Invoice;
|
|||||||
use App\Models\Payment;
|
use App\Models\Payment;
|
||||||
use App\Utils\Traits\MakesHash;
|
use App\Utils\Traits\MakesHash;
|
||||||
|
|
||||||
/**
|
|
||||||
* @SWG\Definition(definition="Payment", required={"invoice_id"}, @SWG\Xml(name="Payment"))
|
|
||||||
*/
|
|
||||||
class PaymentTransformer extends EntityTransformer
|
class PaymentTransformer extends EntityTransformer
|
||||||
{
|
{
|
||||||
use MakesHash;
|
use MakesHash;
|
||||||
/**
|
|
||||||
* @SWG\Property(property="id", type="integer", example=1, readOnly=true)
|
|
||||||
* @SWG\Property(property="amount", type="number", format="float", example=10, readOnly=true)
|
|
||||||
* @SWG\Property(property="transaction_reference", type="string", example="Transaction Reference")
|
|
||||||
* @SWG\Property(property="payment_date", type="string", format="date", example="2018-01-01")
|
|
||||||
* @SWG\Property(property="updated_at", type="integer", example=1451160233, readOnly=true)
|
|
||||||
* @SWG\Property(property="archived_at", type="integer", example=1451160233, readOnly=true)
|
|
||||||
* @SWG\Property(property="is_deleted", type="boolean", example=false, readOnly=true)
|
|
||||||
* @SWG\Property(property="invoice_id", type="integer", example=1)
|
|
||||||
* @SWG\Property(property="invoice_number", type="string", example="Invoice Number")
|
|
||||||
* @SWG\Property(property="private_notes", type="string", example="Notes")
|
|
||||||
* @SWG\Property(property="exchange_rate", type="number", format="float", example=10)
|
|
||||||
* @SWG\Property(property="exchange_currency_id", type="integer", example=1)
|
|
||||||
*/
|
|
||||||
|
|
||||||
protected $serializer;
|
protected $serializer;
|
||||||
|
|
||||||
|
@ -16,9 +16,6 @@ use App\Models\Product;
|
|||||||
use App\Models\User;
|
use App\Models\User;
|
||||||
use App\Utils\Traits\MakesHash;
|
use App\Utils\Traits\MakesHash;
|
||||||
|
|
||||||
/**
|
|
||||||
* @SWG\Definition(definition="Product", @SWG\Xml(name="Product"))
|
|
||||||
*/
|
|
||||||
class ProductTransformer extends EntityTransformer
|
class ProductTransformer extends EntityTransformer
|
||||||
{
|
{
|
||||||
use MakesHash;
|
use MakesHash;
|
||||||
|
@ -14,58 +14,10 @@ namespace App\Transformers;
|
|||||||
use App\Models\Quote;
|
use App\Models\Quote;
|
||||||
use App\Utils\Traits\MakesHash;
|
use App\Utils\Traits\MakesHash;
|
||||||
|
|
||||||
/**
|
|
||||||
* @SWG\Definition(definition="quote", required={"quote_number"}, @SWG\Xml(name="quote"))
|
|
||||||
*/
|
|
||||||
class QuoteTransformer extends EntityTransformer
|
class QuoteTransformer extends EntityTransformer
|
||||||
{
|
{
|
||||||
use MakesHash;
|
use MakesHash;
|
||||||
/**
|
|
||||||
* @SWG\Property(property="id", type="integer", example=1, readOnly=true)
|
|
||||||
* @SWG\Property(property="amount", type="number", format="float", example=10, readOnly=true)
|
|
||||||
* @SWG\Property(property="balance", type="number", format="float", example=10, readOnly=true)
|
|
||||||
* @SWG\Property(property="updated_at", type="integer", example=1451160233, readOnly=true)
|
|
||||||
* @SWG\Property(property="archived_at", type="integer", example=1451160233, readOnly=true)
|
|
||||||
* @SWG\Property(property="is_deleted", type="boolean", example=false, readOnly=true)
|
|
||||||
* @SWG\Property(property="client_id", type="integer", example=1)
|
|
||||||
* @SWG\Property(property="status_id", type="integer", example=1, readOnly=true)
|
|
||||||
* @SWG\Property(property="quote_number", type="string", example="0001")
|
|
||||||
* @SWG\Property(property="discount", type="number", format="float", example=10)
|
|
||||||
* @SWG\Property(property="po_number", type="string", example="0001")
|
|
||||||
* @SWG\Property(property="quote_date", type="string", format="date", example="2018-01-01")
|
|
||||||
* @SWG\Property(property="due_date", type="string", format="date", example="2018-01-01")
|
|
||||||
* @SWG\Property(property="terms", type="string", example="sample")
|
|
||||||
* @SWG\Property(property="private_notes", type="string", example="Notes")
|
|
||||||
* @SWG\Property(property="public_notes", type="string", example="Notes")
|
|
||||||
* @SWG\Property(property="quote_type_id", type="integer", example=1, readOnly=true)
|
|
||||||
* @SWG\Property(property="is_recurring", type="boolean", example=false)
|
|
||||||
* @SWG\Property(property="frequency_id", type="integer", example=1)
|
|
||||||
* @SWG\Property(property="start_date", type="string", format="date", example="2018-01-01")
|
|
||||||
* @SWG\Property(property="end_date", type="string", format="date", example="2018-01-01")
|
|
||||||
* @SWG\Property(property="last_sent_date", type="string", format="date", example="2018-01-01", readOnly=true)
|
|
||||||
* @SWG\Property(property="recurring_quote_id", type="integer", example=1, readOnly=true)
|
|
||||||
* @SWG\Property(property="tax_name1", type="string", example="VAT")
|
|
||||||
* @SWG\Property(property="tax_name2", type="string", example="Upkeep")
|
|
||||||
* @SWG\Property(property="tax_rate1", type="number", format="float", example="17.5")
|
|
||||||
* @SWG\Property(property="tax_rate2", type="number", format="float", example="30.0")
|
|
||||||
* @SWG\Property(property="is_amount_discount", type="boolean", example=false)
|
|
||||||
* @SWG\Property(property="quote_footer", type="string", example="Footer")
|
|
||||||
* @SWG\Property(property="partial", type="number",format="float", example=10)
|
|
||||||
* @SWG\Property(property="partial_due_date", type="string", format="date", example="2018-01-01")
|
|
||||||
* @SWG\Property(property="has_tasks", type="boolean", example=false, readOnly=true)
|
|
||||||
* @SWG\Property(property="auto_bill", type="boolean", example=false)
|
|
||||||
* @SWG\Property(property="custom_value1", type="number",format="float", example=10)
|
|
||||||
* @SWG\Property(property="custom_value2", type="number",format="float", example=10)
|
|
||||||
* @SWG\Property(property="custom_taxes1", type="boolean", example=false)
|
|
||||||
* @SWG\Property(property="custom_taxes2", type="boolean", example=false)
|
|
||||||
* @SWG\Property(property="has_expenses", type="boolean", example=false, readOnly=true)
|
|
||||||
* @SWG\Property(property="quote_quote_id", type="integer", example=1, readOnly=true)
|
|
||||||
* @SWG\Property(property="custom_text_value1", type="string", example="Custom Text Value")
|
|
||||||
* @SWG\Property(property="custom_text_value2", type="string", example="Custom Text Value")
|
|
||||||
* @SWG\Property(property="is_quote", type="boolean", example=false, readOnly=true)
|
|
||||||
* @SWG\Property(property="is_public", type="boolean", example=false)
|
|
||||||
* @SWG\Property(property="filename", type="string", example="Filename", readOnly=true)
|
|
||||||
*/
|
|
||||||
protected $defaultIncludes = [
|
protected $defaultIncludes = [
|
||||||
// 'quote_items',
|
// 'quote_items',
|
||||||
];
|
];
|
||||||
|
@ -15,58 +15,10 @@ use App\Models\Invoice;
|
|||||||
use App\Models\RecurringInvoice;
|
use App\Models\RecurringInvoice;
|
||||||
use App\Utils\Traits\MakesHash;
|
use App\Utils\Traits\MakesHash;
|
||||||
|
|
||||||
/**
|
|
||||||
* @SWG\Definition(definition="Invoice", required={"invoice_number"}, @SWG\Xml(name="Invoice"))
|
|
||||||
*/
|
|
||||||
class RecurringInvoiceTransformer extends EntityTransformer
|
class RecurringInvoiceTransformer extends EntityTransformer
|
||||||
{
|
{
|
||||||
use MakesHash;
|
use MakesHash;
|
||||||
/**
|
|
||||||
* @SWG\Property(property="id", type="integer", example=1, readOnly=true)
|
|
||||||
* @SWG\Property(property="amount", type="number", format="float", example=10, readOnly=true)
|
|
||||||
* @SWG\Property(property="balance", type="number", format="float", example=10, readOnly=true)
|
|
||||||
* @SWG\Property(property="updated_at", type="integer", example=1451160233, readOnly=true)
|
|
||||||
* @SWG\Property(property="archived_at", type="integer", example=1451160233, readOnly=true)
|
|
||||||
* @SWG\Property(property="is_deleted", type="boolean", example=false, readOnly=true)
|
|
||||||
* @SWG\Property(property="client_id", type="integer", example=1)
|
|
||||||
* @SWG\Property(property="status_id", type="integer", example=1, readOnly=true)
|
|
||||||
* @SWG\Property(property="invoice_number", type="string", example="0001")
|
|
||||||
* @SWG\Property(property="discount", type="number", format="float", example=10)
|
|
||||||
* @SWG\Property(property="po_number", type="string", example="0001")
|
|
||||||
* @SWG\Property(property="invoice_date", type="string", format="date", example="2018-01-01")
|
|
||||||
* @SWG\Property(property="due_date", type="string", format="date", example="2018-01-01")
|
|
||||||
* @SWG\Property(property="terms", type="string", example="sample")
|
|
||||||
* @SWG\Property(property="private_notes", type="string", example="Notes")
|
|
||||||
* @SWG\Property(property="public_notes", type="string", example="Notes")
|
|
||||||
* @SWG\Property(property="invoice_type_id", type="integer", example=1, readOnly=true)
|
|
||||||
* @SWG\Property(property="is_recurring", type="boolean", example=false)
|
|
||||||
* @SWG\Property(property="frequency_id", type="integer", example=1)
|
|
||||||
* @SWG\Property(property="start_date", type="string", format="date", example="2018-01-01")
|
|
||||||
* @SWG\Property(property="end_date", type="string", format="date", example="2018-01-01")
|
|
||||||
* @SWG\Property(property="last_sent_date", type="string", format="date", example="2018-01-01", readOnly=true)
|
|
||||||
* @SWG\Property(property="recurring_invoice_id", type="integer", example=1, readOnly=true)
|
|
||||||
* @SWG\Property(property="tax_name1", type="string", example="VAT")
|
|
||||||
* @SWG\Property(property="tax_name2", type="string", example="Upkeep")
|
|
||||||
* @SWG\Property(property="tax_rate1", type="number", format="float", example="17.5")
|
|
||||||
* @SWG\Property(property="tax_rate2", type="number", format="float", example="30.0")
|
|
||||||
* @SWG\Property(property="is_amount_discount", type="boolean", example=false)
|
|
||||||
* @SWG\Property(property="invoice_footer", type="string", example="Footer")
|
|
||||||
* @SWG\Property(property="partial", type="number",format="float", example=10)
|
|
||||||
* @SWG\Property(property="partial_due_date", type="string", format="date", example="2018-01-01")
|
|
||||||
* @SWG\Property(property="has_tasks", type="boolean", example=false, readOnly=true)
|
|
||||||
* @SWG\Property(property="auto_bill", type="boolean", example=false)
|
|
||||||
* @SWG\Property(property="custom_value1", type="number",format="float", example=10)
|
|
||||||
* @SWG\Property(property="custom_value2", type="number",format="float", example=10)
|
|
||||||
* @SWG\Property(property="custom_taxes1", type="boolean", example=false)
|
|
||||||
* @SWG\Property(property="custom_taxes2", type="boolean", example=false)
|
|
||||||
* @SWG\Property(property="has_expenses", type="boolean", example=false, readOnly=true)
|
|
||||||
* @SWG\Property(property="quote_invoice_id", type="integer", example=1, readOnly=true)
|
|
||||||
* @SWG\Property(property="custom_text_value1", type="string", example="Custom Text Value")
|
|
||||||
* @SWG\Property(property="custom_text_value2", type="string", example="Custom Text Value")
|
|
||||||
* @SWG\Property(property="is_quote", type="boolean", example=false, readOnly=true)
|
|
||||||
* @SWG\Property(property="is_public", type="boolean", example=false)
|
|
||||||
* @SWG\Property(property="filename", type="string", example="Filename", readOnly=true)
|
|
||||||
*/
|
|
||||||
protected $defaultIncludes = [
|
protected $defaultIncludes = [
|
||||||
// 'invoice_items',
|
// 'invoice_items',
|
||||||
];
|
];
|
||||||
|
@ -15,58 +15,10 @@ use App\Models\Quote;
|
|||||||
use App\Models\RecurringQuote;
|
use App\Models\RecurringQuote;
|
||||||
use App\Utils\Traits\MakesHash;
|
use App\Utils\Traits\MakesHash;
|
||||||
|
|
||||||
/**
|
|
||||||
* @SWG\Definition(definition="Invoice", required={"invoice_number"}, @SWG\Xml(name="Invoice"))
|
|
||||||
*/
|
|
||||||
class RecurringQuoteTransformer extends EntityTransformer
|
class RecurringQuoteTransformer extends EntityTransformer
|
||||||
{
|
{
|
||||||
use MakesHash;
|
use MakesHash;
|
||||||
/**
|
|
||||||
* @SWG\Property(property="id", type="integer", example=1, readOnly=true)
|
|
||||||
* @SWG\Property(property="amount", type="number", format="float", example=10, readOnly=true)
|
|
||||||
* @SWG\Property(property="balance", type="number", format="float", example=10, readOnly=true)
|
|
||||||
* @SWG\Property(property="updated_at", type="integer", example=1451160233, readOnly=true)
|
|
||||||
* @SWG\Property(property="archived_at", type="integer", example=1451160233, readOnly=true)
|
|
||||||
* @SWG\Property(property="is_deleted", type="boolean", example=false, readOnly=true)
|
|
||||||
* @SWG\Property(property="client_id", type="integer", example=1)
|
|
||||||
* @SWG\Property(property="status_id", type="integer", example=1, readOnly=true)
|
|
||||||
* @SWG\Property(property="invoice_number", type="string", example="0001")
|
|
||||||
* @SWG\Property(property="discount", type="number", format="float", example=10)
|
|
||||||
* @SWG\Property(property="po_number", type="string", example="0001")
|
|
||||||
* @SWG\Property(property="invoice_date", type="string", format="date", example="2018-01-01")
|
|
||||||
* @SWG\Property(property="due_date", type="string", format="date", example="2018-01-01")
|
|
||||||
* @SWG\Property(property="terms", type="string", example="sample")
|
|
||||||
* @SWG\Property(property="private_notes", type="string", example="Notes")
|
|
||||||
* @SWG\Property(property="public_notes", type="string", example="Notes")
|
|
||||||
* @SWG\Property(property="invoice_type_id", type="integer", example=1, readOnly=true)
|
|
||||||
* @SWG\Property(property="is_recurring", type="boolean", example=false)
|
|
||||||
* @SWG\Property(property="frequency_id", type="integer", example=1)
|
|
||||||
* @SWG\Property(property="start_date", type="string", format="date", example="2018-01-01")
|
|
||||||
* @SWG\Property(property="end_date", type="string", format="date", example="2018-01-01")
|
|
||||||
* @SWG\Property(property="last_sent_date", type="string", format="date", example="2018-01-01", readOnly=true)
|
|
||||||
* @SWG\Property(property="recurring_invoice_id", type="integer", example=1, readOnly=true)
|
|
||||||
* @SWG\Property(property="tax_name1", type="string", example="VAT")
|
|
||||||
* @SWG\Property(property="tax_name2", type="string", example="Upkeep")
|
|
||||||
* @SWG\Property(property="tax_rate1", type="number", format="float", example="17.5")
|
|
||||||
* @SWG\Property(property="tax_rate2", type="number", format="float", example="30.0")
|
|
||||||
* @SWG\Property(property="is_amount_discount", type="boolean", example=false)
|
|
||||||
* @SWG\Property(property="invoice_footer", type="string", example="Footer")
|
|
||||||
* @SWG\Property(property="partial", type="number",format="float", example=10)
|
|
||||||
* @SWG\Property(property="partial_due_date", type="string", format="date", example="2018-01-01")
|
|
||||||
* @SWG\Property(property="has_tasks", type="boolean", example=false, readOnly=true)
|
|
||||||
* @SWG\Property(property="auto_bill", type="boolean", example=false)
|
|
||||||
* @SWG\Property(property="custom_value1", type="number",format="float", example=10)
|
|
||||||
* @SWG\Property(property="custom_value2", type="number",format="float", example=10)
|
|
||||||
* @SWG\Property(property="custom_taxes1", type="boolean", example=false)
|
|
||||||
* @SWG\Property(property="custom_taxes2", type="boolean", example=false)
|
|
||||||
* @SWG\Property(property="has_expenses", type="boolean", example=false, readOnly=true)
|
|
||||||
* @SWG\Property(property="quote_invoice_id", type="integer", example=1, readOnly=true)
|
|
||||||
* @SWG\Property(property="custom_text_value1", type="string", example="Custom Text Value")
|
|
||||||
* @SWG\Property(property="custom_text_value2", type="string", example="Custom Text Value")
|
|
||||||
* @SWG\Property(property="is_quote", type="boolean", example=false, readOnly=true)
|
|
||||||
* @SWG\Property(property="is_public", type="boolean", example=false)
|
|
||||||
* @SWG\Property(property="filename", type="string", example="Filename", readOnly=true)
|
|
||||||
*/
|
|
||||||
protected $defaultIncludes = [
|
protected $defaultIncludes = [
|
||||||
// 'invoice_items',
|
// 'invoice_items',
|
||||||
];
|
];
|
||||||
|
@ -21,32 +21,9 @@ use App\Transformers\CompanyTransformer;
|
|||||||
use App\Transformers\CompanyUserTransformer;
|
use App\Transformers\CompanyUserTransformer;
|
||||||
use App\Utils\Traits\MakesHash;
|
use App\Utils\Traits\MakesHash;
|
||||||
|
|
||||||
/**
|
|
||||||
* @SWG\Definition(definition="User", @SWG\Xml(name="User"))
|
|
||||||
*/
|
|
||||||
class UserTransformer extends EntityTransformer
|
class UserTransformer extends EntityTransformer
|
||||||
{
|
{
|
||||||
use MakesHash;
|
use MakesHash;
|
||||||
/**
|
|
||||||
* @SWG\Property(property="id", type="integer", example=1, readOnly=true)
|
|
||||||
* @SWG\Property(property="first_name", type="string", example="John")
|
|
||||||
* @SWG\Property(property="last_name", type="string", example="Doe")
|
|
||||||
* @SWG\Property(property="email", type="string", example="johndoe@isp.com")
|
|
||||||
* @SWG\Property(property="account_key", type="string", example="123456")
|
|
||||||
* @SWG\Property(property="updated_at", type="integer", example=1451160233, readOnly=true)
|
|
||||||
* @SWG\Property(property="deleted_at", type="integer", example=1451160233, readOnly=true)
|
|
||||||
* @SWG\Property(property="phone", type="string", example="(212) 555-1212")
|
|
||||||
* @SWG\Property(property="registered", type="boolean", example=false)
|
|
||||||
* @SWG\Property(property="confirmed", type="boolean", example=false)
|
|
||||||
* @SWG\Property(property="oauth_user_id", type="integer", example=1)
|
|
||||||
* @SWG\Property(property="oauth_provider_id", type="integer", example=1)
|
|
||||||
* @SWG\Property(property="notify_sent", type="boolean", example=false)
|
|
||||||
* @SWG\Property(property="notify_viewed", type="boolean", example=false)
|
|
||||||
* @SWG\Property(property="notify_paid", type="boolean", example=false)
|
|
||||||
* @SWG\Property(property="notify_approved", type="boolean", example=false)
|
|
||||||
* @SWG\Property(property="is_admin", type="boolean", example=false)
|
|
||||||
* @SWG\Property(property="permissions", type="integer", example=1)
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var array
|
* @var array
|
||||||
|
Loading…
x
Reference in New Issue
Block a user