trevol 0.3.0 → 0.4.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 (78) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +34 -0
  3. data/GENERADO.md +1 -1
  4. data/README.md +1 -1
  5. data/lib/trevol/client.rb +6 -1
  6. data/lib/trevol/transporte.rb +1 -0
  7. data/lib/trevol_generado/api/account_api.rb +2 -2
  8. data/lib/trevol_generado/api/balance_api.rb +2 -2
  9. data/lib/trevol_generado/api/catalogs_api.rb +164 -0
  10. data/lib/trevol_generado/api/company_settings_api.rb +384 -0
  11. data/lib/trevol_generado/api/credit_notes_api.rb +79 -0
  12. data/lib/trevol_generado/api/debit_notes_api.rb +79 -0
  13. data/lib/trevol_generado/api/dian_documents_api.rb +8 -2
  14. data/lib/trevol_generado/api/dian_syncs_api.rb +2 -2
  15. data/lib/trevol_generado/api/equivalent_document_adjustments_api.rb +79 -0
  16. data/lib/trevol_generado/api/equivalent_documents_api.rb +79 -0
  17. data/lib/trevol_generado/api/invoices_api.rb +79 -0
  18. data/lib/trevol_generado/api/payroll_adjustments_api.rb +6 -0
  19. data/lib/trevol_generado/api/payrolls_api.rb +6 -0
  20. data/lib/trevol_generado/api/pdf_designs_api.rb +357 -0
  21. data/lib/trevol_generado/api/pdf_templates_api.rb +79 -0
  22. data/lib/trevol_generado/api/radian_events_api.rb +6 -0
  23. data/lib/trevol_generado/api/support_document_adjustments_api.rb +6 -0
  24. data/lib/trevol_generado/api/support_documents_api.rb +6 -0
  25. data/lib/trevol_generado/models/account_api_key_input.rb +1 -1
  26. data/lib/trevol_generado/models/account_company.rb +11 -1
  27. data/lib/trevol_generado/models/account_company_onboarding.rb +1 -1
  28. data/lib/trevol_generado/models/balance.rb +2 -2
  29. data/lib/trevol_generado/models/balance_operation_prices.rb +1 -1
  30. data/lib/trevol_generado/models/code_list.rb +245 -0
  31. data/lib/trevol_generado/models/code_list_entry.rb +353 -0
  32. data/lib/trevol_generado/models/code_list_entry_list.rb +191 -0
  33. data/lib/trevol_generado/models/code_list_list.rb +191 -0
  34. data/lib/trevol_generado/models/code_list_rates.rb +174 -0
  35. data/lib/trevol_generado/models/company.rb +11 -1
  36. data/lib/trevol_generado/models/company_logo.rb +217 -0
  37. data/lib/trevol_generado/models/company_logo_deleted.rb +170 -0
  38. data/lib/trevol_generado/models/company_logo_input.rb +178 -0
  39. data/lib/trevol_generado/models/delivery.rb +16 -5
  40. data/lib/trevol_generado/models/delivery_email_resends.rb +171 -0
  41. data/lib/trevol_generado/models/document.rb +37 -5
  42. data/lib/trevol_generado/models/document_totals_item.rb +1 -0
  43. data/lib/trevol_generado/models/email_resend.rb +256 -0
  44. data/lib/trevol_generado/models/email_resend_delivery.rb +183 -0
  45. data/lib/trevol_generado/models/email_resend_request.rb +163 -0
  46. data/lib/trevol_generado/models/email_resend_summary.rb +256 -0
  47. data/lib/trevol_generado/models/equivalent_document.rb +27 -5
  48. data/lib/trevol_generado/models/equivalent_document_adjustment.rb +26 -4
  49. data/lib/trevol_generado/models/equivalent_document_adjustment_input.rb +15 -4
  50. data/lib/trevol_generado/models/equivalent_document_input.rb +15 -4
  51. data/lib/trevol_generado/models/event.rb +12 -2
  52. data/lib/trevol_generado/models/invoice_batch.rb +11 -1
  53. data/lib/trevol_generado/models/invoice_batch_invoice_input.rb +24 -5
  54. data/lib/trevol_generado/models/invoice_input.rb +24 -4
  55. data/lib/trevol_generado/models/note_input.rb +15 -4
  56. data/lib/trevol_generado/models/numbering.rb +1 -1
  57. data/lib/trevol_generado/models/pdf_design.rb +297 -0
  58. data/lib/trevol_generado/models/pdf_design_applied.rb +193 -0
  59. data/lib/trevol_generado/models/pdf_design_input.rb +277 -0
  60. data/lib/trevol_generado/models/pdf_design_list.rb +191 -0
  61. data/lib/trevol_generado/models/pdf_design_update.rb +246 -0
  62. data/lib/trevol_generado/models/pdf_settings.rb +202 -0
  63. data/lib/trevol_generado/models/pdf_settings_update.rb +170 -0
  64. data/lib/trevol_generado/models/pdf_template.rb +210 -0
  65. data/lib/trevol_generado/models/pdf_template_list.rb +191 -0
  66. data/lib/trevol_generado/models/preview.rb +11 -1
  67. data/lib/trevol_generado/models/preview_numbering.rb +161 -0
  68. data/lib/trevol_generado/models/problem.rb +26 -4
  69. data/lib/trevol_generado/models/problem_finding.rb +172 -0
  70. data/lib/trevol_generado/models/support_document.rb +11 -1
  71. data/lib/trevol_generado/models/support_document_adjustment.rb +11 -1
  72. data/lib/trevol_generado/models/webhook_endpoint.rb +13 -3
  73. data/lib/trevol_generado/models/webhook_endpoint_input.rb +15 -5
  74. data/lib/trevol_generado/models/webhook_endpoint_update.rb +12 -2
  75. data/lib/trevol_generado/tablas.rb +30 -1
  76. data/lib/trevol_generado/version.rb +1 -1
  77. data/lib/trevol_generado.rb +28 -0
  78. metadata +29 -1
