e-invoice-api 0.34.0 → 0.35.1

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.
Files changed (57) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +31 -0
  3. data/LICENSE +201 -0
  4. data/README.md +18 -7
  5. data/SECURITY.md +6 -16
  6. data/lib/e_invoice_api/internal/documents_number_page.rb +11 -3
  7. data/lib/e_invoice_api/internal/transport/base_client.rb +43 -78
  8. data/lib/e_invoice_api/internal/transport/pooled_net_requester.rb +8 -8
  9. data/lib/e_invoice_api/internal/type/array_of.rb +12 -12
  10. data/lib/e_invoice_api/internal/type/base_model.rb +18 -18
  11. data/lib/e_invoice_api/internal/type/boolean.rb +6 -6
  12. data/lib/e_invoice_api/internal/type/converter.rb +24 -24
  13. data/lib/e_invoice_api/internal/type/enum.rb +6 -6
  14. data/lib/e_invoice_api/internal/type/file_input.rb +6 -6
  15. data/lib/e_invoice_api/internal/type/hash_of.rb +12 -12
  16. data/lib/e_invoice_api/internal/type/request_parameters.rb +1 -1
  17. data/lib/e_invoice_api/internal/type/union.rb +10 -10
  18. data/lib/e_invoice_api/internal/type/unknown.rb +6 -6
  19. data/lib/e_invoice_api/internal/util.rb +15 -57
  20. data/lib/e_invoice_api/models/document_create.rb +45 -12
  21. data/lib/e_invoice_api/models/document_create_from_pdf_response.rb +45 -12
  22. data/lib/e_invoice_api/models/document_response.rb +49 -14
  23. data/lib/e_invoice_api/models/payment_detail_create.rb +4 -2
  24. data/lib/e_invoice_api/models/unit_of_measure_code.rb +1349 -0
  25. data/lib/e_invoice_api/resources/conversion/pdf.rb +6 -6
  26. data/lib/e_invoice_api/resources/documents/attachments.rb +11 -11
  27. data/lib/e_invoice_api/resources/documents/ubl.rb +4 -4
  28. data/lib/e_invoice_api/resources/documents.rb +81 -81
  29. data/lib/e_invoice_api/resources/drafts.rb +10 -10
  30. data/lib/e_invoice_api/resources/inbox.rb +20 -20
  31. data/lib/e_invoice_api/resources/lookup.rb +5 -5
  32. data/lib/e_invoice_api/resources/mailbox.rb +17 -17
  33. data/lib/e_invoice_api/resources/me.rb +1 -1
  34. data/lib/e_invoice_api/resources/outbox.rb +19 -19
  35. data/lib/e_invoice_api/resources/stats.rb +4 -4
  36. data/lib/e_invoice_api/resources/validate.rb +63 -63
  37. data/lib/e_invoice_api/resources/webhooks.rb +20 -20
  38. data/lib/e_invoice_api/version.rb +1 -1
  39. data/lib/e_invoice_api.rb +0 -1
  40. data/rbi/e_invoice_api/internal/documents_number_page.rbi +6 -0
  41. data/rbi/e_invoice_api/internal/transport/base_client.rbi +2 -10
  42. data/rbi/e_invoice_api/internal/util.rbi +0 -12
  43. data/rbi/e_invoice_api/models/document_create.rbi +156 -12
  44. data/rbi/e_invoice_api/models/document_create_from_pdf_response.rbi +156 -12
  45. data/rbi/e_invoice_api/models/document_response.rbi +162 -14
  46. data/rbi/e_invoice_api/models/payment_detail_create.rbi +6 -2
  47. data/rbi/e_invoice_api/models/unit_of_measure_code.rbi +1349 -0
  48. data/rbi/e_invoice_api/resources/documents.rbi +10 -5
  49. data/rbi/e_invoice_api/resources/validate.rbi +8 -5
  50. data/sig/e_invoice_api/internal/documents_number_page.rbs +4 -0
  51. data/sig/e_invoice_api/internal/transport/base_client.rbs +1 -4
  52. data/sig/e_invoice_api/internal/util.rbs +0 -4
  53. data/sig/e_invoice_api/models/document_create.rbs +52 -0
  54. data/sig/e_invoice_api/models/document_create_from_pdf_response.rbs +52 -0
  55. data/sig/e_invoice_api/models/document_response.rbs +52 -0
  56. data/sig/e_invoice_api/models/unit_of_measure_code.rbs +2698 -0
  57. metadata +27 -7
@@ -8,8 +8,8 @@ module EInvoiceAPI
8
8
  #
9
9
  # @overload create(file:, request_options: {})
10
10
  #
11
- # @param file [Pathname, StringIO, IO, String, EInvoiceAPI::FilePart]
12
- # @param request_options [EInvoiceAPI::RequestOptions, Hash{Symbol=>Object}, nil]
11
+ # @param file [Pathname, StringIO, IO, String, EInvoiceAPI::FilePart]
12
+ # @param request_options [EInvoiceAPI::RequestOptions, Hash{Symbol=>Object}, nil]
13
13
  #
14
14
  # @return [EInvoiceAPI::Models::Conversion::DocumentCreateFromPdfTask]
15
15
  #
@@ -30,8 +30,8 @@ module EInvoiceAPI
30
30
  #
31
31
  # @overload retrieve(task_id, request_options: {})
32
32
  #
33
- # @param task_id [String]
34
- # @param request_options [EInvoiceAPI::RequestOptions, Hash{Symbol=>Object}, nil]
33
+ # @param task_id [String]
34
+ # @param request_options [EInvoiceAPI::RequestOptions, Hash{Symbol=>Object}, nil]
35
35
  #
36
36
  # @return [EInvoiceAPI::Models::Conversion::DocumentCreateFromPdfTask]
