Class: OrangeData::Receipt

Inherits:
Document show all
Defined in:
lib/orange_data/receipt.rb

Instance Attribute Summary

Attributes inherited from Document

#callback_url, #content, #group, #id, #inn, #key_name

Instance Method Summary collapse

Methods inherited from Document

#as_json, from_hash, #to_json

Constructor Details

#initialize(id: SecureRandom.uuid, inn:, group: nil, key_name: nil, content: nil, callback_url: nil) ⇒ Receipt

Returns a new instance of Receipt.



55
56
57
58
# File 'lib/orange_data/receipt.rb', line 55

def initialize(id:SecureRandom.uuid, inn:, group:nil, key_name:nil, content:nil, callback_url: nil)
  @content = ReceiptContent.new(content || {})
  super
end