e-invoice-api 0.34.0 → 0.35.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.
Files changed (54) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +23 -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/transport/base_client.rb +43 -78
  7. data/lib/e_invoice_api/internal/transport/pooled_net_requester.rb +8 -8
  8. data/lib/e_invoice_api/internal/type/array_of.rb +12 -12
  9. data/lib/e_invoice_api/internal/type/base_model.rb +18 -18
  10. data/lib/e_invoice_api/internal/type/boolean.rb +6 -6
  11. data/lib/e_invoice_api/internal/type/converter.rb +24 -24
  12. data/lib/e_invoice_api/internal/type/enum.rb +6 -6
  13. data/lib/e_invoice_api/internal/type/file_input.rb +6 -6
  14. data/lib/e_invoice_api/internal/type/hash_of.rb +12 -12
  15. data/lib/e_invoice_api/internal/type/request_parameters.rb +1 -1
  16. data/lib/e_invoice_api/internal/type/union.rb +10 -10
  17. data/lib/e_invoice_api/internal/type/unknown.rb +6 -6
  18. data/lib/e_invoice_api/internal/util.rb +15 -57
  19. data/lib/e_invoice_api/models/document_create.rb +45 -12
  20. data/lib/e_invoice_api/models/document_create_from_pdf_response.rb +45 -12
  21. data/lib/e_invoice_api/models/document_response.rb +49 -14
  22. data/lib/e_invoice_api/models/payment_detail_create.rb +4 -2
  23. data/lib/e_invoice_api/models/unit_of_measure_code.rb +1349 -0
  24. data/lib/e_invoice_api/resources/conversion/pdf.rb +6 -6
  25. data/lib/e_invoice_api/resources/documents/attachments.rb +11 -11
  26. data/lib/e_invoice_api/resources/documents/ubl.rb +4 -4
  27. data/lib/e_invoice_api/resources/documents.rb +81 -81
  28. data/lib/e_invoice_api/resources/drafts.rb +10 -10
  29. data/lib/e_invoice_api/resources/inbox.rb +20 -20
  30. data/lib/e_invoice_api/resources/lookup.rb +5 -5
  31. data/lib/e_invoice_api/resources/mailbox.rb +17 -17
  32. data/lib/e_invoice_api/resources/me.rb +1 -1
  33. data/lib/e_invoice_api/resources/outbox.rb +19 -19
  34. data/lib/e_invoice_api/resources/stats.rb +4 -4
  35. data/lib/e_invoice_api/resources/validate.rb +63 -63
  36. data/lib/e_invoice_api/resources/webhooks.rb +20 -20
  37. data/lib/e_invoice_api/version.rb +1 -1
  38. data/lib/e_invoice_api.rb +0 -1
  39. data/rbi/e_invoice_api/internal/transport/base_client.rbi +2 -10
  40. data/rbi/e_invoice_api/internal/util.rbi +0 -12
  41. data/rbi/e_invoice_api/models/document_create.rbi +156 -12
  42. data/rbi/e_invoice_api/models/document_create_from_pdf_response.rbi +156 -12
  43. data/rbi/e_invoice_api/models/document_response.rbi +162 -14
  44. data/rbi/e_invoice_api/models/payment_detail_create.rbi +6 -2
  45. data/rbi/e_invoice_api/models/unit_of_measure_code.rbi +1349 -0
  46. data/rbi/e_invoice_api/resources/documents.rbi +10 -5
  47. data/rbi/e_invoice_api/resources/validate.rbi +8 -5
  48. data/sig/e_invoice_api/internal/transport/base_client.rbs +1 -4
  49. data/sig/e_invoice_api/internal/util.rbs +0 -4
  50. data/sig/e_invoice_api/models/document_create.rbs +52 -0
  51. data/sig/e_invoice_api/models/document_create_from_pdf_response.rbs +52 -0
  52. data/sig/e_invoice_api/models/document_response.rbs +52 -0
  53. data/sig/e_invoice_api/models/unit_of_measure_code.rbs +2698 -0
  54. metadata +27 -7
@@ -10,21 +10,21 @@ module EInvoiceAPI
10
10
  #
