Skip to content

Commit

Permalink
Merge upstream and update generated code for v442
Browse files Browse the repository at this point in the history
  • Loading branch information
stripe-openapi[bot] committed Aug 2, 2023
2 parents d604af0 + deeed0a commit ce925ab
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v431
v442
18 changes: 18 additions & 0 deletions lib/stripe/resources/issuing/card.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,15 @@ def self.ship_card(card, params = {}, opts = {})
)
end

def self.submit_card(card, params = {}, opts = {})
request_stripe_object(
method: :post,
path: format("/v1/test_helpers/issuing/cards/%<card>s/shipping/submit", { card: CGI.escape(card) }),
params: params,
opts: opts
)
end

def deliver_card(params = {}, opts = {})
@resource.request_stripe_object(
method: :post,
Expand Down Expand Up @@ -89,6 +98,15 @@ def ship_card(params = {}, opts = {})
opts: opts
)
end

def submit_card(params = {}, opts = {})
@resource.request_stripe_object(
method: :post,
path: format("/v1/test_helpers/issuing/cards/%<card>s/shipping/submit", { card: CGI.escape(@resource["id"]) }),
params: params,
opts: opts
)
end
end
end
end
Expand Down

0 comments on commit ce925ab

Please sign in to comment.