Class: Increase::Models::CardTokenCapabilities::Route

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/increase/models/card_token_capabilities.rb

Defined Under Namespace

Modules: CrossBorderPushTransfers, DomesticPushTransfers, Route

Instance Attribute Summary collapse

Class Method 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(cross_border_push_transfers: , domestic_push_transfers: , route: ) ⇒ Object

Parameters:



32
33
34
35
36
37
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
# File 'lib/increase/models/card_token_capabilities.rb', line 32

class Route < Increase::Internal::Type::BaseModel
  # @!attribute cross_border_push_transfers
  #   Whether you can push funds to the card using cross-border Card Push Transfers.
  #
  #   @return [Symbol, Increase::Models::CardTokenCapabilities::Route::CrossBorderPushTransfers]
  required :cross_border_push_transfers,
           enum: -> { Increase::CardTokenCapabilities::Route::CrossBorderPushTransfers }

  # @!attribute domestic_push_transfers
  #   Whether you can push funds to the card using domestic Card Push Transfers.
  #
  #   @return [Symbol, Increase::Models::CardTokenCapabilities::Route::DomesticPushTransfers]
  required :domestic_push_transfers,
           enum: -> { Increase::CardTokenCapabilities::Route::DomesticPushTransfers }

  # @!attribute route
  #   The card network route the capabilities apply to.
  #
  #   @return [Symbol, Increase::Models::CardTokenCapabilities::Route::Route]
  required :route, enum: -> { Increase::CardTokenCapabilities::Route::Route }

  # @!method initialize(cross_border_push_transfers:, domestic_push_transfers:, route:)
  #   @param cross_border_push_transfers [Symbol, Increase::Models::CardTokenCapabilities::Route::CrossBorderPushTransfers] Whether you can push funds to the card using cross-border Card Push Transfers.
  #
  #   @param domestic_push_transfers [Symbol, Increase::Models::CardTokenCapabilities::Route::DomesticPushTransfers] Whether you can push funds to the card using domestic Card Push Transfers.
  #
  #   @param route [Symbol, Increase::Models::CardTokenCapabilities::Route::Route] The card network route the capabilities apply to.

  # Whether you can push funds to the card using cross-border Card Push Transfers.
  #
  # @see Increase::Models::CardTokenCapabilities::Route#cross_border_push_transfers
  module CrossBorderPushTransfers
    extend Increase::Internal::Type::Enum

    # The capability is supported.
    SUPPORTED = :supported

    # The capability is not supported.
    NOT_SUPPORTED = :not_supported

    # @!method self.values
    #   @return [Array<Symbol>]
  end

  # Whether you can push funds to the card using domestic Card Push Transfers.
  #
  # @see Increase::Models::CardTokenCapabilities::Route#domestic_push_transfers
  module DomesticPushTransfers
    extend Increase::Internal::Type::Enum

    # The capability is supported.
    SUPPORTED = :supported

    # The capability is not supported.
    NOT_SUPPORTED = :not_supported

    # @!method self.values
    #   @return [Array<Symbol>]
  end

  # The card network route the capabilities apply to.
  #
  # @see Increase::Models::CardTokenCapabilities::Route#route
  module Route
    extend Increase::Internal::Type::Enum

    # Visa and Interlink
    VISA = :visa

    # Mastercard and Maestro
    MASTERCARD = :mastercard

    # @!method self.values
    #   @return [Array<Symbol>]
  end
end

Instance Attribute Details

#cross_border_push_transfersSymbol, Increase::Models::CardTokenCapabilities::Route::CrossBorderPushTransfers

Whether you can push funds to the card using cross-border Card Push Transfers.



37
38
# File 'lib/increase/models/card_token_capabilities.rb', line 37

required :cross_border_push_transfers,
enum: -> { Increase::CardTokenCapabilities::Route::CrossBorderPushTransfers }

#domestic_push_transfersSymbol, Increase::Models::CardTokenCapabilities::Route::DomesticPushTransfers

Whether you can push funds to the card using domestic Card Push Transfers.



44
45
# File 'lib/increase/models/card_token_capabilities.rb', line 44

required :domestic_push_transfers,
enum: -> { Increase::CardTokenCapabilities::Route::DomesticPushTransfers }

#routeSymbol, Increase::Models::CardTokenCapabilities::Route::Route

The card network route the capabilities apply to.



51
# File 'lib/increase/models/card_token_capabilities.rb', line 51

required :route, enum: -> { Increase::CardTokenCapabilities::Route::Route }

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/increase/models/card_token_capabilities.rb', line 72