11
11
  # @overload list_draft_documents(page: nil, page_size: nil, search: nil, sort_by: nil, sort_order: nil, state: nil, type: nil, request_options: {})
12
12
  #
13
- # @param page [Integer] Page number
13
+ # @param page [Integer] Page number
14
14
  #
15
- # @param page_size [Integer] Number of items per page
15
+ # @param page_size [Integer] Number of items per page
16
16
  #
17
- # @param search [String, nil] Search in invoice number, seller/buyer names
17
+ # @param search [String, nil] Search in invoice number, seller/buyer names
18
18
  #
19
- # @param sort_by [Symbol, EInvoiceAPI::Models::OutboxListDraftDocumentsParams::SortBy] Field to sort by
19
+ # @param sort_by [Symbol, EInvoiceAPI::Models::OutboxListDraftDocumentsParams::SortBy] Field to sort by
20
20
  #
21
- # @param sort_order [Symbol, EInvoiceAPI::Models::OutboxListDraftDocumentsParams::SortOrder] Sort direction (asc/desc)
21
+ # @param sort_order [Symbol, EInvoiceAPI::Models::OutboxListDraftDocumentsParams::SortOrder] Sort direction (asc/desc)
22
22
  #
23
- # @param state [Symbol, EInvoiceAPI::Models::DocumentState, nil] Filter by document state
23
+ # @param state [Symbol, EInvoiceAPI::Models::DocumentState, nil] Filter by document state
24
24
  #
25
- # @param type [Symbol, EInvoiceAPI::Models::DocumentType, nil] Filter by document type
25
+ # @param type [Symbol, EInvoiceAPI::Models::DocumentType, nil] Filter by document type
26
26
  #
27
- # @param request_options [EInvoiceAPI::RequestOptions, Hash{Symbol=>Object}, nil]
27
+ # @param request_options [EInvoiceAPI::RequestOptions, Hash{Symbol=>Object}, nil]
28
28
  #
29
29
  # @return [EInvoiceAPI::Internal::DocumentsNumberPage<EInvoiceAPI::Models::DocumentResponse>]
30
30
  #
@@ -50,27 +50,27 @@ module EInvoiceAPI
50
50
  #
51
51
  # @overload list_received_documents(date_from: nil, date_to: nil, page: nil, page_size: nil, receiver: nil, search: nil, sender: nil, sort_by: nil, sort_order: nil, type: nil, request_options: {})
52
52
  #
53
- # @param date_from [Time, nil] Filter by issue date (from)
53
+ # @param date_from [Time, nil] Filter by issue date (from)
54
54
  #
55
- # @param date_to [Time, nil] Filter by issue date (to)
55
+ # @param date_to [Time, nil] Filter by issue date (to)
56
56
  #
57
- # @param page [Integer] Page number
57
+ # @param page [Integer] Page number
58
58
  #
59
- # @param page_size [Integer] Number of items per page
59
+ # @param page_size [Integer] Number of items per page
60
60
  #
61
- # @param receiver [String, nil] Filter by receiver (customer_name, customer_email, customer_tax_id, customer_com
61
+ # @param receiver [String, nil] Filter by receiver (customer_name, customer_email, customer_tax_id, customer_com
62
62
  #
63
- # @param search [String, nil] Search in invoice number, seller/buyer names
63
+ # @param search [String, nil] Search in invoice number, seller/buyer names
64
64
  #
65
- # @param sender [String, nil] (Deprecated) Filter by sender ID
65
+ # @param sender [String, nil] (Deprecated) Filter by sender ID
66
66
  #
67
- # @param sort_by [Symbol, EInvoiceAPI::Models::OutboxListReceivedDocumentsParams::SortBy] Field to sort by
67
+ # @param sort_by [Symbol, EInvoiceAPI::Models::OutboxListReceivedDocumentsParams::SortBy] Field to sort by
68
68
  #
69
- # @param sort_order [Symbol, EInvoiceAPI::Models::OutboxListReceivedDocumentsParams::SortOrder] Sort direction (asc/desc)
69
+ # @param sort_order [Symbol, EInvoiceAPI::Models::OutboxListReceivedDocumentsParams::SortOrder] Sort direction (asc/desc)
70
70
  #