37
37
  #
@@ -49,8 +49,8 @@ module EInvoiceAPI
49
49
  #
50
50
  # @overload result(task_id, request_options: {})
51
51
  #
52
- # @param task_id [String]
53
- # @param request_options [EInvoiceAPI::RequestOptions, Hash{Symbol=>Object}, nil]
52
+ # @param task_id [String]
53
+ # @param request_options [EInvoiceAPI::RequestOptions, Hash{Symbol=>Object}, nil]
54
54
  #
55
55
  # @return [EInvoiceAPI::Models::DocumentCreateFromPdfResponse]
56
56
  #
@@ -9,9 +9,9 @@ module EInvoiceAPI
9
9
  #
10
10
  # @overload retrieve(attachment_id, document_id:, request_options: {})
11
11
  #
12
- # @param attachment_id [String]
13
- # @param document_id [String]
14
- # @param request_options [EInvoiceAPI::RequestOptions, Hash{Symbol=>Object}, nil]
12
+ # @param attachment_id [String]
13
+ # @param document_id [String]
14
+ # @param request_options [EInvoiceAPI::RequestOptions, Hash{Symbol=>Object}, nil]
15
15
  #
16
16
  # @return [EInvoiceAPI::Models::Documents::DocumentAttachment]
17
17
  #
@@ -34,8 +34,8 @@ module EInvoiceAPI
34
34
  #
35
35
  # @overload list(document_id, request_options: {})
36
36
  #
37
- # @param document_id [String]
38
- # @param request_options [EInvoiceAPI::RequestOptions, Hash{Symbol=>Object}, nil]
37
+ # @param document_id [String]
38
+ # @param request_options [EInvoiceAPI::RequestOptions, Hash{Symbol=>Object}, nil]
39
39
  #
40
40
  # @return [Array<EInvoiceAPI::Models::Documents::DocumentAttachment>]
41
41
  #
@@ -53,9 +53,9 @@ module EInvoiceAPI
53
53
  #
54
54
  # @overload delete(attachment_id, document_id:, request_options: {})
55
55
  #
56
- # @param attachment_id [String]
57
- # @param document_id [String]
58
- # @param request_options [EInvoiceAPI::RequestOptions, Hash{Symbol=>Object}, nil]
56
+ # @param attachment_id [String]
57
+ # @param document_id [String]
58
+ # @param request_options [EInvoiceAPI::RequestOptions, Hash{Symbol=>Object}, nil]
59
59
  #
60
60
  # @return [EInvoiceAPI::Models::Documents::AttachmentDeleteResponse]
61
61
  #
@@ -83,9 +83,9 @@ module EInvoiceAPI
83
83
  #
84
84
  # @overload add(document_id, file:, request_options: {})
85
85
  #
86
- # @param document_id [String]
87
- # @param file [Pathname, StringIO, IO, String, EInvoiceAPI::FilePart]
88
- # @param request_options [EInvoiceAPI::RequestOptions, Hash{Symbol=>Object}, nil]
86
+ # @param document_id [String]
87
+ # @param file [Pathname, StringIO, IO, String, EInvoiceAPI::FilePart]
88
+ # @param request_options [EInvoiceAPI::RequestOptions, Hash{Symbol=>Object}, nil]
89
89
  #
90
90
  # @return [EInvoiceAPI::Models::Documents::DocumentAttachment]
91
91
  #
@@ -8,8 +8,8 @@ module EInvoiceAPI
8
8
  #
9
9
  # @overload create_from_ubl(file:, request_options: {})
10
10
  #
11
- # @param file [Pathname, StringIO, IO, String, EInvoiceAPI::FilePart]
12
- # @param request_options [EInvoiceAPI::RequestOptions, Hash{Symbol=>Object}, nil]
11
+ # @param file [Pathname, StringIO, IO, String, EInvoiceAPI::FilePart]
12
+ # @param request_options [EInvoiceAPI::RequestOptions, Hash{Symbol=>Object}, nil]
13
13
  #
14
14
  # @return [EInvoiceAPI::Models::DocumentResponse]
15
15
  #
@@ -30,8 +30,8 @@ module EInvoiceAPI
30
30
  #
31
31
  # @overload get(document_id, request_options: {})
32
32
  #
33
- # @param document_id [String]
34
- # @param request_options [EInvoiceAPI::RequestOptions, Hash{Symbol=>Object}, nil]
33
+ # @param document_id [String]
34
+ # @param request_options [EInvoiceAPI::RequestOptions, Hash{Symbol=>Object}, nil]
35
35
  #
36
36
  # @return [EInvoiceAPI::Models::Documents::UblGetResponse]
37
37
  #
@@ -16,125 +16,125 @@ module EInvoiceAPI
16
16
  #
17
17
  # @overload create(construct_pdf: nil, allowances: nil, amount_due: nil, attachments: nil, billing_address: nil, billing_address_recipient: nil, buyer_reference: nil, charges: nil, currency: nil, customer_address: nil, customer_address_recipient: nil, customer_company_id: nil, customer_email: nil, customer_id: nil, customer_name: nil, customer_peppol_id: nil, customer_phone: 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, preceding_invoice_date: nil, preceding_invoice_id: nil, previous_unpaid_balance: nil, purchase_order: nil, remittance_address: nil, remittance_address_recipient: nil, rounding_amount: nil, sales_order: 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_currency: nil, tax_details: nil, total_discount: nil, total_tax: nil, total_tax_in_tax_currency: nil, vatex: nil, vatex_note: nil, vendor_address: nil, vendor_address_recipient: nil, vendor_company_id: nil, vendor_email: nil, vendor_name: nil, vendor_phone: nil, vendor_tax_id: nil, request_options: {})
18
18
  #
