Class: Increase::Resources::Simulations::PhysicalCards
- Inherits:
-
Object
- Object
- Increase::Resources::Simulations::PhysicalCards
- Defined in:
- lib/increase/resources/simulations/physical_cards.rb
Instance Method Summary collapse
-
#advance_shipment(physical_card_id, params = {}, opts = {}) ⇒ Increase::Models::PhysicalCard
This endpoint allows you to simulate advancing the shipment status of a Physical Card, to simulate e.g., that a physical card was attempted shipped but then failed delivery.
-
#initialize(client:) ⇒ PhysicalCards
constructor
A new instance of PhysicalCards.
Constructor Details
#initialize(client:) ⇒ PhysicalCards
Returns a new instance of PhysicalCards.
7 8 9 |
# File 'lib/increase/resources/simulations/physical_cards.rb', line 7 def initialize(client:) @client = client end |
Instance Method Details
#advance_shipment(physical_card_id, params = {}, opts = {}) ⇒ Increase::Models::PhysicalCard
This endpoint allows you to simulate advancing the shipment status of a Physical Card, to simulate e.g., that a physical card was attempted shipped but then failed delivery.
23 24 25 26 27 28 29 30 |
# File 'lib/increase/resources/simulations/physical_cards.rb', line 23 def advance_shipment(physical_card_id, params = {}, opts = {}) req = {} req[:method] = :post req[:path] = "/simulations/physical_cards/#{physical_card_id}/advance_shipment" req[:body] = params req[:model] = Increase::Models::PhysicalCard @client.request(req, opts) end |