Class: SubmitUboDeclarationRequest

Inherits:
Object
  • Object
show all
Includes:
MangoPay::Jsonifier
Defined in:
lib/mangopay/model/request/submit_ubo_declaration_request.rb

Overview

Model object for body of request to submit a UBO declaration for approval

Constant Summary

Constants included from MangoPay::Jsonifier

MangoPay::Jsonifier::LOG

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from MangoPay::Jsonifier

#dejsonify, #jsonify!

Constructor Details

#initialize(id, tag = nil) ⇒ SubmitUboDeclarationRequest

Returns a new instance of SubmitUboDeclarationRequest.



12
13
14
15
16
# File 'lib/mangopay/model/request/submit_ubo_declaration_request.rb', line 12

def initialize(id, tag = nil)
  self.id = id
  self.tag = tag
  @status = MangoModel::UboDeclarationStatus::VALIDATION_ASKED
end

Instance Attribute Details

#idObject

Id of the ubo declaration



8
9
10
# File 'lib/mangopay/model/request/submit_ubo_declaration_request.rb', line 8

def id
  @id
end

#tagObject

String

Custom data added with the request



10
11
12
# File 'lib/mangopay/model/request/submit_ubo_declaration_request.rb', line 10

def tag
  @tag
end