19
- # @param construct_pdf [Boolean] Query param: If true, generate a constructed PDF from the document and include i
19
+ # @param construct_pdf [Boolean] Query param: If true, generate a constructed PDF from the document and include i
20
20
  #
21
- # @param allowances [Array<EInvoiceAPI::Models::DocumentCreate::Allowance>, nil] Body param
21
+ # @param allowances [Array<EInvoiceAPI::Models::DocumentCreate::Allowance>, nil] Body param
22
22
  #
23
- # @param amount_due [Float, String, nil] Body param: The amount due for payment. Must be positive and rounded to maximum
23
+ # @param amount_due [Float, String, nil] Body param: The amount due for payment. Must be positive and rounded to maximum
24
24
  #
25
- # @param attachments [Array<EInvoiceAPI::Models::DocumentAttachmentCreate>, nil] Body param
25
+ # @param attachments [Array<EInvoiceAPI::Models::DocumentAttachmentCreate>, nil] Body param
26
26
  #
27
- # @param billing_address [String, nil] Body param: The billing address (if different from customer address)
27
+ # @param billing_address [String, nil] Body param: The billing address (if different from customer address)
28
28
  #
29
- # @param billing_address_recipient [String, nil] Body param: The recipient name at the billing address
29
+ # @param billing_address_recipient [String, nil] Body param: The recipient name at the billing address
30
30
  #
31
- # @param buyer_reference [String, nil] Body param: The buyer reference (BT-10), e.g. a cost centre or accounting refere
31
+ # @param buyer_reference [String, nil] Body param: The buyer reference (BT-10), e.g. a cost centre or accounting refere
32
32
  #
33
- # @param charges [Array<EInvoiceAPI::Models::DocumentCreate::Charge>, nil] Body param
33
+ # @param charges [Array<EInvoiceAPI::Models::DocumentCreate::Charge>, nil] Body param
34
34
  #
35
- # @param currency [Symbol, EInvoiceAPI::Models::CurrencyCode] Body param: Currency of the invoice (ISO 4217 currency code)
35
+ # @param currency [Symbol, EInvoiceAPI::Models::CurrencyCode] Body param: Currency of the invoice (ISO 4217 currency code)
36
36
  #
37
- # @param customer_address [String, nil] Body param: The address of the customer/buyer
37
+ # @param customer_address [String, nil] Body param: The address of the customer/buyer
38
38
  #
39
- # @param customer_address_recipient [String, nil] Body param: The recipient name at the customer address
39
+ # @param customer_address_recipient [String, nil] Body param: The recipient name at the customer address. Also the customer contac
40
40
  #
41
- # @param customer_company_id [String, nil] Body param: Customer company ID. For Belgium this is the CBE number or their EUI
41
+ # @param customer_company_id [String, nil] Body param: Customer company ID. For Belgium this is the CBE number or their EUI
42
42
  #
43
- # @param customer_email [String, nil] Body param: The email address of the customer
43
+ # @param customer_email [String, nil] Body param: The email address of the customer
44
44
  #
45
- # @param customer_id [String, nil] Body param: The unique identifier for the customer in your system
45
+ # @param customer_id [String, nil] Body param: The unique identifier for the customer in your system
46
46
  #
47
- # @param customer_name [String, nil] Body param: The company name of the customer/buyer
47
+ # @param customer_name [String, nil] Body param: The company name of the customer/buyer
48
48
  #
49
- # @param customer_peppol_id [String, nil] Body param: Customer Peppol ID
49
+ # @param customer_peppol_id [String, nil] Body param: Customer Peppol ID
50
50
  #
51
- # @param customer_phone [String, nil] Body param: The telephone number of the customer contact (BT-57)
51
+ # @param customer_phone [String, nil] Body param: The telephone number of the customer contact (BT-57)
52
52
  #
53
- # @param customer_tax_id [String, nil] Body param: Customer tax ID. For Belgium this is the VAT number. Must include th
53
+ # @param customer_tax_id [String, nil] Body param: Customer tax ID. For Belgium this is the VAT number. Must include th
54
54
  #
55
- # @param direction [Symbol, EInvoiceAPI::Models::DocumentDirection] Body param: The direction of the document: INBOUND (purchases) or OUTBOUND (sale
55
+ # @param direction [Symbol, EInvoiceAPI::Models::DocumentDirection] Body param: The direction of the document: INBOUND (purchases) or OUTBOUND (sale
56
56
  #
57
- # @param document_type [Symbol, EInvoiceAPI::Models::DocumentType] Body param: The type of document: INVOICE, CREDIT_NOTE, or DEBIT_NOTE
57
+ # @param document_type [Symbol, EInvoiceAPI::Models::DocumentType] Body param: The type of document: INVOICE, CREDIT_NOTE, or DEBIT_NOTE
58
58
  #
59
- # @param due_date [Date, nil] Body param: The date when payment is due
59
+ # @param due_date [Date, nil] Body param: The date when payment is due
60
60
  #
61
- # @param invoice_date [Date, nil] Body param: The date when the invoice was issued
61
+ # @param invoice_date [Date, nil] Body param: The date when the invoice was issued
62
62
  #
63
- # @param invoice_id [String, nil] Body param: The unique invoice identifier/number
63
+ # @param invoice_id [String, nil] Body param: The unique invoice identifier/number
64
64
  #
65
- # @param invoice_total [Float, String, nil] Body param: The total amount of the invoice including tax (invoice_total = subto
65
+ # @param invoice_total [Float, String, nil] Body param: The total amount of the invoice including tax (invoice_total = subto
66
66
  #
67
- # @param items [Array<EInvoiceAPI::Models::DocumentCreate::Item>] Body param: At least one line item is required
67
+ # @param items [Array<EInvoiceAPI::Models::DocumentCreate::Item>] Body param: At least one line item is required
68
68
  #
