Class: Sink::Resources::MethodConfig

Inherits:
Object
  • Object
show all
Defined in:
lib/sink/resources/method_config.rb

Instance Method Summary collapse

Constructor Details

#initialize(client:) ⇒ MethodConfig

Returns a new instance of MethodConfig.

Parameters:



7
8
9
# File 'lib/sink/resources/method_config.rb', line 7

def initialize(client:)
  @client = client
end

Instance Method Details

#should_not_show_up_in_api_docs(card_token, params = {}, opts = {}) ⇒ Sink::Models::Card

Initiate print and shipment of a duplicate card.

Only applies to cards of type `PHYSICAL` [beta].

Parameters:

  • card_token (String)
  • params (Hash{Symbol => Object}) (defaults to: {})

    Attributes to send in this request. @option params [String, nil] :product_id Specifies the configuration (e.g. physical card art) that the card should be

    manufactured with, and only applies to cards of type `PHYSICAL` [beta]. This
    must be configured with Lithic before use.
    

    @option params [Symbol, ShippingMethod, nil] :shipping_method Shipping method for the card. Use of options besides ‘STANDARD` require

    additional permissions.
    
    - `STANDARD` - USPS regular mail or similar international option, with no
      tracking
    - `STANDARD_WITH_TRACKING` - USPS regular mail or similar international option,
      with tracking
    - `EXPEDITED` - FedEx Standard Overnight or similar international option, with
      tracking
    

    @option params [Sink::Models::ShippingAddress, nil] :shipping_address If omitted, the previous shipping address will be used.

  • opts (Hash, Sink::RequestOptions) (defaults to: {})

    Options to specify HTTP behaviour for this request.

Returns:



35
36
37
38
39
40
41
42
43
44
# File 'lib/sink/resources/method_config.rb', line 35

def should_not_show_up_in_api_docs(card_token, params = {}, opts = {})
  req = {
    method: :post,
    path: "/cards/#{card_token}/reissue",
    body: params,
    headers: {"Content-Type" => "application/json"},
    model: Sink::Models::Card
  }
  @client.request(req, opts)
end

#skipped_tests_all(id, opts = {}) ⇒ Sink::Models::MethodConfigSkippedTestsAllResponse

Used to test skipping generated unit tests.

Parameters:

  • id (String)
  • opts (Hash, Sink::RequestOptions) (defaults to: {})

    Options to specify HTTP behaviour for this request.

Returns:



52
53
54
55
56
57
58
59
# File 'lib/sink/resources/method_config.rb', line 52

def skipped_tests_all(id, opts = {})
  req = {
    method: :get,
    path: "/method_config/skipped_tests/#{id}",
    model: Sink::Models::MethodConfigSkippedTestsAllResponse
  }
  @client.request(req, opts)
end

#skipped_tests_go(id, opts = {}) ⇒ Sink::Models::MethodConfigSkippedTestsGoResponse

Used to test skipping generated unit tests.

Parameters:

  • id (String)
  • opts (Hash, Sink::RequestOptions) (defaults to: {})

    Options to specify HTTP behaviour for this request.

Returns:



67
68
69
70
71
72
73
74
# File 'lib/sink/resources/method_config.rb', line 67

def skipped_tests_go(id, opts = {})
  req = {
    method: :get,
    path: "/method_config/skipped_tests/#{id}",
    model: Sink::Models::MethodConfigSkippedTestsGoResponse
  }
  @client.request(req, opts)
end

#skipped_tests_java(id, opts = {}) ⇒ Sink::Models::MethodConfigSkippedTestsJavaResponse

Used to test skipping generated unit tests.

Parameters:

  • id (String)
  • opts (Hash, Sink::RequestOptions) (defaults to: {})

    Options to specify HTTP behaviour for this request.

Returns:



82
83
84
85
86
87
88
89
# File 'lib/sink/resources/method_config.rb', line 82

def skipped_tests_java(id, opts = {})
  req = {
    method: :get,
    path: "/method_config/skipped_tests/#{id}",
    model: Sink::Models::MethodConfigSkippedTestsJavaResponse
  }
  @client.request(req, opts)
end

#skipped_tests_kotlin(id, opts = {}) ⇒ Sink::Models::MethodConfigSkippedTestsKotlinResponse

Used to test skipping generated unit tests.

Parameters:

  • id (String)
  • opts (Hash, Sink::RequestOptions) (defaults to: {})

    Options to specify HTTP behaviour for this request.

Returns:



97
98
99
100
101
102
103
104
# File 'lib/sink/resources/method_config.rb', line 97

def skipped_tests_kotlin(id, opts = {})
  req = {
    method: :get,
    path: "/method_config/skipped_tests/#{id}",
    model: Sink::Models::MethodConfigSkippedTestsKotlinResponse
  }
  @client.request(req, opts)
end

#skipped_tests_node(id, opts = {}) ⇒ Sink::Models::MethodConfigSkippedTestsNodeResponse

Used to test skipping generated unit tests.

Parameters:

  • id (String)
  • opts (Hash, Sink::RequestOptions) (defaults to: {})

    Options to specify HTTP behaviour for this request.

Returns:



112
113
114
115
116
117
118
119
# File 'lib/sink/resources/method_config.rb', line 112

def skipped_tests_node(id, opts = {})
  req = {
    method: :get,
    path: "/method_config/skipped_tests/#{id}",
    model: Sink::Models::MethodConfigSkippedTestsNodeResponse
  }
  @client.request(req, opts)
end

#skipped_tests_node_and_python(id, opts = {}) ⇒ Sink::Models::MethodConfigSkippedTestsNodeAndPythonResponse

Used to test skipping generated unit tests.

Parameters:

  • id (String)
  • opts (Hash, Sink::RequestOptions) (defaults to: {})

    Options to specify HTTP behaviour for this request.

Returns:



127
128
129
130
131
132
133
134
# File 'lib/sink/resources/method_config.rb', line 127

def skipped_tests_node_and_python(id, opts = {})
  req = {
    method: :get,
    path: "/method_config/skipped_tests/#{id}",
    model: Sink::Models::MethodConfigSkippedTestsNodeAndPythonResponse
  }
  @client.request(req, opts)
end

#skipped_tests_python(id, opts = {}) ⇒ Sink::Models::MethodConfigSkippedTestsPythonResponse

Used to test skipping generated unit tests.

Parameters:

  • id (String)
  • opts (Hash, Sink::RequestOptions) (defaults to: {})

    Options to specify HTTP behaviour for this request.

Returns:



142
143
144
145
146
147
148
149
# File 'lib/sink/resources/method_config.rb', line 142

def skipped_tests_python(id, opts = {})
  req = {
    method: :get,
    path: "/method_config/skipped_tests/#{id}",
    model: Sink::Models::MethodConfigSkippedTestsPythonResponse
  }
  @client.request(req, opts)
end

#skipped_tests_ruby(id, opts = {}) ⇒ Sink::Models::MethodConfigSkippedTestsRubyResponse

Used to test skipping generated unit tests.

Parameters:

  • id (String)
  • opts (Hash, Sink::RequestOptions) (defaults to: {})

    Options to specify HTTP behaviour for this request.

Returns:



157
158
159
160
161
162
163
164
# File 'lib/sink/resources/method_config.rb', line 157

def skipped_tests_ruby(id, opts = {})
  req = {
    method: :get,
    path: "/method_config/skipped_tests/#{id}",
    model: Sink::Models::MethodConfigSkippedTestsRubyResponse
  }
  @client.request(req, opts)
end