Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions src/Picqer/Financials/Moneybird/Entities/Administration.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,16 @@

/**
* Class Administration.
*
* @property string|int $id
* @property string $name
* @property string $language
* @property string $currency
* @property string $country
* @property string $time_zone
* @property string $access
* @property bool $suspended
* @property string|null $period_locked_until
*/
class Administration extends Model
{
Expand All @@ -22,6 +32,9 @@ class Administration extends Model
'currency',
'country',
'time_zone',
'access',
'suspended',
'period_locked_until',
];

/**
Expand Down
50 changes: 49 additions & 1 deletion src/Picqer/Financials/Moneybird/Entities/Contact.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,57 @@
/**
* Class Contact.
*
* @property string $id
* @property string|int $id
* @property string|int $administration_id
* @property string|null $company_name
* @property string|null $firstname
* @property string|null $lastname
* @property string|null $attention
* @property string|null $address1
* @property string|null $address2
* @property string|null $zipcode
* @property string|null $city
* @property string $country
* @property string|null $phone
* @property string|null $delivery_method
* @property string $customer_id
* @property string|null $tax_number
* @property string|null $chamber_of_commerce
* @property string|null $bank_account
* @property bool $is_trusted
* @property float|null $max_transfer_amount
* @property string|null $email
* @property bool $email_ubl
* @property string|null $send_invoices_to_attention
* @property string|null $send_invoices_to_email
* @property string|null $send_estimates_to_attention
* @property string|null $send_estimates_to_email
* @property bool|null $sepa_active
* @property string|null $sepa_iban
* @property string|null $sepa_iban_account_name
* @property string|null $sepa_bic
* @property string|null $sepa_mandate_id
* @property string|null $sepa_mandate_date
* @property string $sepa_sequence_type
* @property string|null $credit_card_number
* @property string|null $credit_card_reference
* @property string|null $credit_card_type
* @property string|null $tax_number_validated_at
* @property bool|null $tax_number_valid
* @property string|int|null $invoice_workflow_id
* @property string|int|null $estimate_workflow_id
* @property string|null $si_identifier
* @property string|null $si_identifier_type
* @property bool $moneybird_payments_mandate
* @property string $created_at
* @property string $updated_at
* @property int $version
* @property string $sales_invoices_url
* @property array $notes
* @property ContactCustomField[] $custom_fields
* @property ContactPeople[] $contact_people
* @property bool $archived
* @property array $events
*/
class Contact extends Model
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
/**
* Class ContactCustomField.
*
* @property string $id
* @property string|int $id
* @property string $name
* @property string $value
*/
Expand Down
22 changes: 11 additions & 11 deletions src/Picqer/Financials/Moneybird/Entities/ContactPeople.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,17 @@
/**
* Class ContactPeople.
*
* @property string $id
* @property string $contact_id
* @property string $administration_id
* @property string $firstname
* @property string lastname
* @property string phone
* @property string email
* @property string department
* @property string created_at
* @property string updated_at
* @property string version
* @property string|int $id
* @property string|int $contact_id
* @property string|int $administration_id
* @property string|null $firstname
* @property string|null $lastname
* @property string|null $phone
* @property string|null $email
* @property string|null $department
* @property string $created_at
* @property string $updated_at
* @property int $version
*/
class ContactPeople extends Model
{
Expand Down
6 changes: 6 additions & 0 deletions src/Picqer/Financials/Moneybird/Entities/CustomField.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@

/**
* Class CustomField.
*
* @property string|int|null $id
* @property string|int|null $administration_id
* @property string $name
* @property string|null $source
*/
class CustomField extends Model
{
Expand All @@ -17,6 +22,7 @@ class CustomField extends Model
*/
protected $fillable = [
'id',
'administration_id',
'name',
'source',
];
Expand Down
28 changes: 27 additions & 1 deletion src/Picqer/Financials/Moneybird/Entities/DocumentStyle.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,31 @@

/**
* Class DocumentStyle.
*
* @property string|int $id
* @property string|int $administration_id
* @property string $name
* @property string|int $identity_id
* @property bool $default
* @property string|null $logo_hash
* @property bool $logo_container_full_width
* @property int $logo_display_width
* @property string $logo_position
* @property string|null $background_hash
* @property string $paper_size
* @property string $address_position
* @property string $font_size
* @property string $font_family
* @property bool $print_on_stationery
* @property string|null $custom_css
* @property string|null $invoice_sender_address
* @property string|null $invoice_metadata_left
* @property string|null $invoice_metadata_right
* @property string|null $estimate_sender_address
* @property string|null $estimate_metadata_left
* @property string|null $estimate_metadata_right
* @property string $created_at
* @property string $updated_at
*/
class DocumentStyle extends Model
{
Expand All @@ -17,6 +42,7 @@ class DocumentStyle extends Model
*/
protected $fillable = [
'id',
'administration_id',
'name',
'identity_id',
'default',
Expand All @@ -29,7 +55,7 @@ class DocumentStyle extends Model
'address_position',
'font_size',
'font_family',
'print_on_stationary',
'print_on_stationery',
'custom_css',
'invoice_sender_address',
'invoice_metadata_left',
Expand Down
56 changes: 51 additions & 5 deletions src/Picqer/Financials/Moneybird/Entities/Estimate.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,55 @@
use Picqer\Financials\Moneybird\Model;

/**
* Class Contact.
* Class Estimate.
*
* @property int $id
* @property string $company_name
* @property string $first_name
* @property string $last_name
* @property string|int $id
* @property string|int $administration_id
* @property string|int $contact_id
* @property string|int $contact_person_id
* @property Contact $contact
* @property string|int $estimate_id
* @property string|int $workflow_id
* @property string|int $document_style_id
* @property string|int $identity_id
* @property string|int $draft_id
* @property string $state
* @property string $estimate_date
* @property string $due_date
* @property string $reference
* @property string $language
* @property string $currency
* @property string $exchange_rate
* @property string $discount
* @property string|int $original_estimate_id
* @property bool $show_tax
* @property bool $sign_online
* @property string|null $sent_at
* @property string|null $accepted_at
* @property string|null $rejected_at
* @property string|null $archived_at
* @property string $created_at
* @property string $updated_at
* @property string $public_view_code
* @property int $version
* @property string|null $pre_text
* @property string|null $post_text
* @property array $details
* @property string $total_price_excl_tax
* @property string $total_price_excl_tax_base
* @property string $total_price_incl_tax
* @property string $total_price_incl_tax_base
* @property string $total_discount
* @property string $url
* @property array $custom_fields
* @property array $notes
* @property array $attachments
* @property array $events
* @property array $tax_totals
* @property bool $prices_are_incl_tax
* @property Contact $contact_person
* @property string|int $estimate_sequence_id
* @property string|null $public_view_code_expires_at
*/
class Estimate extends Model
{
Expand Down Expand Up @@ -75,6 +118,9 @@ class Estimate extends Model
'events',
'tax_totals',
'prices_are_incl_tax',
'contact_person',
'estimate_sequence_id',
'public_view_code_expires_at',
];

/**
Expand Down
6 changes: 6 additions & 0 deletions src/Picqer/Financials/Moneybird/Entities/EstimateTaxTotal.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@

/**
* Class EstimateTaxTotal.
*
* @property string|int $tax_rate_id
* @property string $taxable_amount
* @property string $taxable_amount_base
* @property string $tax_amount
* @property string $tax_amount_base
*/
class EstimateTaxTotal extends Model
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,39 @@
/**
* Class ExternalSalesInvoice.
*
* @property string $id
* @property string|int $id
* @property string|int $administration_id
* @property string|int $contact_id
* @property Contact $contact
* @property string $reference
* @property string $date
* @property string $due_date
* @property string $entry_number
* @property string $state
* @property string $currency
* @property bool $prices_are_incl_tax
* @property string $source
* @property string|null $source_url
* @property string $origin
* @property string|null $paid_at
* @property string $total_paid
* @property string $total_unpaid
* @property string $total_unpaid_base
* @property string $total_price_excl_tax
* @property string $total_price_excl_tax_base
* @property string $total_price_incl_tax
* @property string $total_price_incl_tax_base
* @property string|null $marked_dubious_on
* @property string|null $marked_uncollectible_on
* @property string $created_at
* @property string $updated_at
* @property array $details
* @property array $payments
* @property array $notes
* @property array $attachments
* @property int $version
* @property array $events
* @property array $tax_totals
*/
class ExternalSalesInvoice extends Model
{
Expand All @@ -29,7 +60,9 @@ class ExternalSalesInvoice extends Model
*/
protected $fillable = [
'id',
'administration_id',
'contact_id',
'contact',
'reference',
'date',
'due_date',
Expand All @@ -43,17 +76,22 @@ class ExternalSalesInvoice extends Model
'paid_at',
'total_paid',
'total_unpaid',
'total_unpaid_base',
'total_price_excl_tax',
'total_price_excl_tax_base',
'total_price_incl_tax',
'total_price_incl_tax_base',
'marked_dubious_on',
'marked_uncollectible_on',
'created_at',
'updated_at',
'details',
'payments',
'notes',
'attachments',
'version',
'events',
'tax_totals',
];

/**
Expand Down
12 changes: 12 additions & 0 deletions src/Picqer/Financials/Moneybird/Entities/FinancialAccount.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,17 @@

/**
* Class FinancialAccount.
*
* @property string|int $id
* @property string|int $administration_id
* @property string $type
* @property string $name
* @property string $identifier
* @property string $currency
* @property string $provider
* @property bool $active
* @property string $created_at
* @property string $updated_at
*/
class FinancialAccount extends Model
{
Expand All @@ -17,6 +28,7 @@ class FinancialAccount extends Model
*/
protected $fillable = [
'id',
'administration_id',
'type',
'name',
'identifier',
Expand Down
Loading