69
- # @param note [String, nil] Body param: Additional notes or comments for the invoice
69
+ # @param note [String, nil] Body param: Additional notes or comments for the invoice
70
70
  #
71
- # @param payment_details [Array<EInvoiceAPI::Models::PaymentDetailCreate>, nil] Body param
71
+ # @param payment_details [Array<EInvoiceAPI::Models::PaymentDetailCreate>, nil] Body param
72
72
  #
73
- # @param payment_term [String, nil] Body param: The payment terms (e.g., 'Net 30', 'Due on receipt', '2/10 Net 30')
73
+ # @param payment_term [String, nil] Body param: The payment terms (e.g., 'Net 30', 'Due on receipt', '2/10 Net 30')
74
74
  #
75
- # @param preceding_invoice_date [Date, nil] Body param: The preceding invoice issue date (BT-26)
75
+ # @param preceding_invoice_date [Date, nil] Body param: The preceding invoice issue date (BT-26)
76
76
  #
77
- # @param preceding_invoice_id [String, nil] Body param: The preceding invoice reference (BT-25): the number of the invoice t
77
+ # @param preceding_invoice_id [String, nil] Body param: The preceding invoice reference (BT-25): the number of the invoice t
78
78
  #
79
- # @param previous_unpaid_balance [Float, String, nil] Body param: The previous unpaid balance from prior invoices, if any. Must be pos
79
+ # @param previous_unpaid_balance [Float, String, nil] Body param: The previous unpaid balance from prior invoices, if any. Must be pos
80
80
  #
81
- # @param purchase_order [String, nil] Body param: The purchase order reference number
81
+ # @param purchase_order [String, nil] Body param: The purchase order reference number (BT-13)
82
82
  #
83
- # @param remittance_address [String, nil] Body param: The address where payment should be sent or remitted to
83
+ # @param remittance_address [String, nil] Body param: The address where payment should be sent or remitted to
84
84
  #
85
- # @param remittance_address_recipient [String, nil] Body param: The recipient name at the remittance address
85
+ # @param remittance_address_recipient [String, nil] Body param: The recipient name at the remittance address
86
86
  #
87
- # @param rounding_amount [Float, String, nil] Body param: The amount added to the invoice total to round the amount for paymen
87
+ # @param rounding_amount [Float, String, nil] Body param: The amount added to the invoice total to round the amount for paymen
88
88
  #
89
- # @param sales_order [String, nil] Body param: The sales order reference (BT-14) assigned by the seller
89
+ # @param sales_order [String, nil] Body param: The sales order reference (BT-14) assigned by the seller
90
90
  #
91
- # @param service_address [String, nil] Body param: The address where services were performed or goods were delivered
91
+ # @param service_address [String, nil] Body param: The address where services were performed or goods were delivered
92
92
  #
93
- # @param service_address_recipient [String, nil] Body param: The recipient name at the service address
93
+ # @param service_address_recipient [String, nil] Body param: The recipient name at the service address
94
94
  #
95
- # @param service_end_date [Date, nil] Body param: The end date of the service period or delivery period
95
+ # @param service_end_date [Date, nil] Body param: The end date of the service period or delivery period
96
96
  #
97
- # @param service_start_date [Date, nil] Body param: The start date of the service period or delivery period
97
+ # @param service_start_date [Date, nil] Body param: The start date of the service period or delivery period
98
98
  #
99
- # @param shipping_address [String, nil] Body param: The shipping/delivery address
99
+ # @param shipping_address [String, nil] Body param: The shipping/delivery address
100
100
  #
101
- # @param shipping_address_recipient [String, nil] Body param: The recipient name at the shipping address
101
+ # @param shipping_address_recipient [String, nil] Body param: The name of the deliver-to party (BT-70)
102
102
  #
103
- # @param state [Symbol, EInvoiceAPI::Models::DocumentState] Body param: The current state of the document: DRAFT, TRANSIT, FAILED, SENT, or
103
+ # @param state [Symbol, EInvoiceAPI::Models::DocumentState] Body param: The current state of the document: DRAFT, TRANSIT, FAILED, SENT, or
104
104
  #
105
- # @param subtotal [Float, String, nil] Body param: The taxable base of the invoice. Should be the sum of all line items
105
+ # @param subtotal [Float, String, nil] Body param: The taxable base of the invoice. Should be the sum of all line items
106
106
  #
107
- # @param tax_code [Symbol, EInvoiceAPI::Models::DocumentCreate::TaxCode] Body param: Tax category code of the invoice (e.g., S for standard rate, Z for z
107
+ # @param tax_code [Symbol, EInvoiceAPI::Models::DocumentCreate::TaxCode] Body param: Tax category code of the invoice (e.g., S for standard rate, Z for z
108
108
  #
109
- # @param tax_currency [String, nil] Body param: The VAT accounting currency (BT-6, ISO 4217 currency code), when VAT
109
+ # @param tax_currency [String, nil] Body param: The VAT accounting currency (BT-6, ISO 4217 currency code), when VAT
110
110
  #
111
- # @param tax_details [Array<EInvoiceAPI::Models::DocumentCreate::TaxDetail>, nil] Body param
111
+ # @param tax_details [Array<EInvoiceAPI::Models::DocumentCreate::TaxDetail>, nil] Body param
112
112
  #
113
- # @param total_discount [Float, String, nil] Body param: The net financial discount/charge of the invoice (non-VAT charges mi
113
+ # @param total_discount [Float, String, nil] Body param: The net financial discount/charge of the invoice (non-VAT charges mi
114
114
  #