71
- # @param type [Symbol, EInvoiceAPI::Models::DocumentType, nil] Filter by document type. If not provided, returns all types.
71
+ # @param type [Symbol, EInvoiceAPI::Models::DocumentType, nil] Filter by document type. If not provided, returns all types.
72
72
  #
73
- # @param request_options [EInvoiceAPI::RequestOptions, Hash{Symbol=>Object}, nil]
73
+ # @param request_options [EInvoiceAPI::RequestOptions, Hash{Symbol=>Object}, nil]
74
74
  #
75
75
  # @return [EInvoiceAPI::Internal::DocumentsNumberPage<EInvoiceAPI::Models::DocumentResponse>]
76
76
  #
@@ -13,13 +13,13 @@ module EInvoiceAPI
13
13
  #
14
14
  # @overload retrieve(aggregation: nil, end_date: nil, start_date: nil, request_options: {})
15
15
  #
16
- # @param aggregation [Symbol, EInvoiceAPI::Models::StatsRetrieveParams::Aggregation, nil] Aggregation type: DAY, WEEK, or MONTH. Defaults to DAY.
16
+ # @param aggregation [Symbol, EInvoiceAPI::Models::StatsRetrieveParams::Aggregation, nil] Aggregation type: DAY, WEEK, or MONTH. Defaults to DAY.
17
17
  #
18
- # @param end_date [Date, nil] End date in yyyy-mm-dd format. If not provided, queries to latest available data
18
+ # @param end_date [Date, nil] End date in yyyy-mm-dd format. If not provided, queries to latest available data
19
19
  #
20
- # @param start_date [Date, nil] Start date in yyyy-mm-dd format. If not provided, queries from earliest availabl
20
+ # @param start_date [Date, nil] Start date in yyyy-mm-dd format. If not provided, queries from earliest availabl
21
21
  #
22
- # @param request_options [EInvoiceAPI::RequestOptions, Hash{Symbol=>Object}, nil]
22
+ # @param request_options [EInvoiceAPI::RequestOptions, Hash{Symbol=>Object}, nil]
23
23
  #
24
24
  # @return [EInvoiceAPI::Models::StatsRetrieveResponse]
25
25
  #
@@ -12,123 +12,123 @@ module EInvoiceAPI
12
12
  #
13
13
  # @overload validate_json(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: {})
14
14
  #
15
- # @param allowances [Array<EInvoiceAPI::Models::DocumentCreate::Allowance>, nil]
15
+ # @param allowances [Array<EInvoiceAPI::Models::DocumentCreate::Allowance>, nil]
16
16
  #
17
- # @param amount_due [Float, String, nil] The amount due for payment. Must be positive and rounded to maximum 2 decimals
17
+ # @param amount_due [Float, String, nil] The amount due for payment. Must be positive and rounded to maximum 2 decimals
18
18
  #
19
- # @param attachments [Array<EInvoiceAPI::Models::DocumentAttachmentCreate>, nil]
19
+ # @param attachments [Array<EInvoiceAPI::Models::DocumentAttachmentCreate>, nil]
20
20
  #
21
- # @param billing_address [String, nil] The billing address (if different from customer address)
21
+ # @param billing_address [String, nil] The billing address (if different from customer address)
22
22
  #
23
- # @param billing_address_recipient [String, nil] The recipient name at the billing address
23
+ # @param billing_address_recipient [String, nil] The recipient name at the billing address
24
24
  #
25
- # @param buyer_reference [String, nil] The buyer reference (BT-10), e.g. a cost centre or accounting reference requeste
25
+ # @param buyer_reference [String, nil] The buyer reference (BT-10), e.g. a cost centre or accounting reference requeste
26
26
  #
27
- # @param charges [Array<EInvoiceAPI::Models::DocumentCreate::Charge>, nil]
27
+ # @param charges [Array<EInvoiceAPI::Models::DocumentCreate::Charge>, nil]
28
28
  #
