1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-14 07:02:34 +01:00
invoiceninja/app/Http/Controllers/OpenAPI/ClientSchema.php

52 lines
4.7 KiB
PHP
Raw Normal View History

2019-10-07 01:32:36 +02:00
<?php
2020-10-10 14:07:52 +02:00
/**
2019-10-07 01:32:36 +02:00
* @OA\Schema(
* schema="Client",
* type="object",
2022-08-12 10:58:37 +02:00
* @OA\Property(property="id", type="string", example="Opnel5aKBz", description="The hashed id of the client"),
* @OA\Property(property="user_id", type="string", example="", description="The hashed id of the user"),
* @OA\Property(property="company_id", type="string", example="", description="The hashed id of the company"),
2019-10-07 01:32:36 +02:00
* @OA\Property(
* property="contacts",
2019-10-07 01:32:36 +02:00
* type="array",
* @OA\Items(
* ref="#/components/schemas/ClientContact",
* ),
* ),
2022-08-12 10:58:37 +02:00
* @OA\Property(property="name", type="string", example="Jims housekeeping", description="The client name"),
* @OA\Property(property="website", type="string", example="www.jims.com", description="The client website"),
* @OA\Property(property="private_notes", type="string", example="These are very private notes", description="Private notes on the client"),
* @OA\Property(property="client_hash", type="string", example="asdfkjhk342hjhbfdvmnfb1", description="The client hash"),
* @OA\Property(property="industry_id", type="number", example="5", description="The industry id of the client"),
* @OA\Property(property="size_id", type="number", example="2", description="The size id of the client"),
* @OA\Property(property="address1", type="string", example="", description="Address line 1"),
* @OA\Property(property="address2", type="string", example="", description="Address line 2"),
* @OA\Property(property="city", type="string", example="Beverley Hills", description="City"),
* @OA\Property(property="state", type="string", example="Californnia", description="State/Locality"),
* @OA\Property(property="postal_code", type="string", example="90210", description="Zip / Postal code"),
* @OA\Property(property="phone", type="string", example="555-3434-3434", description="The client phone number"),
2022-08-12 10:58:37 +02:00
* @OA\Property(property="country_id", type="number", format="integer", example="1", description="The client country id"),
* @OA\Property(property="custom_value1", type="string", example="Something custom", description="A custom value"),
* @OA\Property(property="custom_value2", type="string", example="2002-01-01", description="A custom value"),
* @OA\Property(property="custom_value3", type="string", example="Something custom", description="A custom value"),
* @OA\Property(property="custom_value4", type="string", example="Something custom", description="A custom value"),
* @OA\Property(property="vat_number", type="string", example="VAT123", description="The client VAT number"),
* @OA\Property(property="id_number", type="string", example="CLIENT_ID_NUMBER", description=" The client id number"),
* @OA\Property(property="number", type="string", example="", description="The client number - assigned by the system typically"),
* @OA\Property(property="shipping_address1", type="string", example="5 Wallaby Way", description="The shipping address line 1"),
* @OA\Property(property="shipping_address2", type="string", example="Suite 5", description="The shipping address line 2"),
* @OA\Property(property="shipping_city", type="string", example="Perth", description="The shipping city"),
* @OA\Property(property="shipping_state", type="string", example="Western Australia", description="The shipping state"),
* @OA\Property(property="shipping_postal_code", type="string", example="6110", description="The shipping postal code"),
* @OA\Property(property="shipping_country_id", type="number", format="integer", example="4", description="The shipping country id"),
* @OA\Property(property="is_deleted", type="boolean", example=true, description="Boolean flagged determining if the client has been deleted"),
* @OA\Property(property="balance", type="number", format="float", example="10.00", description="The client balance"),
* @OA\Property(property="paid_to_date", type="number", format="float", example="10.00", description="The amount the client has paid to date."),
* @OA\Property(property="credit_balance", type="number", format="float", example="10.00", description="An amount which is available to the client for future use."),
2019-10-07 01:32:36 +02:00
* @OA\Property(property="last_login", type="number", format="integer", example="134341234234", description="Timestamp"),
* @OA\Property(property="created_at", type="number", format="integer", example="134341234234", description="Timestamp"),
* @OA\Property(property="updated_at", type="number", format="integer", example="134341234234", description="Timestamp"),
* @OA\Property(property="settings",ref="#/components/schemas/CompanySettings"),
2019-10-07 01:32:36 +02:00
* )
*/