e-invoice-api 0.6.0 → 0.7.0

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.
@@ -14,9 +14,11 @@ module EInvoiceAPI
14
14
  #
15
15
  # Create a new invoice or credit note
16
16
  #
17
- # @overload create(amount_due: nil, attachments: nil, billing_address: nil, billing_address_recipient: nil, currency: nil, customer_address: nil, customer_address_recipient: nil, customer_email: nil, customer_id: nil, customer_name: nil, customer_tax_id: nil, direction: nil, document_type: nil, due_date: nil, invoice_date: nil, invoice_id: nil, invoice_total: nil, items: nil, note: nil, payment_details: nil, payment_term: nil, previous_unpaid_balance: nil, purchase_order: nil, remittance_address: nil, remittance_address_recipient: nil, service_address: nil, service_address_recipient: nil, service_end_date: nil, service_start_date: nil, shipping_address: nil, shipping_address_recipient: nil, state: nil, subtotal: nil, tax_code: nil, tax_details: nil, total_discount: nil, total_tax: nil, vatex: nil, vatex_note: nil, vendor_address: nil, vendor_address_recipient: nil, vendor_email: nil, vendor_name: nil, vendor_tax_id: nil, request_options: {})
17
+ # @overload create(allowances: nil, amount_due: nil, attachments: nil, billing_address: nil, billing_address_recipient: nil, charges: nil, currency: nil, customer_address: nil, customer_address_recipient: nil, customer_email: nil, customer_id: nil, customer_name: nil, customer_tax_id: nil, direction: nil, document_type: nil, due_date: nil, invoice_date: nil, invoice_id: nil, invoice_total: nil, items: nil, note: nil, payment_details: nil, payment_term: nil, previous_unpaid_balance: nil, purchase_order: nil, remittance_address: nil, remittance_address_recipient: nil, service_address: nil, service_address_recipient: nil, service_end_date: nil, service_start_date: nil, shipping_address: nil, shipping_address_recipient: nil, state: nil, subtotal: nil, tax_code: nil, tax_details: nil, total_discount: nil, total_tax: nil, vatex: nil, vatex_note: nil, vendor_address: nil, vendor_address_recipient: nil, vendor_email: nil, vendor_name: nil, vendor_tax_id: nil, request_options: {})
18
18
  #
19
- # @param amount_due [Float, String, nil]
19
+ # @param allowances [Array<EInvoiceAPI::Models::DocumentCreate::Allowance>, nil]
20
+ #
21
+ # @param amount_due [Float, String, nil] The amount due of the invoice. Must be positive and rounded to maximum 2 decimal
20
22
  #
21
23
  # @param attachments [Array<EInvoiceAPI::Models::DocumentAttachmentCreate>, nil]
22
24
  #
@@ -24,6 +26,8 @@ module EInvoiceAPI
24
26
  #
25
27
  # @param billing_address_recipient [String, nil]
26
28
  #
29
+ # @param charges [Array<EInvoiceAPI::Models::DocumentCreate::Charge>, nil]
30
+ #
27
31
  # @param currency [Symbol, EInvoiceAPI::Models::CurrencyCode] Currency of the invoice
28
32
  #
29
33
  # @param customer_address [String, nil]
@@ -48,9 +52,9 @@ module EInvoiceAPI
48
52
  #
49
53
  # @param invoice_id [String, nil]
50
54
  #
51
- # @param invoice_total [Float, String, nil]
55
+ # @param invoice_total [Float, String, nil] The total amount of the invoice (so invoice_total = subtotal + total_tax + total
52
56
  #
53
- # @param items [Array<EInvoiceAPI::Models::DocumentCreate::Item>, nil]
57
+ # @param items [Array<EInvoiceAPI::Models::DocumentCreate::Item>] At least one line item is required
54
58
  #
55
59
  # @param note [String, nil]
56
60
  #
@@ -58,7 +62,7 @@ module EInvoiceAPI
58
62
  #
59
63
  # @param payment_term [String, nil]
60
64
  #
61
- # @param previous_unpaid_balance [Float, String, nil]
65
+ # @param previous_unpaid_balance [Float, String, nil] The previous unpaid balance of the invoice, if any. Must be positive and rounded
62
66
  #
63
67
  # @param purchase_order [String, nil]
64
68
  #
@@ -80,15 +84,15 @@ module EInvoiceAPI
80
84
  #
81
85
  # @param state [Symbol, EInvoiceAPI::Models::DocumentState]
82
86
  #
83
- # @param subtotal [Float, String, nil]
87
+ # @param subtotal [Float, String, nil] The taxable base of the invoice. Should be the sum of all line items - allowance
84
88
  #
85
89
  # @param tax_code [Symbol, EInvoiceAPI::Models::DocumentCreate::TaxCode] Tax category code of the invoice
86
90
  #
87
91
  # @param tax_details [Array<EInvoiceAPI::Models::DocumentCreate::TaxDetail>, nil]
88
92
  #
89
- # @param total_discount [Float, String, nil]
93
+ # @param total_discount [Float, String, nil] The total financial discount of the invoice (so discounts not subject to VAT). M
90
94
  #
91
- # @param total_tax [Float, String, nil]
95
+ # @param total_tax [Float, String, nil] The total tax of the invoice. Must be positive and rounded to maximum 2 decimals
92
96
  #
93
97
  # @param vatex [Symbol, EInvoiceAPI::Models::DocumentCreate::Vatex, nil] VATEX code list for VAT exemption reasons
94
98
  #
@@ -8,9 +8,11 @@ module EInvoiceAPI
8
8
  #
