Class: GOBL::Regimes::Mx::FoodVouchersLine

Inherits:
Object show all
Defined in:
lib/generated/gobl/regimes/mx/food_vouchers_line.rb

Overview

FoodVouchersLine represents a single food voucher issued to the e-wallet of one of the customer’s employees.

Constant Summary collapse

SCHEMA_ID =

The Schema ID of the GOBL FoodVouchersLine structure

'https://gobl.org/draft-0/regimes/mx/food-vouchers#/$defs/FoodVouchersLine'

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

#amountGOBL::Num::Amount (readonly)

Amount of the food voucher (maps to ‘importe`).

Returns:



41
# File 'lib/generated/gobl/regimes/mx/food_vouchers_line.rb', line 41

property :amount, GOBL::Num::Amount

#e_wallet_idGOBL::CBC::Code (readonly)

Identifier of the e-wallet that received the food voucher (maps to ‘Identificador`).

Returns:



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

property :e_wallet_id, GOBL::CBC::Code

#employeeFoodVouchersEmployee (readonly)

Employee that received the food voucher.



36
# File 'lib/generated/gobl/regimes/mx/food_vouchers_line.rb', line 36

property :employee, FoodVouchersEmployee

#iInteger (readonly)

Line number starting from 1 (calculated).

Returns:

  • (Integer)


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

property :i, Integer

#issue_date_timeGOBL::Cal::DateTime (readonly)

Date and time of the food voucher’s issue (maps to ‘Fecha`).

Returns:



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

property :issue_date_time, GOBL::Cal::DateTime