115
- # @param total_tax [Float, String, nil] Body param: The total tax amount of the invoice. Must be positive and rounded to
115
+ # @param total_tax [Float, String, nil] Body param: The total tax amount of the invoice. Must be positive and rounded to
116
116
  #
117
- # @param total_tax_in_tax_currency [Float, String, nil] Body param: The total VAT amount in the VAT accounting currency tax_currency (BT
117
+ # @param total_tax_in_tax_currency [Float, String, nil] Body param: The total VAT amount in the VAT accounting currency tax_currency (BT
118
118
  #
119
- # @param vatex [Symbol, EInvoiceAPI::Models::DocumentCreate::Vatex, nil] Body param: VATEX code list for VAT exemption reasons
119
+ # @param vatex [Symbol, EInvoiceAPI::Models::DocumentCreate::Vatex, nil] Body param: VATEX code list for VAT exemption reasons
120
120
  #
121
- # @param vatex_note [String, nil] Body param: Textual explanation for VAT exemption
121
+ # @param vatex_note [String, nil] Body param: VAT exemption reason text (BT-120). An exemption reason (vatex or va
122
122
  #
123
- # @param vendor_address [String, nil] Body param: The address of the vendor/seller
123
+ # @param vendor_address [String, nil] Body param: The address of the vendor/seller
124
124
  #
125
- # @param vendor_address_recipient [String, nil] Body param: The recipient name at the vendor address
125
+ # @param vendor_address_recipient [String, nil] Body param: The recipient name at the vendor address. Also the vendor contact na
126
126
  #
127
- # @param vendor_company_id [String, nil] Body param: Vendor company ID. For Belgium this is the CBE number or their EUID
127
+ # @param vendor_company_id [String, nil] Body param: Vendor company ID. For Belgium this is the CBE number or their EUID
128
128
  #
129
- # @param vendor_email [String, nil] Body param: The email address of the vendor
129
+ # @param vendor_email [String, nil] Body param: The email address of the vendor
130
130
  #
131
- # @param vendor_name [String, nil] Body param: The name of the vendor/seller/supplier
131
+ # @param vendor_name [String, nil] Body param: The name of the vendor/seller/supplier
132
132
  #
133
- # @param vendor_phone [String, nil] Body param: The telephone number of the vendor contact (BT-42). Required when ve
133
+ # @param vendor_phone [String, nil] Body param: The telephone number of the vendor contact (BT-42). Required when ve
134
134
  #
135
- # @param vendor_tax_id [String, nil] Body param: Vendor tax ID. For Belgium this is the VAT number. Must include the
135
+ # @param vendor_tax_id [String, nil] Body param: Vendor tax ID. For Belgium this is the VAT number. Must include the
136
136
  #
137
- # @param request_options [EInvoiceAPI::RequestOptions, Hash{Symbol=>Object}, nil]
137
+ # @param request_options [EInvoiceAPI::RequestOptions, Hash{Symbol=>Object}, nil]
138
138
  #
139
139
  # @return [EInvoiceAPI::Models::DocumentResponse]
140
140
  #
@@ -157,8 +157,8 @@ module EInvoiceAPI
157
157
  #
158
158
  # @overload retrieve(document_id, request_options: {})
159
159
  #
160
- # @param document_id [String]
161
- # @param request_options [EInvoiceAPI::RequestOptions, Hash{Symbol=>Object}, nil]
160
+ # @param document_id [String]
161
+ # @param request_options [EInvoiceAPI::RequestOptions, Hash{Symbol=>Object}, nil]
162
162
  #
163
163
  # @return [EInvoiceAPI::Models::DocumentResponse]
164
164
  #
@@ -176,8 +176,8 @@ module EInvoiceAPI
176
176
  #
177
177
  # @overload delete(document_id, request_options: {})
178
178
  #
179
- # @param document_id [String]
180
- # @param request_options [EInvoiceAPI::RequestOptions, Hash{Symbol=>Object}, nil]
179
+ # @param document_id [String]
180
+ # @param request_options [EInvoiceAPI::RequestOptions, Hash{Symbol=>Object}, nil]
181
181
  #
182
182
  # @return [EInvoiceAPI::Models::DocumentDeleteResponse]
183
183
  #
@@ -199,13 +199,13 @@ module EInvoiceAPI
199
199
  #
200
200
  # @overload create_from_pdf(file:, customer_tax_id: nil, vendor_tax_id: nil, request_options: {})
201
201
  #
202
- # @param file [Pathname, StringIO, IO, String, EInvoiceAPI::FilePart] Body param
202
+ # @param file [Pathname, StringIO, IO, String, EInvoiceAPI::FilePart] Body param
203
203
  #
204
- # @param customer_tax_id [String, nil] Query param
204
+ # @param customer_tax_id [String, nil] Query param
205
205
  #
206
- # @param vendor_tax_id [String, nil] Query param
206
+ # @param vendor_tax_id [String, nil] Query param
207
207
  #
208
- # @param request_options [EInvoiceAPI::RequestOptions, Hash{Symbol=>Object}, nil]
208
+ # @param request_options [EInvoiceAPI::RequestOptions, Hash{Symbol=>Object}, nil]
209
209
  #
210
210
  # @return [EInvoiceAPI::Models::DocumentCreateFromPdfResponse]
211
211
  #
@@ -234,13 +234,13 @@ module EInvoiceAPI
234
234
  #
235
235
  # @overload send_(document_id, email: nil, receiver_peppol_id: nil, receiver_peppol_scheme: nil, sender_peppol_id: nil, sender_peppol_scheme: nil, request_options: {})
236
236
  #