9
9
  # Validate if the JSON document can be converted to a valid UBL document
10
10
  #
11
- # @overload validate_json(amount_due: nil, attachments: nil, billing_address: nil, billing_address_recipient: nil, currency: nil, customer_address: nil, customer_address_recipient: nil, customer_email: nil, customer_id: nil, customer_name: nil, customer_tax_id: nil, direction: nil, document_type: nil, due_date: nil, invoice_date: nil, invoice_id: nil, invoice_total: nil, items: nil, note: nil, payment_details: nil, payment_term: nil, previous_unpaid_balance: nil, purchase_order: nil, remittance_address: nil, remittance_address_recipient: nil, service_address: nil, service_address_recipient: nil, service_end_date: nil, service_start_date: nil, shipping_address: nil, shipping_address_recipient: nil, state: nil, subtotal: nil, tax_code: nil, tax_details: nil, total_discount: nil, total_tax: nil, vatex: nil, vatex_note: nil, vendor_address: nil, vendor_address_recipient: nil, vendor_email: nil, vendor_name: nil, vendor_tax_id: nil, request_options: {})
11
+ # @overload validate_json(allowances: nil, amount_due: nil, attachments: nil, billing_address: nil, billing_address_recipient: nil, charges: nil, currency: nil, customer_address: nil, customer_address_recipient: nil, customer_email: nil, customer_id: nil, customer_name: nil, customer_tax_id: nil, direction: nil, document_type: nil, due_date: nil, invoice_date: nil, invoice_id: nil, invoice_total: nil, items: nil, note: nil, payment_details: nil, payment_term: nil, previous_unpaid_balance: nil, purchase_order: nil, remittance_address: nil, remittance_address_recipient: nil, service_address: nil, service_address_recipient: nil, service_end_date: nil, service_start_date: nil, shipping_address: nil, shipping_address_recipient: nil, state: nil, subtotal: nil, tax_code: nil, tax_details: nil, total_discount: nil, total_tax: nil, vatex: nil, vatex_note: nil, vendor_address: nil, vendor_address_recipient: nil, vendor_email: nil, vendor_name: nil, vendor_tax_id: nil, request_options: {})
12
12
  #
13
- # @param amount_due [Float, String, nil]
13
+ # @param allowances [Array<EInvoiceAPI::Models::DocumentCreate::Allowance>, nil]
14
+ #
15
+ # @param amount_due [Float, String, nil] The amount due of the invoice. Must be positive and rounded to maximum 2 decimal
14
16
  #
15
17
  # @param attachments [Array<EInvoiceAPI::Models::DocumentAttachmentCreate>, nil]
16
18
  #
@@ -18,6 +20,8 @@ module EInvoiceAPI
18
20
  #
19
21
  # @param billing_address_recipient [String, nil]
20
22
  #
23
+ # @param charges [Array<EInvoiceAPI::Models::DocumentCreate::Charge>, nil]
24
+ #
21
25
  # @param currency [Symbol, EInvoiceAPI::Models::CurrencyCode] Currency of the invoice
22
26
  #
23
27
  # @param customer_address [String, nil]
@@ -42,9 +46,9 @@ module EInvoiceAPI
42
46
  #
43
47
  # @param invoice_id [String, nil]
44
48
  #
45
- # @param invoice_total [Float, String, nil]
49
+ # @param invoice_total [Float, String, nil] The total amount of the invoice (so invoice_total = subtotal + total_tax + total
46
50
  #
47
- # @param items [Array<EInvoiceAPI::Models::DocumentCreate::Item>, nil]
51
+ # @param items [Array<EInvoiceAPI::Models::DocumentCreate::Item>] At least one line item is required
48
52
  #
49
53
  # @param note [String, nil]
50
54
  #
@@ -52,7 +56,7 @@ module EInvoiceAPI
52
56
  #
53
57
  # @param payment_term [String, nil]
54
58
  #
55
- # @param previous_unpaid_balance [Float, String, nil]
59
+ # @param previous_unpaid_balance [Float, String, nil] The previous unpaid balance of the invoice, if any. Must be positive and rounded
56
60
  #
57
61
  # @param purchase_order [String, nil]
58
62
  #
@@ -74,15 +78,15 @@ module EInvoiceAPI
74
78
  #
75
79
  # @param state [Symbol, EInvoiceAPI::Models::DocumentState]
76
80
  #
77
- # @param subtotal [Float, String, nil]
81
+ # @param subtotal [Float, String, nil] The taxable base of the invoice. Should be the sum of all line items - allowance
78
82
  #
79
83
  # @param tax_code [Symbol, EInvoiceAPI::Models::DocumentCreate::TaxCode] Tax category code of the invoice
80
84
  #
81
85
  # @param tax_details [Array<EInvoiceAPI::Models::DocumentCreate::TaxDetail>, nil]
82
86
  #
83
- # @param total_discount [Float, String, nil]
87
+ # @param total_discount [Float, String, nil] The total financial discount of the invoice (so discounts not subject to VAT). M
84
88
  #
85
- # @param total_tax [Float, String, nil]
89
+ # @param total_tax [Float, String, nil] The total tax of the invoice. Must be positive and rounded to maximum 2 decimals
86
90
  #
87
91
  # @param vatex [Symbol, EInvoiceAPI::Models::DocumentCreate::Vatex, nil] VATEX code list for VAT exemption reasons
88
92
  #
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EInvoiceAPI
4
- VERSION = "0.6.0"
4
+ VERSION = "0.7.0"
5
5
  end