@@ -84,6 +84,12 @@ module TrevolGenerado
84
84
 
85
85
  attr_accessor :equivalent_document
86
86
 
87
+ # El que pidió el documento, o null.
88
+ attr_accessor :pdf_design_id
89
+
90
+ # El diseño fijado al emitir; null mientras está pendiente.
91
+ attr_accessor :pdf_design
92
+
87
93
  # Attribute mapping from ruby-style variable name to JSON key.
88
94
  def self.attribute_map
89
95
  {
@@ -115,7 +121,9 @@ module TrevolGenerado
115
121
  :'note_type' => :'note_type',
116
122
  :'concept' => :'concept',
117
123
  :'description' => :'description',
118
- :'equivalent_document' => :'equivalent_document'
124
+ :'equivalent_document' => :'equivalent_document',
125
+ :'pdf_design_id' => :'pdf_design_id',
126
+ :'pdf_design' => :'pdf_design'
119
127
  }
120
128
  end
121
129
 
@@ -160,7 +168,9 @@ module TrevolGenerado
160
168
  :'note_type' => :'String',
161
169
  :'concept' => :'String',
162
170
  :'description' => :'String',
163
- :'equivalent_document' => :'EquivalentDocumentReference'
171
+ :'equivalent_document' => :'EquivalentDocumentReference',
172
+ :'pdf_design_id' => :'String',
173
+ :'pdf_design' => :'PdfDesignApplied'
164
174
  }
165
175
  end
166
176
 
@@ -176,6 +186,8 @@ module TrevolGenerado
176
186
  :'totals',
177
187
  :'updated_at',
178
188
  :'rounding',
189
+ :'pdf_design_id',
190
+ :'pdf_design'
179
191
  ])
180
192
  end
181
193
 
@@ -328,6 +340,14 @@ module TrevolGenerado
328
340
  if attributes.key?(:'equivalent_document')
329
341
  self.equivalent_document = attributes[:'equivalent_document']
330
342
  end