237
- # @param document_id [String]
238
- # @param email [String, nil]
239
- # @param receiver_peppol_id [String, nil]
240
- # @param receiver_peppol_scheme [String, nil]
241
- # @param sender_peppol_id [String, nil]
242
- # @param sender_peppol_scheme [String, nil]
243
- # @param request_options [EInvoiceAPI::RequestOptions, Hash{Symbol=>Object}, nil]
237
+ # @param document_id [String]
238
+ # @param email [String, nil]
239
+ # @param receiver_peppol_id [String, nil]
240
+ # @param receiver_peppol_scheme [String, nil]
241
+ # @param sender_peppol_id [String, nil]
242
+ # @param sender_peppol_scheme [String, nil]
243
+ # @param request_options [EInvoiceAPI::RequestOptions, Hash{Symbol=>Object}, nil]
244
244
  #
245
245
  # @return [EInvoiceAPI::Models::DocumentResponse]
246
246
  #
@@ -261,8 +261,8 @@ module EInvoiceAPI
261
261
  #
262
262
  # @overload validate(document_id, request_options: {})
263
263
  #
264
- # @param document_id [String]
265
- # @param request_options [EInvoiceAPI::RequestOptions, Hash{Symbol=>Object}, nil]
264
+ # @param document_id [String]
265
+ # @param request_options [EInvoiceAPI::RequestOptions, Hash{Symbol=>Object}, nil]
266
266
  #
267
267
  # @return [EInvoiceAPI::Models::UblDocumentValidation]
268
268
  #
@@ -281,8 +281,8 @@ module EInvoiceAPI
281
281
  #
282
282
  # @overload timeline(document_id, request_options: {})
283
283
  #
284
- # @param document_id [String]
285
- # @param request_options [EInvoiceAPI::RequestOptions, Hash{Symbol=>Object}, nil]
284
+ # @param document_id [String]
285
+ # @param request_options [EInvoiceAPI::RequestOptions, Hash{Symbol=>Object}, nil]
286
286
  #
287
287
  # @return [EInvoiceAPI::Models::DocumentTimelineResponse]
288
288
  #
@@ -304,8 +304,8 @@ module EInvoiceAPI
304
304
  #
305
305
  # @overload lifecycle(document_id, request_options: {})
306
306
  #
307
- # @param document_id [String]
308
- # @param request_options [EInvoiceAPI::RequestOptions, Hash{Symbol=>Object}, nil]
307
+ # @param document_id [String]
308
+ # @param request_options [EInvoiceAPI::RequestOptions, Hash{Symbol=>Object}, nil]
309
309
  #
310
310
  # @return [EInvoiceAPI::Models::DocumentLifecycleResponse]
311
311
  #
@@ -8,25 +8,25 @@ module EInvoiceAPI
8
8
  #
9
9
  # @overload list(date_from: nil, date_to: nil, page: nil, page_size: nil, search: nil, sort_by: nil, sort_order: nil, state: nil, type: nil, request_options: {})
10
10
  #
11
- # @param date_from [Time, nil] Filter by issue date (from)
11
+ # @param date_from [Time, nil] Filter by issue date (from)
12
12
  #
13
- # @param date_to [Time, nil] Filter by issue date (to)
13
+ # @param date_to [Time, nil] Filter by issue date (to)
14
14
  #
15
- # @param page [Integer] Page number
15
+ # @param page [Integer] Page number
16
16
  #
17
- # @param page_size [Integer] Number of items per page
17
+ # @param page_size [Integer] Number of items per page
18
18
  #
19
- # @param search [String, nil] Search in invoice number, seller/buyer names
19
+ # @param search [String, nil] Search in invoice number, seller/buyer names
20
20
  #
21
- # @param sort_by [Symbol, EInvoiceAPI::Models::DraftListParams::SortBy] Field to sort by
21
+ # @param sort_by [Symbol, EInvoiceAPI::Models::DraftListParams::SortBy] Field to sort by
22
22
  #
23
- # @param sort_order [Symbol, EInvoiceAPI::Models::DraftListParams::SortOrder] Sort direction (asc/desc)
23
+ # @param sort_order [Symbol, EInvoiceAPI::Models::DraftListParams::SortOrder] Sort direction (asc/desc)
24
24
  #
25
- # @param state [Symbol, EInvoiceAPI::Models::DocumentState, nil] Filter by document state. By default return all states (DRAFT, TRANSIT, FAILED).
25
+ # @param state [Symbol, EInvoiceAPI::Models::DocumentState, nil] Filter by document state. By default return all states (DRAFT, TRANSIT, FAILED).
26
26
  #
27
- # @param type [Symbol, EInvoiceAPI::Models::DocumentType, nil] Filter by document type
27
+ # @param type [Symbol, EInvoiceAPI::Models::DocumentType, nil] Filter by document type
28
28
  #
29
- # @param request_options [EInvoiceAPI::RequestOptions, Hash{Symbol=>Object}, nil]
29
+ # @param request_options [EInvoiceAPI::RequestOptions, Hash{Symbol=>Object}, nil]
30
30
  #
31
31
  # @return [EInvoiceAPI::Internal::DocumentsNumberPage<EInvoiceAPI::Models::DocumentResponse>]
32
32
  #
@@ -8,25 +8,25 @@ module EInvoiceAPI
8
8
  #
9
9
  # @overload list(date_from: nil, date_to: nil, page: nil, page_size: nil, search: nil, sender: nil, sort_by: nil, sort_order: nil, type: nil, request_options: {})
10
10
  #
11
- # @param date_from [Time, nil] Filter by issue date (from)
11
+ # @param date_from [Time, nil] Filter by issue date (from)
12
12
  #
13
- # @param date_to [Time, nil] Filter by issue date (to)
13
+ # @param date_to [Time, nil] Filter by issue date (to)
14
14
  #
15
- # @param page [Integer] Page number
15
+ # @param page [Integer] Page number
16
16
  #
