diff --git a/docs/html/classes/amcintosh-FreshBooks-Builder-BuilderInterface.html b/docs/html/classes/amcintosh-FreshBooks-Builder-BuilderInterface.html index 854e250..38876e1 100644 --- a/docs/html/classes/amcintosh-FreshBooks-Builder-BuilderInterface.html +++ b/docs/html/classes/amcintosh-FreshBooks-Builder-BuilderInterface.html @@ -98,6 +98,10 @@

+

+ File Uploads +

+

Webhook Callbacks

diff --git a/docs/html/classes/amcintosh-FreshBooks-Builder-FilterBuilder.html b/docs/html/classes/amcintosh-FreshBooks-Builder-FilterBuilder.html index 77fd5f9..2b5b21f 100644 --- a/docs/html/classes/amcintosh-FreshBooks-Builder-FilterBuilder.html +++ b/docs/html/classes/amcintosh-FreshBooks-Builder-FilterBuilder.html @@ -98,6 +98,10 @@

+

+ File Uploads +

+

Webhook Callbacks

diff --git a/docs/html/classes/amcintosh-FreshBooks-Builder-IncludesBuilder.html b/docs/html/classes/amcintosh-FreshBooks-Builder-IncludesBuilder.html index 8ded861..f53d705 100644 --- a/docs/html/classes/amcintosh-FreshBooks-Builder-IncludesBuilder.html +++ b/docs/html/classes/amcintosh-FreshBooks-Builder-IncludesBuilder.html @@ -98,6 +98,10 @@

+

+ File Uploads +

+

Webhook Callbacks

diff --git a/docs/html/classes/amcintosh-FreshBooks-Builder-PaginateBuilder.html b/docs/html/classes/amcintosh-FreshBooks-Builder-PaginateBuilder.html index 7af3b94..df78515 100644 --- a/docs/html/classes/amcintosh-FreshBooks-Builder-PaginateBuilder.html +++ b/docs/html/classes/amcintosh-FreshBooks-Builder-PaginateBuilder.html @@ -98,6 +98,10 @@

+

+ File Uploads +

+

Webhook Callbacks

diff --git a/docs/html/classes/amcintosh-FreshBooks-Builder-SortBuilder.html b/docs/html/classes/amcintosh-FreshBooks-Builder-SortBuilder.html index d4e2c6f..83cba18 100644 --- a/docs/html/classes/amcintosh-FreshBooks-Builder-SortBuilder.html +++ b/docs/html/classes/amcintosh-FreshBooks-Builder-SortBuilder.html @@ -98,6 +98,10 @@

+

+ File Uploads +

+

Webhook Callbacks

diff --git a/docs/html/classes/amcintosh-FreshBooks-Exception-FreshBooksClientConfigException.html b/docs/html/classes/amcintosh-FreshBooks-Exception-FreshBooksClientConfigException.html index 6d94630..32f1053 100644 --- a/docs/html/classes/amcintosh-FreshBooks-Exception-FreshBooksClientConfigException.html +++ b/docs/html/classes/amcintosh-FreshBooks-Exception-FreshBooksClientConfigException.html @@ -98,6 +98,10 @@

+

+ File Uploads +

+

Webhook Callbacks

diff --git a/docs/html/classes/amcintosh-FreshBooks-Exception-FreshBooksException.html b/docs/html/classes/amcintosh-FreshBooks-Exception-FreshBooksException.html index ce22d0e..ce47c80 100644 --- a/docs/html/classes/amcintosh-FreshBooks-Exception-FreshBooksException.html +++ b/docs/html/classes/amcintosh-FreshBooks-Exception-FreshBooksException.html @@ -98,6 +98,10 @@

+

+ File Uploads +

+

Webhook Callbacks

diff --git a/docs/html/classes/amcintosh-FreshBooks-Exception-FreshBooksNotImplementedException.html b/docs/html/classes/amcintosh-FreshBooks-Exception-FreshBooksNotImplementedException.html index 8da9409..e828645 100644 --- a/docs/html/classes/amcintosh-FreshBooks-Exception-FreshBooksNotImplementedException.html +++ b/docs/html/classes/amcintosh-FreshBooks-Exception-FreshBooksNotImplementedException.html @@ -98,6 +98,10 @@

+

+ File Uploads +

+

Webhook Callbacks

diff --git a/docs/html/classes/amcintosh-FreshBooks-FreshBooksClient.html b/docs/html/classes/amcintosh-FreshBooks-FreshBooksClient.html index b460355..505a7a1 100644 --- a/docs/html/classes/amcintosh-FreshBooks-FreshBooksClient.html +++ b/docs/html/classes/amcintosh-FreshBooks-FreshBooksClient.html @@ -98,6 +98,10 @@

+

+ File Uploads +

+

Webhook Callbacks

@@ -178,7 +182,7 @@

@@ -247,6 +251,13 @@

 : mixed +
+ attachments() + +  : UploadResource +
+
FreshBooks attachment upload resource with call to upload, get
+
callbacks() @@ -304,6 +315,13 @@

Get the current config.
+
+ images() + +  : UploadResource +
+
FreshBooks image upload resource with call to upload, get
+
invoicePaymentOptions() @@ -410,7 +428,7 @@

@@ -443,7 +461,7 @@

@@ -476,7 +494,7 @@

@@ -509,7 +527,7 @@

@@ -547,7 +565,7 @@

@@ -580,6 +598,42 @@

Parameters
+ + +
@@ -996,7 +1086,7 @@

@@ -1032,7 +1122,7 @@

@@ -1068,7 +1158,7 @@

@@ -1104,7 +1194,7 @@

@@ -1140,7 +1230,7 @@

@@ -1213,7 +1303,7 @@

@@ -1249,7 +1339,7 @@

@@ -1285,7 +1375,7 @@

@@ -1320,7 +1410,7 @@

@@ -1355,7 +1445,7 @@

@@ -1550,6 +1640,7 @@