343
+
344
+ if attributes.key?(:'pdf_design_id')
345
+ self.pdf_design_id = attributes[:'pdf_design_id']
346
+ end
347
+
348
+ if attributes.key?(:'pdf_design')
349
+ self.pdf_design = attributes[:'pdf_design']
350
+ end
331
351
  end
332
352
 
333
353
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -378,7 +398,9 @@ module TrevolGenerado
378
398
  note_type == o.note_type &&
379
399
  concept == o.concept &&
380
400
  description == o.description &&
381
- equivalent_document == o.equivalent_document
401
+ equivalent_document == o.equivalent_document &&
402
+ pdf_design_id == o.pdf_design_id &&
403
+ pdf_design == o.pdf_design
382
404
  end
383
405
 
384
406
  # @see the `==` method
@@ -390,7 +412,7 @@ module TrevolGenerado
390
412
  # Calculates hash code according to all attributes.
391
413
  # @return [Integer] Hash code
392
414
  def hash
393
- [id, object, environment, status, number, prefix, external_id, origin, cude, qr, issued_at, customer, items, payment, totals, dian, delivery, created_at, updated_at, notes, period, references, allowance_charges, prepayments, rounding, note_type, concept, description, equivalent_document].hash
415
+ [id, object, environment, status, number, prefix, external_id, origin, cude, qr, issued_at, customer, items, payment, totals, dian, delivery, created_at, updated_at, notes, period, references, allowance_charges, prepayments, rounding, note_type, concept, description, equivalent_document, pdf_design_id, pdf_design].hash
394
416
  end
395
417
 
396
418
  # Builds the object from hash
@@ -53,6 +53,9 @@ module TrevolGenerado
53
53
  # El documento que ajusta: {\"id\": \"pos_…\"} (de Trevol: validado, de la empresa y el ambiente de la llave) o {number, cude, issue_date, document_type, total?} si es de otra plataforma (`total` hace falta para anularlo).
54
54
  attr_accessor :equivalent_document
55
55
 
56
+ # El diseño del PDF de este documento (`pdd_…` o `classic`); gana al de la numeración y al predeterminado. `null` es lo mismo que no mandarlo. Guía: Diseño del PDF.
57
+ attr_accessor :pdf_design_id
58
+
56
59
  class EnumAttributeValidator
57
60
  attr_reader :datatype
58
61
  attr_reader :allowable_values
@@ -91,7 +94,8 @@ module TrevolGenerado
91
94
  :'note_type' => :'note_type',
92
95
  :'concept' => :'concept',
93
96
  :'description' => :'description',
94
- :'equivalent_document' => :'equivalent_document'
97
+ :'equivalent_document' => :'equivalent_document',
98
+ :'pdf_design_id' => :'pdf_design_id'
95
99
  }
96
100
  end
97
101
 
@@ -121,7 +125,8 @@ module TrevolGenerado
121
125
  :'note_type' => :'String',
122
126
  :'concept' => :'String',
123
127
  :'description' => :'String',
124
- :'equivalent_document' => :'EquivalentDocumentReference'
128
+ :'equivalent_document' => :'EquivalentDocumentReference',
129
+ :'pdf_design_id' => :'String'
125
130
  }
126
131
  end
127
132
 
@@ -129,6 +134,7 @@ module TrevolGenerado
129
134
  def self.openapi_nullable
130
135
  Set.new([
131
136
  :'rounding',
137
+ :'pdf_design_id'
132
138
  ])
133
139
  end
134
140
 
@@ -229,6 +235,10 @@ module TrevolGenerado
229
235
  else
230
236
  self.equivalent_document = nil
231
237
  end
238
+
239
+ if attributes.key?(:'pdf_design_id')
240
+ self.pdf_design_id = attributes[:'pdf_design_id']
241
+ end
232
242
  end
233
243
 
234
244
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -326,7 +336,8 @@ module TrevolGenerado
326
336
  note_type == o.note_type &&
327
337
  concept == o.concept &&
328
338
  description == o.description &&
329
- equivalent_document == o.equivalent_document
339
+ equivalent_document == o.equivalent_document &&
340
+ pdf_design_id == o.pdf_design_id
330
341
  end
331
342
 
332
343
  # @see the `==` method