17
- # @param page_size [Integer] Number of items per page
17
+ # @param page_size [Integer] Number of items per page
18
18
  #
19
- # @param search [String, nil] Search in invoice number, seller/buyer names
19
+ # @param search [String, nil] Search in invoice number, seller/buyer names
20
20
  #
21
- # @param sender [String, nil] Filter by sender (vendor_name, vendor_email, vendor_tax_id, vendor_company_id)
21
+ # @param sender [String, nil] Filter by sender (vendor_name, vendor_email, vendor_tax_id, vendor_company_id)
22
22
  #
23
- # @param sort_by [Symbol, EInvoiceAPI::Models::InboxListParams::SortBy] Field to sort by
23
+ # @param sort_by [Symbol, EInvoiceAPI::Models::InboxListParams::SortBy] Field to sort by
24
24
  #
25
- # @param sort_order [Symbol, EInvoiceAPI::Models::InboxListParams::SortOrder] Sort direction (asc/desc)
25
+ # @param sort_order [Symbol, EInvoiceAPI::Models::InboxListParams::SortOrder] Sort direction (asc/desc)
26
26
  #
27
- # @param type [Symbol, EInvoiceAPI::Models::DocumentType, nil] Filter by document type. If not provided, returns all types.
27
+ # @param type [Symbol, EInvoiceAPI::Models::DocumentType, nil] Filter by document type. If not provided, returns all types.
28
28
  #
29
- # @param request_options [EInvoiceAPI::RequestOptions, Hash{Symbol=>Object}, nil]
29
+ # @param request_options [EInvoiceAPI::RequestOptions, Hash{Symbol=>Object}, nil]
30
30
  #
31
31
  # @return [EInvoiceAPI::Internal::DocumentsNumberPage<EInvoiceAPI::Models::DocumentResponse>]
32
32
  #
@@ -48,15 +48,15 @@ module EInvoiceAPI
48
48
  #
49
49
  # @overload list_credit_notes(page: nil, page_size: nil, sort_by: nil, sort_order: nil, request_options: {})
50
50
  #
51
- # @param page [Integer] Page number
51
+ # @param page [Integer] Page number
52
52
  #
53
- # @param page_size [Integer] Number of items per page
53
+ # @param page_size [Integer] Number of items per page
54
54
  #
55
- # @param sort_by [Symbol, EInvoiceAPI::Models::InboxListCreditNotesParams::SortBy] Field to sort by
55
+ # @param sort_by [Symbol, EInvoiceAPI::Models::InboxListCreditNotesParams::SortBy] Field to sort by
56
56
  #
57
- # @param sort_order [Symbol, EInvoiceAPI::Models::InboxListCreditNotesParams::SortOrder] Sort direction (asc/desc)
57
+ # @param sort_order [Symbol, EInvoiceAPI::Models::InboxListCreditNotesParams::SortOrder] Sort direction (asc/desc)
58
58
  #
59
- # @param request_options [EInvoiceAPI::RequestOptions, Hash{Symbol=>Object}, nil]
59
+ # @param request_options [EInvoiceAPI::RequestOptions, Hash{Symbol=>Object}, nil]
60
60
  #
61
61
  # @return [EInvoiceAPI::Internal::DocumentsNumberPage<EInvoiceAPI::Models::DocumentResponse>]
62
62
  #
@@ -78,15 +78,15 @@ module EInvoiceAPI
78
78
  #
79
79
  # @overload list_invoices(page: nil, page_size: nil, sort_by: nil, sort_order: nil, request_options: {})
80
80
  #
81
- # @param page [Integer] Page number
81
+ # @param page [Integer] Page number
82
82
  #
83
- # @param page_size [Integer] Number of items per page
83
+ # @param page_size [Integer] Number of items per page
84
84
  #
85
- # @param sort_by [Symbol, EInvoiceAPI::Models::InboxListInvoicesParams::SortBy] Field to sort by
85
+ # @param sort_by [Symbol, EInvoiceAPI::Models::InboxListInvoicesParams::SortBy] Field to sort by
86
86
  #
87
- # @param sort_order [Symbol, EInvoiceAPI::Models::InboxListInvoicesParams::SortOrder] Sort direction (asc/desc)
87
+ # @param sort_order [Symbol, EInvoiceAPI::Models::InboxListInvoicesParams::SortOrder] Sort direction (asc/desc)
88
88
  #
89
- # @param request_options [EInvoiceAPI::RequestOptions, Hash{Symbol=>Object}, nil]
89
+ # @param request_options [EInvoiceAPI::RequestOptions, Hash{Symbol=>Object}, nil]
90
90
  #
91
91
  # @return [EInvoiceAPI::Internal::DocumentsNumberPage<EInvoiceAPI::Models::DocumentResponse>]
92
92
  #
@@ -14,9 +14,9 @@ module EInvoiceAPI
14
14
  #
15
15
  # @overload retrieve(peppol_id:, request_options: {})
16
16
  #
17
- # @param peppol_id [String] Peppol ID in the format `<scheme>:<id>`. Example: `0208:1018265814` for a Belgia
17
+ # @param peppol_id [String] Peppol ID in the format `<scheme>:<id>`. Example: `0208:1018265814` for a Belgia
18
18
  #
19
- # @param request_options [EInvoiceAPI::RequestOptions, Hash{Symbol=>Object}, nil]
19
+ # @param request_options [EInvoiceAPI::RequestOptions, Hash{Symbol=>Object}, nil]
20
20
  #
21
21
  # @return [EInvoiceAPI::Models::LookupRetrieveResponse]
22
22
  #
@@ -41,11 +41,11 @@ module EInvoiceAPI
41
41
  #
42
42
  # @overload retrieve_participants(query:, country_code: nil, request_options: {})
43
43
  #
