Skip to content

Commit

Permalink
API Updates (#1055)
Browse files Browse the repository at this point in the history
  • Loading branch information
dcr-stripe authored May 5, 2022
1 parent f3e270d commit 94d050b
Show file tree
Hide file tree
Showing 6 changed files with 72 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/stripe/object_types.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@ def self.object_names_to_classes
File::OBJECT_NAME => File,
File::OBJECT_NAME_ALT => File,
FileLink::OBJECT_NAME => FileLink,
FinancialConnections::Account::OBJECT_NAME => FinancialConnections::Account,
FinancialConnections::AccountOwner::OBJECT_NAME => FinancialConnections::AccountOwner,
FinancialConnections::AccountOwnership::OBJECT_NAME =>
FinancialConnections::AccountOwnership,
FinancialConnections::Session::OBJECT_NAME => FinancialConnections::Session,
FundingInstructions::OBJECT_NAME => FundingInstructions,
Identity::VerificationReport::OBJECT_NAME => Identity::VerificationReport,
Identity::VerificationSession::OBJECT_NAME => Identity::VerificationSession,
Expand Down
4 changes: 4 additions & 0 deletions lib/stripe/resources.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@
require "stripe/resources/exchange_rate"
require "stripe/resources/file"
require "stripe/resources/file_link"
require "stripe/resources/financial_connections/account"
require "stripe/resources/financial_connections/account_owner"
require "stripe/resources/financial_connections/account_ownership"
require "stripe/resources/financial_connections/session"
require "stripe/resources/funding_instructions"
require "stripe/resources/identity/verification_report"
require "stripe/resources/identity/verification_session"
Expand Down
31 changes: 31 additions & 0 deletions lib/stripe/resources/financial_connections/account.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# File generated from our OpenAPI spec
# frozen_string_literal: true

module Stripe
module FinancialConnections
class Account < APIResource
OBJECT_NAME = "financial_connections.account"

custom_method :disconnect, http_verb: :post
custom_method :refresh, http_verb: :post

def disconnect(params = {}, opts = {})
request_stripe_object(
method: :post,
path: resource_url + "/disconnect",
params: params,
opts: opts
)
end

def refresh(params = {}, opts = {})
request_stripe_object(
method: :post,
path: resource_url + "/refresh",
params: params,
opts: opts
)
end
end
end
end
10 changes: 10 additions & 0 deletions lib/stripe/resources/financial_connections/account_owner.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# File generated from our OpenAPI spec
# frozen_string_literal: true

module Stripe
module FinancialConnections
class AccountOwner < StripeObject
OBJECT_NAME = "financial_connections.account_owner"
end
end
end
10 changes: 10 additions & 0 deletions lib/stripe/resources/financial_connections/account_ownership.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# File generated from our OpenAPI spec
# frozen_string_literal: true

module Stripe
module FinancialConnections
class AccountOwnership < StripeObject
OBJECT_NAME = "financial_connections.account_ownership"
end
end
end
12 changes: 12 additions & 0 deletions lib/stripe/resources/financial_connections/session.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# File generated from our OpenAPI spec
# frozen_string_literal: true

module Stripe
module FinancialConnections
class Session < APIResource
extend Stripe::APIOperations::Create

OBJECT_NAME = "financial_connections.session"
end
end
end

0 comments on commit 94d050b

Please sign in to comment.