@@ -338,7 +349,7 @@ module TrevolGenerado
338
349
  # Calculates hash code according to all attributes.
339
350
  # @return [Integer] Hash code
340
351
  def hash
341
- [external_id, customer, items, payment, notes, period, references, allowance_charges, prepayments, rounding, note_type, concept, description, equivalent_document].hash
352
+ [external_id, customer, items, payment, notes, period, references, allowance_charges, prepayments, rounding, note_type, concept, description, equivalent_document, pdf_design_id].hash
342
353
  end
343
354
 
344
355
  # Builds the object from hash
@@ -68,6 +68,9 @@ module TrevolGenerado
68
68
  # Solo en el POS: el prefijo de la resolución POS que numera (una empresa con varias cajas o establecimientos tiene varias). Sin él, la más nueva vigente. Si no existe, `numbering_unavailable` (`no_resolution`).
69
69
  attr_accessor :numbering
70
70
 
71
+ # El diseño del PDF de este documento (`pdd_…` o `classic`); gana al de la numeración y al predeterminado. `null` es lo mismo que no mandarlo. Guía: Diseño del PDF.
72
+ attr_accessor :pdf_design_id
73
+
71
74
  # Attribute mapping from ruby-style variable name to JSON key.
72
75
  def self.attribute_map
73
76
  {
@@ -89,7 +92,8 @@ module TrevolGenerado
89
92
  :'prefix' => :'prefix',
90
93
  :'origin_note' => :'origin_note',
91
94
  :'contingency' => :'contingency',
92
- :'numbering' => :'numbering'
95
+ :'numbering' => :'numbering',
96
+ :'pdf_design_id' => :'pdf_design_id'
93
97
  }
94
98
  end
95
99
 
@@ -124,7 +128,8 @@ module TrevolGenerado
124
128
  :'prefix' => :'String',
125
129
  :'origin_note' => :'OriginNote',
126
130
  :'contingency' => :'Contingency',
127
- :'numbering' => :'Numbering'
131
+ :'numbering' => :'Numbering',
132
+ :'pdf_design_id' => :'String'
128
133
  }
129
134
  end
130
135
 
@@ -132,6 +137,7 @@ module TrevolGenerado
132
137
  def self.openapi_nullable
133
138
  Set.new([
134
139
  :'rounding',
140
+ :'pdf_design_id'
135
141
  ])
136
142
  end
137
143
 
@@ -248,6 +254,10 @@ module TrevolGenerado
248
254
  if attributes.key?(:'numbering')
249
255
  self.numbering = attributes[:'numbering']
250
256
  end
257
+
258
+ if attributes.key?(:'pdf_design_id')
259
+ self.pdf_design_id = attributes[:'pdf_design_id']
260
+ end
251
261
  end
252
262
 
253
263
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -303,7 +313,8 @@ module TrevolGenerado
303
313
  prefix == o.prefix &&
304
314
  origin_note == o.origin_note &&
305
315
  contingency == o.contingency &&
306
- numbering == o.numbering
316
+ numbering == o.numbering &&
317
+ pdf_design_id == o.pdf_design_id
307
318
  end
308
319
 
309
320
  # @see the `==` method
@@ -315,7 +326,7 @@ module TrevolGenerado
315
326
  # Calculates hash code according to all attributes.
316
327
  # @return [Integer] Hash code
317
328
  def hash
318
- [external_id, customer, items, payment, notes, period, references, allowance_charges, prepayments, withholdings, rounding, document_type, operation_type, pos, extension, prefix, origin_note, contingency, numbering].hash
329
+ [external_id, customer, items, payment, notes, period, references, allowance_charges, prepayments, withholdings, rounding, document_type, operation_type, pos, extension, prefix, origin_note, contingency, numbering, pdf_design_id].hash
319
330
  end
320
331
 
321
332
  # Builds the object from hash
@@ -30,7 +30,10 @@ module TrevolGenerado
30
30
  # Valores conocidos: `test`, `live`.
31
31
  attr_accessor :environment
32
32
 
