Class: Inttegro::Shared::ResourceSupply

Inherits:
T::Struct
  • Object
show all
Defined in:
lib/inttegro/shared/resource_supply.rb

Overview

Typed representation of the resource supply object in the Inttegro API.

This generated model is immutable. Construct it with .new, or decode a string-keyed API payload with .from_hash. #serialize produces a string-keyed hash using the original wire field names and serialized enum values.

Instance Attribute Summary collapse

Instance Attribute Details

#attempt_id ⇒ String? (readonly)

Value of the attempt_id field in the Inttegro API payload.

Optional in the API payload; omitted values default to nil. Wire name: attempt_id.

Returns:

  • (String, nil)


53
54
55
56
57
58
59
60
# File 'lib/inttegro/shared/resource_supply.rb', line 53

class ResourceSupply < T::Struct
  const :attempt_id, T.nilable(String), default: nil
  const :by, String
  const :channel, T.nilable(String), default: nil
  const :resource_id, T.nilable(String), default: nil
  const :resource_type, T.nilable(String), default: nil
  const :supplied_at, Time
end

#by ⇒ String (readonly)

Value of the by field in the Inttegro API payload.

Required in the API payload. Wire name: by.

Returns:

  • (String)


53
54
55
56
57
58
59
60
# File 'lib/inttegro/shared/resource_supply.rb', line 53

class ResourceSupply < T::Struct
  const :attempt_id, T.nilable(String), default: nil
  const :by, String
  const :channel, T.nilable(String), default: nil
  const :resource_id, T.nilable(String), default: nil
  const :resource_type, T.nilable(String), default: nil
  const :supplied_at, Time
end

#channel ⇒ String? (readonly)

Value of the channel field in the Inttegro API payload.

Optional in the API payload; omitted values default to nil. Wire name: channel.

Returns:

  • (String, nil)


53
54
55
56
57
58
59
60
# File 'lib/inttegro/shared/resource_supply.rb', line 53

class ResourceSupply < T::Struct
  const :attempt_id, T.nilable(String), default: nil
  const :by, String
  const :channel, T.nilable(String), default: nil
  const :resource_id, T.nilable(String), default: nil
  const :resource_type, T.nilable(String), default: nil
  const :supplied_at, Time
end

#resource_id ⇒ String? (readonly)

Value of the resource_id field in the Inttegro API payload.

Optional in the API payload; omitted values default to nil. Wire name: resource_id.

Returns:

  • (String, nil)


53
54
55
56
57
58
59
60
# File 'lib/inttegro/shared/resource_supply.rb', line 53

class ResourceSupply < T::Struct
  const :attempt_id, T.nilable(String), default: nil
  const :by, String
  const :channel, T.nilable(String), default: nil
  const :resource_id, T.nilable(String), default: nil
  const :resource_type, T.nilable(String), default: nil
  const :supplied_at, Time
end

#resource_type ⇒ String? (readonly)

Value of the resource_type field in the Inttegro API payload.

Optional in the API payload; omitted values default to nil. Wire name: resource_type.

Returns:

  • (String, nil)


53
54
55
56
57
58
59
60
# File 'lib/inttegro/shared/resource_supply.rb', line 53

class ResourceSupply < T::Struct
  const :attempt_id, T.nilable(String), default: nil
  const :by, String
  const :channel, T.nilable(String), default: nil
  const :resource_id, T.nilable(String), default: nil
  const :resource_type, T.nilable(String), default: nil
  const :supplied_at, Time
end

#supplied_at ⇒ Time (readonly)

Value of the supplied_at field in the Inttegro API payload.

Required in the API payload. Wire name: supplied_at.

Returns:

  • (Time)


53
54
55
56
57
58
59
60
# File 'lib/inttegro/shared/resource_supply.rb', line 53

class ResourceSupply < T::Struct
  const :attempt_id, T.nilable(String), default: nil
  const :by, String
  const :channel, T.nilable(String), default: nil
  const :resource_id, T.nilable(String), default: nil
  const :resource_type, T.nilable(String), default: nil
  const :supplied_at, Time
end