29
- # @param currency [Symbol, EInvoiceAPI::Models::CurrencyCode] Currency of the invoice (ISO 4217 currency code)
29
+ # @param currency [Symbol, EInvoiceAPI::Models::CurrencyCode] Currency of the invoice (ISO 4217 currency code)
30
30
  #
31
- # @param customer_address [String, nil] The address of the customer/buyer
31
+ # @param customer_address [String, nil] The address of the customer/buyer
32
32
  #
33
- # @param customer_address_recipient [String, nil] The recipient name at the customer address
33
+ # @param customer_address_recipient [String, nil] The recipient name at the customer address. Also the customer contact name (BT-5
34
34
  #
35
- # @param customer_company_id [String, nil] Customer company ID. For Belgium this is the CBE number or their EUID (European
35
+ # @param customer_company_id [String, nil] Customer company ID. For Belgium this is the CBE number or their EUID (European
36
36
  #
37
- # @param customer_email [String, nil] The email address of the customer
37
+ # @param customer_email [String, nil] The email address of the customer
38
38
  #
39
- # @param customer_id [String, nil] The unique identifier for the customer in your system
39
+ # @param customer_id [String, nil] The unique identifier for the customer in your system
40
40
  #
41
- # @param customer_name [String, nil] The company name of the customer/buyer
41
+ # @param customer_name [String, nil] The company name of the customer/buyer
42
42
  #
43
- # @param customer_peppol_id [String, nil] Customer Peppol ID
43
+ # @param customer_peppol_id [String, nil] Customer Peppol ID
44
44
  #
45
- # @param customer_phone [String, nil] The telephone number of the customer contact (BT-57)
45
+ # @param customer_phone [String, nil] The telephone number of the customer contact (BT-57)
46
46
  #
47
- # @param customer_tax_id [String, nil] Customer tax ID. For Belgium this is the VAT number. Must include the country pr
47
+ # @param customer_tax_id [String, nil] Customer tax ID. For Belgium this is the VAT number. Must include the country pr
48
48
  #
49
- # @param direction [Symbol, EInvoiceAPI::Models::DocumentDirection] The direction of the document: INBOUND (purchases) or OUTBOUND (sales)
49
+ # @param direction [Symbol, EInvoiceAPI::Models::DocumentDirection] The direction of the document: INBOUND (purchases) or OUTBOUND (sales)
50
50
  #
51
- # @param document_type [Symbol, EInvoiceAPI::Models::DocumentType] The type of document: INVOICE, CREDIT_NOTE, or DEBIT_NOTE
51
+ # @param document_type [Symbol, EInvoiceAPI::Models::DocumentType] The type of document: INVOICE, CREDIT_NOTE, or DEBIT_NOTE
52
52
  #
53
- # @param due_date [Date, nil] The date when payment is due
53
+ # @param due_date [Date, nil] The date when payment is due
54
54
  #
55
- # @param invoice_date [Date, nil] The date when the invoice was issued
55
+ # @param invoice_date [Date, nil] The date when the invoice was issued
56
56
  #
57
- # @param invoice_id [String, nil] The unique invoice identifier/number
57
+ # @param invoice_id [String, nil] The unique invoice identifier/number
58
58
  #
59
- # @param invoice_total [Float, String, nil] The total amount of the invoice including tax (invoice*total = subtotal + total*
59
+ # @param invoice_total [Float, String, nil] The total amount of the invoice including tax (invoice*total = subtotal + total*
60
60
  #
61
- # @param items [Array<EInvoiceAPI::Models::DocumentCreate::Item>] At least one line item is required
61
+ # @param items [Array<EInvoiceAPI::Models::DocumentCreate::Item>] At least one line item is required
62
62
  #
63
- # @param note [String, nil] Additional notes or comments for the invoice
63
+ # @param note [String, nil] Additional notes or comments for the invoice
64
64
  #
65
- # @param payment_details [Array<EInvoiceAPI::Models::PaymentDetailCreate>, nil]
65
+ # @param payment_details [Array<EInvoiceAPI::Models::PaymentDetailCreate>, nil]
66
66
  #