33
- # La versión vigente más nueva de la API; el resumen del documento no cambia con la versión de la llave.
33
+ # Solo en el entorno SIMULADO (la empresa simulada de la cuenta): el objeto se validó, se calculó y se firmó como siempre, pero nunca llegó a la DIAN ni tiene validez. Un objeto real no lleva esta propiedad.
34
+ attr_accessor :simulated
35
+
36
+ # La versión del formato de los eventos (hoy `2026-10-22`), la misma para todas las llaves: el resumen del documento no cambia con la versión de la llave.
34
37
  attr_accessor :api_version
35
38
 
36
39
  # Los datos del evento, según su `type` (ver el esquema de cada tipo).
@@ -44,6 +47,7 @@ module TrevolGenerado
44
47
  :'type' => :'type',
45
48
  :'timestamp' => :'timestamp',
46
49
  :'environment' => :'environment',
50
+ :'simulated' => :'simulated',
47
51
  :'api_version' => :'api_version',
48
52
  :'data' => :'data'
49
53
  }
@@ -67,6 +71,7 @@ module TrevolGenerado
67
71
  :'type' => :'String',
68
72
  :'timestamp' => :'Time',
69
73
  :'environment' => :'String',
74
+ :'simulated' => :'Boolean',
70
75
  :'api_version' => :'String',
71
76
  :'data' => :'Hash<String, Object>'
72
77
  }
@@ -124,6 +129,10 @@ module TrevolGenerado
124
129
  self.environment = attributes[:'environment']
125
130
  end
126
131
 
132
+ if attributes.key?(:'simulated')
133
+ self.simulated = attributes[:'simulated']
134
+ end
135
+
127
136
  if attributes.key?(:'api_version')
128
137
  self.api_version = attributes[:'api_version']
129
138
  end
@@ -160,6 +169,7 @@ module TrevolGenerado
160
169
  type == o.type &&
161
170
  timestamp == o.timestamp &&
162
171
  environment == o.environment &&
172
+ simulated == o.simulated &&
163
173
  api_version == o.api_version &&
164
174
  data == o.data
165
175
  end
@@ -173,7 +183,7 @@ module TrevolGenerado
173
183
  # Calculates hash code according to all attributes.
174
184
  # @return [Integer] Hash code
175
185
  def hash
176
- [id, object, type, timestamp, environment, api_version, data].hash
186
+ [id, object, type, timestamp, environment, simulated, api_version, data].hash
177
187
  end
178
188
 
179
189
  # Builds the object from hash
@@ -23,6 +23,9 @@ module TrevolGenerado
23
23
  # Valores conocidos: `test`, `live`.
24
24
  attr_accessor :environment
25
25
 
26
+ # Solo en el entorno SIMULADO (la empresa simulada de la cuenta): el objeto se validó, se calculó y se firmó como siempre, pero nunca llegó a la DIAN ni tiene validez. Un objeto real no lleva esta propiedad.
27
+ attr_accessor :simulated
28
+
26
29
  # completed cuando todas sus facturas reservadas llegaron a un estado final. Valores conocidos: `processing`, `completed`.
27
30
  attr_accessor :status
28
31
 
@@ -41,6 +44,7 @@ module TrevolGenerado
41
44
  :'id' => :'id',
42
45
  :'object' => :'object',
43
46
  :'environment' => :'environment',
47
+ :'simulated' => :'simulated',
44
48
  :'status' => :'status',
45
49
  :'created_at' => :'created_at',
46
50
  :'completed_at' => :'completed_at',
@@ -65,6 +69,7 @@ module TrevolGenerado
65
69
  :'id' => :'String',
66
70
  :'object' => :'String',
67
71
  :'environment' => :'String',
72
+ :'simulated' => :'Boolean',
68
73
  :'status' => :'String',
69
74
  :'created_at' => :'Time',
70
75
  :'completed_at' => :'Time',
@@ -118,6 +123,10 @@ module TrevolGenerado
118
123
  self.environment = attributes[:'environment']
119
124
  end
120
125
 
