trevol 0.3.1 → 0.5.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 (74) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +31 -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/balance_api.rb +6 -6
  8. data/lib/trevol_generado/api/catalogs_api.rb +164 -0
  9. data/lib/trevol_generado/api/company_settings_api.rb +384 -0
  10. data/lib/trevol_generado/api/credit_notes_api.rb +79 -0
  11. data/lib/trevol_generado/api/debit_notes_api.rb +79 -0
  12. data/lib/trevol_generado/api/dian_documents_api.rb +8 -2
  13. data/lib/trevol_generado/api/equivalent_document_adjustments_api.rb +79 -0
  14. data/lib/trevol_generado/api/equivalent_documents_api.rb +79 -0
  15. data/lib/trevol_generado/api/invoices_api.rb +79 -0
  16. data/lib/trevol_generado/api/payroll_adjustments_api.rb +6 -0
  17. data/lib/trevol_generado/api/payrolls_api.rb +6 -0
  18. data/lib/trevol_generado/api/pdf_designs_api.rb +357 -0
  19. data/lib/trevol_generado/api/pdf_templates_api.rb +79 -0
  20. data/lib/trevol_generado/api/radian_events_api.rb +6 -0
  21. data/lib/trevol_generado/api/support_document_adjustments_api.rb +6 -0
  22. data/lib/trevol_generado/api/support_documents_api.rb +6 -0
  23. data/lib/trevol_generado/models/account_company.rb +11 -1
  24. data/lib/trevol_generado/models/balance.rb +13 -2
  25. data/lib/trevol_generado/models/balance_key_owner.rb +162 -0
  26. data/lib/trevol_generado/models/code_list.rb +245 -0
  27. data/lib/trevol_generado/models/code_list_entry.rb +353 -0
  28. data/lib/trevol_generado/models/code_list_entry_list.rb +191 -0
  29. data/lib/trevol_generado/models/code_list_list.rb +191 -0
  30. data/lib/trevol_generado/models/code_list_rates.rb +174 -0
  31. data/lib/trevol_generado/models/company.rb +11 -1
  32. data/lib/trevol_generado/models/company_logo.rb +217 -0
  33. data/lib/trevol_generado/models/company_logo_deleted.rb +170 -0
  34. data/lib/trevol_generado/models/company_logo_input.rb +178 -0
  35. data/lib/trevol_generado/models/delivery.rb +16 -5
  36. data/lib/trevol_generado/models/delivery_email_resends.rb +171 -0
  37. data/lib/trevol_generado/models/document.rb +37 -5
  38. data/lib/trevol_generado/models/document_totals_item.rb +1 -0
  39. data/lib/trevol_generado/models/email_resend.rb +256 -0
  40. data/lib/trevol_generado/models/email_resend_delivery.rb +183 -0
  41. data/lib/trevol_generado/models/email_resend_request.rb +163 -0
  42. data/lib/trevol_generado/models/email_resend_summary.rb +256 -0
  43. data/lib/trevol_generado/models/equivalent_document.rb +27 -5
  44. data/lib/trevol_generado/models/equivalent_document_adjustment.rb +26 -4
  45. data/lib/trevol_generado/models/equivalent_document_adjustment_input.rb +15 -4
  46. data/lib/trevol_generado/models/equivalent_document_input.rb +15 -4
  47. data/lib/trevol_generado/models/event.rb +11 -1
  48. data/lib/trevol_generado/models/invoice_batch.rb +11 -1
  49. data/lib/trevol_generado/models/invoice_batch_invoice_input.rb +24 -5
  50. data/lib/trevol_generado/models/invoice_input.rb +24 -4
  51. data/lib/trevol_generado/models/note_input.rb +15 -4
  52. data/lib/trevol_generado/models/numbering.rb +1 -1
  53. data/lib/trevol_generado/models/pdf_design.rb +297 -0
  54. data/lib/trevol_generado/models/pdf_design_applied.rb +193 -0
  55. data/lib/trevol_generado/models/pdf_design_input.rb +277 -0
  56. data/lib/trevol_generado/models/pdf_design_list.rb +191 -0
  57. data/lib/trevol_generado/models/pdf_design_update.rb +246 -0
  58. data/lib/trevol_generado/models/pdf_settings.rb +202 -0
  59. data/lib/trevol_generado/models/pdf_settings_update.rb +170 -0
  60. data/lib/trevol_generado/models/pdf_template.rb +210 -0
  61. data/lib/trevol_generado/models/pdf_template_list.rb +191 -0
  62. data/lib/trevol_generado/models/preview.rb +11 -1
  63. data/lib/trevol_generado/models/preview_numbering.rb +161 -0
  64. data/lib/trevol_generado/models/problem.rb +27 -5
  65. data/lib/trevol_generado/models/problem_finding.rb +172 -0
  66. data/lib/trevol_generado/models/support_document.rb +11 -1
  67. data/lib/trevol_generado/models/support_document_adjustment.rb +11 -1
  68. data/lib/trevol_generado/models/webhook_endpoint.rb +12 -2
  69. data/lib/trevol_generado/models/webhook_endpoint_input.rb +14 -4
  70. data/lib/trevol_generado/models/webhook_endpoint_update.rb +11 -1
  71. data/lib/trevol_generado/tablas.rb +30 -1
  72. data/lib/trevol_generado/version.rb +1 -1
  73. data/lib/trevol_generado.rb +29 -0
  74. metadata +30 -1
@@ -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,6 +30,9 @@ module TrevolGenerado
30
30
  # Valores conocidos: `test`, `live`.
31
31
  attr_accessor :environment
32
32
 
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
+
33
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
 
@@ -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.