Return values
  • +

    + File Uploads +

    +

    Webhook Callbacks

    diff --git a/docs/html/classes/amcintosh-FreshBooks-Model-AccountingList.html b/docs/html/classes/amcintosh-FreshBooks-Model-AccountingList.html index 06f620f..74a2dfd 100644 --- a/docs/html/classes/amcintosh-FreshBooks-Model-AccountingList.html +++ b/docs/html/classes/amcintosh-FreshBooks-Model-AccountingList.html @@ -98,6 +98,10 @@

  • +

    + File Uploads +

    +

    Webhook Callbacks

    diff --git a/docs/html/classes/amcintosh-FreshBooks-Model-AuthorizationToken.html b/docs/html/classes/amcintosh-FreshBooks-Model-AuthorizationToken.html index dfaeec3..27d4558 100644 --- a/docs/html/classes/amcintosh-FreshBooks-Model-AuthorizationToken.html +++ b/docs/html/classes/amcintosh-FreshBooks-Model-AuthorizationToken.html @@ -98,6 +98,10 @@

    +

    + File Uploads +

    +

    Webhook Callbacks

    diff --git a/docs/html/classes/amcintosh-FreshBooks-Model-Business.html b/docs/html/classes/amcintosh-FreshBooks-Model-Business.html index dbb42de..459e352 100644 --- a/docs/html/classes/amcintosh-FreshBooks-Model-Business.html +++ b/docs/html/classes/amcintosh-FreshBooks-Model-Business.html @@ -98,6 +98,10 @@

    +

    + File Uploads +

    +

    Webhook Callbacks

    diff --git a/docs/html/classes/amcintosh-FreshBooks-Model-BusinessAddress.html b/docs/html/classes/amcintosh-FreshBooks-Model-BusinessAddress.html index 8e10983..887b33f 100644 --- a/docs/html/classes/amcintosh-FreshBooks-Model-BusinessAddress.html +++ b/docs/html/classes/amcintosh-FreshBooks-Model-BusinessAddress.html @@ -98,6 +98,10 @@

    +

    + File Uploads +

    +

    Webhook Callbacks

    diff --git a/docs/html/classes/amcintosh-FreshBooks-Model-BusinessMembership.html b/docs/html/classes/amcintosh-FreshBooks-Model-BusinessMembership.html index 6cfe8f0..6f984e1 100644 --- a/docs/html/classes/amcintosh-FreshBooks-Model-BusinessMembership.html +++ b/docs/html/classes/amcintosh-FreshBooks-Model-BusinessMembership.html @@ -98,6 +98,10 @@

    +

    + File Uploads +

    +

    Webhook Callbacks

    diff --git a/docs/html/classes/amcintosh-FreshBooks-Model-BusinessPhone.html b/docs/html/classes/amcintosh-FreshBooks-Model-BusinessPhone.html index a7fdeaa..fda59e8 100644 --- a/docs/html/classes/amcintosh-FreshBooks-Model-BusinessPhone.html +++ b/docs/html/classes/amcintosh-FreshBooks-Model-BusinessPhone.html @@ -98,6 +98,10 @@

    +

    + File Uploads +

    +

    Webhook Callbacks

    diff --git a/docs/html/classes/amcintosh-FreshBooks-Model-Callback.html b/docs/html/classes/amcintosh-FreshBooks-Model-Callback.html index a25347e..2008573 100644 --- a/docs/html/classes/amcintosh-FreshBooks-Model-Callback.html +++ b/docs/html/classes/amcintosh-FreshBooks-Model-Callback.html @@ -98,6 +98,10 @@

    +

    + File Uploads +

    +

    Webhook Callbacks

    diff --git a/docs/html/classes/amcintosh-FreshBooks-Model-CallbackList.html b/docs/html/classes/amcintosh-FreshBooks-Model-CallbackList.html index 83b3c1c..d87826e 100644 --- a/docs/html/classes/amcintosh-FreshBooks-Model-CallbackList.html +++ b/docs/html/classes/amcintosh-FreshBooks-Model-CallbackList.html @@ -98,6 +98,10 @@

    +

    + File Uploads +

    +

    Webhook Callbacks

    diff --git a/docs/html/classes/amcintosh-FreshBooks-Model-Caster-AccountingDateTimeImmutableCaster.html b/docs/html/classes/amcintosh-FreshBooks-Model-Caster-AccountingDateTimeImmutableCaster.html index 81d30bc..f51055e 100644 --- a/docs/html/classes/amcintosh-FreshBooks-Model-Caster-AccountingDateTimeImmutableCaster.html +++ b/docs/html/classes/amcintosh-FreshBooks-Model-Caster-AccountingDateTimeImmutableCaster.html @@ -98,6 +98,10 @@

    +

    + File Uploads +

    +

    Webhook Callbacks

    diff --git a/docs/html/classes/amcintosh-FreshBooks-Model-Caster-DateCaster.html b/docs/html/classes/amcintosh-FreshBooks-Model-Caster-DateCaster.html index ef30ffa..d867c63 100644 --- a/docs/html/classes/amcintosh-FreshBooks-Model-Caster-DateCaster.html +++ b/docs/html/classes/amcintosh-FreshBooks-Model-Caster-DateCaster.html @@ -98,6 +98,10 @@

    +

    + File Uploads +

    +

    Webhook Callbacks

    diff --git a/docs/html/classes/amcintosh-FreshBooks-Model-Caster-DecimalCaster.html b/docs/html/classes/amcintosh-FreshBooks-Model-Caster-DecimalCaster.html index b3471cd..ab69069 100644 --- a/docs/html/classes/amcintosh-FreshBooks-Model-Caster-DecimalCaster.html +++ b/docs/html/classes/amcintosh-FreshBooks-Model-Caster-DecimalCaster.html @@ -98,6 +98,10 @@

    +

    + File Uploads +

    +

    Webhook Callbacks

    diff --git a/docs/html/classes/amcintosh-FreshBooks-Model-Caster-ISODateTimeImmutableCaster.html b/docs/html/classes/amcintosh-FreshBooks-Model-Caster-ISODateTimeImmutableCaster.html index 0055698..ea8bb65 100644 --- a/docs/html/classes/amcintosh-FreshBooks-Model-Caster-ISODateTimeImmutableCaster.html +++ b/docs/html/classes/amcintosh-FreshBooks-Model-Caster-ISODateTimeImmutableCaster.html @@ -98,6 +98,10 @@

    +

    + File Uploads +

    +

    Webhook Callbacks

    diff --git a/docs/html/classes/amcintosh-FreshBooks-Model-Caster-MoneyCaster.html b/docs/html/classes/amcintosh-FreshBooks-Model-Caster-MoneyCaster.html index 43c86e6..9be2e38 100644 --- a/docs/html/classes/amcintosh-FreshBooks-Model-Caster-MoneyCaster.html +++ b/docs/html/classes/amcintosh-FreshBooks-Model-Caster-MoneyCaster.html @@ -98,6 +98,10 @@

    +

    + File Uploads +

    +

    Webhook Callbacks

    diff --git a/docs/html/classes/amcintosh-FreshBooks-Model-Caster-TimestampDateTimeImmutableCaster.html b/docs/html/classes/amcintosh-FreshBooks-Model-Caster-TimestampDateTimeImmutableCaster.html index e31a949..745599a 100644 --- a/docs/html/classes/amcintosh-FreshBooks-Model-Caster-TimestampDateTimeImmutableCaster.html +++ b/docs/html/classes/amcintosh-FreshBooks-Model-Caster-TimestampDateTimeImmutableCaster.html @@ -98,6 +98,10 @@

    +

    + File Uploads +

    +

    Webhook Callbacks

    diff --git a/docs/html/classes/amcintosh-FreshBooks-Model-Client.html b/docs/html/classes/amcintosh-FreshBooks-Model-Client.html index e15e6ea..534c280 100644 --- a/docs/html/classes/amcintosh-FreshBooks-Model-Client.html +++ b/docs/html/classes/amcintosh-FreshBooks-Model-Client.html @@ -98,6 +98,10 @@

    +

    + File Uploads +

    +

    Webhook Callbacks

    diff --git a/docs/html/classes/amcintosh-FreshBooks-Model-ClientList.html b/docs/html/classes/amcintosh-FreshBooks-Model-ClientList.html index 16911ba..eb5afd2 100644 --- a/docs/html/classes/amcintosh-FreshBooks-Model-ClientList.html +++ b/docs/html/classes/amcintosh-FreshBooks-Model-ClientList.html @@ -98,6 +98,10 @@

    +

    + File Uploads +

    +

    Webhook Callbacks

    diff --git a/docs/html/classes/amcintosh-FreshBooks-Model-DataModel.html b/docs/html/classes/amcintosh-FreshBooks-Model-DataModel.html index d523ebe..d98d45b 100644 --- a/docs/html/classes/amcintosh-FreshBooks-Model-DataModel.html +++ b/docs/html/classes/amcintosh-FreshBooks-Model-DataModel.html @@ -98,6 +98,10 @@

    +

    + File Uploads +

    +

    Webhook Callbacks

    diff --git a/docs/html/classes/amcintosh-FreshBooks-Model-Expense.html b/docs/html/classes/amcintosh-FreshBooks-Model-Expense.html index da4d1fd..7924850 100644 --- a/docs/html/classes/amcintosh-FreshBooks-Model-Expense.html +++ b/docs/html/classes/amcintosh-FreshBooks-Model-Expense.html @@ -98,6 +98,10 @@

    +

    + File Uploads +

    +

    Webhook Callbacks

    diff --git a/docs/html/classes/amcintosh-FreshBooks-Model-ExpenseAttachment.html b/docs/html/classes/amcintosh-FreshBooks-Model-ExpenseAttachment.html index e2b7b0b..648f127 100644 --- a/docs/html/classes/amcintosh-FreshBooks-Model-ExpenseAttachment.html +++ b/docs/html/classes/amcintosh-FreshBooks-Model-ExpenseAttachment.html @@ -98,6 +98,10 @@

    +

    + File Uploads +

    +

    Webhook Callbacks

    @@ -186,7 +190,7 @@

    @@ -207,7 +211,7 @@

    link
    - https://www.freshbooks.com/api/expenses + https://www.freshbooks.com/api/expense-attachments
    @@ -315,7 +319,7 @@

    @@ -359,7 +363,7 @@

    @@ -394,7 +398,7 @@

    @@ -429,7 +433,7 @@

    @@ -464,7 +468,7 @@

    @@ -504,7 +508,7 @@

    diff --git a/docs/html/classes/amcintosh-FreshBooks-Model-ExpenseCategory.html b/docs/html/classes/amcintosh-FreshBooks-Model-ExpenseCategory.html index 1112a93..8940389 100644 --- a/docs/html/classes/amcintosh-FreshBooks-Model-ExpenseCategory.html +++ b/docs/html/classes/amcintosh-FreshBooks-Model-ExpenseCategory.html @@ -98,6 +98,10 @@

    +

    + File Uploads +

    +

    Webhook Callbacks

    diff --git a/docs/html/classes/amcintosh-FreshBooks-Model-ExpenseCategoryList.html b/docs/html/classes/amcintosh-FreshBooks-Model-ExpenseCategoryList.html index e52c0be..a1e9474 100644 --- a/docs/html/classes/amcintosh-FreshBooks-Model-ExpenseCategoryList.html +++ b/docs/html/classes/amcintosh-FreshBooks-Model-ExpenseCategoryList.html @@ -98,6 +98,10 @@

    +

    + File Uploads +

    +

    Webhook Callbacks

    diff --git a/docs/html/classes/amcintosh-FreshBooks-Model-ExpenseList.html b/docs/html/classes/amcintosh-FreshBooks-Model-ExpenseList.html index cb0a162..7cb942c 100644 --- a/docs/html/classes/amcintosh-FreshBooks-Model-ExpenseList.html +++ b/docs/html/classes/amcintosh-FreshBooks-Model-ExpenseList.html @@ -98,6 +98,10 @@

    +

    + File Uploads +

    +

    Webhook Callbacks

    diff --git a/docs/html/classes/amcintosh-FreshBooks-Model-ExpenseStatus.html b/docs/html/classes/amcintosh-FreshBooks-Model-ExpenseStatus.html index 5778cf8..b41d6b7 100644 --- a/docs/html/classes/amcintosh-FreshBooks-Model-ExpenseStatus.html +++ b/docs/html/classes/amcintosh-FreshBooks-Model-ExpenseStatus.html @@ -98,6 +98,10 @@

    +

    + File Uploads +

    +

    Webhook Callbacks

    diff --git a/docs/html/classes/amcintosh-FreshBooks-Model-FileUpload.html b/docs/html/classes/amcintosh-FreshBooks-Model-FileUpload.html new file mode 100644 index 0000000..bcd74f7 --- /dev/null +++ b/docs/html/classes/amcintosh-FreshBooks-Model-FileUpload.html @@ -0,0 +1,671 @@ + + + + + freshbooks-php-sdk + + + + + + + + + + + + + + + + + + + + + +
    +

    freshbooks-php-sdk

    + + + + + +
    + +
    +
    + + + + +
    +
    + + +
    +

    + FileUpload + + +
    + in package + +
    + + +

    + +
    + + +
    + + + +

    A file that has been uploaded to FreshBooks.

    + + + + + + +

    + Table of Contents + + +

    + + + + + + + + + +

    + Properties + + +

    +
    +
    + $fileName + +  : string +
    + +
    + $jwt + +  : string +
    + +
    + $link + +  : string +
    + +
    + $mediaType + +  : string +
    + +
    + $responseBody + +  : string +
    + +
    + +

    + Methods + + +

    +
    +
    + __construct() + +  : mixed +
    + +
    + + + + + + + +
    +

    + Properties + + +

    +
    +

    + $fileName + + + + +

    + + + + + public + string + $fileName + + + +

    The name of the file uploaded to FreshBooks.

    +

    This is returned from the API in the X-filename header.

    +
    + + + +
    +
    +

    + $jwt + + + + +

    + + + + + public + string + $jwt + + + +

    The JWT used to fetch the file from FreshBooks.

    +
    + + + +
    +
    + + + + + + public + string + $link + + + +

    A fully qualified path the the file from FreshBooks.

    +
    + + + +
    +
    +

    + $mediaType + + + + +

    + + + + + public + string + $mediaType + + + +

    The media type (eg. image/png) of the file uploaded to FreshBooks.

    +
    + + + +
    +
    +

    + $responseBody + + + + +

    + + + + + public + string + $responseBody + + + +

    The PSR StreamInterface steam of data from the request body.

    +
    + + + +
    +
    + +
    +

    + Methods + + +

    +
    +

    + __construct() + + +

    + + + + + public + __construct(string|null $fileName, string|null $mediaType, StreamInterface|null $responseBody) : mixed + +
    +
    + +
    Parameters
    +
    +
    + $fileName + : string|null +
    +
    + +
    +
    + $mediaType + : string|null +
    +
    + +
    +
    + $responseBody + : StreamInterface|null +
    +
    + +
    +
    + + + + +
    +
    + +
    +
    +
    +
    +
    
    +        
    + +
    +
    + + + +
    +
    +
    + +
    + On this page + + +
    + +
    +
    +
    +
    +
    +

    Search results

    + +
    +
    +
      +
      +
      +
      +
      + + +
      + + + + + + + + diff --git a/docs/html/classes/amcintosh-FreshBooks-Model-Identity.html b/docs/html/classes/amcintosh-FreshBooks-Model-Identity.html index b38e21f..8a050b2 100644 --- a/docs/html/classes/amcintosh-FreshBooks-Model-Identity.html +++ b/docs/html/classes/amcintosh-FreshBooks-Model-Identity.html @@ -98,6 +98,10 @@

      +

      + File Uploads +

      +

      Webhook Callbacks

      diff --git a/docs/html/classes/amcintosh-FreshBooks-Model-Invoice.html b/docs/html/classes/amcintosh-FreshBooks-Model-Invoice.html index 0df99d2..cc80f4a 100644 --- a/docs/html/classes/amcintosh-FreshBooks-Model-Invoice.html +++ b/docs/html/classes/amcintosh-FreshBooks-Model-Invoice.html @@ -98,6 +98,10 @@

      +

      + File Uploads +

      +

      Webhook Callbacks

      diff --git a/docs/html/classes/amcintosh-FreshBooks-Model-InvoiceAttachment.html b/docs/html/classes/amcintosh-FreshBooks-Model-InvoiceAttachment.html new file mode 100644 index 0000000..e17f985 --- /dev/null +++ b/docs/html/classes/amcintosh-FreshBooks-Model-InvoiceAttachment.html @@ -0,0 +1,737 @@ + + + + + freshbooks-php-sdk + + + + + + + + + + + + + + + + + + + + + +
      +

      freshbooks-php-sdk

      + + + + + +
      + +
      +
      + + + + +
      +
      + + +
      +

      + InvoiceAttachment + + + extends DataTransferObject + + +
      + in package + +
      + + + implements + DataModel + +

      + +
      + + +
      + + + +

      Attached files and images to include with an invoice.

      + +

      Note: This data is not in the default response and will only be +present with the use of a corresponding "includes" filter.

      +
      + + +
      + Tags + + +
      +
      +
      + link +
      +
      + https://www.freshbooks.com/api/invoice_presentation_attachments + +
      +
      + + + +

      + Table of Contents + + +

      + + + +

      + Interfaces + + +

      +
      +
      DataModel
      + + + + +

      + Constants + + +

      +
      +
      + RESPONSE_FIELD + +  = 'expense' +
      + +
      + + +

      + Properties + + +

      +
      +
      + $attachmentId + +  : int +
      + +
      + $expenseId + +  : int +
      + +
      + $id + +  : int +
      + +
      + $jwt + +  : string +
      + +
      + $mediaType + +  : string +
      + +
      + +

      + Methods + + +

      +
      +
      + getContent() + +  : array<string|int, mixed> +
      +
      Get the data as an array to POST or PUT to FreshBooks, removing any read-only fields.
      + +
      + + + + + +
      +

      + Constants + + +

      +
      +

      + RESPONSE_FIELD + + +

      + + + + + + public + mixed + RESPONSE_FIELD + = 'expense' + + + + + + + +
      +
      + + +
      +

      + Properties + + +

      +
      +

      + $attachmentId + + + + +

      + + + + + public + int + $attachmentId + + + +

      Duplicate of id

      +
      + + + +
      +
      +

      + $expenseId + + + + +

      + + + + + public + int + $expenseId + + + +

      Id of the expense this attachment is associated with, if applicable.

      +
      + + + +
      +
      +

      + $id + + + + +

      + + + + + public + int + $id + + + +

      The unique identifier of this expense attachment within this business.

      +
      + + + +
      +
      +

      + $jwt + + + + +

      + + + + + public + string + $jwt + + + +

      JWT link to the attachment.

      +
      + + + +
      +
      +

      + $mediaType + + + + +

      + + + + + public + string + $mediaType + + + +

      Type of the attachment.

      +
      + + + +
      +
      + +
      +

      + Methods + + +

      +
      +

      + getContent() + + +

      + + +

      Get the data as an array to POST or PUT to FreshBooks, removing any read-only fields.

      + + + public + getContent() : array<string|int, mixed> + +
      +
      + + + + +
      +
      Return values
      + array<string|int, mixed> +
      + +
      +
      + +
      +
      +
      +
      +
      
      +        
      + +
      +
      + + + +
      +
      +
      + +
      + On this page + + +
      + +
      +
      +
      +
      +
      +

      Search results

      + +
      +
      +
        +
        +
        +
        +
        + + +
        + + + + + + + + diff --git a/docs/html/classes/amcintosh-FreshBooks-Model-InvoiceList.html b/docs/html/classes/amcintosh-FreshBooks-Model-InvoiceList.html index 459335f..d57fe21 100644 --- a/docs/html/classes/amcintosh-FreshBooks-Model-InvoiceList.html +++ b/docs/html/classes/amcintosh-FreshBooks-Model-InvoiceList.html @@ -98,6 +98,10 @@

        +

        + File Uploads +

        +

        Webhook Callbacks

        diff --git a/docs/html/classes/amcintosh-FreshBooks-Model-InvoicePaymentOptions.html b/docs/html/classes/amcintosh-FreshBooks-Model-InvoicePaymentOptions.html index 41142d4..725f77e 100644 --- a/docs/html/classes/amcintosh-FreshBooks-Model-InvoicePaymentOptions.html +++ b/docs/html/classes/amcintosh-FreshBooks-Model-InvoicePaymentOptions.html @@ -98,6 +98,10 @@

        +

        + File Uploads +

        +

        Webhook Callbacks

        diff --git a/docs/html/classes/amcintosh-FreshBooks-Model-InvoicePresentation.html b/docs/html/classes/amcintosh-FreshBooks-Model-InvoicePresentation.html index 8e0e88b..60975e8 100644 --- a/docs/html/classes/amcintosh-FreshBooks-Model-InvoicePresentation.html +++ b/docs/html/classes/amcintosh-FreshBooks-Model-InvoicePresentation.html @@ -98,6 +98,10 @@

        +

        + File Uploads +

        +

        Webhook Callbacks

        diff --git a/docs/html/classes/amcintosh-FreshBooks-Model-InvoiceStatus.html b/docs/html/classes/amcintosh-FreshBooks-Model-InvoiceStatus.html index d9bc2b5..3ef22d3 100644 --- a/docs/html/classes/amcintosh-FreshBooks-Model-InvoiceStatus.html +++ b/docs/html/classes/amcintosh-FreshBooks-Model-InvoiceStatus.html @@ -98,6 +98,10 @@

        +

        + File Uploads +

        +

        Webhook Callbacks

        diff --git a/docs/html/classes/amcintosh-FreshBooks-Model-Item.html b/docs/html/classes/amcintosh-FreshBooks-Model-Item.html index 7b80378..a548037 100644 --- a/docs/html/classes/amcintosh-FreshBooks-Model-Item.html +++ b/docs/html/classes/amcintosh-FreshBooks-Model-Item.html @@ -98,6 +98,10 @@

        +

        + File Uploads +

        +

        Webhook Callbacks

        diff --git a/docs/html/classes/amcintosh-FreshBooks-Model-ItemList.html b/docs/html/classes/amcintosh-FreshBooks-Model-ItemList.html index 2d69c99..d02de5a 100644 --- a/docs/html/classes/amcintosh-FreshBooks-Model-ItemList.html +++ b/docs/html/classes/amcintosh-FreshBooks-Model-ItemList.html @@ -98,6 +98,10 @@

        +

        + File Uploads +

        +

        Webhook Callbacks

        diff --git a/docs/html/classes/amcintosh-FreshBooks-Model-LineItem.html b/docs/html/classes/amcintosh-FreshBooks-Model-LineItem.html index 15c3b0c..80bb40b 100644 --- a/docs/html/classes/amcintosh-FreshBooks-Model-LineItem.html +++ b/docs/html/classes/amcintosh-FreshBooks-Model-LineItem.html @@ -98,6 +98,10 @@

        +

        + File Uploads +

        +

        Webhook Callbacks

        diff --git a/docs/html/classes/amcintosh-FreshBooks-Model-ListMeta.html b/docs/html/classes/amcintosh-FreshBooks-Model-ListMeta.html index d12ef61..9fafa4a 100644 --- a/docs/html/classes/amcintosh-FreshBooks-Model-ListMeta.html +++ b/docs/html/classes/amcintosh-FreshBooks-Model-ListMeta.html @@ -98,6 +98,10 @@

        +

        + File Uploads +

        +

        Webhook Callbacks

        diff --git a/docs/html/classes/amcintosh-FreshBooks-Model-Money.html b/docs/html/classes/amcintosh-FreshBooks-Model-Money.html index 8c5906e..f8b0552 100644 --- a/docs/html/classes/amcintosh-FreshBooks-Model-Money.html +++ b/docs/html/classes/amcintosh-FreshBooks-Model-Money.html @@ -98,6 +98,10 @@

        +

        + File Uploads +

        +

        Webhook Callbacks

        diff --git a/docs/html/classes/amcintosh-FreshBooks-Model-Pages.html b/docs/html/classes/amcintosh-FreshBooks-Model-Pages.html index 43a9feb..500a183 100644 --- a/docs/html/classes/amcintosh-FreshBooks-Model-Pages.html +++ b/docs/html/classes/amcintosh-FreshBooks-Model-Pages.html @@ -98,6 +98,10 @@

        +

        + File Uploads +

        +

        Webhook Callbacks

        diff --git a/docs/html/classes/amcintosh-FreshBooks-Model-Payment.html b/docs/html/classes/amcintosh-FreshBooks-Model-Payment.html index c22ce03..420315e 100644 --- a/docs/html/classes/amcintosh-FreshBooks-Model-Payment.html +++ b/docs/html/classes/amcintosh-FreshBooks-Model-Payment.html @@ -98,6 +98,10 @@

        +

        + File Uploads +

        +

        Webhook Callbacks

        diff --git a/docs/html/classes/amcintosh-FreshBooks-Model-PaymentList.html b/docs/html/classes/amcintosh-FreshBooks-Model-PaymentList.html index df146f2..ccb0898 100644 --- a/docs/html/classes/amcintosh-FreshBooks-Model-PaymentList.html +++ b/docs/html/classes/amcintosh-FreshBooks-Model-PaymentList.html @@ -98,6 +98,10 @@

        +

        + File Uploads +

        +

        Webhook Callbacks

        diff --git a/docs/html/classes/amcintosh-FreshBooks-Model-Project.html b/docs/html/classes/amcintosh-FreshBooks-Model-Project.html index 476f376..7d1ea42 100644 --- a/docs/html/classes/amcintosh-FreshBooks-Model-Project.html +++ b/docs/html/classes/amcintosh-FreshBooks-Model-Project.html @@ -98,6 +98,10 @@

        +

        + File Uploads +

        +

        Webhook Callbacks

        diff --git a/docs/html/classes/amcintosh-FreshBooks-Model-ProjectGroup.html b/docs/html/classes/amcintosh-FreshBooks-Model-ProjectGroup.html index 0460a36..cae7da1 100644 --- a/docs/html/classes/amcintosh-FreshBooks-Model-ProjectGroup.html +++ b/docs/html/classes/amcintosh-FreshBooks-Model-ProjectGroup.html @@ -98,6 +98,10 @@

        +

        + File Uploads +

        +

        Webhook Callbacks

        diff --git a/docs/html/classes/amcintosh-FreshBooks-Model-ProjectGroupInvitation.html b/docs/html/classes/amcintosh-FreshBooks-Model-ProjectGroupInvitation.html index a5e9b46..62f98b3 100644 --- a/docs/html/classes/amcintosh-FreshBooks-Model-ProjectGroupInvitation.html +++ b/docs/html/classes/amcintosh-FreshBooks-Model-ProjectGroupInvitation.html @@ -98,6 +98,10 @@

        +

        + File Uploads +

        +

        Webhook Callbacks

        diff --git a/docs/html/classes/amcintosh-FreshBooks-Model-ProjectGroupMember.html b/docs/html/classes/amcintosh-FreshBooks-Model-ProjectGroupMember.html index 47d576a..25a2aa5 100644 --- a/docs/html/classes/amcintosh-FreshBooks-Model-ProjectGroupMember.html +++ b/docs/html/classes/amcintosh-FreshBooks-Model-ProjectGroupMember.html @@ -98,6 +98,10 @@

        +

        + File Uploads +

        +

        Webhook Callbacks

        diff --git a/docs/html/classes/amcintosh-FreshBooks-Model-ProjectLikeList.html b/docs/html/classes/amcintosh-FreshBooks-Model-ProjectLikeList.html index e62ab44..6f2831c 100644 --- a/docs/html/classes/amcintosh-FreshBooks-Model-ProjectLikeList.html +++ b/docs/html/classes/amcintosh-FreshBooks-Model-ProjectLikeList.html @@ -98,6 +98,10 @@

        +

        + File Uploads +

        +

        Webhook Callbacks

        diff --git a/docs/html/classes/amcintosh-FreshBooks-Model-ProjectList.html b/docs/html/classes/amcintosh-FreshBooks-Model-ProjectList.html index 948dfa0..9633c1b 100644 --- a/docs/html/classes/amcintosh-FreshBooks-Model-ProjectList.html +++ b/docs/html/classes/amcintosh-FreshBooks-Model-ProjectList.html @@ -98,6 +98,10 @@

        +

        + File Uploads +

        +

        Webhook Callbacks

        diff --git a/docs/html/classes/amcintosh-FreshBooks-Model-Service.html b/docs/html/classes/amcintosh-FreshBooks-Model-Service.html index 478fd14..f3c0354 100644 --- a/docs/html/classes/amcintosh-FreshBooks-Model-Service.html +++ b/docs/html/classes/amcintosh-FreshBooks-Model-Service.html @@ -98,6 +98,10 @@

        +

        + File Uploads +

        +

        Webhook Callbacks

        diff --git a/docs/html/classes/amcintosh-FreshBooks-Model-Task.html b/docs/html/classes/amcintosh-FreshBooks-Model-Task.html index 5dc8fd9..6526e93 100644 --- a/docs/html/classes/amcintosh-FreshBooks-Model-Task.html +++ b/docs/html/classes/amcintosh-FreshBooks-Model-Task.html @@ -98,6 +98,10 @@

        +

        + File Uploads +

        +

        Webhook Callbacks

        diff --git a/docs/html/classes/amcintosh-FreshBooks-Model-TaskList.html b/docs/html/classes/amcintosh-FreshBooks-Model-TaskList.html index c3586a6..a641c81 100644 --- a/docs/html/classes/amcintosh-FreshBooks-Model-TaskList.html +++ b/docs/html/classes/amcintosh-FreshBooks-Model-TaskList.html @@ -98,6 +98,10 @@

        +

        + File Uploads +

        +

        Webhook Callbacks

        diff --git a/docs/html/classes/amcintosh-FreshBooks-Model-Tax.html b/docs/html/classes/amcintosh-FreshBooks-Model-Tax.html index 1cdbbed..9e17a58 100644 --- a/docs/html/classes/amcintosh-FreshBooks-Model-Tax.html +++ b/docs/html/classes/amcintosh-FreshBooks-Model-Tax.html @@ -98,6 +98,10 @@

        +

        + File Uploads +

        +

        Webhook Callbacks

        diff --git a/docs/html/classes/amcintosh-FreshBooks-Model-TaxList.html b/docs/html/classes/amcintosh-FreshBooks-Model-TaxList.html index a83a54d..ddedf41 100644 --- a/docs/html/classes/amcintosh-FreshBooks-Model-TaxList.html +++ b/docs/html/classes/amcintosh-FreshBooks-Model-TaxList.html @@ -98,6 +98,10 @@

        +

        + File Uploads +

        +

        Webhook Callbacks

        diff --git a/docs/html/classes/amcintosh-FreshBooks-Model-VisState.html b/docs/html/classes/amcintosh-FreshBooks-Model-VisState.html index 7b4dd13..1c6fd39 100644 --- a/docs/html/classes/amcintosh-FreshBooks-Model-VisState.html +++ b/docs/html/classes/amcintosh-FreshBooks-Model-VisState.html @@ -98,6 +98,10 @@

        +

        + File Uploads +

        +

        Webhook Callbacks

        diff --git a/docs/html/classes/amcintosh-FreshBooks-Resource-AccountingResource.html b/docs/html/classes/amcintosh-FreshBooks-Resource-AccountingResource.html index c5b2fd2..23fdaf9 100644 --- a/docs/html/classes/amcintosh-FreshBooks-Resource-AccountingResource.html +++ b/docs/html/classes/amcintosh-FreshBooks-Resource-AccountingResource.html @@ -98,6 +98,10 @@

        +

        + File Uploads +

        +

        Webhook Callbacks

        diff --git a/docs/html/classes/amcintosh-FreshBooks-Resource-AuthResource.html b/docs/html/classes/amcintosh-FreshBooks-Resource-AuthResource.html index 2adadef..8614f45 100644 --- a/docs/html/classes/amcintosh-FreshBooks-Resource-AuthResource.html +++ b/docs/html/classes/amcintosh-FreshBooks-Resource-AuthResource.html @@ -98,6 +98,10 @@

        +

        + File Uploads +

        +

        Webhook Callbacks

        diff --git a/docs/html/classes/amcintosh-FreshBooks-Resource-BaseResource.html b/docs/html/classes/amcintosh-FreshBooks-Resource-BaseResource.html index 1f101c3..6d66ebb 100644 --- a/docs/html/classes/amcintosh-FreshBooks-Resource-BaseResource.html +++ b/docs/html/classes/amcintosh-FreshBooks-Resource-BaseResource.html @@ -98,6 +98,10 @@

        +

        + File Uploads +

        +

        Webhook Callbacks

        diff --git a/docs/html/classes/amcintosh-FreshBooks-Resource-EventsResource.html b/docs/html/classes/amcintosh-FreshBooks-Resource-EventsResource.html index 82b9735..5236ef5 100644 --- a/docs/html/classes/amcintosh-FreshBooks-Resource-EventsResource.html +++ b/docs/html/classes/amcintosh-FreshBooks-Resource-EventsResource.html @@ -98,6 +98,10 @@

        +

        + File Uploads +

        +

        Webhook Callbacks

        diff --git a/docs/html/classes/amcintosh-FreshBooks-Resource-PaymentResource.html b/docs/html/classes/amcintosh-FreshBooks-Resource-PaymentResource.html index 72562dc..ff9b8d0 100644 --- a/docs/html/classes/amcintosh-FreshBooks-Resource-PaymentResource.html +++ b/docs/html/classes/amcintosh-FreshBooks-Resource-PaymentResource.html @@ -98,6 +98,10 @@

        +

        + File Uploads +

        +

        Webhook Callbacks

        diff --git a/docs/html/classes/amcintosh-FreshBooks-Resource-ProjectResource.html b/docs/html/classes/amcintosh-FreshBooks-Resource-ProjectResource.html index 58b9089..67b1330 100644 --- a/docs/html/classes/amcintosh-FreshBooks-Resource-ProjectResource.html +++ b/docs/html/classes/amcintosh-FreshBooks-Resource-ProjectResource.html @@ -98,6 +98,10 @@

        +

        + File Uploads +

        +

        Webhook Callbacks

        diff --git a/docs/html/classes/amcintosh-FreshBooks-Resource-UploadResource.html b/docs/html/classes/amcintosh-FreshBooks-Resource-UploadResource.html new file mode 100644 index 0000000..2d05037 --- /dev/null +++ b/docs/html/classes/amcintosh-FreshBooks-Resource-UploadResource.html @@ -0,0 +1,1197 @@ + + + + + freshbooks-php-sdk + + + + + + + + + + + + + + + + + + + + + +
        +

        freshbooks-php-sdk

        + + + + + +
        + +
        +
        + + + + +
        +
        + + +
        +

        + UploadResource + + + extends BaseResource + + +
        + in package + +
        + + +

        + +
        + + +
        + + + + + + + + + +

        + Table of Contents + + +

        + + + + + + + +

        + Constants + + +

        +
        +
        + DELETE + +  = 'DELETE' +
        + +
        + GET + +  = 'GET' +
        + +
        + PATCH + +  = 'PATCH' +
        + +
        + POST + +  = 'POST' +
        + +
        + PUT + +  = 'PUT' +
        + +
        + + +

        + Properties + + +

        +
        +
        + $httpClient + +  : HttpClient +
        + +
        + $resourceName + +  : string +
        + +
        + $uploadPath + +  : string +
        + +
        + +

        + Methods + + +

        +
        +
        + __construct() + +  : mixed +
        + +
        + get() + +  : FileUpload +
        +
        Get an uploaded file.
        + +
        + upload() + +  : FileUpload +
        +
        Upload a file to FreshBooks.
        + +
        + buildQueryString() + +  : string +
        + +
        + getUrl() + +  : string +
        +
        The the url to the upload resource.
        + +
        + handleError() + +  : void +
        +
        Create a FreshBooksException from the json response from the uploads endpoint.
        + +
        + makeGetFileRequest() + +  : FileUpload +
        +
        Make a request against the uploads resource. Returns an object containing a +Psr\Http\Message\StreamInterface for flexibility.
        + +
        + makeUploadRequest() + +  : FileUpload +
        +
        Make creates a POST request to upload a file to FreshBooks.
        + +
        + + + + + +
        +

        + Constants + + +

        +
        +

        + DELETE + + +

        + + + + + + protected + mixed + DELETE + = 'DELETE' + + + + + + + +
        +
        +

        + GET + + +

        + + + + + + protected + mixed + GET + = 'GET' + + + + + + + +
        +
        +

        + PATCH + + +

        + + + + + + protected + mixed + PATCH + = 'PATCH' + + + + + + + +
        +
        +

        + POST + + +

        + + + + + + protected + mixed + POST + = 'POST' + + + + + + + +
        +
        +

        + PUT + + +

        + + + + + + protected + mixed + PUT + = 'PUT' + + + + + + + +
        +
        + + +
        +

        + Properties + + +

        +
        +

        + $httpClient + + + + +

        + + + + + protected + HttpClient + $httpClient + + + + + + +
        +
        +

        + $resourceName + + + + +

        + + + + + protected + string + $resourceName + + + + + + +
        +
        +

        + $uploadPath + + + + +

        + + + + + protected + string + $uploadPath + + + + + + +
        +
        + +
        +

        + Methods + + +

        +
        +

        + __construct() + + +

        + + + + + public + __construct(HttpClient $httpClient, string $uploadPath, string $resourceName) : mixed + +
        +
        + +
        Parameters
        +
        +
        + $httpClient + : HttpClient +
        +
        + +
        +
        + $uploadPath + : string +
        +
        + +
        +
        + $resourceName + : string +
        +
        + +
        +
        + + + + +
        +
        +

        + get() + + +

        + + +

        Get an uploaded file.

        + + + public + get(string $jwt) : FileUpload + +
        +
        + +
        Parameters
        +
        +
        + $jwt + : string +
        +
        +

        JWT provided by FreshBooks when the file was uploaded.

        +
        + +
        +
        + + + +
        +
        Return values
        + FileUpload + — +

        Object containing the file name, content type, and stream of data.

        +
        + +
        + +
        +
        +

        + upload() + + +

        + + +

        Upload a file to FreshBooks.

        + + + public + upload(string $accountId, mixed $file) : FileUpload + +
        +
        + +
        Parameters
        +
        +
        + $accountId + : string +
        +
        +

        The alpha-numeric account id

        +
        + +
        +
        + $file + : mixed +
        +
        + +
        +
        + + + +
        +
        Return values
        + FileUpload + — +

        Object containing the JWT, file name, content type.

        +
        + +
        + +
        +
        +

        + buildQueryString() + + +

        + + + + + protected + buildQueryString(array<string|int, mixed>|null $builders) : string + +
        +
        + +
        Parameters
        +
        +
        + $builders + : array<string|int, mixed>|null +
        +
        + +
        +
        + + + +
        +
        Return values
        + string +
        + +
        +
        +

        + getUrl() + + +

        + + +

        The the url to the upload resource.

        + + + protected + getUrl([string $accountId = null ][, string $jwt = null ]) : string + +
        +
        + +
        Parameters
        +
        +
        + $accountId + : string + = null
        +
        + +
        +
        + $jwt + : string + = null
        +
        + +
        +
        + + + +
        +
        Return values
        + string +
        + +
        +
        +

        + handleError() + + +

        + + +

        Create a FreshBooksException from the json response from the uploads endpoint.

        + + + protected + handleError(int $statusCode, string $contents) : void + +
        +
        + +
        Parameters
        +
        +
        + $statusCode + : int +
        +
        +

        HTTP status code

        +
        + +
        +
        + $contents + : string +
        +
        +

        The response contents

        +
        + +
        +
        + + + + +
        +
        +

        + makeGetFileRequest() + + +

        + + +

        Make a request against the uploads resource. Returns an object containing a +Psr\Http\Message\StreamInterface for flexibility.

        + + + private + makeGetFileRequest(string $url) : FileUpload + +
        +
        +

        Throws a FreshBooksException if the response is not a 200.

        +
        + +
        Parameters
        +
        +
        + $url + : string +
        +
        + +
        +
        + + + +
        +
        Return values
        + FileUpload +
        + +
        +
        +

        + makeUploadRequest() + + +

        + + +

        Make creates a POST request to upload a file to FreshBooks.

        + + + private + makeUploadRequest(string $url, mixed $file) : FileUpload + +
        +
        +

        Throws a FreshBooksException if the response is not a 200.

        +
        + +
        Parameters
        +
        +
        + $url + : string +
        +
        + +
        +
        + $file + : mixed +
        +
        + +
        +
        + + + +
        +
        Return values
        + FileUpload +
        + +
        +
        + +
        +
        +
        +
        +
        
        +        
        + +
        +
        + + + +
        +
        +
        + +
        + On this page + + +
        + +
        +
        +
        +
        +
        +

        Search results

        + +
        +
        +
          +
          +
          +
          +
          + + +
          + + + + + + + + diff --git a/docs/html/files/src-builder-builderinterface.html b/docs/html/files/src-builder-builderinterface.html index 63310cd..63a96ca 100644 --- a/docs/html/files/src-builder-builderinterface.html +++ b/docs/html/files/src-builder-builderinterface.html @@ -98,6 +98,10 @@

          +

          + File Uploads +

          +

          Webhook Callbacks

          diff --git a/docs/html/files/src-builder-filterbuilder.html b/docs/html/files/src-builder-filterbuilder.html index c7d543b..0b3b209 100644 --- a/docs/html/files/src-builder-filterbuilder.html +++ b/docs/html/files/src-builder-filterbuilder.html @@ -98,6 +98,10 @@

          +

          + File Uploads +

          +

          Webhook Callbacks

          diff --git a/docs/html/files/src-builder-includesbuilder.html b/docs/html/files/src-builder-includesbuilder.html index 6696c65..7df0e8e 100644 --- a/docs/html/files/src-builder-includesbuilder.html +++ b/docs/html/files/src-builder-includesbuilder.html @@ -98,6 +98,10 @@

          +

          + File Uploads +

          +

          Webhook Callbacks

          diff --git a/docs/html/files/src-builder-paginatebuilder.html b/docs/html/files/src-builder-paginatebuilder.html index 3d9339d..06b1ec9 100644 --- a/docs/html/files/src-builder-paginatebuilder.html +++ b/docs/html/files/src-builder-paginatebuilder.html @@ -98,6 +98,10 @@

          +

          + File Uploads +

          +

          Webhook Callbacks

          diff --git a/docs/html/files/src-builder-sortbuilder.html b/docs/html/files/src-builder-sortbuilder.html index d39fc87..1692369 100644 --- a/docs/html/files/src-builder-sortbuilder.html +++ b/docs/html/files/src-builder-sortbuilder.html @@ -98,6 +98,10 @@

          +

          + File Uploads +

          +

          Webhook Callbacks

          diff --git a/docs/html/files/src-exception-freshbooksclientconfigexception.html b/docs/html/files/src-exception-freshbooksclientconfigexception.html index ec6d3d1..f622ef2 100644 --- a/docs/html/files/src-exception-freshbooksclientconfigexception.html +++ b/docs/html/files/src-exception-freshbooksclientconfigexception.html @@ -98,6 +98,10 @@

          +

          + File Uploads +

          +

          Webhook Callbacks

          diff --git a/docs/html/files/src-exception-freshbooksexception.html b/docs/html/files/src-exception-freshbooksexception.html index d27c1cd..bfefe8e 100644 --- a/docs/html/files/src-exception-freshbooksexception.html +++ b/docs/html/files/src-exception-freshbooksexception.html @@ -98,6 +98,10 @@

          +

          + File Uploads +

          +

          Webhook Callbacks

          diff --git a/docs/html/files/src-exception-freshbooksnotimplementedexception.html b/docs/html/files/src-exception-freshbooksnotimplementedexception.html index 4eaaffe..a68ecf8 100644 --- a/docs/html/files/src-exception-freshbooksnotimplementedexception.html +++ b/docs/html/files/src-exception-freshbooksnotimplementedexception.html @@ -98,6 +98,10 @@

          +

          + File Uploads +

          +

          Webhook Callbacks

          diff --git a/docs/html/files/src-freshbooksclient.html b/docs/html/files/src-freshbooksclient.html index 331d8e2..7a36943 100644 --- a/docs/html/files/src-freshbooksclient.html +++ b/docs/html/files/src-freshbooksclient.html @@ -98,6 +98,10 @@

          +

          + File Uploads +

          +

          Webhook Callbacks

          diff --git a/docs/html/files/src-freshbooksclientconfig.html b/docs/html/files/src-freshbooksclientconfig.html index 8f45339..6655522 100644 --- a/docs/html/files/src-freshbooksclientconfig.html +++ b/docs/html/files/src-freshbooksclientconfig.html @@ -98,6 +98,10 @@

          +

          + File Uploads +

          +

          Webhook Callbacks

          diff --git a/docs/html/files/src-model-accountinglist.html b/docs/html/files/src-model-accountinglist.html index 744709c..c86047d 100644 --- a/docs/html/files/src-model-accountinglist.html +++ b/docs/html/files/src-model-accountinglist.html @@ -98,6 +98,10 @@

          +

          + File Uploads +

          +

          Webhook Callbacks

          diff --git a/docs/html/files/src-model-authorizationtoken.html b/docs/html/files/src-model-authorizationtoken.html index 4f91889..bf3f6fb 100644 --- a/docs/html/files/src-model-authorizationtoken.html +++ b/docs/html/files/src-model-authorizationtoken.html @@ -98,6 +98,10 @@

          +

          + File Uploads +

          +

          Webhook Callbacks

          diff --git a/docs/html/files/src-model-business.html b/docs/html/files/src-model-business.html index 6cf8bc5..8561634 100644 --- a/docs/html/files/src-model-business.html +++ b/docs/html/files/src-model-business.html @@ -98,6 +98,10 @@

          +

          + File Uploads +

          +

          Webhook Callbacks

          diff --git a/docs/html/files/src-model-businessaddress.html b/docs/html/files/src-model-businessaddress.html index 9498f4c..35e235e 100644 --- a/docs/html/files/src-model-businessaddress.html +++ b/docs/html/files/src-model-businessaddress.html @@ -98,6 +98,10 @@

          +

          + File Uploads +

          +

          Webhook Callbacks

          diff --git a/docs/html/files/src-model-businessmembership.html b/docs/html/files/src-model-businessmembership.html index 2b82180..5446109 100644 --- a/docs/html/files/src-model-businessmembership.html +++ b/docs/html/files/src-model-businessmembership.html @@ -98,6 +98,10 @@

          +

          + File Uploads +

          +

          Webhook Callbacks

          diff --git a/docs/html/files/src-model-businessphone.html b/docs/html/files/src-model-businessphone.html index a67596b..3520f36 100644 --- a/docs/html/files/src-model-businessphone.html +++ b/docs/html/files/src-model-businessphone.html @@ -98,6 +98,10 @@

          +

          + File Uploads +

          +

          Webhook Callbacks

          diff --git a/docs/html/files/src-model-callback.html b/docs/html/files/src-model-callback.html index 363c6a9..1841a64 100644 --- a/docs/html/files/src-model-callback.html +++ b/docs/html/files/src-model-callback.html @@ -98,6 +98,10 @@

          +

          + File Uploads +

          +

          Webhook Callbacks

          diff --git a/docs/html/files/src-model-callbacklist.html b/docs/html/files/src-model-callbacklist.html index 7fae2b5..74cc71c 100644 --- a/docs/html/files/src-model-callbacklist.html +++ b/docs/html/files/src-model-callbacklist.html @@ -98,6 +98,10 @@

          +

          + File Uploads +

          +

          Webhook Callbacks

          diff --git a/docs/html/files/src-model-caster-accountingdatetimeimmutablecaster.html b/docs/html/files/src-model-caster-accountingdatetimeimmutablecaster.html index a161567..158eef4 100644 --- a/docs/html/files/src-model-caster-accountingdatetimeimmutablecaster.html +++ b/docs/html/files/src-model-caster-accountingdatetimeimmutablecaster.html @@ -98,6 +98,10 @@

          +

          + File Uploads +

          +

          Webhook Callbacks

          diff --git a/docs/html/files/src-model-caster-datecaster.html b/docs/html/files/src-model-caster-datecaster.html index 986341c..53b1908 100644 --- a/docs/html/files/src-model-caster-datecaster.html +++ b/docs/html/files/src-model-caster-datecaster.html @@ -98,6 +98,10 @@

          +

          + File Uploads +

          +

          Webhook Callbacks

          diff --git a/docs/html/files/src-model-caster-decimalcaster.html b/docs/html/files/src-model-caster-decimalcaster.html index a1890aa..025580b 100644 --- a/docs/html/files/src-model-caster-decimalcaster.html +++ b/docs/html/files/src-model-caster-decimalcaster.html @@ -98,6 +98,10 @@

          +

          + File Uploads +

          +

          Webhook Callbacks

          diff --git a/docs/html/files/src-model-caster-isodatetimeimmutablecaster.html b/docs/html/files/src-model-caster-isodatetimeimmutablecaster.html index 4e86bed..4027aa3 100644 --- a/docs/html/files/src-model-caster-isodatetimeimmutablecaster.html +++ b/docs/html/files/src-model-caster-isodatetimeimmutablecaster.html @@ -98,6 +98,10 @@

          +

          + File Uploads +

          +

          Webhook Callbacks

          diff --git a/docs/html/files/src-model-caster-moneycaster.html b/docs/html/files/src-model-caster-moneycaster.html index 144b424..2fe7b6b 100644 --- a/docs/html/files/src-model-caster-moneycaster.html +++ b/docs/html/files/src-model-caster-moneycaster.html @@ -98,6 +98,10 @@

          +

          + File Uploads +

          +

          Webhook Callbacks

          diff --git a/docs/html/files/src-model-caster-timestampdatetimeimmutablecaster.html b/docs/html/files/src-model-caster-timestampdatetimeimmutablecaster.html index 159a9ee..077f533 100644 --- a/docs/html/files/src-model-caster-timestampdatetimeimmutablecaster.html +++ b/docs/html/files/src-model-caster-timestampdatetimeimmutablecaster.html @@ -98,6 +98,10 @@

          +

          + File Uploads +

          +

          Webhook Callbacks

          diff --git a/docs/html/files/src-model-client.html b/docs/html/files/src-model-client.html index e812860..e224e63 100644 --- a/docs/html/files/src-model-client.html +++ b/docs/html/files/src-model-client.html @@ -98,6 +98,10 @@

          +

          + File Uploads +

          +

          Webhook Callbacks

          diff --git a/docs/html/files/src-model-clientlist.html b/docs/html/files/src-model-clientlist.html index d00464b..eeee884 100644 --- a/docs/html/files/src-model-clientlist.html +++ b/docs/html/files/src-model-clientlist.html @@ -98,6 +98,10 @@

          +

          + File Uploads +

          +

          Webhook Callbacks

          diff --git a/docs/html/files/src-model-datamodel.html b/docs/html/files/src-model-datamodel.html index af5adb9..d74bd14 100644 --- a/docs/html/files/src-model-datamodel.html +++ b/docs/html/files/src-model-datamodel.html @@ -98,6 +98,10 @@

          +

          + File Uploads +

          +

          Webhook Callbacks

          diff --git a/docs/html/files/src-model-expense.html b/docs/html/files/src-model-expense.html index 9e3ab70..bba53a5 100644 --- a/docs/html/files/src-model-expense.html +++ b/docs/html/files/src-model-expense.html @@ -98,6 +98,10 @@

          +

          + File Uploads +

          +

          Webhook Callbacks

          diff --git a/docs/html/files/src-model-expenseattachment.html b/docs/html/files/src-model-expenseattachment.html index 7c63258..0923208 100644 --- a/docs/html/files/src-model-expenseattachment.html +++ b/docs/html/files/src-model-expenseattachment.html @@ -98,6 +98,10 @@

          +

          + File Uploads +

          +

          Webhook Callbacks

          diff --git a/docs/html/files/src-model-expensecategory.html b/docs/html/files/src-model-expensecategory.html index 616a206..053841b 100644 --- a/docs/html/files/src-model-expensecategory.html +++ b/docs/html/files/src-model-expensecategory.html @@ -98,6 +98,10 @@

          +

          + File Uploads +

          +

          Webhook Callbacks

          diff --git a/docs/html/files/src-model-expensecategorylist.html b/docs/html/files/src-model-expensecategorylist.html index abfe2e4..df4bb8c 100644 --- a/docs/html/files/src-model-expensecategorylist.html +++ b/docs/html/files/src-model-expensecategorylist.html @@ -98,6 +98,10 @@

          +

          + File Uploads +

          +

          Webhook Callbacks

          diff --git a/docs/html/files/src-model-expenselist.html b/docs/html/files/src-model-expenselist.html index 7fb6302..43e0f06 100644 --- a/docs/html/files/src-model-expenselist.html +++ b/docs/html/files/src-model-expenselist.html @@ -98,6 +98,10 @@

          +

          + File Uploads +

          +

          Webhook Callbacks

          diff --git a/docs/html/files/src-model-expensestatus.html b/docs/html/files/src-model-expensestatus.html index 7155738..24d2086 100644 --- a/docs/html/files/src-model-expensestatus.html +++ b/docs/html/files/src-model-expensestatus.html @@ -98,6 +98,10 @@

          +

          + File Uploads +

          +

          Webhook Callbacks

          diff --git a/docs/html/files/src-model-fileupload.html b/docs/html/files/src-model-fileupload.html new file mode 100644 index 0000000..0b0d5e9 --- /dev/null +++ b/docs/html/files/src-model-fileupload.html @@ -0,0 +1,334 @@ + + + + + freshbooks-php-sdk + + + + + + + + + + + + + + + + + + + + + +
          +

          freshbooks-php-sdk

          + + + + + +
          + +
          +
          + + + + +
          +
          +
            +
          + +
          +

          FileUpload.php

          + + + + + + + +

          + Table of Contents + + +

          + + + + +

          + Classes + + +

          +
          +
          FileUpload
          A file that has been uploaded to FreshBooks.
          + + + + + + + + + + + + + +
          +
          +
          +
          +
          
          +        
          + +
          +
          + + + +
          +
          +
          + +
          + On this page + +
            +
          • Table Of Contents
          • +
          • + +
          • + + +
          +
          + +
          +
          +
          +
          +
          +

          Search results

          + +
          +
          +
            +
            +
            +
            +
            + + +
            + + + + + + + + diff --git a/docs/html/files/src-model-identity.html b/docs/html/files/src-model-identity.html index 2f8ba15..73d9049 100644 --- a/docs/html/files/src-model-identity.html +++ b/docs/html/files/src-model-identity.html @@ -98,6 +98,10 @@

            +

            + File Uploads +

            +

            Webhook Callbacks

            diff --git a/docs/html/files/src-model-invoice.html b/docs/html/files/src-model-invoice.html index 80e21ca..ff73126 100644 --- a/docs/html/files/src-model-invoice.html +++ b/docs/html/files/src-model-invoice.html @@ -98,6 +98,10 @@

            +

            + File Uploads +

            +

            Webhook Callbacks

            diff --git a/docs/html/files/src-model-invoiceattachment.html b/docs/html/files/src-model-invoiceattachment.html new file mode 100644 index 0000000..66bb6c3 --- /dev/null +++ b/docs/html/files/src-model-invoiceattachment.html @@ -0,0 +1,334 @@ + + + + + freshbooks-php-sdk + + + + + + + + + + + + + + + + + + + + + +
            +

            freshbooks-php-sdk

            + + + + + +
            + +
            +
            + + + + +
            +
            +
              +
            + +
            +

            InvoiceAttachment.php

            + + + + + + + +

            + Table of Contents + + +

            + + + + +

            + Classes + + +

            +
            +
            InvoiceAttachment
            Attached files and images to include with an invoice.
            + + + + + + + + + + + + + +
            +
            +
            +
            +
            
            +        
            + +
            +
            + + + +
            +
            +
            + +
            + On this page + +
              +
            • Table Of Contents
            • +
            • + +
            • + + +
            +
            + +
            +
            +
            +
            +
            +

            Search results

            + +
            +
            +
              +
              +
              +
              +
              + + +
              + + + + + + + + diff --git a/docs/html/files/src-model-invoicelist.html b/docs/html/files/src-model-invoicelist.html index 5cbe7e0..2a1e8d6 100644 --- a/docs/html/files/src-model-invoicelist.html +++ b/docs/html/files/src-model-invoicelist.html @@ -98,6 +98,10 @@

              +

              + File Uploads +

              +

              Webhook Callbacks

              diff --git a/docs/html/files/src-model-invoicepaymentoptions.html b/docs/html/files/src-model-invoicepaymentoptions.html index a529618..e6b954e 100644 --- a/docs/html/files/src-model-invoicepaymentoptions.html +++ b/docs/html/files/src-model-invoicepaymentoptions.html @@ -98,6 +98,10 @@

              +

              + File Uploads +

              +

              Webhook Callbacks

              diff --git a/docs/html/files/src-model-invoicepresentation.html b/docs/html/files/src-model-invoicepresentation.html index d0c92f8..9aaa6db 100644 --- a/docs/html/files/src-model-invoicepresentation.html +++ b/docs/html/files/src-model-invoicepresentation.html @@ -98,6 +98,10 @@

              +

              + File Uploads +

              +

              Webhook Callbacks

              diff --git a/docs/html/files/src-model-invoicestatus.html b/docs/html/files/src-model-invoicestatus.html index 5cd581b..9295db0 100644 --- a/docs/html/files/src-model-invoicestatus.html +++ b/docs/html/files/src-model-invoicestatus.html @@ -98,6 +98,10 @@

              +

              + File Uploads +

              +

              Webhook Callbacks

              diff --git a/docs/html/files/src-model-item.html b/docs/html/files/src-model-item.html index 91105bd..6b20b06 100644 --- a/docs/html/files/src-model-item.html +++ b/docs/html/files/src-model-item.html @@ -98,6 +98,10 @@

              +

              + File Uploads +

              +

              Webhook Callbacks

              diff --git a/docs/html/files/src-model-itemlist.html b/docs/html/files/src-model-itemlist.html index 73f76d5..66f568b 100644 --- a/docs/html/files/src-model-itemlist.html +++ b/docs/html/files/src-model-itemlist.html @@ -98,6 +98,10 @@

              +

              + File Uploads +

              +

              Webhook Callbacks

              diff --git a/docs/html/files/src-model-lineitem.html b/docs/html/files/src-model-lineitem.html index 36801dd..f1f0204 100644 --- a/docs/html/files/src-model-lineitem.html +++ b/docs/html/files/src-model-lineitem.html @@ -98,6 +98,10 @@

              +

              + File Uploads +

              +

              Webhook Callbacks

              diff --git a/docs/html/files/src-model-listmeta.html b/docs/html/files/src-model-listmeta.html index 30c7149..a11abe9 100644 --- a/docs/html/files/src-model-listmeta.html +++ b/docs/html/files/src-model-listmeta.html @@ -98,6 +98,10 @@

              +

              + File Uploads +

              +

              Webhook Callbacks

              diff --git a/docs/html/files/src-model-money.html b/docs/html/files/src-model-money.html index b968dcd..47931f0 100644 --- a/docs/html/files/src-model-money.html +++ b/docs/html/files/src-model-money.html @@ -98,6 +98,10 @@

              +

              + File Uploads +

              +

              Webhook Callbacks

              diff --git a/docs/html/files/src-model-pages.html b/docs/html/files/src-model-pages.html index 8b7f304..c86fe36 100644 --- a/docs/html/files/src-model-pages.html +++ b/docs/html/files/src-model-pages.html @@ -98,6 +98,10 @@

              +

              + File Uploads +

              +

              Webhook Callbacks

              diff --git a/docs/html/files/src-model-payment.html b/docs/html/files/src-model-payment.html index 5bde3fe..26d885a 100644 --- a/docs/html/files/src-model-payment.html +++ b/docs/html/files/src-model-payment.html @@ -98,6 +98,10 @@

              +

              + File Uploads +

              +

              Webhook Callbacks

              diff --git a/docs/html/files/src-model-paymentlist.html b/docs/html/files/src-model-paymentlist.html index fcfd8e8..792cc4f 100644 --- a/docs/html/files/src-model-paymentlist.html +++ b/docs/html/files/src-model-paymentlist.html @@ -98,6 +98,10 @@

              +

              + File Uploads +

              +

              Webhook Callbacks

              diff --git a/docs/html/files/src-model-project.html b/docs/html/files/src-model-project.html index b9fdaad..a708dff 100644 --- a/docs/html/files/src-model-project.html +++ b/docs/html/files/src-model-project.html @@ -98,6 +98,10 @@

              +

              + File Uploads +

              +

              Webhook Callbacks

              diff --git a/docs/html/files/src-model-projectgroup.html b/docs/html/files/src-model-projectgroup.html index 8d51eeb..dad2d7d 100644 --- a/docs/html/files/src-model-projectgroup.html +++ b/docs/html/files/src-model-projectgroup.html @@ -98,6 +98,10 @@

              +

              + File Uploads +

              +

              Webhook Callbacks

              diff --git a/docs/html/files/src-model-projectgroupinvitation.html b/docs/html/files/src-model-projectgroupinvitation.html index cd28872..7e1b73c 100644 --- a/docs/html/files/src-model-projectgroupinvitation.html +++ b/docs/html/files/src-model-projectgroupinvitation.html @@ -98,6 +98,10 @@

              +

              + File Uploads +

              +

              Webhook Callbacks

              diff --git a/docs/html/files/src-model-projectgroupmember.html b/docs/html/files/src-model-projectgroupmember.html index fffa4f4..e0f93d7 100644 --- a/docs/html/files/src-model-projectgroupmember.html +++ b/docs/html/files/src-model-projectgroupmember.html @@ -98,6 +98,10 @@

              +

              + File Uploads +

              +

              Webhook Callbacks

              diff --git a/docs/html/files/src-model-projectlikelist.html b/docs/html/files/src-model-projectlikelist.html index 6494118..f1d31af 100644 --- a/docs/html/files/src-model-projectlikelist.html +++ b/docs/html/files/src-model-projectlikelist.html @@ -98,6 +98,10 @@

              +

              + File Uploads +

              +

              Webhook Callbacks

              diff --git a/docs/html/files/src-model-projectlist.html b/docs/html/files/src-model-projectlist.html index feeebfd..5281bc9 100644 --- a/docs/html/files/src-model-projectlist.html +++ b/docs/html/files/src-model-projectlist.html @@ -98,6 +98,10 @@

              +

              + File Uploads +

              +

              Webhook Callbacks

              diff --git a/docs/html/files/src-model-service.html b/docs/html/files/src-model-service.html index cc73625..ad1f37f 100644 --- a/docs/html/files/src-model-service.html +++ b/docs/html/files/src-model-service.html @@ -98,6 +98,10 @@

              +

              + File Uploads +

              +

              Webhook Callbacks

              diff --git a/docs/html/files/src-model-task.html b/docs/html/files/src-model-task.html index 81fd00d..f559b27 100644 --- a/docs/html/files/src-model-task.html +++ b/docs/html/files/src-model-task.html @@ -98,6 +98,10 @@

              +

              + File Uploads +

              +

              Webhook Callbacks

              diff --git a/docs/html/files/src-model-tasklist.html b/docs/html/files/src-model-tasklist.html index 35ecd2b..8fb0df9 100644 --- a/docs/html/files/src-model-tasklist.html +++ b/docs/html/files/src-model-tasklist.html @@ -98,6 +98,10 @@

              +

              + File Uploads +

              +

              Webhook Callbacks

              diff --git a/docs/html/files/src-model-tax.html b/docs/html/files/src-model-tax.html index 04a4b73..8cb5809 100644 --- a/docs/html/files/src-model-tax.html +++ b/docs/html/files/src-model-tax.html @@ -98,6 +98,10 @@

              +

              + File Uploads +

              +

              Webhook Callbacks

              diff --git a/docs/html/files/src-model-taxlist.html b/docs/html/files/src-model-taxlist.html index 905d81c..e759cbf 100644 --- a/docs/html/files/src-model-taxlist.html +++ b/docs/html/files/src-model-taxlist.html @@ -98,6 +98,10 @@

              +

              + File Uploads +

              +

              Webhook Callbacks

              diff --git a/docs/html/files/src-model-visstate.html b/docs/html/files/src-model-visstate.html index 3617f83..43ef7a3 100644 --- a/docs/html/files/src-model-visstate.html +++ b/docs/html/files/src-model-visstate.html @@ -98,6 +98,10 @@

              +

              + File Uploads +

              +

              Webhook Callbacks

              diff --git a/docs/html/files/src-resource-accountingresource.html b/docs/html/files/src-resource-accountingresource.html index 4ee4243..67cd325 100644 --- a/docs/html/files/src-resource-accountingresource.html +++ b/docs/html/files/src-resource-accountingresource.html @@ -98,6 +98,10 @@

              +

              + File Uploads +

              +

              Webhook Callbacks

              diff --git a/docs/html/files/src-resource-authresource.html b/docs/html/files/src-resource-authresource.html index 70d953b..c191b5f 100644 --- a/docs/html/files/src-resource-authresource.html +++ b/docs/html/files/src-resource-authresource.html @@ -98,6 +98,10 @@

              +

              + File Uploads +

              +

              Webhook Callbacks

              diff --git a/docs/html/files/src-resource-baseresource.html b/docs/html/files/src-resource-baseresource.html index 3f77b80..5b28521 100644 --- a/docs/html/files/src-resource-baseresource.html +++ b/docs/html/files/src-resource-baseresource.html @@ -98,6 +98,10 @@

              +

              + File Uploads +

              +

              Webhook Callbacks

              diff --git a/docs/html/files/src-resource-eventsresource.html b/docs/html/files/src-resource-eventsresource.html index 20f7738..582487a 100644 --- a/docs/html/files/src-resource-eventsresource.html +++ b/docs/html/files/src-resource-eventsresource.html @@ -98,6 +98,10 @@

              +

              + File Uploads +

              +

              Webhook Callbacks

              diff --git a/docs/html/files/src-resource-paymentresource.html b/docs/html/files/src-resource-paymentresource.html index 4d7f75f..7b4f6ec 100644 --- a/docs/html/files/src-resource-paymentresource.html +++ b/docs/html/files/src-resource-paymentresource.html @@ -98,6 +98,10 @@

              +

              + File Uploads +

              +

              Webhook Callbacks

              diff --git a/docs/html/files/src-resource-projectresource.html b/docs/html/files/src-resource-projectresource.html index 61d85d3..a7ec2ad 100644 --- a/docs/html/files/src-resource-projectresource.html +++ b/docs/html/files/src-resource-projectresource.html @@ -98,6 +98,10 @@

              +

              + File Uploads +

              +

              Webhook Callbacks

              diff --git a/docs/html/files/src-resource-uploadresource.html b/docs/html/files/src-resource-uploadresource.html new file mode 100644 index 0000000..f456627 --- /dev/null +++ b/docs/html/files/src-resource-uploadresource.html @@ -0,0 +1,334 @@ + + + + + freshbooks-php-sdk + + + + + + + + + + + + + + + + + + + + + +
              +

              freshbooks-php-sdk

              + + + + + +
              + +
              +
              + + + + +
              +
              +
                +
              + +
              +

              UploadResource.php

              + + + + + + + +

              + Table of Contents + + +

              + + + + +

              + Classes + + +

              +
              +
              UploadResource
              + + + + + + + + + + + + + +
              +
              +
              +
              +
              
              +        
              + +
              +
              + + + +
              +
              +
              + +
              + On this page + +
                +
              • Table Of Contents
              • +
              • + +
              • + + +
              +
              + +
              +
              +
              +
              +
              +

              Search results

              + +
              +
              +
                +
                +
                +
                +
                + + +
                + + + + + + + + diff --git a/docs/html/graphs/classes.html b/docs/html/graphs/classes.html index 123a0f3..8e9830a 100644 --- a/docs/html/graphs/classes.html +++ b/docs/html/graphs/classes.html @@ -86,6 +86,10 @@

                +

                + File Uploads +

                +

                Webhook Callbacks

                diff --git a/docs/html/guide/api-calls/builders.html b/docs/html/guide/api-calls/builders.html index 26389ef..c65ca43 100644 --- a/docs/html/guide/api-calls/builders.html +++ b/docs/html/guide/api-calls/builders.html @@ -99,6 +99,10 @@

                +

                + File Uploads +

                +

                Webhook Callbacks

                diff --git a/docs/html/guide/api-calls/create-update-delete.html b/docs/html/guide/api-calls/create-update-delete.html index b3db4ac..75b619e 100644 --- a/docs/html/guide/api-calls/create-update-delete.html +++ b/docs/html/guide/api-calls/create-update-delete.html @@ -99,6 +99,10 @@

                +

                + File Uploads +

                +

                Webhook Callbacks

                diff --git a/docs/html/guide/api-calls/current-user.html b/docs/html/guide/api-calls/current-user.html index 8667331..f181a07 100644 --- a/docs/html/guide/api-calls/current-user.html +++ b/docs/html/guide/api-calls/current-user.html @@ -99,6 +99,10 @@

                +

                + File Uploads +

                +

                Webhook Callbacks

                diff --git a/docs/html/guide/api-calls/decimals.html b/docs/html/guide/api-calls/decimals.html index b2be31e..9299e5e 100644 --- a/docs/html/guide/api-calls/decimals.html +++ b/docs/html/guide/api-calls/decimals.html @@ -99,6 +99,10 @@

                +

                + File Uploads +

                +

                Webhook Callbacks

                diff --git a/docs/html/guide/api-calls/errors.html b/docs/html/guide/api-calls/errors.html index 9e4d6e2..3c95c3c 100644 --- a/docs/html/guide/api-calls/errors.html +++ b/docs/html/guide/api-calls/errors.html @@ -99,6 +99,10 @@

                +

                + File Uploads +

                +

                Webhook Callbacks

                @@ -165,8 +169,8 @@

                Error Handling

                echo $e->getCode(); // 404 echo $e->getErrorCode(); // 1012 echo $e->getRawResponse(); // '{"response": {"errors": [{"errno": 1012, - // "field": "userid", "message": "Client not found.", - // "object": "client", "value": "134"}]}}' + // "field": "userid", "message": "Client not found.", + // "object": "client", "value": "134"}]}}' }

                Not all resources have full CRUD methods available. For example expense categories have list and get calls, but are not deletable. If you attempt to call a method that does not exist, the SDK will raise a diff --git a/docs/html/guide/api-calls/get-list.html b/docs/html/guide/api-calls/get-list.html index dafe967..84cb7f3 100644 --- a/docs/html/guide/api-calls/get-list.html +++ b/docs/html/guide/api-calls/get-list.html @@ -99,6 +99,10 @@

                +

                + File Uploads +

                +

                Webhook Callbacks

                diff --git a/docs/html/guide/api-calls/index.html b/docs/html/guide/api-calls/index.html index 6b2218a..017660e 100644 --- a/docs/html/guide/api-calls/index.html +++ b/docs/html/guide/api-calls/index.html @@ -99,6 +99,10 @@

                +

                + File Uploads +

                +

                Webhook Callbacks

                diff --git a/docs/html/guide/authorization.html b/docs/html/guide/authorization.html index f55d14e..71cf150 100644 --- a/docs/html/guide/authorization.html +++ b/docs/html/guide/authorization.html @@ -99,6 +99,10 @@

                +

                + File Uploads +

                +

                Webhook Callbacks

                diff --git a/docs/html/guide/configuration.html b/docs/html/guide/configuration.html index 7fdaff5..5027b88 100644 --- a/docs/html/guide/configuration.html +++ b/docs/html/guide/configuration.html @@ -99,6 +99,10 @@

                +

                + File Uploads +

                +

                Webhook Callbacks

                diff --git a/docs/html/guide/examples.html b/docs/html/guide/examples.html index 88ac0b4..5f2ccd5 100644 --- a/docs/html/guide/examples.html +++ b/docs/html/guide/examples.html @@ -99,6 +99,10 @@

                +

                + File Uploads +

                +

                Webhook Callbacks

                diff --git a/docs/html/guide/file-uploads.html b/docs/html/guide/file-uploads.html new file mode 100644 index 0000000..777b616 --- /dev/null +++ b/docs/html/guide/file-uploads.html @@ -0,0 +1,249 @@ + + + + + freshbooks-php-sdk + + + + + + + + + + + + + + + + + + + + + + +
                +

                freshbooks-php-sdk

                + + + + + +
                + +
                +
                + + + + +
                +
                +

                File Uploads

                + +

                Some FreshBooks resource can include images and attachments. For example, invoices can have a company +logo or banner image as part of the invoice presentation object as well as images or pdfs attachments. +Expenses can also include copies or photos of receipts as attachments.

                +

                All images and attachments first need to be uploaded to FreshBooks via the images or attachments +endpoints.

                +

                These will then return a path to your file with a JWT. This path will can then be passed as part of the +data in a subsequent call.

                +

                See FreshBooks' invoice attachment +and expense attachment +documentation for more information.

                +
                +

                Invoice Images and Attachments

                + +

                See FreshBooks' API Documentation.

                +

                The upload() function takes a PHP resource. +Logo's and banners are added to the invoice presentation object. To include an uploaded attachment on +an invoice, the invoice request must include an attachments object.

                +
                $logo = $freshBooksClient->images()->upload($accountId, fopen('./sample_logo.png', 'r'));
                +$attachment = $freshBooksClient->attachments()->upload($accountId, fopen('./sample_attachment.pdf', 'r'));
                +
                +$presentation = [
                +    'image_logo_src' => "/uploads/images/{$logo->jwt}",
                +    'theme_primary_color' => '#1fab13',
                +    'theme_layout' => 'simple'
                +];
                +
                +$invoiceData = [
                +    'customerid' => $clientId,
                +    'attachments' => [
                +        [
                +            'jwt' => $attachment->jwt,
                +            'media_type' => $attachment->mediaType
                +        ]
                +    ],
                +    'presentation' => presentation
                +];
                +
                +$invoice = $freshBooksClient->invoices()->create($accountId, $invoiceData);
                +
                + +
                +

                Expense Receipts

                + +

                See FreshBooks' API Documentation.

                +

                Expenses have have images or PDFs of the associated receipt attached. The expense request must include +an attachments object.

                +
                $attachment = $freshBooksClient->attachments()->upload($accountId, fopen('./sample_receipt.pdf', 'r'));
                +
                +$expense->amount = new Money("6.49", "CAD");
                +$expense->date = new DateTime();
                +$expense->staffId = 1;
                +$expense->categoryId = 3436009;
                +
                +$expenseAttachment = new ExpenseAttachment();
                +$expenseAttachment->jwt = $attachment->jwt;
                +$expenseAttachment->mediaType = $attachment->mediaType;
                +
                +$expense->attachment = $expenseAttachment;
                +
                +$includes = (new IncludesBuilder())->include('attachment');
                +$expense = $freshBooksClient->expenses()->create($accountId, model: $expense, includes: $includes);
                +
                + +
                + +
                +
                +
                +
                +

                Search results

                + +
                +
                +
                  +
                  +
                  +
                  +
                  + + +
                  + + + + + + + + diff --git a/docs/html/guide/index.html b/docs/html/guide/index.html index e45833a..e7f197d 100644 --- a/docs/html/guide/index.html +++ b/docs/html/guide/index.html @@ -101,6 +101,10 @@

                  +

                  + File Uploads +

                  +

                  Webhook Callbacks

                  diff --git a/docs/html/guide/installation.html b/docs/html/guide/installation.html index aef2402..2090ce3 100644 --- a/docs/html/guide/installation.html +++ b/docs/html/guide/installation.html @@ -99,6 +99,10 @@

                  +

                  + File Uploads +

                  +

                  Webhook Callbacks

                  diff --git a/docs/html/guide/webhooks.html b/docs/html/guide/webhooks.html index e4141f6..1bc93b7 100644 --- a/docs/html/guide/webhooks.html +++ b/docs/html/guide/webhooks.html @@ -99,6 +99,10 @@

                  +

                  + File Uploads +

                  +

                  Webhook Callbacks

                  diff --git a/docs/html/index.html b/docs/html/index.html index a8f450a..cc198da 100644 --- a/docs/html/index.html +++ b/docs/html/index.html @@ -98,6 +98,10 @@

                  +

                  + File Uploads +

                  +

                  Webhook Callbacks

                  diff --git a/docs/html/indices/files.html b/docs/html/indices/files.html index 70d8e31..1c746b0 100644 --- a/docs/html/indices/files.html +++ b/docs/html/indices/files.html @@ -98,6 +98,10 @@

                  +

                  + File Uploads +

                  +

                  Webhook Callbacks

                  @@ -193,6 +197,7 @@

                  E

                  F

                  -

                  V

                  +

                  U

                  + +

                  V

                  diff --git a/docs/html/js/searchIndex.js b/docs/html/js/searchIndex.js index 911b54a..5a19d54 100644 --- a/docs/html/js/searchIndex.js +++ b/docs/html/js/searchIndex.js @@ -340,6 +340,16 @@ Search.appendIndex( "name": "invoicePaymentOptions", "summary": "FreshBooks\u0020invoice\u0020payment\u0020options\u0020resource\u0020with\u0020calls\u0020to\u0020default,\u0020get,\u0020create.", "url": "classes/amcintosh-FreshBooks-FreshBooksClient.html#method_invoicePaymentOptions" + }, { + "fqsen": "\\amcintosh\\FreshBooks\\FreshBooksClient\u003A\u003Aattachments\u0028\u0029", + "name": "attachments", + "summary": "FreshBooks\u0020attachment\u0020upload\u0020resource\u0020with\u0020call\u0020to\u0020upload,\u0020get", + "url": "classes/amcintosh-FreshBooks-FreshBooksClient.html#method_attachments" + }, { + "fqsen": "\\amcintosh\\FreshBooks\\FreshBooksClient\u003A\u003Aimages\u0028\u0029", + "name": "images", + "summary": "FreshBooks\u0020image\u0020upload\u0020resource\u0020with\u0020call\u0020to\u0020upload,\u0020get", + "url": "classes/amcintosh-FreshBooks-FreshBooksClient.html#method_images" }, { "fqsen": "\\amcintosh\\FreshBooks\\FreshBooksClient\u003A\u003A\u0024httpClient", "name": "httpClient", @@ -1380,6 +1390,41 @@ Search.appendIndex( "name": "RECOUPED", "summary": "", "url": "classes/amcintosh-FreshBooks-Model-ExpenseStatus.html#constant_RECOUPED" + }, { + "fqsen": "\\amcintosh\\FreshBooks\\Model\\FileUpload", + "name": "FileUpload", + "summary": "A\u0020file\u0020that\u0020has\u0020been\u0020uploaded\u0020to\u0020FreshBooks.", + "url": "classes/amcintosh-FreshBooks-Model-FileUpload.html" + }, { + "fqsen": "\\amcintosh\\FreshBooks\\Model\\FileUpload\u003A\u003A__construct\u0028\u0029", + "name": "__construct", + "summary": "", + "url": "classes/amcintosh-FreshBooks-Model-FileUpload.html#method___construct" + }, { + "fqsen": "\\amcintosh\\FreshBooks\\Model\\FileUpload\u003A\u003A\u0024jwt", + "name": "jwt", + "summary": "", + "url": "classes/amcintosh-FreshBooks-Model-FileUpload.html#property_jwt" + }, { + "fqsen": "\\amcintosh\\FreshBooks\\Model\\FileUpload\u003A\u003A\u0024fileName", + "name": "fileName", + "summary": "", + "url": "classes/amcintosh-FreshBooks-Model-FileUpload.html#property_fileName" + }, { + "fqsen": "\\amcintosh\\FreshBooks\\Model\\FileUpload\u003A\u003A\u0024mediaType", + "name": "mediaType", + "summary": "", + "url": "classes/amcintosh-FreshBooks-Model-FileUpload.html#property_mediaType" + }, { + "fqsen": "\\amcintosh\\FreshBooks\\Model\\FileUpload\u003A\u003A\u0024responseBody", + "name": "responseBody", + "summary": "", + "url": "classes/amcintosh-FreshBooks-Model-FileUpload.html#property_responseBody" + }, { + "fqsen": "\\amcintosh\\FreshBooks\\Model\\FileUpload\u003A\u003A\u0024link", + "name": "link", + "summary": "", + "url": "classes/amcintosh-FreshBooks-Model-FileUpload.html#property_link" }, { "fqsen": "\\amcintosh\\FreshBooks\\Model\\Identity", "name": "Identity", @@ -1735,6 +1780,46 @@ Search.appendIndex( "name": "visState", "summary": "", "url": "classes/amcintosh-FreshBooks-Model-Invoice.html#property_visState" + }, { + "fqsen": "\\amcintosh\\FreshBooks\\Model\\InvoiceAttachment", + "name": "InvoiceAttachment", + "summary": "Attached\u0020files\u0020and\u0020images\u0020to\u0020include\u0020with\u0020an\u0020invoice.", + "url": "classes/amcintosh-FreshBooks-Model-InvoiceAttachment.html" + }, { + "fqsen": "\\amcintosh\\FreshBooks\\Model\\InvoiceAttachment\u003A\u003AgetContent\u0028\u0029", + "name": "getContent", + "summary": "Get\u0020the\u0020data\u0020as\u0020an\u0020array\u0020to\u0020POST\u0020or\u0020PUT\u0020to\u0020FreshBooks,\u0020removing\u0020any\u0020read\u002Donly\u0020fields.", + "url": "classes/amcintosh-FreshBooks-Model-InvoiceAttachment.html#method_getContent" + }, { + "fqsen": "\\amcintosh\\FreshBooks\\Model\\InvoiceAttachment\u003A\u003ARESPONSE_FIELD", + "name": "RESPONSE_FIELD", + "summary": "", + "url": "classes/amcintosh-FreshBooks-Model-InvoiceAttachment.html#constant_RESPONSE_FIELD" + }, { + "fqsen": "\\amcintosh\\FreshBooks\\Model\\InvoiceAttachment\u003A\u003A\u0024id", + "name": "id", + "summary": "", + "url": "classes/amcintosh-FreshBooks-Model-InvoiceAttachment.html#property_id" + }, { + "fqsen": "\\amcintosh\\FreshBooks\\Model\\InvoiceAttachment\u003A\u003A\u0024attachmentId", + "name": "attachmentId", + "summary": "", + "url": "classes/amcintosh-FreshBooks-Model-InvoiceAttachment.html#property_attachmentId" + }, { + "fqsen": "\\amcintosh\\FreshBooks\\Model\\InvoiceAttachment\u003A\u003A\u0024expenseId", + "name": "expenseId", + "summary": "", + "url": "classes/amcintosh-FreshBooks-Model-InvoiceAttachment.html#property_expenseId" + }, { + "fqsen": "\\amcintosh\\FreshBooks\\Model\\InvoiceAttachment\u003A\u003A\u0024jwt", + "name": "jwt", + "summary": "", + "url": "classes/amcintosh-FreshBooks-Model-InvoiceAttachment.html#property_jwt" + }, { + "fqsen": "\\amcintosh\\FreshBooks\\Model\\InvoiceAttachment\u003A\u003A\u0024mediaType", + "name": "mediaType", + "summary": "", + "url": "classes/amcintosh-FreshBooks-Model-InvoiceAttachment.html#property_mediaType" }, { "fqsen": "\\amcintosh\\FreshBooks\\Model\\InvoiceList", "name": "InvoiceList", @@ -3060,6 +3145,61 @@ Search.appendIndex( "name": "listModel", "summary": "", "url": "classes/amcintosh-FreshBooks-Resource-ProjectResource.html#property_listModel" + }, { + "fqsen": "\\amcintosh\\FreshBooks\\Resource\\UploadResource", + "name": "UploadResource", + "summary": "", + "url": "classes/amcintosh-FreshBooks-Resource-UploadResource.html" + }, { + "fqsen": "\\amcintosh\\FreshBooks\\Resource\\UploadResource\u003A\u003A__construct\u0028\u0029", + "name": "__construct", + "summary": "", + "url": "classes/amcintosh-FreshBooks-Resource-UploadResource.html#method___construct" + }, { + "fqsen": "\\amcintosh\\FreshBooks\\Resource\\UploadResource\u003A\u003AgetUrl\u0028\u0029", + "name": "getUrl", + "summary": "The\u0020the\u0020url\u0020to\u0020the\u0020upload\u0020resource.", + "url": "classes/amcintosh-FreshBooks-Resource-UploadResource.html#method_getUrl" + }, { + "fqsen": "\\amcintosh\\FreshBooks\\Resource\\UploadResource\u003A\u003AhandleError\u0028\u0029", + "name": "handleError", + "summary": "Create\u0020a\u0020FreshBooksException\u0020from\u0020the\u0020json\u0020response\u0020from\u0020the\u0020uploads\u0020endpoint.", + "url": "classes/amcintosh-FreshBooks-Resource-UploadResource.html#method_handleError" + }, { + "fqsen": "\\amcintosh\\FreshBooks\\Resource\\UploadResource\u003A\u003AmakeGetFileRequest\u0028\u0029", + "name": "makeGetFileRequest", + "summary": "Make\u0020a\u0020request\u0020against\u0020the\u0020uploads\u0020resource.\u0020Returns\u0020an\u0020object\u0020containing\u0020a\nPsr\\Http\\Message\\StreamInterface\u0020for\u0020flexibility.", + "url": "classes/amcintosh-FreshBooks-Resource-UploadResource.html#method_makeGetFileRequest" + }, { + "fqsen": "\\amcintosh\\FreshBooks\\Resource\\UploadResource\u003A\u003AmakeUploadRequest\u0028\u0029", + "name": "makeUploadRequest", + "summary": "Make\u0020creates\u0020a\u0020POST\u0020request\u0020to\u0020upload\u0020a\u0020file\u0020to\u0020FreshBooks.", + "url": "classes/amcintosh-FreshBooks-Resource-UploadResource.html#method_makeUploadRequest" + }, { + "fqsen": "\\amcintosh\\FreshBooks\\Resource\\UploadResource\u003A\u003Aget\u0028\u0029", + "name": "get", + "summary": "Get\u0020an\u0020uploaded\u0020file.", + "url": "classes/amcintosh-FreshBooks-Resource-UploadResource.html#method_get" + }, { + "fqsen": "\\amcintosh\\FreshBooks\\Resource\\UploadResource\u003A\u003Aupload\u0028\u0029", + "name": "upload", + "summary": "Upload\u0020a\u0020file\u0020to\u0020FreshBooks.", + "url": "classes/amcintosh-FreshBooks-Resource-UploadResource.html#method_upload" + }, { + "fqsen": "\\amcintosh\\FreshBooks\\Resource\\UploadResource\u003A\u003A\u0024httpClient", + "name": "httpClient", + "summary": "", + "url": "classes/amcintosh-FreshBooks-Resource-UploadResource.html#property_httpClient" + }, { + "fqsen": "\\amcintosh\\FreshBooks\\Resource\\UploadResource\u003A\u003A\u0024uploadPath", + "name": "uploadPath", + "summary": "", + "url": "classes/amcintosh-FreshBooks-Resource-UploadResource.html#property_uploadPath" + }, { + "fqsen": "\\amcintosh\\FreshBooks\\Resource\\UploadResource\u003A\u003A\u0024resourceName", + "name": "resourceName", + "summary": "", + "url": "classes/amcintosh-FreshBooks-Resource-UploadResource.html#property_resourceName" }, { "fqsen": "\\", "name": "\\", diff --git a/docs/html/namespaces/amcintosh-freshbooks-builder.html b/docs/html/namespaces/amcintosh-freshbooks-builder.html index e9ae892..162a9ee 100644 --- a/docs/html/namespaces/amcintosh-freshbooks-builder.html +++ b/docs/html/namespaces/amcintosh-freshbooks-builder.html @@ -98,6 +98,10 @@

                  +

                  + File Uploads +

                  +

                  Webhook Callbacks

                  diff --git a/docs/html/namespaces/amcintosh-freshbooks-exception.html b/docs/html/namespaces/amcintosh-freshbooks-exception.html index 52204f9..7b41fc5 100644 --- a/docs/html/namespaces/amcintosh-freshbooks-exception.html +++ b/docs/html/namespaces/amcintosh-freshbooks-exception.html @@ -98,6 +98,10 @@

                  +

                  + File Uploads +

                  +

                  Webhook Callbacks

                  diff --git a/docs/html/namespaces/amcintosh-freshbooks-model-caster.html b/docs/html/namespaces/amcintosh-freshbooks-model-caster.html index b189afc..20c729b 100644 --- a/docs/html/namespaces/amcintosh-freshbooks-model-caster.html +++ b/docs/html/namespaces/amcintosh-freshbooks-model-caster.html @@ -98,6 +98,10 @@

                  +

                  + File Uploads +

                  +

                  Webhook Callbacks

                  diff --git a/docs/html/namespaces/amcintosh-freshbooks-model.html b/docs/html/namespaces/amcintosh-freshbooks-model.html index bf09c96..88c0d44 100644 --- a/docs/html/namespaces/amcintosh-freshbooks-model.html +++ b/docs/html/namespaces/amcintosh-freshbooks-model.html @@ -98,6 +98,10 @@

                  +

                  + File Uploads +

                  +

                  Webhook Callbacks

                  @@ -188,12 +192,12 @@

                  -
                  AccountingList
                  Parent class for list results on accounting endpoints to share pagination details.
                  AuthorizationToken
                  Authorization data including the OAuth bearer token, expiry, and refresh token.
                  Business
                  Each FreshBooks user is associated with a business.
                  BusinessAddress
                  The address of the business.
                  BusinessMembership
                  Business/Identity relationship
                  BusinessPhone
                  The phone number of the business.
                  Callback
                  Webhook callback subscription model.
                  CallbackList
                  Results of callbacks list call containing list of callbacks and pagination data.
                  Client
                  A client in the new FreshBooks is a resource representing an entity you send invoices to.
                  ClientList
                  Results of clients list call containing list of clients and pagination data.
                  Expense
                  Expenses are used to track expenditures your business incurs.
                  ExpenseAttachment
                  Attached receipt image details for an expense.
                  ExpenseCategory
                  Expense Categories are used to group expenses together to aid in expense tracking.
                  ExpenseCategoryList
                  Results of expense category list call containing list of expense categories and pagination data.
                  ExpenseList
                  Results of expenses list call containing list of expenses and pagination data.
                  ExpenseStatus
                  Status values for an expense.
                  Identity
                  Users are uniquely identified by their email across all of FreshBooks, so if +
                  AccountingList
                  Parent class for list results on accounting endpoints to share pagination details.
                  AuthorizationToken
                  Authorization data including the OAuth bearer token, expiry, and refresh token.
                  Business
                  Each FreshBooks user is associated with a business.
                  BusinessAddress
                  The address of the business.
                  BusinessMembership
                  Business/Identity relationship
                  BusinessPhone
                  The phone number of the business.
                  Callback
                  Webhook callback subscription model.
                  CallbackList
                  Results of callbacks list call containing list of callbacks and pagination data.
                  Client
                  A client in the new FreshBooks is a resource representing an entity you send invoices to.
                  ClientList
                  Results of clients list call containing list of clients and pagination data.
                  Expense
                  Expenses are used to track expenditures your business incurs.
                  ExpenseAttachment
                  Attached receipt image details for an expense.
                  ExpenseCategory
                  Expense Categories are used to group expenses together to aid in expense tracking.
                  ExpenseCategoryList
                  Results of expense category list call containing list of expense categories and pagination data.
                  ExpenseList
                  Results of expenses list call containing list of expenses and pagination data.
                  ExpenseStatus
                  Status values for an expense.
                  FileUpload
                  A file that has been uploaded to FreshBooks.
                  Identity
                  Users are uniquely identified by their email across all of FreshBooks, so if `leafy@example.com` is an Owner of one account and gets added as a Client on another, they will have some access to both. They could then open a second business of their own, or be added as an employee of another person’s business.
                  Invoice
                  Invoices in FreshBooks are what gets sent to Clients, detailing specific goods or services performed or provided by the Administrator of their System, and the amount -that Client owes to the Admin.
                  InvoiceList
                  Results of invoices list call containing list of invoices and pagination data.
                  InvoicePaymentOptions
                  In FreshBooks, invoices can be paid online via a variety of payment gateways +that Client owes to the Admin.
                  InvoiceAttachment
                  Attached files and images to include with an invoice.
                  InvoiceList
                  Results of invoices list call containing list of invoices and pagination data.
                  InvoicePaymentOptions
                  In FreshBooks, invoices can be paid online via a variety of payment gateways setup on the sender’s account. In order for this to be available on an invoice, the online payments must be set up through a separate call after the invoice has been created.
                  InvoicePresentation
                  Invoice Presentations are used to style an invoice including font, colors, and logos.
                  InvoiceStatus
                  Status values for an invoice.
                  Item
                  Items are stored from invoice lines to make invoicing easier in the future.
                  ItemList
                  Results of items list call containing list of items and pagination data.
                  LineItem
                  Invoice lines are used to determine the amount of an invoice, in addition to diff --git a/docs/html/namespaces/amcintosh-freshbooks-resource.html b/docs/html/namespaces/amcintosh-freshbooks-resource.html index c5a452c..d1c0230 100644 --- a/docs/html/namespaces/amcintosh-freshbooks-resource.html +++ b/docs/html/namespaces/amcintosh-freshbooks-resource.html @@ -98,6 +98,10 @@

                  +

                  + File Uploads +

                  +

                  Webhook Callbacks

                  @@ -173,7 +177,7 @@

                  -
                  AccountingResource
                  AuthResource
                  BaseResource
                  EventsResource
                  Resource for calls to /events endpoints.
                  PaymentResource
                  ProjectResource
                  +
                  AccountingResource
                  AuthResource
                  BaseResource
                  EventsResource
                  Resource for calls to /events endpoints.
                  PaymentResource
                  ProjectResource
                  UploadResource
                  diff --git a/docs/html/namespaces/amcintosh-freshbooks.html b/docs/html/namespaces/amcintosh-freshbooks.html index 28194cd..f6cacf3 100644 --- a/docs/html/namespaces/amcintosh-freshbooks.html +++ b/docs/html/namespaces/amcintosh-freshbooks.html @@ -98,6 +98,10 @@

                  +

                  + File Uploads +

                  +

                  Webhook Callbacks

                  diff --git a/docs/html/namespaces/amcintosh.html b/docs/html/namespaces/amcintosh.html index d2d58c0..f3e0c88 100644 --- a/docs/html/namespaces/amcintosh.html +++ b/docs/html/namespaces/amcintosh.html @@ -98,6 +98,10 @@

                  +

                  + File Uploads +

                  +

                  Webhook Callbacks

                  diff --git a/docs/html/namespaces/default.html b/docs/html/namespaces/default.html index ace6636..0e0cfa4 100644 --- a/docs/html/namespaces/default.html +++ b/docs/html/namespaces/default.html @@ -98,6 +98,10 @@

                  +

                  + File Uploads +

                  +

                  Webhook Callbacks

                  diff --git a/docs/html/packages/amcintosh-FreshBooks-Builder.html b/docs/html/packages/amcintosh-FreshBooks-Builder.html index 83260ca..a22285c 100644 --- a/docs/html/packages/amcintosh-FreshBooks-Builder.html +++ b/docs/html/packages/amcintosh-FreshBooks-Builder.html @@ -98,6 +98,10 @@

                  +

                  + File Uploads +

                  +

                  Webhook Callbacks

                  diff --git a/docs/html/packages/amcintosh-FreshBooks-Exception.html b/docs/html/packages/amcintosh-FreshBooks-Exception.html index 5d9c4b9..ea633d1 100644 --- a/docs/html/packages/amcintosh-FreshBooks-Exception.html +++ b/docs/html/packages/amcintosh-FreshBooks-Exception.html @@ -98,6 +98,10 @@

                  +

                  + File Uploads +

                  +

                  Webhook Callbacks

                  diff --git a/docs/html/packages/amcintosh-FreshBooks-Model.html b/docs/html/packages/amcintosh-FreshBooks-Model.html index 5caa025..29dddfd 100644 --- a/docs/html/packages/amcintosh-FreshBooks-Model.html +++ b/docs/html/packages/amcintosh-FreshBooks-Model.html @@ -98,6 +98,10 @@

                  +

                  + File Uploads +

                  +

                  Webhook Callbacks

                  @@ -173,12 +177,12 @@

                  -
                  AccountingList
                  Parent class for list results on accounting endpoints to share pagination details.
                  AuthorizationToken
                  Authorization data including the OAuth bearer token, expiry, and refresh token.
                  Business
                  Each FreshBooks user is associated with a business.
                  BusinessAddress
                  The address of the business.
                  BusinessMembership
                  Business/Identity relationship
                  BusinessPhone
                  The phone number of the business.
                  Callback
                  Webhook callback subscription model.
                  CallbackList
                  Results of callbacks list call containing list of callbacks and pagination data.
                  Client
                  A client in the new FreshBooks is a resource representing an entity you send invoices to.
                  ClientList
                  Results of clients list call containing list of clients and pagination data.
                  Expense
                  Expenses are used to track expenditures your business incurs.
                  ExpenseAttachment
                  Attached receipt image details for an expense.
                  ExpenseCategory
                  Expense Categories are used to group expenses together to aid in expense tracking.
                  ExpenseCategoryList
                  Results of expense category list call containing list of expense categories and pagination data.
                  ExpenseList
                  Results of expenses list call containing list of expenses and pagination data.
                  ExpenseStatus
                  Status values for an expense.
                  Identity
                  Users are uniquely identified by their email across all of FreshBooks, so if +
                  AccountingList
                  Parent class for list results on accounting endpoints to share pagination details.
                  AuthorizationToken
                  Authorization data including the OAuth bearer token, expiry, and refresh token.
                  Business
                  Each FreshBooks user is associated with a business.
                  BusinessAddress
                  The address of the business.
                  BusinessMembership
                  Business/Identity relationship
                  BusinessPhone
                  The phone number of the business.
                  Callback
                  Webhook callback subscription model.
                  CallbackList
                  Results of callbacks list call containing list of callbacks and pagination data.
                  Client
                  A client in the new FreshBooks is a resource representing an entity you send invoices to.
                  ClientList
                  Results of clients list call containing list of clients and pagination data.
                  Expense
                  Expenses are used to track expenditures your business incurs.
                  ExpenseAttachment
                  Attached receipt image details for an expense.
                  ExpenseCategory
                  Expense Categories are used to group expenses together to aid in expense tracking.
                  ExpenseCategoryList
                  Results of expense category list call containing list of expense categories and pagination data.
                  ExpenseList
                  Results of expenses list call containing list of expenses and pagination data.
                  ExpenseStatus
                  Status values for an expense.
                  FileUpload
                  A file that has been uploaded to FreshBooks.
                  Identity
                  Users are uniquely identified by their email across all of FreshBooks, so if `leafy@example.com` is an Owner of one account and gets added as a Client on another, they will have some access to both. They could then open a second business of their own, or be added as an employee of another person’s business.
                  Invoice
                  Invoices in FreshBooks are what gets sent to Clients, detailing specific goods or services performed or provided by the Administrator of their System, and the amount -that Client owes to the Admin.
                  InvoiceList
                  Results of invoices list call containing list of invoices and pagination data.
                  InvoicePaymentOptions
                  In FreshBooks, invoices can be paid online via a variety of payment gateways +that Client owes to the Admin.
                  InvoiceAttachment
                  Attached files and images to include with an invoice.
                  InvoiceList
                  Results of invoices list call containing list of invoices and pagination data.
                  InvoicePaymentOptions
                  In FreshBooks, invoices can be paid online via a variety of payment gateways setup on the sender’s account. In order for this to be available on an invoice, the online payments must be set up through a separate call after the invoice has been created.
                  InvoicePresentation
                  Invoice Presentations are used to style an invoice including font, colors, and logos.
                  InvoiceStatus
                  Status values for an invoice.
                  Item
                  Items are stored from invoice lines to make invoicing easier in the future.
                  ItemList
                  Results of items list call containing list of items and pagination data.
                  LineItem
                  Invoice lines are used to determine the amount of an invoice, in addition to diff --git a/docs/html/packages/amcintosh-FreshBooks-Resource.html b/docs/html/packages/amcintosh-FreshBooks-Resource.html index f4e9981..d1ab6f5 100644 --- a/docs/html/packages/amcintosh-FreshBooks-Resource.html +++ b/docs/html/packages/amcintosh-FreshBooks-Resource.html @@ -98,6 +98,10 @@

                  +

                  + File Uploads +

                  +

                  Webhook Callbacks

                  diff --git a/docs/html/packages/amcintosh-FreshBooks.html b/docs/html/packages/amcintosh-FreshBooks.html index 91dd450..55fac6a 100644 --- a/docs/html/packages/amcintosh-FreshBooks.html +++ b/docs/html/packages/amcintosh-FreshBooks.html @@ -98,6 +98,10 @@

                  +

                  + File Uploads +

                  +

                  Webhook Callbacks

                  diff --git a/docs/html/packages/amcintosh.html b/docs/html/packages/amcintosh.html index 7e36c6a..3aab680 100644 --- a/docs/html/packages/amcintosh.html +++ b/docs/html/packages/amcintosh.html @@ -98,6 +98,10 @@

                  +

                  + File Uploads +

                  +

                  Webhook Callbacks

                  @@ -186,7 +190,7 @@

                  -
                  AccountingDateTimeImmutableCaster
                  DateCaster
                  DecimalCaster
                  ISODateTimeImmutableCaster
                  MoneyCaster
                  TimestampDateTimeImmutableCaster
                  AccountingResource
                  AuthResource
                  BaseResource
                  PaymentResource
                  ProjectResource
                  +
                  AccountingDateTimeImmutableCaster
                  DateCaster
                  DecimalCaster
                  ISODateTimeImmutableCaster
                  MoneyCaster
                  TimestampDateTimeImmutableCaster
                  AccountingResource
                  AuthResource
                  BaseResource
                  PaymentResource
                  ProjectResource
                  UploadResource
                  diff --git a/docs/html/packages/default.html b/docs/html/packages/default.html index 26666ee..0fa0431 100644 --- a/docs/html/packages/default.html +++ b/docs/html/packages/default.html @@ -98,6 +98,10 @@

                  +

                  + File Uploads +

                  +

                  Webhook Callbacks

                  diff --git a/docs/html/reports/deprecated.html b/docs/html/reports/deprecated.html index 1fa7f4a..dec0562 100644 --- a/docs/html/reports/deprecated.html +++ b/docs/html/reports/deprecated.html @@ -99,6 +99,10 @@

                  +

                  + File Uploads +

                  +

                  Webhook Callbacks

                  diff --git a/docs/html/reports/errors.html b/docs/html/reports/errors.html index 3689545..023ae03 100644 --- a/docs/html/reports/errors.html +++ b/docs/html/reports/errors.html @@ -99,6 +99,10 @@

                  +

                  + File Uploads +

                  +

                  Webhook Callbacks

                  diff --git a/docs/html/reports/markers.html b/docs/html/reports/markers.html index eb1390a..ca33626 100644 --- a/docs/html/reports/markers.html +++ b/docs/html/reports/markers.html @@ -99,6 +99,10 @@

                  +

                  + File Uploads +

                  +

                  Webhook Callbacks