Class: Sink::Resources::UndocumentedResource

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

Instance Method Summary collapse

Constructor Details

#initialize(client:) ⇒ UndocumentedResource

Returns a new instance of UndocumentedResource.

Parameters:



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

def initialize(client:)
  @client = client
end

Instance Method Details

#reissue(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/undocumented_resource.rb', line 35

def reissue(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