44
- # @param query [String] Query to lookup
44
+ # @param query [String] Query to lookup
45
45
  #
46
- # @param country_code [String, nil] Country code of the company to lookup. If not provided, the search will be globa
46
+ # @param country_code [String, nil] Country code of the company to lookup. If not provided, the search will be globa
47
47
  #
48
- # @param request_options [EInvoiceAPI::RequestOptions, Hash{Symbol=>Object}, nil]
48
+ # @param request_options [EInvoiceAPI::RequestOptions, Hash{Symbol=>Object}, nil]
49
49
  #
50
50
  # @return [EInvoiceAPI::Models::LookupRetrieveParticipantsResponse]
51
51
  #
@@ -11,25 +11,25 @@ module EInvoiceAPI
11
11
  #
12
12
  # @overload list(page: nil, page_size: nil, processed: nil, received_from: nil, received_to: nil, search: nil, sort_by: nil, sort_order: nil, status: nil, request_options: {})
13
13
  #
14
- # @param page [Integer] Page number
14
+ # @param page [Integer] Page number
15
15
  #
16
- # @param page_size [Integer] Number of items per page
16
+ # @param page_size [Integer] Number of items per page
17
17
  #
18
- # @param processed [Boolean, nil] Filter by processing status. If not provided, returns all. Ignored when `status`
18
+ # @param processed [Boolean, nil] Filter by processing status. If not provided, returns all. Ignored when `status`
19
19
  #
20
- # @param received_from [Time, nil] Inclusive lower bound on received date (falls back to created_at when received_a
20
+ # @param received_from [Time, nil] Inclusive lower bound on received date (falls back to created_at when received_a
21
21
  #
22
- # @param received_to [Time, nil] Inclusive upper bound on received date (falls back to created_at when received_a
22
+ # @param received_to [Time, nil] Inclusive upper bound on received date (falls back to created_at when received_a
23
23
  #
24
- # @param search [String, nil] Case-insensitive search across sender email, subject, message ID, and attachment
24
+ # @param search [String, nil] Case-insensitive search across sender email, subject, message ID, and attachment
25
25
  #
26
- # @param sort_by [Symbol, EInvoiceAPI::Models::MailboxListParams::SortBy] Field to sort by
26
+ # @param sort_by [Symbol, EInvoiceAPI::Models::MailboxListParams::SortBy] Field to sort by
27
27
  #
28
- # @param sort_order [Symbol, EInvoiceAPI::Models::MailboxListParams::SortOrder] Sort direction (asc/desc)
28
+ # @param sort_order [Symbol, EInvoiceAPI::Models::MailboxListParams::SortOrder] Sort direction (asc/desc)
29
29
  #
30
- # @param status [Symbol, EInvoiceAPI::Models::MailboxListParams::Status, nil] Filter by status: pending, success, or failed. Takes precedence over `processed`
30
+ # @param status [Symbol, EInvoiceAPI::Models::MailboxListParams::Status, nil] Filter by status: pending, success, or failed. Takes precedence over `processed`
31
31
  #
32
- # @param request_options [EInvoiceAPI::RequestOptions, Hash{Symbol=>Object}, nil]
32
+ # @param request_options [EInvoiceAPI::RequestOptions, Hash{Symbol=>Object}, nil]
33
33
  #
34
34
  # @return [EInvoiceAPI::Internal::DocumentsNumberPage<EInvoiceAPI::Models::InboundEmailResponse>]
35
35
  #
@@ -51,8 +51,8 @@ module EInvoiceAPI
51
51
  #
52
52
  # @overload retrieve(inbound_email_id, request_options: {})
53
53
  #
54
- # @param inbound_email_id [String]
55
- # @param request_options [EInvoiceAPI::RequestOptions, Hash{Symbol=>Object}, nil]
54
+ # @param inbound_email_id [String]
55
+ # @param request_options [EInvoiceAPI::RequestOptions, Hash{Symbol=>Object}, nil]
56
56
  #
57
57
  # @return [EInvoiceAPI::Models::InboundEmailResponse]
58
58
  #
@@ -71,9 +71,9 @@ module EInvoiceAPI
71
71
  #
72
72
  # @overload download_attachment(filename, inbound_email_id:, request_options: {})
73
73
  #
74
- # @param filename [String]
75
- # @param inbound_email_id [String]
76
- # @param request_options [EInvoiceAPI::RequestOptions, Hash{Symbol=>Object}, nil]
74
+ # @param filename [String]
75
+ # @param inbound_email_id [String]
76
+ # @param request_options [EInvoiceAPI::RequestOptions, Hash{Symbol=>Object}, nil]
77
77
  #
78
78
  # @return [Object]
79
79
  #
@@ -97,8 +97,8 @@ module EInvoiceAPI
97
97
  #
98
98
  # @overload reprocess(inbound_email_id, request_options: {})
99
99
  #
100
- # @param inbound_email_id [String]
101
- # @param request_options [EInvoiceAPI::RequestOptions, Hash{Symbol=>Object}, nil]
100
+ # @param inbound_email_id [String]
101
+ # @param request_options [EInvoiceAPI::RequestOptions, Hash{Symbol=>Object}, nil]
102
102
  #
103
103
  # @return [EInvoiceAPI::Models::InboundEmailResponse]
104
104
  #
@@ -7,7 +7,7 @@ module EInvoiceAPI
7
7
  #
8
8
  # @overload retrieve(request_options: {})
9
9
  #
10
- # @param request_options [EInvoiceAPI::RequestOptions, Hash{Symbol=>Object}, nil]
10
+ # @param request_options [EInvoiceAPI::RequestOptions, Hash{Symbol=>Object}, nil]
11
11
  #
12
12
  # @return [EInvoiceAPI::Models::MeRetrieveResponse]
13
13
  #