dear-inventory-ruby 0.2.13 → 0.2.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +11 -4
- data/docs/Account.md +17 -19
- data/docs/Accounts.md +5 -7
- data/docs/Address.md +10 -12
- data/docs/AttachmentLine.md +7 -9
- data/docs/AttributeSet.md +79 -0
- data/docs/AttributeSetAttribute.md +19 -0
- data/docs/AttributeSets.md +19 -0
- data/docs/Bin.md +4 -6
- data/docs/Carrier.md +4 -6
- data/docs/Carriers.md +5 -7
- data/docs/Contact.md +13 -15
- data/docs/Customer.md +34 -36
- data/docs/Customers.md +5 -7
- data/docs/Error.md +4 -6
- data/docs/ExternalHeader.md +4 -6
- data/docs/InventoryApi.md +446 -274
- data/docs/Location.md +20 -22
- data/docs/Locations.md +5 -7
- data/docs/Me.md +9 -11
- data/docs/MeContact.md +11 -13
- data/docs/MeContacts.md +5 -7
- data/docs/PaymentTerm.md +8 -10
- data/docs/PaymentTerms.md +5 -7
- data/docs/PriceTier.md +4 -6
- data/docs/PriceTiers.md +3 -5
- data/docs/Sale.md +45 -47
- data/docs/SaleAdditionalCharge.md +10 -12
- data/docs/SaleInvoice.md +19 -21
- data/docs/SaleInvoiceAdditionalCharge.md +11 -13
- data/docs/SaleInvoiceDelete.md +4 -6
- data/docs/SaleInvoiceLine.md +14 -16
- data/docs/SaleInvoicePartial.md +15 -17
- data/docs/SaleInvoicePost.md +15 -17
- data/docs/SaleInvoices.md +4 -6
- data/docs/SaleItem.md +33 -35
- data/docs/SaleList.md +5 -7
- data/docs/SaleOrder.md +12 -14
- data/docs/SaleOrderLine.md +15 -17
- data/docs/SalePayment.md +16 -18
- data/docs/SalePaymentLine.md +9 -11
- data/docs/SaleQuote.md +11 -13
- data/docs/SaleQuoteLine.md +13 -15
- data/docs/ShippingAddress.md +13 -15
- data/docs/Success.md +3 -5
- data/docs/SupplierCustomerAddress.md +11 -13
- data/docs/Tax.md +11 -13
- data/docs/TaxComponent.md +6 -8
- data/docs/Taxes.md +5 -7
- data/docs/Webhook.md +12 -14
- data/docs/Webhooks.md +3 -5
- data/lib/dear-inventory-ruby/api/inventory_api.rb +253 -0
- data/lib/dear-inventory-ruby/models/attribute_set.rb +534 -0
- data/lib/dear-inventory-ruby/models/attribute_set_attribute.rb +237 -0
- data/lib/dear-inventory-ruby/models/attribute_sets.rb +229 -0
- data/lib/dear-inventory-ruby/version.rb +1 -1
- data/lib/dear-inventory-ruby.rb +3 -0
- data/spec/.DS_Store +0 -0
- data/spec/api/inventory_api_spec.rb +49 -0
- data/spec/models/attribute_set_attribute_spec.rb +53 -0
- data/spec/models/attribute_set_spec.rb +233 -0
- data/spec/models/attribute_sets_spec.rb +53 -0
- metadata +53 -41
data/docs/SaleInvoicePartial.md
CHANGED
|
@@ -2,21 +2,21 @@
|
|
|
2
2
|
|
|
3
3
|
## Properties
|
|
4
4
|
|
|
5
|
-
Name
|
|
6
|
-
|
|
7
|
-
**task_id**
|
|
8
|
-
**combine_additional_charges** | **Boolean**
|
|
9
|
-
**invoice_number**
|
|
10
|
-
**memo**
|
|
11
|
-
**status**
|
|
12
|
-
**invoice_date**
|
|
13
|
-
**invoice_due_date**
|
|
14
|
-
**currency_conversion_rate**
|
|
15
|
-
**billing_address_line1**
|
|
16
|
-
**billing_address_line2**
|
|
17
|
-
**linked_fulfillment_number**
|
|
18
|
-
**lines**
|
|
19
|
-
**additional_charges**
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ------------------------------ | ------------------------------------------------------------------------------ | -------------------------------------------------------------------------------------------------- | ----------------------------- |
|
|
7
|
+
| **task_id** | **String** | Identifier of sale Invoice task |
|
|
8
|
+
| **combine_additional_charges** | **Boolean** | If `true` then `additional charges` lines displayed in `Lines` array | [optional] [default to false] |
|
|
9
|
+
| **invoice_number** | **String** | Invoice Number (auto-generated) | [optional] |
|
|
10
|
+
| **memo** | **String** | Additional information for Invoice. | [optional] |
|
|
11
|
+
| **status** | **String** | Invoice status. Possible Values are values. For POST available values are DRAFT, AUTHORISED |
|
|
12
|
+
| **invoice_date** | **String** | Invoice Date. |
|
|
13
|
+
| **invoice_due_date** | **String** | Invoice Due Date. |
|
|
14
|
+
| **currency_conversion_rate** | **Float** | Decimal with up to 4 decimal places | [optional] |
|
|
15
|
+
| **billing_address_line1** | **String** | Billing Address Line 1 | [optional] |
|
|
16
|
+
| **billing_address_line2** | **String** | Billing Address Line 2 | [optional] |
|
|
17
|
+
| **linked_fulfillment_number** | **Integer** | Number of Fulfilment linked to this invoice | [optional] |
|
|
18
|
+
| **lines** | [**Array<SaleInvoiceLine>**](SaleInvoiceLine.md) | | [optional] |
|
|
19
|
+
| **additional_charges** | [**Array<SaleInvoiceAdditionalCharge>**](SaleInvoiceAdditionalCharge.md) | | [optional] |
|
|
20
20
|
|
|
21
21
|
## Code Sample
|
|
22
22
|
|
|
@@ -37,5 +37,3 @@ instance = DearInventoryRuby::SaleInvoicePartial.new(task_id: nil,
|
|
|
37
37
|
lines: nil,
|
|
38
38
|
additional_charges: nil)
|
|
39
39
|
```
|
|
40
|
-
|
|
41
|
-
|
data/docs/SaleInvoicePost.md
CHANGED
|
@@ -2,21 +2,21 @@
|
|
|
2
2
|
|
|
3
3
|
## Properties
|
|
4
4
|
|
|
5
|
-
Name
|
|
6
|
-
|
|
7
|
-
**sale_id**
|
|
8
|
-
**task_id**
|
|
9
|
-
**combine_additional_charges** | **Boolean**
|
|
10
|
-
**memo**
|
|
11
|
-
**status**
|
|
12
|
-
**invoice_date**
|
|
13
|
-
**invoice_due_date**
|
|
14
|
-
**currency_conversion_rate**
|
|
15
|
-
**billing_address_line1**
|
|
16
|
-
**billing_address_line2**
|
|
17
|
-
**linked_fulfillment_number**
|
|
18
|
-
**lines**
|
|
19
|
-
**additional_charges**
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ------------------------------ | ------------------------------------------------------------------------------ | -------------------------------------------------------------------------------------------------- | ------------------ |
|
|
7
|
+
| **sale_id** | **String** | Unique DEAR Sale ID |
|
|
8
|
+
| **task_id** | **String** | Identifier of sale Invoice task |
|
|
9
|
+
| **combine_additional_charges** | **Boolean** | If `true` then `additional charges` lines displayed in `Lines` array | [default to false] |
|
|
10
|
+
| **memo** | **String** | Additional information for Invoice. | [optional] |
|
|
11
|
+
| **status** | **String** | Invoice status. Possible Values are values. For POST available values are DRAFT, AUTHORISED |
|
|
12
|
+
| **invoice_date** | **String** | Invoice Date. |
|
|
13
|
+
| **invoice_due_date** | **String** | Invoice Due Date. |
|
|
14
|
+
| **currency_conversion_rate** | **Float** | Decimal with up to 4 decimal places | [optional] |
|
|
15
|
+
| **billing_address_line1** | **String** | Billing Address Line 1 | [optional] |
|
|
16
|
+
| **billing_address_line2** | **String** | Billing Address Line 2 | [optional] |
|
|
17
|
+
| **linked_fulfillment_number** | **Integer** | Number of Fulfilment linked to this invoice | [optional] |
|
|
18
|
+
| **lines** | [**Array<SaleInvoiceLine>**](SaleInvoiceLine.md) | | [optional] |
|
|
19
|
+
| **additional_charges** | [**Array<SaleInvoiceAdditionalCharge>**](SaleInvoiceAdditionalCharge.md) | | [optional] |
|
|
20
20
|
|
|
21
21
|
## Code Sample
|
|
22
22
|
|
|
@@ -37,5 +37,3 @@ instance = DearInventoryRuby::SaleInvoicePost.new(sale_id: nil,
|
|
|
37
37
|
lines: nil,
|
|
38
38
|
additional_charges: nil)
|
|
39
39
|
```
|
|
40
|
-
|
|
41
|
-
|
data/docs/SaleInvoices.md
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
## Properties
|
|
4
4
|
|
|
5
|
-
Name
|
|
6
|
-
------------ |
|
|
7
|
-
**sale_id**
|
|
8
|
-
**invoices** | [**Array<SaleInvoicePartial>**](SaleInvoicePartial.md) | Array of Invoices
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ------------ | ------------------------------------------------------------ | ------------------- | ---------- |
|
|
7
|
+
| **sale_id** | **String** | Unique DEAR Sale ID |
|
|
8
|
+
| **invoices** | [**Array<SaleInvoicePartial>**](SaleInvoicePartial.md) | Array of Invoices | [optional] |
|
|
9
9
|
|
|
10
10
|
## Code Sample
|
|
11
11
|
|
|
@@ -15,5 +15,3 @@ require 'DearInventoryRuby'
|
|
|
15
15
|
instance = DearInventoryRuby::SaleInvoices.new(sale_id: nil,
|
|
16
16
|
invoices: nil)
|
|
17
17
|
```
|
|
18
|
-
|
|
19
|
-
|
data/docs/SaleItem.md
CHANGED
|
@@ -2,39 +2,39 @@
|
|
|
2
2
|
|
|
3
3
|
## Properties
|
|
4
4
|
|
|
5
|
-
Name
|
|
6
|
-
|
|
7
|
-
**sale_id**
|
|
8
|
-
**order_number**
|
|
9
|
-
**status**
|
|
10
|
-
**order_date**
|
|
11
|
-
**invoice_date**
|
|
12
|
-
**customer**
|
|
13
|
-
**customer_id**
|
|
14
|
-
**invoice_number**
|
|
15
|
-
**customer_reference**
|
|
16
|
-
**invoice_amount**
|
|
17
|
-
**paid_amount**
|
|
18
|
-
**invoice_due_date**
|
|
19
|
-
**ship_by**
|
|
20
|
-
**base_currency**
|
|
21
|
-
**customer_currency**
|
|
22
|
-
**credit_note_number**
|
|
23
|
-
**updated**
|
|
24
|
-
**quote_status**
|
|
25
|
-
**order_status**
|
|
26
|
-
**combined_picking_status**
|
|
27
|
-
**combined_packing_status**
|
|
28
|
-
**combined_shipping_status**
|
|
29
|
-
**ful_filment_status**
|
|
30
|
-
**combined_invoice_status**
|
|
31
|
-
**credit_note_status**
|
|
32
|
-
**combined_payment_status**
|
|
33
|
-
**type**
|
|
34
|
-
**combined_tracking_numbers** | **String** | Tracking Numbers
|
|
35
|
-
**source_channel**
|
|
36
|
-
**external_id**
|
|
37
|
-
**order_location_id**
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ----------------------------- | ---------- | ------------------------------------------------------------------------------------------------------------------------------- | ---------- |
|
|
7
|
+
| **sale_id** | **String** | Unique DEAR Sale identifier | [optional] |
|
|
8
|
+
| **order_number** | **String** | Sale Order number generated by DEAR | [optional] |
|
|
9
|
+
| **status** | **String** | Current sale status. Possible values are values | [optional] |
|
|
10
|
+
| **order_date** | **Date** | Date when Sale Order was created | [optional] |
|
|
11
|
+
| **invoice_date** | **Date** | Date when Invoice was issued | [optional] |
|
|
12
|
+
| **customer** | **String** | Name of the customer | [optional] |
|
|
13
|
+
| **customer_id** | **String** | Customer Identifier | [optional] |
|
|
14
|
+
| **invoice_number** | **String** | Invoice number generated by DEAR | [optional] |
|
|
15
|
+
| **customer_reference** | **String** | Optional Customer Reference (typically customer Purchase order number) supplied by the customer for the sale | [optional] |
|
|
16
|
+
| **invoice_amount** | **Float** | Total Invoice amount minus total Credit note amount in customer currency | [optional] |
|
|
17
|
+
| **paid_amount** | **Float** | Total Paid amount minus Refunded amount in customer currency | [optional] |
|
|
18
|
+
| **invoice_due_date** | **Date** | Date when invoice is due according to selected payment terms | [optional] |
|
|
19
|
+
| **ship_by** | **Date** | Date when shipment is due | [optional] |
|
|
20
|
+
| **base_currency** | **String** | 3 digit Base currency code (as configured in General Settings) | [optional] |
|
|
21
|
+
| **customer_currency** | **String** | 3 digit Customer currency code | [optional] |
|
|
22
|
+
| **credit_note_number** | **String** | Credit note number generated by DEAR. Is empty unless credit note is created | [optional] |
|
|
23
|
+
| **updated** | **Date** | Date when the sale was last created/updated last time | [optional] |
|
|
24
|
+
| **quote_status** | **String** | Sale Quote status. Possible Values are values | [optional] |
|
|
25
|
+
| **order_status** | **String** | Sale Order status. Possible Values are values | [optional] |
|
|
26
|
+
| **combined_picking_status** | **String** | Pick status. Possible Values are VOIDED, NOT AVAILABLE, PICKED, PICKING , NOT PICKED , PARTIALLY PICKED | [optional] |
|
|
27
|
+
| **combined_packing_status** | **String** | Pack status. Possible Values are VOIDED, NOT AVAILABLE, PACKED, PACKING, NOT PACKED, PARTIALLY PACKED | [optional] |
|
|
28
|
+
| **combined_shipping_status** | **String** | Ship status. Possible Values are VOIDED, NOT AVAILABLE, SHIPPED, SHIPPING , NOT SHIPPED , PARTIALLY SHIPPED | [optional] |
|
|
29
|
+
| **ful_filment_status** | **String** | Fulfilment status. Possible Values are FULFILLED, PARTIALLY FULFILLED, NOT AVAILABLE, NOT FULFILLED, VOIDED | [optional] |
|
|
30
|
+
| **combined_invoice_status** | **String** | Invoice status. Possible Values are VOIDED, DRAFT, AUTHORISED, NOT AVAILABLE, PAID | [optional] |
|
|
31
|
+
| **credit_note_status** | **String** | Credit Note status. Possible Values are VOIDED, DRAFT, AUTHORISED, NOT AVAILABLE | [optional] |
|
|
32
|
+
| **combined_payment_status** | **String** | Payment status. Possible Values are NOT REFUNDED, PREPAID, PARTIALLY PAID, UNPAID, PAID, VOIDED | [optional] |
|
|
33
|
+
| **type** | **String** | Type of Sale. Possible Values are Simple Sale, Advanced Sale , Service Sale | [optional] |
|
|
34
|
+
| **combined_tracking_numbers** | **String** | Tracking Numbers | [optional] |
|
|
35
|
+
| **source_channel** | **String** | Source of the sale. read-only field | [optional] |
|
|
36
|
+
| **external_id** | **String** | Custom field that is only available in API and allows to set arbitrary value for the sale for later search and any custom logic | [optional] |
|
|
37
|
+
| **order_location_id** | **String** | Sale Order Location ID | [optional] |
|
|
38
38
|
|
|
39
39
|
## Code Sample
|
|
40
40
|
|
|
@@ -73,5 +73,3 @@ instance = DearInventoryRuby::SaleItem.new(sale_id: nil,
|
|
|
73
73
|
external_id: nil,
|
|
74
74
|
order_location_id: nil)
|
|
75
75
|
```
|
|
76
|
-
|
|
77
|
-
|
data/docs/SaleList.md
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
## Properties
|
|
4
4
|
|
|
5
|
-
Name
|
|
6
|
-
|
|
7
|
-
**total**
|
|
8
|
-
**page**
|
|
9
|
-
**sale_list** | [**Array<SaleItem>**](SaleItem.md) | Array of SaleItem | [optional]
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ------------- | ---------------------------------------- | ----------------- | ---------- |
|
|
7
|
+
| **total** | **Float** | Total | [optional] |
|
|
8
|
+
| **page** | **Float** | Page | [optional] |
|
|
9
|
+
| **sale_list** | [**Array<SaleItem>**](SaleItem.md) | Array of SaleItem | [optional] |
|
|
10
10
|
|
|
11
11
|
## Code Sample
|
|
12
12
|
|
|
@@ -17,5 +17,3 @@ instance = DearInventoryRuby::SaleList.new(total: nil,
|
|
|
17
17
|
page: nil,
|
|
18
18
|
sale_list: nil)
|
|
19
19
|
```
|
|
20
|
-
|
|
21
|
-
|
data/docs/SaleOrder.md
CHANGED
|
@@ -2,18 +2,18 @@
|
|
|
2
2
|
|
|
3
3
|
## Properties
|
|
4
4
|
|
|
5
|
-
Name
|
|
6
|
-
|
|
7
|
-
**sale_id**
|
|
8
|
-
**sale_order_number**
|
|
9
|
-
**combine_additional_charges** | **Boolean**
|
|
10
|
-
**memo**
|
|
11
|
-
**status**
|
|
12
|
-
**lines**
|
|
13
|
-
**additional_charges**
|
|
14
|
-
**total_before_tax**
|
|
15
|
-
**tax**
|
|
16
|
-
**total**
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ------------------------------ | ---------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | ------------------ |
|
|
7
|
+
| **sale_id** | **String** | Unique DEAR Sale ID |
|
|
8
|
+
| **sale_order_number** | **String** | Sale Order Number (auto-generated) | [optional] |
|
|
9
|
+
| **combine_additional_charges** | **Boolean** | If `true` then `additional charges` lines displayed in `Lines` array | [default to false] |
|
|
10
|
+
| **memo** | **String** | Additional information for Order. |
|
|
11
|
+
| **status** | **String** | Order Status. Possible Values are values. For POST only `DRAFT` and `AUTHORISED` values accepted |
|
|
12
|
+
| **lines** | [**Array<SaleOrderLine>**](SaleOrderLine.md) | | [optional] |
|
|
13
|
+
| **additional_charges** | [**Array<SaleAdditionalCharge>**](SaleAdditionalCharge.md) | | [optional] |
|
|
14
|
+
| **total_before_tax** | **Float** | Decimal with up to 4 decimal places. Sum of order lines and additional charges without taxes. Not required for POST. |
|
|
15
|
+
| **tax** | **Float** | Decimal with up to 4 decimal places. Sum of order lines and additional charges taxes. Not required for POST. |
|
|
16
|
+
| **total** | **Float** | Decimal with up to 4 decimal places. Sum of order lines and additional charges with taxes. Not required for POST. |
|
|
17
17
|
|
|
18
18
|
## Code Sample
|
|
19
19
|
|
|
@@ -31,5 +31,3 @@ instance = DearInventoryRuby::SaleOrder.new(sale_id: nil,
|
|
|
31
31
|
tax: nil,
|
|
32
32
|
total: nil)
|
|
33
33
|
```
|
|
34
|
-
|
|
35
|
-
|
data/docs/SaleOrderLine.md
CHANGED
|
@@ -2,21 +2,21 @@
|
|
|
2
2
|
|
|
3
3
|
## Properties
|
|
4
4
|
|
|
5
|
-
Name
|
|
6
|
-
|
|
7
|
-
**product_id**
|
|
8
|
-
**sku**
|
|
9
|
-
**name**
|
|
10
|
-
**quantity**
|
|
11
|
-
**price**
|
|
12
|
-
**discount**
|
|
13
|
-
**tax**
|
|
14
|
-
**average_cost**
|
|
15
|
-
**tax_rule**
|
|
16
|
-
**comment**
|
|
17
|
-
**drop_ship**
|
|
18
|
-
**backorder_quantity** | **Float**
|
|
19
|
-
**total**
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---------------------- | ----------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | ---------- |
|
|
7
|
+
| **product_id** | **String** | Product identifier referenced by this Line. Required If CombineAdditionalCharges param exist for this endpoint and it have values = false | [optional] |
|
|
8
|
+
| **sku** | **String** | Product SKU referenced by this Line. Required If CombineAdditionalCharges param exist for this endpoint and it have values = false | [optional] |
|
|
9
|
+
| **name** | **String** | Product Name referenced by this Line |
|
|
10
|
+
| **quantity** | **Float** | Product or service quantity. Minimal value is 1. |
|
|
11
|
+
| **price** | **Float** | Price per unit in Customer currency |
|
|
12
|
+
| **discount** | **Float** | Discount. Value between 0 and 100. For free items discount is 100. Default value is 0 | [optional] |
|
|
13
|
+
| **tax** | **Float** | Tax | [optional] |
|
|
14
|
+
| **average_cost** | **Float** | Average product cost | [optional] |
|
|
15
|
+
| **tax_rule** | **String** | Line Tax Rule name. | [optional] |
|
|
16
|
+
| **comment** | **String** | Comment for this line | [optional] |
|
|
17
|
+
| **drop_ship** | **Boolean** | Required if product is not a service with “Optional Drop Ship” mode. Otherwise it ignored. | [optional] |
|
|
18
|
+
| **backorder_quantity** | **Float** | Quantity of the ordered product on backorder. Read Only for POST | [optional] |
|
|
19
|
+
| **total** | **Float** | Line Total. For validation | [optional] |
|
|
20
20
|
|
|
21
21
|
## Code Sample
|
|
22
22
|
|
|
@@ -37,5 +37,3 @@ instance = DearInventoryRuby::SaleOrderLine.new(product_id: nil,
|
|
|
37
37
|
backorder_quantity: nil,
|
|
38
38
|
total: nil)
|
|
39
39
|
```
|
|
40
|
-
|
|
41
|
-
|
data/docs/SalePayment.md
CHANGED
|
@@ -2,22 +2,22 @@
|
|
|
2
2
|
|
|
3
3
|
## Properties
|
|
4
4
|
|
|
5
|
-
Name
|
|
6
|
-
|
|
7
|
-
**sale_id**
|
|
8
|
-
**task_id**
|
|
9
|
-
**id**
|
|
10
|
-
**sale_order_number**
|
|
11
|
-
**invoice_number**
|
|
12
|
-
**credit_note_number** | **String** | Sale Task Credit Note Number
|
|
13
|
-
**type**
|
|
14
|
-
**reference**
|
|
15
|
-
**amount**
|
|
16
|
-
**date_paid**
|
|
17
|
-
**account**
|
|
18
|
-
**currency_rate**
|
|
19
|
-
**date_created**
|
|
20
|
-
**credit_id**
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---------------------- | ---------- | -------------------------------------------------------------------------------------------------------------------------- | ---------- |
|
|
7
|
+
| **sale_id** | **String** | Unique DEAR Sale ID | [optional] |
|
|
8
|
+
| **task_id** | **String** | Unique DEAR Sale Task ID. Available for POST | [optional] |
|
|
9
|
+
| **id** | **String** | Identifier of payment. Available for PUT | [optional] |
|
|
10
|
+
| **sale_order_number** | **String** | Sale Order Number | [optional] |
|
|
11
|
+
| **invoice_number** | **String** | Sale Task Invoice Number | [optional] |
|
|
12
|
+
| **credit_note_number** | **String** | Sale Task Credit Note Number | [optional] |
|
|
13
|
+
| **type** | **String** | Available values are PREPAYMENT,PAYMENT,REFUND. Available for POST | [optional] |
|
|
14
|
+
| **reference** | **String** | Payment reference number. Available for POST/PUT | [optional] |
|
|
15
|
+
| **amount** | **Float** | Payment amount in customer currency. Available for POST/PUT | [optional] |
|
|
16
|
+
| **date_paid** | **Date** | Date when payment has been made. Available for POST/PUT | [optional] |
|
|
17
|
+
| **account** | **String** | Account Code of the bank/payment account from Chart of accounts. Available for POST/PUT | [optional] |
|
|
18
|
+
| **currency_rate** | **Float** | Currency Conversion rate expressed as number of Base currency units for one Customer currency unit. Available for POST/PUT | [optional] |
|
|
19
|
+
| **date_created** | **Date** | Date of creation payment record. | [optional] |
|
|
20
|
+
| **credit_id** | **String** | Id for Sale Credit entry | [optional] |
|
|
21
21
|
|
|
22
22
|
## Code Sample
|
|
23
23
|
|
|
@@ -39,5 +39,3 @@ instance = DearInventoryRuby::SalePayment.new(sale_id: nil,
|
|
|
39
39
|
date_created: nil,
|
|
40
40
|
credit_id: nil)
|
|
41
41
|
```
|
|
42
|
-
|
|
43
|
-
|
data/docs/SalePaymentLine.md
CHANGED
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
## Properties
|
|
4
4
|
|
|
5
|
-
Name
|
|
6
|
-
|
|
7
|
-
**id**
|
|
8
|
-
**reference**
|
|
9
|
-
**amount**
|
|
10
|
-
**date_paid**
|
|
11
|
-
**account**
|
|
12
|
-
**currency_rate** | **Float**
|
|
13
|
-
**date_created**
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ----------------- | ---------- | ---------------------------------------------------------------------------------------------------------------------------------------- | ---------- |
|
|
7
|
+
| **id** | **String** | Identifier of payment. | [optional] |
|
|
8
|
+
| **reference** | **String** | Payment reference number. | [optional] |
|
|
9
|
+
| **amount** | **Float** | Decimal with up to 2 decimal places. Payment amount in customer currency. | [optional] |
|
|
10
|
+
| **date_paid** | **Date** | Date when payment has been made. | [optional] |
|
|
11
|
+
| **account** | **String** | Account Code of the bank/payment account from Chart of accounts. | [optional] |
|
|
12
|
+
| **currency_rate** | **Float** | Decimal with up to 4 decimal places. Currency Conversion rate expressed as number of Base currency units for one Customer currency unit. | [optional] |
|
|
13
|
+
| **date_created** | **Date** | Date of creation payment record. | [optional] |
|
|
14
14
|
|
|
15
15
|
## Code Sample
|
|
16
16
|
|
|
@@ -25,5 +25,3 @@ instance = DearInventoryRuby::SalePaymentLine.new(id: nil,
|
|
|
25
25
|
currency_rate: nil,
|
|
26
26
|
date_created: nil)
|
|
27
27
|
```
|
|
28
|
-
|
|
29
|
-
|
data/docs/SaleQuote.md
CHANGED
|
@@ -2,17 +2,17 @@
|
|
|
2
2
|
|
|
3
3
|
## Properties
|
|
4
4
|
|
|
5
|
-
Name
|
|
6
|
-
|
|
7
|
-
**sale_id**
|
|
8
|
-
**combine_additional_charges** | **Boolean**
|
|
9
|
-
**memo**
|
|
10
|
-
**status**
|
|
11
|
-
**lines**
|
|
12
|
-
**additional_charges**
|
|
13
|
-
**total_before_tax**
|
|
14
|
-
**tax**
|
|
15
|
-
**total**
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ------------------------------ | ---------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | ------------------ |
|
|
7
|
+
| **sale_id** | **String** | Unique DEAR Sale ID |
|
|
8
|
+
| **combine_additional_charges** | **Boolean** | If `true` then `additional charges` lines displayed in `Lines` array | [default to false] |
|
|
9
|
+
| **memo** | **String** | Additional information for Quote. |
|
|
10
|
+
| **status** | **String** | Quote Status. Possible Values are values. For POST only `DRAFT` and `AUTHORISED` values accepted |
|
|
11
|
+
| **lines** | [**Array<SaleQuoteLine>**](SaleQuoteLine.md) | | [optional] |
|
|
12
|
+
| **additional_charges** | [**Array<SaleAdditionalCharge>**](SaleAdditionalCharge.md) | | [optional] |
|
|
13
|
+
| **total_before_tax** | **Float** | Decimal with up to 4 decimal places. Sum of quote lines and additional charges without taxes. Not required for POST. |
|
|
14
|
+
| **tax** | **Float** | Decimal with up to 4 decimal places. Sum of quote lines and additional charges taxes. Not required for POST. |
|
|
15
|
+
| **total** | **Float** | Decimal with up to 4 decimal places. Sum of quote lines and additional charges with taxes. Not required for POST. |
|
|
16
16
|
|
|
17
17
|
## Code Sample
|
|
18
18
|
|
|
@@ -29,5 +29,3 @@ instance = DearInventoryRuby::SaleQuote.new(sale_id: nil,
|
|
|
29
29
|
tax: nil,
|
|
30
30
|
total: nil)
|
|
31
31
|
```
|
|
32
|
-
|
|
33
|
-
|
data/docs/SaleQuoteLine.md
CHANGED
|
@@ -2,19 +2,19 @@
|
|
|
2
2
|
|
|
3
3
|
## Properties
|
|
4
4
|
|
|
5
|
-
Name
|
|
6
|
-
|
|
7
|
-
**product_id**
|
|
8
|
-
**sku**
|
|
9
|
-
**name**
|
|
10
|
-
**quantity**
|
|
11
|
-
**price**
|
|
12
|
-
**discount**
|
|
13
|
-
**tax**
|
|
14
|
-
**average_cost** | **Float**
|
|
15
|
-
**tax_rule**
|
|
16
|
-
**comment**
|
|
17
|
-
**total**
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---------------- | ---------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | ---------- |
|
|
7
|
+
| **product_id** | **String** | Product identifier referenced by this Line. Required If CombineAdditionalCharges param exist for this endpoint and it have values = false | [optional] |
|
|
8
|
+
| **sku** | **String** | Product SKU referenced by this Line. Required If CombineAdditionalCharges param exist for this endpoint and it have values = false | [optional] |
|
|
9
|
+
| **name** | **String** | Product Name referenced by this Line |
|
|
10
|
+
| **quantity** | **Float** | Product or service quantity. Minimal value is 1. |
|
|
11
|
+
| **price** | **Float** | Price per unit in Customer currency |
|
|
12
|
+
| **discount** | **Float** | Discount. Value between 0 and 100. For free items discount is 100. Default value is 0 | [optional] |
|
|
13
|
+
| **tax** | **Float** | Tax | [optional] |
|
|
14
|
+
| **average_cost** | **Float** | Average product cost | [optional] |
|
|
15
|
+
| **tax_rule** | **String** | Line Tax Rule name. | [optional] |
|
|
16
|
+
| **comment** | **String** | Comment for this line | [optional] |
|
|
17
|
+
| **total** | **Float** | Line Total. For validation | [optional] |
|
|
18
18
|
|
|
19
19
|
## Code Sample
|
|
20
20
|
|
|
@@ -33,5 +33,3 @@ instance = DearInventoryRuby::SaleQuoteLine.new(product_id: nil,
|
|
|
33
33
|
comment: nil,
|
|
34
34
|
total: nil)
|
|
35
35
|
```
|
|
36
|
-
|
|
37
|
-
|
data/docs/ShippingAddress.md
CHANGED
|
@@ -2,19 +2,19 @@
|
|
|
2
2
|
|
|
3
3
|
## Properties
|
|
4
4
|
|
|
5
|
-
Name
|
|
6
|
-
|
|
7
|
-
**display_address_line1** | **String**
|
|
8
|
-
**display_address_line2** | **String**
|
|
9
|
-
**line1**
|
|
10
|
-
**line2**
|
|
11
|
-
**city**
|
|
12
|
-
**state**
|
|
13
|
-
**post_code**
|
|
14
|
-
**country**
|
|
15
|
-
**company**
|
|
16
|
-
**contact**
|
|
17
|
-
**ship_to_other**
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ------------------------- | ----------- | ------------------------------------------------------------------------------------------------------------------ | ---------- |
|
|
7
|
+
| **display_address_line1** | **String** | Address Line 1 as displayed on Sale form. = Line1 + Line2 | [optional] |
|
|
8
|
+
| **display_address_line2** | **String** | Address Line 2 as displayed on Sale form. = City + State/Region + Zip/Postcode + Country | [optional] |
|
|
9
|
+
| **line1** | **String** | Address Line 1 |
|
|
10
|
+
| **line2** | **String** | Address Line 2 | [optional] |
|
|
11
|
+
| **city** | **String** | City | [optional] |
|
|
12
|
+
| **state** | **String** | State | [optional] |
|
|
13
|
+
| **post_code** | **String** | Post code | [optional] |
|
|
14
|
+
| **country** | **String** | Country |
|
|
15
|
+
| **company** | **String** | Company Name | [optional] |
|
|
16
|
+
| **contact** | **String** | Contact | [optional] |
|
|
17
|
+
| **ship_to_other** | **Boolean** | If false and Customer's address matching Line 1 not found, than new customer shipping address will be created. | [optional] |
|
|
18
18
|
|
|
19
19
|
## Code Sample
|
|
20
20
|
|
|
@@ -33,5 +33,3 @@ instance = DearInventoryRuby::ShippingAddress.new(display_address_line1: nil,
|
|
|
33
33
|
contact: nil,
|
|
34
34
|
ship_to_other: nil)
|
|
35
35
|
```
|
|
36
|
-
|
|
37
|
-
|
data/docs/Success.md
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
## Properties
|
|
4
4
|
|
|
5
|
-
Name
|
|
6
|
-
|
|
7
|
-
**success** | **Boolean** | Success
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ----------- | ----------- | ----------- | ---------- |
|
|
7
|
+
| **success** | **Boolean** | Success | [optional] |
|
|
8
8
|
|
|
9
9
|
## Code Sample
|
|
10
10
|
|
|
@@ -13,5 +13,3 @@ require 'DearInventoryRuby'
|
|
|
13
13
|
|
|
14
14
|
instance = DearInventoryRuby::Success.new(success: nil)
|
|
15
15
|
```
|
|
16
|
-
|
|
17
|
-
|
|
@@ -2,17 +2,17 @@
|
|
|
2
2
|
|
|
3
3
|
## Properties
|
|
4
4
|
|
|
5
|
-
Name
|
|
6
|
-
|
|
7
|
-
**id**
|
|
8
|
-
**line1**
|
|
9
|
-
**line2**
|
|
10
|
-
**city**
|
|
11
|
-
**state**
|
|
12
|
-
**postcode**
|
|
13
|
-
**country**
|
|
14
|
-
**type**
|
|
15
|
-
**default_for_type** | **Boolean** | Points that Address is used as default for chosen Type. `false` as default.
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| -------------------- | ----------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------- |
|
|
7
|
+
| **id** | **String** | If passed in PUT method, entry will be searched by id, found entry will be updated, otherwise created | [optional] |
|
|
8
|
+
| **line1** | **String** | Address Line 1 | [optional] |
|
|
9
|
+
| **line2** | **String** | Address Line 2 | [optional] |
|
|
10
|
+
| **city** | **String** | City / Suburb | [optional] |
|
|
11
|
+
| **state** | **String** | State / Province | [optional] |
|
|
12
|
+
| **postcode** | **String** | Zip / PostCode | [optional] |
|
|
13
|
+
| **country** | **String** | Country name |
|
|
14
|
+
| **type** | **String** | Address Type. Should be one of the following values: `Billing`, `Business` or `Shipping`. |
|
|
15
|
+
| **default_for_type** | **Boolean** | Points that Address is used as default for chosen Type. `false` as default. | [optional] [default to false] |
|
|
16
16
|
|
|
17
17
|
## Code Sample
|
|
18
18
|
|
|
@@ -29,5 +29,3 @@ instance = DearInventoryRuby::SupplierCustomerAddress.new(id: nil,
|
|
|
29
29
|
type: nil,
|
|
30
30
|
default_for_type: nil)
|
|
31
31
|
```
|
|
32
|
-
|
|
33
|
-
|