Class: GOBL::Regimes::Mx::FoodVouchers

Inherits:
Object show all
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

Method Summary

Methods inherited from Object

new

Methods inherited from Struct

#as_json, from_data, from_json!, #to_json

Instance Attribute Details

#account_numberString (readonly)

Customer’s account number (maps to ‘numeroDeCuenta`).

Returns:

  • (String)


24
# File 'lib/generated/gobl/regimes/mx/food_vouchers.rb', line 24

property :account_number, String

#employer_registrationString (readonly)

Customer’s employer registration number (maps to ‘registroPatronal`).

Returns:

  • (String)


19
# File 'lib/generated/gobl/regimes/mx/food_vouchers.rb', line 19

property :employer_registration, String

#linesArray<FoodVouchersLine> (readonly)

List of food vouchers issued to the customer’s employees (maps to ‘Conceptos`).

Returns:



35
# File 'lib/generated/gobl/regimes/mx/food_vouchers.rb', line 35

property :lines, [FoodVouchersLine]

#totalGOBL::Num::Amount (readonly)

Sum of all line amounts (calculated, maps to ‘total`).

Returns:



30
# File 'lib/generated/gobl/regimes/mx/food_vouchers.rb', line 30

property :total, GOBL::Num::Amount