Class: GOBL::Regimes::Mx::FoodVouchers
- Defined in:
- lib/generated/gobl/regimes/mx/food_vouchers.rb
Overview
FoodVouchers carries the data to produce a CFDI’s “Complemento de Vales de Despensa” (version 1.0) providing detailed information about food vouchers issued by an e-wallet supplier to its customer’s employees.
Constant Summary collapse
- SCHEMA_ID =
The Schema ID of the GOBL FoodVouchers structure
'https://gobl.org/draft-0/regimes/mx/food-vouchers'
Instance Attribute Summary collapse
-
#account_number ⇒ String
readonly
Customer’s account number (maps to ‘numeroDeCuenta`).
-
#employer_registration ⇒ String
readonly
Customer’s employer registration number (maps to ‘registroPatronal`).
-
#lines ⇒ Array<FoodVouchersLine>
readonly
List of food vouchers issued to the customer’s employees (maps to ‘Conceptos`).
-
#total ⇒ GOBL::Num::Amount
readonly
Sum of all line amounts (calculated, maps to ‘total`).
Method Summary
Methods inherited from Object
Methods inherited from Struct
#as_json, from_data, from_json!, #to_json
Instance Attribute Details
#account_number ⇒ String (readonly)
Customer’s account number (maps to ‘numeroDeCuenta`).
24 |
# File 'lib/generated/gobl/regimes/mx/food_vouchers.rb', line 24 property :account_number, String |
#employer_registration ⇒ String (readonly)
Customer’s employer registration number (maps to ‘registroPatronal`).
19 |
# File 'lib/generated/gobl/regimes/mx/food_vouchers.rb', line 19 property :employer_registration, String |
#lines ⇒ Array<FoodVouchersLine> (readonly)
List of food vouchers issued to the customer’s employees (maps to ‘Conceptos`).
35 |
# File 'lib/generated/gobl/regimes/mx/food_vouchers.rb', line 35 property :lines, [FoodVouchersLine] |
#total ⇒ GOBL::Num::Amount (readonly)
Sum of all line amounts (calculated, maps to ‘total`).
30 |
# File 'lib/generated/gobl/regimes/mx/food_vouchers.rb', line 30 property :total, GOBL::Num::Amount |