126
+ if attributes.key?(:'simulated')
127
+ self.simulated = attributes[:'simulated']
128
+ end
129
+
121
130
  if attributes.key?(:'status')
122
131
  self.status = attributes[:'status']
123
132
  end
@@ -164,6 +173,7 @@ module TrevolGenerado
164
173
  id == o.id &&
165
174
  object == o.object &&
166
175
  environment == o.environment &&
176
+ simulated == o.simulated &&
167
177
  status == o.status &&
168
178
  created_at == o.created_at &&
169
179
  completed_at == o.completed_at &&
@@ -180,7 +190,7 @@ module TrevolGenerado
180
190
  # Calculates hash code according to all attributes.
181
191
  # @return [Integer] Hash code
182
192
  def hash
183
- [id, object, environment, status, created_at, completed_at, counts, items].hash
193
+ [id, object, environment, simulated, status, created_at, completed_at, counts, items].hash
184
194
  end
185
195
 
186
196
  # Builds the object from hash
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module TrevolGenerado
17
- # El cuerpo de `POST /v1/invoices` (los campos y las reglas de InvoiceInput) más su `idempotency_key`. Sin `contingency` (la 03 va sola).
17
+ # El cuerpo de `POST /v1/invoices` (los campos y las reglas de InvoiceInput) más su `idempotency_key`. Sin `contingency` (la 03 va sola). Cada factura puede elegir su numeración con `numbering`; si no sirve, esa factura queda `failed` sin numerarse.
18
18
  class InvoiceBatchInvoiceInput < ApiModelBase
19
19
  # La Idempotency-Key de ESTA factura (la misma que usarías en POST /v1/invoices): única en el lote y distinta de la del lote.
20
20
  attr_accessor :idempotency_key
@@ -58,6 +58,10 @@ module TrevolGenerado
58
58
 
59
59
  attr_accessor :interoperability
60
60
 
61
+ attr_accessor :numbering
62
+
63
+ attr_accessor :pdf_design_id
64
+
61
65
  # Attribute mapping from ruby-style variable name to JSON key.
62
66
  def self.attribute_map
63
67
  {
@@ -80,7 +84,9 @@ module TrevolGenerado
80
84
  :'delivery_terms' => :'delivery_terms',
81
85
  :'shipment' => :'shipment',
82
86
  :'due_diligence' => :'due_diligence',
83
- :'interoperability' => :'interoperability'
87
+ :'interoperability' => :'interoperability',
88
+ :'numbering' => :'numbering',
89
+ :'pdf_design_id' => :'pdf_design_id'
84
90
  }
85
91
  end
86
92
 
@@ -116,7 +122,9 @@ module TrevolGenerado
116
122
  :'delivery_terms' => :'DeliveryTerms',
117
123
  :'shipment' => :'Shipment',
118
124
  :'due_diligence' => :'String',
119
- :'interoperability' => :'Interoperability'
125
+ :'interoperability' => :'Interoperability',
126
+ :'numbering' => :'Numbering',
127
+ :'pdf_design_id' => :'String'
120
128
  }
121
129
  end
122
130
 
@@ -124,6 +132,7 @@ module TrevolGenerado
124
132
  def self.openapi_nullable
125
133
  Set.new([
126
134
  :'rounding',
135
+ :'pdf_design_id'
127
136
  ])
128
137
  end
129
138
 
@@ -246,6 +255,14 @@ module TrevolGenerado
246
255
  if attributes.key?(:'interoperability')
247
256
  self.interoperability = attributes[:'interoperability']
248
257
  end
258
+
259
+ if attributes.key?(:'numbering')
260
+ self.numbering = attributes[:'numbering']
261
+ end
262
+
263
+ if attributes.key?(:'pdf_design_id')
264
+ self.pdf_design_id = attributes[:'pdf_design_id']
265
+ end
249
266
  end
250
267
 
251
268
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -317,7 +334,9 @@ module TrevolGenerado
317
334
  delivery_terms == o.delivery_terms &&
318
335
  shipment == o.shipment &&
319
336
  due_diligence == o.due_diligence &&
