Method: CrvApiClient::Helpers::Crv#context_message

Defined in:
lib/crv_api_client/helpers/crv.rb

#context_message(keeper, context_message_detail: [], username: "", password: "", provider: nil, customer: nil, animal: nil, process_code: "", organisation: nil) ⇒ Object



38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# File 'lib/crv_api_client/helpers/crv.rb', line 38

def context_message(keeper,
                    context_message_detail: [],
                    username: "",
                    password: "",
                    provider: nil,
                    customer: nil,
                    animal: nil,
                    process_code: "",
                    organisation: nil)
  context = endpoint_context_message.new
  context.sessionId = ""
  context.processId = ""
  context.instanceId = ""
  context.username = username
  context.userType = "C"
  context.password = password
  context.organisation = organisation
  context.provider = provider
  context.customer = customer
  context.keeper = keeper
  context.animal = animal
  context.processCode = process_code
  context.messageSource = ""
  context.languageCode = ""
  context.timeZone = ""
  context.contextMessageDetail = context_message_detail
  context
end