67
- # @param payment_term [String, nil] The payment terms (e.g., 'Net 30', 'Due on receipt', '2/10 Net 30')
67
+ # @param payment_term [String, nil] The payment terms (e.g., 'Net 30', 'Due on receipt', '2/10 Net 30')
68
68
  #
69
- # @param preceding_invoice_date [Date, nil] The preceding invoice issue date (BT-26)
69
+ # @param preceding_invoice_date [Date, nil] The preceding invoice issue date (BT-26)
70
70
  #
71
- # @param preceding_invoice_id [String, nil] The preceding invoice reference (BT-25): the number of the invoice this document
71
+ # @param preceding_invoice_id [String, nil] The preceding invoice reference (BT-25): the number of the invoice this document
72
72
  #
73
- # @param previous_unpaid_balance [Float, String, nil] The previous unpaid balance from prior invoices, if any. Must be positive and ro
73
+ # @param previous_unpaid_balance [Float, String, nil] The previous unpaid balance from prior invoices, if any. Must be positive and ro
74
74
  #
75
- # @param purchase_order [String, nil] The purchase order reference number
75
+ # @param purchase_order [String, nil] The purchase order reference number (BT-13)
76
76
  #
77
- # @param remittance_address [String, nil] The address where payment should be sent or remitted to
77
+ # @param remittance_address [String, nil] The address where payment should be sent or remitted to
78
78
  #
79
- # @param remittance_address_recipient [String, nil] The recipient name at the remittance address
79
+ # @param remittance_address_recipient [String, nil] The recipient name at the remittance address
80
80
  #
81
- # @param rounding_amount [Float, String, nil] The amount added to the invoice total to round the amount for payment (BT-114),
81
+ # @param rounding_amount [Float, String, nil] The amount added to the invoice total to round the amount for payment (BT-114),
82
82
  #
83
- # @param sales_order [String, nil] The sales order reference (BT-14) assigned by the seller
83
+ # @param sales_order [String, nil] The sales order reference (BT-14) assigned by the seller
84
84
  #
85
- # @param service_address [String, nil] The address where services were performed or goods were delivered
85
+ # @param service_address [String, nil] The address where services were performed or goods were delivered
86
86
  #
87
- # @param service_address_recipient [String, nil] The recipient name at the service address
87
+ # @param service_address_recipient [String, nil] The recipient name at the service address
88
88
  #
89
- # @param service_end_date [Date, nil] The end date of the service period or delivery period
89
+ # @param service_end_date [Date, nil] The end date of the service period or delivery period
90
90
  #
91
- # @param service_start_date [Date, nil] The start date of the service period or delivery period
91
+ # @param service_start_date [Date, nil] The start date of the service period or delivery period
92
92
  #
93
- # @param shipping_address [String, nil] The shipping/delivery address
93
+ # @param shipping_address [String, nil] The shipping/delivery address
94
94
  #
95
- # @param shipping_address_recipient [String, nil] The recipient name at the shipping address
95
+ # @param shipping_address_recipient [String, nil] The name of the deliver-to party (BT-70)
96
96
  #
97
- # @param state [Symbol, EInvoiceAPI::Models::DocumentState] The current state of the document: DRAFT, TRANSIT, FAILED, SENT, or RECEIVED
97
+ # @param state [Symbol, EInvoiceAPI::Models::DocumentState] The current state of the document: DRAFT, TRANSIT, FAILED, SENT, or RECEIVED
98
98
  #
99
- # @param subtotal [Float, String, nil] The taxable base of the invoice. Should be the sum of all line items - allowance
99
+ # @param subtotal [Float, String, nil] The taxable base of the invoice. Should be the sum of all line items - allowance
100
100
  #
101
- # @param tax_code [Symbol, EInvoiceAPI::Models::DocumentCreate::TaxCode] Tax category code of the invoice (e.g., S for standard rate, Z for zero rate, E
101
+ # @param tax_code [Symbol, EInvoiceAPI::Models::DocumentCreate::TaxCode] Tax category code of the invoice (e.g., S for standard rate, Z for zero rate, E
102
102
  #