320
- interoperability == o.interoperability
337
+ interoperability == o.interoperability &&
338
+ numbering == o.numbering &&
339
+ pdf_design_id == o.pdf_design_id
321
340
  end
322
341
 
323
342
  # @see the `==` method
@@ -329,7 +348,7 @@ module TrevolGenerado
329
348
  # Calculates hash code according to all attributes.
330
349
  # @return [Integer] Hash code
331
350
  def hash
332
- [idempotency_key, external_id, customer, items, payment, notes, period, references, allowance_charges, prepayments, withholdings, rounding, document_type, operation_type, currency, cop_totals, delivery_terms, shipment, due_diligence, interoperability].hash
351
+ [idempotency_key, external_id, customer, items, payment, notes, period, references, allowance_charges, prepayments, withholdings, rounding, document_type, operation_type, currency, cop_totals, delivery_terms, shipment, due_diligence, interoperability, numbering, pdf_design_id].hash
333
352
  end
334
353
 
335
354
  # Builds the object from hash
@@ -70,6 +70,11 @@ module TrevolGenerado
70
70
  # La transcripción (03) de una factura de papel: su número y fecha. La numeración sale del prefijo del papel.
71
71
  attr_accessor :contingency
72
72
 
73
+ attr_accessor :numbering
74
+
75
+ # El diseño del PDF de este documento (`pdd_…` o `classic`); gana al de la numeración y al predeterminado. `null` es lo mismo que no mandarlo. Guía: Diseño del PDF.
76
+ attr_accessor :pdf_design_id
77
+
73
78
  # Attribute mapping from ruby-style variable name to JSON key.
74
79
  def self.attribute_map
75
80
  {
@@ -92,7 +97,9 @@ module TrevolGenerado
92
97
  :'shipment' => :'shipment',
93
98
  :'due_diligence' => :'due_diligence',
94
99
  :'interoperability' => :'interoperability',
95
- :'contingency' => :'contingency'
100
+ :'contingency' => :'contingency',
101
+ :'numbering' => :'numbering',
102
+ :'pdf_design_id' => :'pdf_design_id'
96
103
  }
97
104
  end
98
105
 
@@ -128,7 +135,9 @@ module TrevolGenerado
128
135
  :'shipment' => :'Shipment',
129
136
  :'due_diligence' => :'String',
130
137
  :'interoperability' => :'Interoperability',
131
- :'contingency' => :'InvoiceContingencyInput'
138
+ :'contingency' => :'InvoiceContingencyInput',
139
+ :'numbering' => :'Numbering',
140
+ :'pdf_design_id' => :'String'
132
141
  }
133
142
  end
134
143
 
@@ -136,6 +145,7 @@ module TrevolGenerado
136
145
  def self.openapi_nullable
137
146
  Set.new([
138
147
  :'rounding',
148
+ :'pdf_design_id'
139
149
  ])
140
150
  end
141
151
 
@@ -256,6 +266,14 @@ module TrevolGenerado
256
266
  if attributes.key?(:'contingency')
257
267
  self.contingency = attributes[:'contingency']
258
268
  end
269
+
270
+ if attributes.key?(:'numbering')
271
+ self.numbering = attributes[:'numbering']
272
+ end
273
+
274
+ if attributes.key?(:'pdf_design_id')
275
+ self.pdf_design_id = attributes[:'pdf_design_id']
276
+ end
259
277
  end
260
278
 
261
279
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -312,7 +330,9 @@ module TrevolGenerado
312
330
  shipment == o.shipment &&
313
331
  due_diligence == o.due_diligence &&
314
332
  interoperability == o.interoperability &&
315
- contingency == o.contingency
333
+ contingency == o.contingency &&
334
+ numbering == o.numbering &&
335
+ pdf_design_id == o.pdf_design_id
316
336
  end
317
337
 
318
338
  # @see the `==` method
@@ -324,7 +344,7 @@ module TrevolGenerado
324
344
  # Calculates hash code according to all attributes.
325
345
  # @return [Integer] Hash code
326
346
  def hash
