dear-inventory-ruby 0.1.11 → 0.1.16
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +21 -0
- data/README.md +12 -5
- data/docs/Customer.md +1 -1
- data/docs/InventoryApi.md +118 -0
- data/docs/Me.md +2 -2
- data/docs/PriceTier.md +19 -0
- data/docs/PriceTiers.md +17 -0
- data/docs/SaleInvoice.md +41 -0
- data/docs/SaleInvoiceAdditionalCharge.md +33 -0
- data/docs/SaleInvoiceLine.md +39 -0
- data/docs/SaleInvoices.md +19 -0
- data/lib/dear-inventory-ruby.rb +6 -1
- data/lib/dear-inventory-ruby/api/inventory_api.rb +117 -0
- data/lib/dear-inventory-ruby/models/customer.rb +2 -1
- data/lib/dear-inventory-ruby/models/me.rb +4 -2
- data/lib/dear-inventory-ruby/models/price_tier.rb +217 -0
- data/lib/dear-inventory-ruby/models/price_tiers.rb +209 -0
- data/lib/dear-inventory-ruby/models/sale_invoice.rb +356 -0
- data/lib/dear-inventory-ruby/models/sale_invoice_additional_charge.rb +317 -0
- data/lib/dear-inventory-ruby/models/sale_invoice_line.rb +342 -0
- data/lib/dear-inventory-ruby/models/sale_invoices.rb +224 -0
- data/lib/dear-inventory-ruby/version.rb +1 -1
- data/spec/.DS_Store +0 -0
- data/spec/api/inventory_api_spec.rb +23 -0
- data/spec/models/price_tier_spec.rb +47 -0
- data/spec/models/{weight_unit_spec.rb → price_tiers_spec.rb} +12 -6
- data/spec/models/sale_invoice_additional_charge_spec.rb +89 -0
- data/spec/models/sale_invoice_line_spec.rb +107 -0
- data/spec/models/sale_invoice_spec.rb +113 -0
- data/spec/models/sale_invoices_spec.rb +47 -0
- metadata +31 -10
- data/docs/WeightUnit.md +0 -16
- data/lib/dear-inventory-ruby/models/weight_unit.rb +0 -39
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8b834f6ab3bf12c608c9240ddf4270fce75f960cb7143d865f825da063414316
|
4
|
+
data.tar.gz: 5bf7c451d1a81ce76feaa63db7c4f76f633da5d8d87b9ffa07b7eee27f8c35a1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 89f027d1132209a90d492ccd13819c9c787a5d48e47fcca3c2a12460c619be2648cda857a6ed28801837370f9b32ebc870977cea3d635737a8bc38e13a96af5c
|
7
|
+
data.tar.gz: e780a8342d238ce90cab70a64388857cb52bb28c80e83978e6911cbe0799e114a7d991b4c499e7bc3dc64caeaa1ebb1250876d067f6f8a871ed6484930e8981b
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,27 @@
|
|
2
2
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
4
4
|
|
5
|
+
## [0.1.16] - 2021-05-14
|
6
|
+
|
7
|
+
- Remove require `ENUM` for `WeightUnit`.
|
8
|
+
|
9
|
+
## [0.1.15] - 2021-02-22
|
10
|
+
|
11
|
+
- Add new endpoint GET `/sale/invoice` and some related models.
|
12
|
+
|
13
|
+
## [0.1.14] - 2021-05-01
|
14
|
+
|
15
|
+
- Remove validation `Currency` for `Customer` and `Me` models.
|
16
|
+
|
17
|
+
## [0.1.13] - 2020-10-28
|
18
|
+
|
19
|
+
- Update `PriceTiersList` to `PriceTiers`.
|
20
|
+
|
21
|
+
## [0.1.12] - 2020-10-28
|
22
|
+
|
23
|
+
- Add new endpoint and model: `PriceTier`
|
24
|
+
- Endpoint GET `PriceTiers`
|
25
|
+
|
5
26
|
## [0.1.11] - 2020-09-21
|
6
27
|
|
7
28
|
- Update limit of Comments in Customer model.
|
data/README.md
CHANGED
@@ -7,7 +7,7 @@ This specifing endpoints for DEAR Inventory API
|
|
7
7
|
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
8
8
|
|
9
9
|
- API version: 2.0.0
|
10
|
-
- Package version: 0.1.
|
10
|
+
- Package version: 0.1.16
|
11
11
|
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
12
12
|
For more information, please visit [https://www.nnhan.me](https://www.nnhan.me)
|
13
13
|
|
@@ -24,16 +24,16 @@ gem build dear-inventory-ruby.gemspec
|
|
24
24
|
Then either install the gem locally:
|
25
25
|
|
26
26
|
```shell
|
27
|
-
gem install ./dear-inventory-ruby-0.1.
|
27
|
+
gem install ./dear-inventory-ruby-0.1.16.gem
|
28
28
|
```
|
29
29
|
|
30
|
-
(for development, run `gem install --dev ./dear-inventory-ruby-0.1.
|
30
|
+
(for development, run `gem install --dev ./dear-inventory-ruby-0.1.16.gem` to install the development dependencies)
|
31
31
|
|
32
32
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
33
33
|
|
34
34
|
Finally add this to the Gemfile:
|
35
35
|
|
36
|
-
gem 'dear-inventory-ruby', '~> 0.1.
|
36
|
+
gem 'dear-inventory-ruby', '~> 0.1.16'
|
37
37
|
|
38
38
|
### Install from Git
|
39
39
|
|
@@ -102,6 +102,8 @@ Class | Method | HTTP request | Description
|
|
102
102
|
*DearInventoryRuby::InventoryApi* | [**get_customers**](docs/InventoryApi.md#get_customers) | **GET** /customer | Allows you to retrieve the customers
|
103
103
|
*DearInventoryRuby::InventoryApi* | [**get_me**](docs/InventoryApi.md#get_me) | **GET** /me | Allows you to retrieve your information
|
104
104
|
*DearInventoryRuby::InventoryApi* | [**get_payment_terms**](docs/InventoryApi.md#get_payment_terms) | **GET** /ref/paymentterm | Allows you to retrieve the payment terms
|
105
|
+
*DearInventoryRuby::InventoryApi* | [**get_price_tiers**](docs/InventoryApi.md#get_price_tiers) | **GET** /ref/priceTier | Allows you to retrieve the Price Tiers
|
106
|
+
*DearInventoryRuby::InventoryApi* | [**get_sale_invoices**](docs/InventoryApi.md#get_sale_invoices) | **GET** /sale/invoice | Allows you to retrieve the sale invoices
|
105
107
|
*DearInventoryRuby::InventoryApi* | [**get_taxes**](docs/InventoryApi.md#get_taxes) | **GET** /ref/tax | Allows you to retrieve the taxes
|
106
108
|
*DearInventoryRuby::InventoryApi* | [**update_account**](docs/InventoryApi.md#update_account) | **PUT** /ref/account | Allows you to update an Account
|
107
109
|
*DearInventoryRuby::InventoryApi* | [**update_customer**](docs/InventoryApi.md#update_customer) | **PUT** /customer | Allows you to update a customer
|
@@ -123,11 +125,16 @@ Class | Method | HTTP request | Description
|
|
123
125
|
- [DearInventoryRuby::Me](docs/Me.md)
|
124
126
|
- [DearInventoryRuby::PaymentTerm](docs/PaymentTerm.md)
|
125
127
|
- [DearInventoryRuby::PaymentTerms](docs/PaymentTerms.md)
|
128
|
+
- [DearInventoryRuby::PriceTier](docs/PriceTier.md)
|
129
|
+
- [DearInventoryRuby::PriceTiers](docs/PriceTiers.md)
|
130
|
+
- [DearInventoryRuby::SaleInvoice](docs/SaleInvoice.md)
|
131
|
+
- [DearInventoryRuby::SaleInvoiceAdditionalCharge](docs/SaleInvoiceAdditionalCharge.md)
|
132
|
+
- [DearInventoryRuby::SaleInvoiceLine](docs/SaleInvoiceLine.md)
|
133
|
+
- [DearInventoryRuby::SaleInvoices](docs/SaleInvoices.md)
|
126
134
|
- [DearInventoryRuby::Success](docs/Success.md)
|
127
135
|
- [DearInventoryRuby::Tax](docs/Tax.md)
|
128
136
|
- [DearInventoryRuby::TaxComponent](docs/TaxComponent.md)
|
129
137
|
- [DearInventoryRuby::Taxes](docs/Taxes.md)
|
130
|
-
- [DearInventoryRuby::WeightUnit](docs/WeightUnit.md)
|
131
138
|
|
132
139
|
|
133
140
|
## Documentation for Authorization
|
data/docs/Customer.md
CHANGED
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
|
|
7
7
|
**id** | **String** | Unique Customer ID | [optional]
|
8
8
|
**name** | **String** | Name of Customer |
|
9
9
|
**status** | **String** | Points that Customer is Active. Available values are Active and Deprecated. Required for POST |
|
10
|
-
**currency** |
|
10
|
+
**currency** | **String** | Currency code of Customer |
|
11
11
|
**payment_term** | **String** | Payment term |
|
12
12
|
**account_receivable** | **String** | Account receivable code of Customer |
|
13
13
|
**revenue_account** | **String** | Sale account code of Customer |
|
data/docs/InventoryApi.md
CHANGED
@@ -14,6 +14,8 @@ Method | HTTP request | Description
|
|
14
14
|
[**get_customers**](InventoryApi.md#get_customers) | **GET** /customer | Allows you to retrieve the customers
|
15
15
|
[**get_me**](InventoryApi.md#get_me) | **GET** /me | Allows you to retrieve your information
|
16
16
|
[**get_payment_terms**](InventoryApi.md#get_payment_terms) | **GET** /ref/paymentterm | Allows you to retrieve the payment terms
|
17
|
+
[**get_price_tiers**](InventoryApi.md#get_price_tiers) | **GET** /ref/priceTier | Allows you to retrieve the Price Tiers
|
18
|
+
[**get_sale_invoices**](InventoryApi.md#get_sale_invoices) | **GET** /sale/invoice | Allows you to retrieve the sale invoices
|
17
19
|
[**get_taxes**](InventoryApi.md#get_taxes) | **GET** /ref/tax | Allows you to retrieve the taxes
|
18
20
|
[**update_account**](InventoryApi.md#update_account) | **PUT** /ref/account | Allows you to update an Account
|
19
21
|
[**update_customer**](InventoryApi.md#update_customer) | **PUT** /customer | Allows you to update a customer
|
@@ -646,6 +648,122 @@ Name | Type | Description | Notes
|
|
646
648
|
- **Accept**: application/json
|
647
649
|
|
648
650
|
|
651
|
+
## get_price_tiers
|
652
|
+
|
653
|
+
> PriceTiers get_price_tiers
|
654
|
+
|
655
|
+
Allows you to retrieve the Price Tiers
|
656
|
+
|
657
|
+
### Example
|
658
|
+
|
659
|
+
```ruby
|
660
|
+
# load the gem
|
661
|
+
require 'dear-inventory-ruby'
|
662
|
+
# setup authorization
|
663
|
+
DearInventoryRuby.configure do |config|
|
664
|
+
# Configure API key authorization: accountID
|
665
|
+
config.api_key['api-auth-accountid'] = 'YOUR API KEY'
|
666
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
667
|
+
#config.api_key_prefix['api-auth-accountid'] = 'Bearer'
|
668
|
+
|
669
|
+
# Configure API key authorization: appKey
|
670
|
+
config.api_key['api-auth-applicationkey'] = 'YOUR API KEY'
|
671
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
672
|
+
#config.api_key_prefix['api-auth-applicationkey'] = 'Bearer'
|
673
|
+
end
|
674
|
+
|
675
|
+
api_instance = DearInventoryRuby::InventoryApi.new
|
676
|
+
|
677
|
+
begin
|
678
|
+
#Allows you to retrieve the Price Tiers
|
679
|
+
result = api_instance.get_price_tiers
|
680
|
+
p result
|
681
|
+
rescue DearInventoryRuby::ApiError => e
|
682
|
+
puts "Exception when calling InventoryApi->get_price_tiers: #{e}"
|
683
|
+
end
|
684
|
+
```
|
685
|
+
|
686
|
+
### Parameters
|
687
|
+
|
688
|
+
This endpoint does not need any parameter.
|
689
|
+
|
690
|
+
### Return type
|
691
|
+
|
692
|
+
[**PriceTiers**](PriceTiers.md)
|
693
|
+
|
694
|
+
### Authorization
|
695
|
+
|
696
|
+
[accountID](../README.md#accountID), [appKey](../README.md#appKey)
|
697
|
+
|
698
|
+
### HTTP request headers
|
699
|
+
|
700
|
+
- **Content-Type**: Not defined
|
701
|
+
- **Accept**: application/json
|
702
|
+
|
703
|
+
|
704
|
+
## get_sale_invoices
|
705
|
+
|
706
|
+
> SaleInvoices get_sale_invoices(opts)
|
707
|
+
|
708
|
+
Allows you to retrieve the sale invoices
|
709
|
+
|
710
|
+
### Example
|
711
|
+
|
712
|
+
```ruby
|
713
|
+
# load the gem
|
714
|
+
require 'dear-inventory-ruby'
|
715
|
+
# setup authorization
|
716
|
+
DearInventoryRuby.configure do |config|
|
717
|
+
# Configure API key authorization: accountID
|
718
|
+
config.api_key['api-auth-accountid'] = 'YOUR API KEY'
|
719
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
720
|
+
#config.api_key_prefix['api-auth-accountid'] = 'Bearer'
|
721
|
+
|
722
|
+
# Configure API key authorization: appKey
|
723
|
+
config.api_key['api-auth-applicationkey'] = 'YOUR API KEY'
|
724
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
725
|
+
#config.api_key_prefix['api-auth-applicationkey'] = 'Bearer'
|
726
|
+
end
|
727
|
+
|
728
|
+
api_instance = DearInventoryRuby::InventoryApi.new
|
729
|
+
opts = {
|
730
|
+
sale_id: 'sale_id_example', # String | Unique DEAR Sale ID
|
731
|
+
combine_additional_charges: false, # Boolean | Show additional charges in 'Lines' array
|
732
|
+
include_product_info: false # Boolean | Show all used products in additional array
|
733
|
+
}
|
734
|
+
|
735
|
+
begin
|
736
|
+
#Allows you to retrieve the sale invoices
|
737
|
+
result = api_instance.get_sale_invoices(opts)
|
738
|
+
p result
|
739
|
+
rescue DearInventoryRuby::ApiError => e
|
740
|
+
puts "Exception when calling InventoryApi->get_sale_invoices: #{e}"
|
741
|
+
end
|
742
|
+
```
|
743
|
+
|
744
|
+
### Parameters
|
745
|
+
|
746
|
+
|
747
|
+
Name | Type | Description | Notes
|
748
|
+
------------- | ------------- | ------------- | -------------
|
749
|
+
**sale_id** | **String**| Unique DEAR Sale ID | [optional]
|
750
|
+
**combine_additional_charges** | **Boolean**| Show additional charges in 'Lines' array | [optional] [default to false]
|
751
|
+
**include_product_info** | **Boolean**| Show all used products in additional array | [optional] [default to false]
|
752
|
+
|
753
|
+
### Return type
|
754
|
+
|
755
|
+
[**SaleInvoices**](SaleInvoices.md)
|
756
|
+
|
757
|
+
### Authorization
|
758
|
+
|
759
|
+
[accountID](../README.md#accountID), [appKey](../README.md#appKey)
|
760
|
+
|
761
|
+
### HTTP request headers
|
762
|
+
|
763
|
+
- **Content-Type**: Not defined
|
764
|
+
- **Accept**: application/json
|
765
|
+
|
766
|
+
|
649
767
|
## get_taxes
|
650
768
|
|
651
769
|
> Taxes get_taxes(opts)
|
data/docs/Me.md
CHANGED
@@ -5,9 +5,9 @@
|
|
5
5
|
Name | Type | Description | Notes
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
7
|
**company** | **String** | Your company name | [optional]
|
8
|
-
**currency** |
|
8
|
+
**currency** | **String** | Your company base currency | [optional]
|
9
9
|
**time_zone** | **String** | Time Zone where your company located | [optional]
|
10
|
-
**default_weight_units** |
|
10
|
+
**default_weight_units** | **String** | Unit of measure for unit weight | [optional]
|
11
11
|
**default_dimensions_units** | [**DimensionsUnit**](DimensionsUnit.md) | | [optional]
|
12
12
|
**lock_date** | **Date** | Financial settings option. Indicates date period start from what you can change transactional data. Formatted in Tenant date format | [optional]
|
13
13
|
**opening_balance_date** | **Date** | Date of opening balances in the system. Formatted in Tenant date format | [optional]
|
data/docs/PriceTier.md
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
# DearInventoryRuby::PriceTier
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**code** | **Integer** | Code number of Price Tier | [optional]
|
8
|
+
**name** | **String** | Price Tier name | [optional]
|
9
|
+
|
10
|
+
## Code Sample
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'DearInventoryRuby'
|
14
|
+
|
15
|
+
instance = DearInventoryRuby::PriceTier.new(code: nil,
|
16
|
+
name: nil)
|
17
|
+
```
|
18
|
+
|
19
|
+
|
data/docs/PriceTiers.md
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
# DearInventoryRuby::PriceTiers
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**price_tiers** | [**Array<PriceTier>**](PriceTier.md) | Array of PriceTiers | [optional]
|
8
|
+
|
9
|
+
## Code Sample
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'DearInventoryRuby'
|
13
|
+
|
14
|
+
instance = DearInventoryRuby::PriceTiers.new(price_tiers: nil)
|
15
|
+
```
|
16
|
+
|
17
|
+
|
data/docs/SaleInvoice.md
ADDED
@@ -0,0 +1,41 @@
|
|
1
|
+
# DearInventoryRuby::SaleInvoice
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
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 | [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
|
+
|
21
|
+
## Code Sample
|
22
|
+
|
23
|
+
```ruby
|
24
|
+
require 'DearInventoryRuby'
|
25
|
+
|
26
|
+
instance = DearInventoryRuby::SaleInvoice.new(task_id: nil,
|
27
|
+
combine_additional_charges: nil,
|
28
|
+
invoice_number: nil,
|
29
|
+
memo: nil,
|
30
|
+
status: nil,
|
31
|
+
invoice_date: nil,
|
32
|
+
invoice_due_date: nil,
|
33
|
+
currency_conversion_rate: nil,
|
34
|
+
billing_address_line1: nil,
|
35
|
+
billing_address_line2: nil,
|
36
|
+
linked_fulfillment_number: nil,
|
37
|
+
lines: nil,
|
38
|
+
additional_charges: nil)
|
39
|
+
```
|
40
|
+
|
41
|
+
|
@@ -0,0 +1,33 @@
|
|
1
|
+
# DearInventoryRuby::SaleInvoiceAdditionalCharge
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**description** | **String** | Name of Service Product referenced by this Line |
|
8
|
+
**quantity** | **Float** | Product or service quantity. Minimal value is 1. |
|
9
|
+
**price** | **Float** | Price per unit in Customer currency |
|
10
|
+
**discount** | **Float** | Discount. Value between 0 and 100. For free items discount is 100. Default value is 0 | [optional]
|
11
|
+
**tax** | **Float** | Tax |
|
12
|
+
**total** | **Float** | Line Total.For validation | [optional]
|
13
|
+
**tax_rule** | **Float** | Line Tax Rule name. |
|
14
|
+
**account** | **Float** | Revenue account |
|
15
|
+
**comment** | **Float** | Comment | [optional]
|
16
|
+
|
17
|
+
## Code Sample
|
18
|
+
|
19
|
+
```ruby
|
20
|
+
require 'DearInventoryRuby'
|
21
|
+
|
22
|
+
instance = DearInventoryRuby::SaleInvoiceAdditionalCharge.new(description: nil,
|
23
|
+
quantity: nil,
|
24
|
+
price: nil,
|
25
|
+
discount: nil,
|
26
|
+
tax: nil,
|
27
|
+
total: nil,
|
28
|
+
tax_rule: nil,
|
29
|
+
account: nil,
|
30
|
+
comment: nil)
|
31
|
+
```
|
32
|
+
|
33
|
+
|
@@ -0,0 +1,39 @@
|
|
1
|
+
# DearInventoryRuby::SaleInvoiceLine
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
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 |
|
8
|
+
**sku** | **String** | Product SKU referenced by this Line. Required If CombineAdditionalCharges param exist for this endpoint and it have values = false |
|
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
|
+
**total** | **Float** | Line Total. For validation | [optional]
|
15
|
+
**average_cost** | **Float** | Average product cost | [optional]
|
16
|
+
**tax_rule** | **String** | Line Tax Rule name. | [optional]
|
17
|
+
**account** | **String** | Revenue account | [optional]
|
18
|
+
**comment** | **String** | Comment for this line | [optional]
|
19
|
+
|
20
|
+
## Code Sample
|
21
|
+
|
22
|
+
```ruby
|
23
|
+
require 'DearInventoryRuby'
|
24
|
+
|
25
|
+
instance = DearInventoryRuby::SaleInvoiceLine.new(product_id: nil,
|
26
|
+
sku: nil,
|
27
|
+
name: nil,
|
28
|
+
quantity: nil,
|
29
|
+
price: nil,
|
30
|
+
discount: nil,
|
31
|
+
tax: nil,
|
32
|
+
total: nil,
|
33
|
+
average_cost: nil,
|
34
|
+
tax_rule: nil,
|
35
|
+
account: nil,
|
36
|
+
comment: nil)
|
37
|
+
```
|
38
|
+
|
39
|
+
|
@@ -0,0 +1,19 @@
|
|
1
|
+
# DearInventoryRuby::SaleInvoices
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**sale_id** | **String** | Unique DEAR Sale ID |
|
8
|
+
**invoices** | [**Array<SaleInvoice>**](SaleInvoice.md) | Array of Invoices | [optional]
|
9
|
+
|
10
|
+
## Code Sample
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'DearInventoryRuby'
|
14
|
+
|
15
|
+
instance = DearInventoryRuby::SaleInvoices.new(sale_id: nil,
|
16
|
+
invoices: nil)
|
17
|
+
```
|
18
|
+
|
19
|
+
|
data/lib/dear-inventory-ruby.rb
CHANGED
@@ -29,11 +29,16 @@ require 'dear-inventory-ruby/models/error'
|
|
29
29
|
require 'dear-inventory-ruby/models/me'
|
30
30
|
require 'dear-inventory-ruby/models/payment_term'
|
31
31
|
require 'dear-inventory-ruby/models/payment_terms'
|
32
|
+
require 'dear-inventory-ruby/models/price_tier'
|
33
|
+
require 'dear-inventory-ruby/models/price_tiers'
|
34
|
+
require 'dear-inventory-ruby/models/sale_invoice'
|
35
|
+
require 'dear-inventory-ruby/models/sale_invoice_additional_charge'
|
36
|
+
require 'dear-inventory-ruby/models/sale_invoice_line'
|
37
|
+
require 'dear-inventory-ruby/models/sale_invoices'
|
32
38
|
require 'dear-inventory-ruby/models/success'
|
33
39
|
require 'dear-inventory-ruby/models/tax'
|
34
40
|
require 'dear-inventory-ruby/models/tax_component'
|
35
41
|
require 'dear-inventory-ruby/models/taxes'
|
36
|
-
require 'dear-inventory-ruby/models/weight_unit'
|
37
42
|
|
38
43
|
# APIs
|
39
44
|
require 'dear-inventory-ruby/api/inventory_api'
|