103
- # @param tax_currency [String, nil] The VAT accounting currency (BT-6, ISO 4217 currency code), when VAT is accounte
103
+ # @param tax_currency [String, nil] The VAT accounting currency (BT-6, ISO 4217 currency code), when VAT is accounte
104
104
  #
105
- # @param tax_details [Array<EInvoiceAPI::Models::DocumentCreate::TaxDetail>, nil]
105
+ # @param tax_details [Array<EInvoiceAPI::Models::DocumentCreate::TaxDetail>, nil]
106
106
  #
107
- # @param total_discount [Float, String, nil] The net financial discount/charge of the invoice (non-VAT charges minus non-VAT
107
+ # @param total_discount [Float, String, nil] The net financial discount/charge of the invoice (non-VAT charges minus non-VAT
108
108
  #
109
- # @param total_tax [Float, String, nil] The total tax amount of the invoice. Must be positive and rounded to maximum 2 d
109
+ # @param total_tax [Float, String, nil] The total tax amount of the invoice. Must be positive and rounded to maximum 2 d
110
110
  #
111
- # @param total_tax_in_tax_currency [Float, String, nil] The total VAT amount in the VAT accounting currency tax_currency (BT-111). Does
111
+ # @param total_tax_in_tax_currency [Float, String, nil] The total VAT amount in the VAT accounting currency tax_currency (BT-111). Does
112
112
  #
113
- # @param vatex [Symbol, EInvoiceAPI::Models::DocumentCreate::Vatex, nil] VATEX code list for VAT exemption reasons
113
+ # @param vatex [Symbol, EInvoiceAPI::Models::DocumentCreate::Vatex, nil] VATEX code list for VAT exemption reasons
114
114
  #
115
- # @param vatex_note [String, nil] Textual explanation for VAT exemption
115
+ # @param vatex_note [String, nil] VAT exemption reason text (BT-120). An exemption reason (vatex or vatex_note) is
116
116
  #
117
- # @param vendor_address [String, nil] The address of the vendor/seller
117
+ # @param vendor_address [String, nil] The address of the vendor/seller
118
118
  #
119
- # @param vendor_address_recipient [String, nil] The recipient name at the vendor address
119
+ # @param vendor_address_recipient [String, nil] The recipient name at the vendor address. Also the vendor contact name (BT-41) i
120
120
  #
121
- # @param vendor_company_id [String, nil] Vendor company ID. For Belgium this is the CBE number or their EUID (European Un
121
+ # @param vendor_company_id [String, nil] Vendor company ID. For Belgium this is the CBE number or their EUID (European Un
122
122
  #
123
- # @param vendor_email [String, nil] The email address of the vendor
123
+ # @param vendor_email [String, nil] The email address of the vendor
124
124
  #
125
- # @param vendor_name [String, nil] The name of the vendor/seller/supplier
125
+ # @param vendor_name [String, nil] The name of the vendor/seller/supplier
126
126
  #
127
- # @param vendor_phone [String, nil] The telephone number of the vendor contact (BT-42). Required when vendor and cus
127
+ # @param vendor_phone [String, nil] The telephone number of the vendor contact (BT-42). Required when vendor and cus
128
128
  #
129
- # @param vendor_tax_id [String, nil] Vendor tax ID. For Belgium this is the VAT number. Must include the country pref
129
+ # @param vendor_tax_id [String, nil] Vendor tax ID. For Belgium this is the VAT number. Must include the country pref
130
130
  #
131
- # @param request_options [EInvoiceAPI::RequestOptions, Hash{Symbol=>Object}, nil]
131
+ # @param request_options [EInvoiceAPI::RequestOptions, Hash{Symbol=>Object}, nil]
132
132
  #
133
133
  # @return [EInvoiceAPI::Models::UblDocumentValidation]
134
134
  #
@@ -156,9 +156,9 @@ module EInvoiceAPI
156
156
  #
157
157
  # @overload validate_peppol_id(peppol_id:, request_options: {})
158
158
  #
