Class: Increase::Models::CheckTransfer::Submission

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/increase/models/check_transfer.rb,
sig/increase/models/check_transfer.rbs

Overview

See Also:

  • Increase::Models::CheckTransfer#submission

Defined Under Namespace

Classes: SubmittedAddress

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initialize(preview_file_id:, submitted_address:, submitted_at:, tracking_number:) ⇒ Submission

Once the check has been submitted to our printer, this will contain details about the submission. Only available when fulfillment_method is equal to physical_check.

Parameters:

  • preview_file_id (String, nil) —

    The ID of the file corresponding to an image of the check that was mailed, if available.

  • submitted_address (Increase::Models::CheckTransfer::Submission::SubmittedAddress) —

    The address we submitted to the printer. This is what is physically printed on the check.

  • submitted_at (Time) —

    When this check was submitted to our check printer.

  • tracking_number (String, nil) —

    The tracking number for the check shipment.

  • preview_file_id: (String, nil)
  • submitted_address: (Increase::CheckTransfer::Submission::SubmittedAddress)
  • submitted_at: (Time)
  • tracking_number: (String, nil)


# File 'lib/increase/models/check_transfer.rb', line 1049

Instance Attribute Details

#preview_file_id ⇒ String?

The ID of the file corresponding to an image of the check that was mailed, if available.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


1028
# File 'lib/increase/models/check_transfer.rb', line 1028

required :preview_file_id, String, nil?: true

#submitted_address ⇒ Increase::Models::CheckTransfer::Submission::SubmittedAddress

The address we submitted to the printer. This is what is physically printed on the check.

Parameters:

  • value (Increase::CheckTransfer::Submission::SubmittedAddress)

Returns:



1035
# File 'lib/increase/models/check_transfer.rb', line 1035

required :submitted_address, -> { Increase::CheckTransfer::Submission::SubmittedAddress }

#submitted_at ⇒ Time

When this check was submitted to our check printer.

Parameters:

  • value (Time)

Returns:

  • (Time)


1041
# File 'lib/increase/models/check_transfer.rb', line 1041

required :submitted_at, Time

#tracking_number ⇒ String?

The tracking number for the check shipment.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


1047
# File 'lib/increase/models/check_transfer.rb', line 1047

required :tracking_number, String, nil?: true

Instance Method Details

#to_hash ⇒ { preview_file_id: String?, submitted_address: Increase::CheckTransfer::Submission::SubmittedAddress, submitted_at: Time, tracking_number: String? }

Returns:

  • ({ preview_file_id: String?, submitted_address: Increase::CheckTransfer::Submission::SubmittedAddress, submitted_at: Time, tracking_number: String? })


727
728
729
730
731
732
# File 'sig/increase/models/check_transfer.rbs', line 727

def to_hash: -> {
  preview_file_id: String?,
  submitted_address: Increase::CheckTransfer::Submission::SubmittedAddress,
  submitted_at: Time,
  tracking_number: String?
}