327
- [external_id, customer, items, payment, notes, period, references, allowance_charges, prepayments, withholdings, rounding, document_type, operation_type, currency, cop_totals, delivery_terms, shipment, due_diligence, interoperability, contingency].hash
347
+ [external_id, customer, items, payment, notes, period, references, allowance_charges, prepayments, withholdings, rounding, document_type, operation_type, currency, cop_totals, delivery_terms, shipment, due_diligence, interoperability, contingency, numbering, pdf_design_id].hash
328
348
  end
329
349
 
330
350
  # Builds the object from hash
@@ -50,6 +50,9 @@ module TrevolGenerado
50
50
 
51
51
  attr_accessor :invoice
52
52
 
53
+ # El diseño del PDF de este documento (`pdd_…` o `classic`); gana al de la numeración y al predeterminado. `null` es lo mismo que no mandarlo. Guía: Diseño del PDF.
54
+ attr_accessor :pdf_design_id
55
+
53
56
  # Attribute mapping from ruby-style variable name to JSON key.
54
57
  def self.attribute_map
55
58
  {
@@ -66,7 +69,8 @@ module TrevolGenerado
66
69
  :'rounding' => :'rounding',
67
70
  :'concept' => :'concept',
68
71
  :'description' => :'description',
69
- :'invoice' => :'invoice'
72
+ :'invoice' => :'invoice',
73
+ :'pdf_design_id' => :'pdf_design_id'
70
74
  }
71
75
  end
72
76
 
@@ -96,7 +100,8 @@ module TrevolGenerado
96
100
  :'rounding' => :'Object',
97
101
  :'concept' => :'String',
98
102
  :'description' => :'String',
99
- :'invoice' => :'InvoiceReference'
103
+ :'invoice' => :'InvoiceReference',
104
+ :'pdf_design_id' => :'String'
100
105
  }
101
106
  end
102
107
 
@@ -104,6 +109,7 @@ module TrevolGenerado
104
109
  def self.openapi_nullable
105
110
  Set.new([
106
111
  :'rounding',
112
+ :'pdf_design_id'
107
113
  ])
108
114
  end
109
115
 
@@ -202,6 +208,10 @@ module TrevolGenerado
202
208
  if attributes.key?(:'invoice')
203
209
  self.invoice = attributes[:'invoice']
204
210
  end
211
+
212
+ if attributes.key?(:'pdf_design_id')
213
+ self.pdf_design_id = attributes[:'pdf_design_id']
214
+ end
205
215
  end
206
216
 
207
217
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -267,7 +277,8 @@ module TrevolGenerado
267
277
  rounding == o.rounding &&
268
278
  concept == o.concept &&
269
279
  description == o.description &&
270
- invoice == o.invoice
280
+ invoice == o.invoice &&
281
+ pdf_design_id == o.pdf_design_id
271
282
  end
272
283
 
273
284
  # @see the `==` method
@@ -279,7 +290,7 @@ module TrevolGenerado
279
290
  # Calculates hash code according to all attributes.
280
291
  # @return [Integer] Hash code
281
292
  def hash
282
- [external_id, customer, items, payment, notes, period, references, allowance_charges, prepayments, withholdings, rounding, concept, description, invoice].hash
293
+ [external_id, customer, items, payment, notes, period, references, allowance_charges, prepayments, withholdings, rounding, concept, description, invoice, pdf_design_id].hash
283
294
  end
284
295
 
285
296
  # Builds the object from hash
@@ -15,7 +15,7 @@ require 'time'
15
15
 
16
16
  module TrevolGenerado
17
17
  class Numbering < ApiModelBase
18
- # Prefijo de la resolución POS o de documento soporte que numera (el de `GET /v1/company` → `capabilities.equivalent_documents.pos_numbering` o `capabilities.support_documents.numbering`).
18
+ # Prefijo de la numeración (1 a 4 letras o dígitos, sin distinguir mayúsculas). Factura: una con `usable: true` en GET /v1/numbering_ranges (sin él, la predeterminada); POS y DS: GET /v1/company.
19
19
  attr_accessor :prefix
20
20
 
21
21
  # Attribute mapping from ruby-style variable name to JSON key.