159
- # @param peppol_id [String] Peppol ID in the format `<scheme>:<id>`. Example: `0208:1018265814` for a Belgia
159
+ # @param peppol_id [String] Peppol ID in the format `<scheme>:<id>`. Example: `0208:1018265814` for a Belgia
160
160
  #
161
- # @param request_options [EInvoiceAPI::RequestOptions, Hash{Symbol=>Object}, nil]
161
+ # @param request_options [EInvoiceAPI::RequestOptions, Hash{Symbol=>Object}, nil]
162
162
  #
163
163
  # @return [EInvoiceAPI::Models::ValidateValidatePeppolIDResponse]
164
164
  #
@@ -179,8 +179,8 @@ module EInvoiceAPI
179
179
  #
180
180
  # @overload validate_ubl(file:, request_options: {})
181
181
  #
182
- # @param file [Pathname, StringIO, IO, String, EInvoiceAPI::FilePart]
183
- # @param request_options [EInvoiceAPI::RequestOptions, Hash{Symbol=>Object}, nil]
182
+ # @param file [Pathname, StringIO, IO, String, EInvoiceAPI::FilePart]
183
+ # @param request_options [EInvoiceAPI::RequestOptions, Hash{Symbol=>Object}, nil]
184
184
  #
185
185
  # @return [EInvoiceAPI::Models::UblDocumentValidation]
186
186
  #
@@ -7,10 +7,10 @@ module EInvoiceAPI
7
7
  #
8
8
  # @overload create(events:, url:, enabled: nil, request_options: {})
9
9
  #
10
- # @param events [Array<String>]
11
- # @param url [String]
12
- # @param enabled [Boolean]
13
- # @param request_options [EInvoiceAPI::RequestOptions, Hash{Symbol=>Object}, nil]
10
+ # @param events [Array<String>]
11
+ # @param url [String]
12
+ # @param enabled [Boolean]
13
+ # @param request_options [EInvoiceAPI::RequestOptions, Hash{Symbol=>Object}, nil]
14
14
  #
15
15
  # @return [EInvoiceAPI::Models::WebhookResponse]
16
16
  #
@@ -30,8 +30,8 @@ module EInvoiceAPI
30
30
  #
31
31
  # @overload retrieve(webhook_id, request_options: {})
32
32
  #
33
- # @param webhook_id [String]
34
- # @param request_options [EInvoiceAPI::RequestOptions, Hash{Symbol=>Object}, nil]
33
+ # @param webhook_id [String]
34
+ # @param request_options [EInvoiceAPI::RequestOptions, Hash{Symbol=>Object}, nil]
35
35
  #
36
36
  # @return [EInvoiceAPI::Models::WebhookResponse]
37
37
  #
@@ -49,11 +49,11 @@ module EInvoiceAPI
49
49
  #
50
50
  # @overload update(webhook_id, enabled: nil, events: nil, url: nil, request_options: {})
51
51
  #
52
- # @param webhook_id [String]
53
- # @param enabled [Boolean, nil]
54
- # @param events [Array<String>, nil]
55
- # @param url [String, nil]
56
- # @param request_options [EInvoiceAPI::RequestOptions, Hash{Symbol=>Object}, nil]
52
+ # @param webhook_id [String]
53
+ # @param enabled [Boolean, nil]
54
+ # @param events [Array<String>, nil]
55
+ # @param url [String, nil]
56
+ # @param request_options [EInvoiceAPI::RequestOptions, Hash{Symbol=>Object}, nil]
57
57
  #
58
58
  # @return [EInvoiceAPI::Models::WebhookResponse]
59
59
  #
@@ -73,7 +73,7 @@ module EInvoiceAPI
73
73
  #
74
74
  # @overload list(request_options: {})
75
75
  #
76
- # @param request_options [EInvoiceAPI::RequestOptions, Hash{Symbol=>Object}, nil]
76
+ # @param request_options [EInvoiceAPI::RequestOptions, Hash{Symbol=>Object}, nil]
77
77
  #
78
78
  # @return [Array<EInvoiceAPI::Models::WebhookResponse>]
79
79
  #
@@ -91,8 +91,8 @@ module EInvoiceAPI
91
91
  #
92
92
  # @overload delete(webhook_id, request_options: {})
93
93
  #
94
- # @param webhook_id [String]
95
- # @param request_options [EInvoiceAPI::RequestOptions, Hash{Symbol=>Object}, nil]
94
+ # @param webhook_id [String]
95
+ # @param request_options [EInvoiceAPI::RequestOptions, Hash{Symbol=>Object}, nil]
96
96
  #
97
97
  # @return [EInvoiceAPI::Models::WebhookDeleteResponse]
98
98
  #
@@ -110,8 +110,8 @@ module EInvoiceAPI
110
110
  #
111
111
  # @overload history(webhook_id, request_options: {})
112
112
  #
113
- # @param webhook_id [String]
114
- # @param request_options [EInvoiceAPI::RequestOptions, Hash{Symbol=>Object}, nil]
113
+ # @param webhook_id [String]
114
+ # @param request_options [EInvoiceAPI::RequestOptions, Hash{Symbol=>Object}, nil]
115
115
  #
116
116
  # @return [EInvoiceAPI::Models::WebhookHistoryResponse]
117
117
  #
@@ -129,13 +129,13 @@ module EInvoiceAPI
129
129
  #
130
130
  # @overload test_(webhook_id, data:, event_type:, request_options: {})
131
131
  #
132
- # @param webhook_id [String]
132
+ # @param webhook_id [String]
133
133
  #
134
- # @param data [Hash{Symbol=>Object}] Custom event data payload
134
+ # @param data [Hash{Symbol=>Object}] Custom event data payload
135
135
  #
136
- # @param event_type [String] Must be valid WebhookEventType
136
+ # @param event_type [String] Must be valid WebhookEventType
137
137
  #
138
- # @param request_options [EInvoiceAPI::RequestOptions, Hash{Symbol=>Object}, nil]
138
+ # @param request_options [EInvoiceAPI::RequestOptions, Hash{Symbol=>Object}, nil]
139
139
  #
140
140
  # @return [EInvoiceAPI::Models::WebhookTestResponse]
141
141
  #
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EInvoiceAPI
4
- VERSION = "0.34.0"
4
+ VERSION = "0.35.0"
5
5
  end
data/lib/e_invoice_api.rb CHANGED
@@ -3,7 +3,6 @@
3
3
  # Standard libraries.
4
4
  # rubocop:disable Lint/RedundantRequireStatement
5
5
  require "English"
6
- require "base64"
7
6
  require "cgi"
8
7
  require "date"
9
8
  require "erb"
@@ -70,8 +70,6 @@ module EInvoiceAPI
70
70
  # from whatwg fetch spec
71
71
  MAX_REDIRECTS = 20
72
72
 
73
- PLATFORM_HEADERS = T::Hash[String, String]
74
-
75
73
  class << self
76
74
  # @api private
77
75
  sig do
@@ -218,16 +216,10 @@ module EInvoiceAPI
218
216
  params(
219
217
  request: EInvoiceAPI::Internal::Transport::BaseClient::RequestInput,
220
218
  redirect_count: Integer,
221
- retry_count: Integer,
222
- send_retry_header: T::Boolean
219
+ retry_count: Integer
223
220
  ).returns([Integer, Net::HTTPResponse, T::Enumerable[String]])
224
221
  end
225
- def send_request(
226
- request,
227
- redirect_count:,
228
- retry_count:,
229
- send_retry_header:
230
- )
222
+ def send_request(request, redirect_count:, retry_count:)
231
223
  end
232
224
 
233
225
  # Execute the request specified by `req`. This is the method that all resource
@@ -20,18 +20,6 @@ module EInvoiceAPI
20
20
  def self.walk_namespaces(ns)
21
21
  end
22
22
 
23
- class << self
24
- # @api private
25
- sig { returns(String) }
26
- def arch
27
- end
28
-
29
- # @api private
30
- sig { returns(String) }
31
- def os
32
- end
33
- end
34
-
35
23
  class << self
36
24
  # @api private
37
25
  sig { params(input: T.anything).returns(T::Boolean) }