Skip to content

Commit

Permalink
Update generated code for v1320
Browse files Browse the repository at this point in the history
  • Loading branch information
stripe-openapi[bot] committed Oct 30, 2024
1 parent 4217591 commit c1a67e7
Show file tree
Hide file tree
Showing 7 changed files with 62 additions and 2 deletions.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1319
v1320
1 change: 1 addition & 0 deletions lib/stripe/object_types.rb
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ def self.object_names_to_classes
Issuing::CreditUnderwritingRecord.object_name => Issuing::CreditUnderwritingRecord,
Issuing::Dispute.object_name => Issuing::Dispute,
Issuing::DisputeSettlementDetail.object_name => Issuing::DisputeSettlementDetail,
Issuing::FraudLiabilityDebit.object_name => Issuing::FraudLiabilityDebit,
Issuing::PersonalizationDesign.object_name => Issuing::PersonalizationDesign,
Issuing::PhysicalBundle.object_name => Issuing::PhysicalBundle,
Issuing::Token.object_name => Issuing::Token,
Expand Down
1 change: 1 addition & 0 deletions lib/stripe/resources.rb
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@
require "stripe/resources/issuing/credit_underwriting_record"
require "stripe/resources/issuing/dispute"
require "stripe/resources/issuing/dispute_settlement_detail"
require "stripe/resources/issuing/fraud_liability_debit"
require "stripe/resources/issuing/personalization_design"
require "stripe/resources/issuing/physical_bundle"
require "stripe/resources/issuing/token"
Expand Down
26 changes: 26 additions & 0 deletions lib/stripe/resources/issuing/fraud_liability_debit.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# File generated from our OpenAPI spec
# frozen_string_literal: true

module Stripe
module Issuing
# A fraud liability debit occurs when Stripe debits a platform's account for fraud losses on Issuing transactions.
class FraudLiabilityDebit < APIResource
extend Stripe::APIOperations::List

OBJECT_NAME = "issuing.fraud_liability_debit"
def self.object_name
"issuing.fraud_liability_debit"
end

# Returns a list of Issuing FraudLiabilityDebit objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first.
def self.list(filters = {}, opts = {})
request_stripe_object(
method: :get,
path: "/v1/issuing/fraud_liability_debits",
params: filters,
opts: opts
)
end
end
end
end
1 change: 1 addition & 0 deletions lib/stripe/services.rb
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@
require "stripe/services/issuing/credit_underwriting_record_service"
require "stripe/services/issuing/dispute_service"
require "stripe/services/issuing/dispute_settlement_detail_service"
require "stripe/services/issuing/fraud_liability_debit_service"
require "stripe/services/issuing/personalization_design_service"
require "stripe/services/issuing/physical_bundle_service"
require "stripe/services/issuing/token_service"
Expand Down
30 changes: 30 additions & 0 deletions lib/stripe/services/issuing/fraud_liability_debit_service.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# File generated from our OpenAPI spec
# frozen_string_literal: true

module Stripe
module Issuing
class FraudLiabilityDebitService < StripeService
# Returns a list of Issuing FraudLiabilityDebit objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first.
def list(params = {}, opts = {})
request(
method: :get,
path: "/v1/issuing/fraud_liability_debits",
params: params,
opts: opts,
base_address: :api
)
end

# Retrieves an Issuing FraudLiabilityDebit object.
def retrieve(fraud_liability_debit, params = {}, opts = {})
request(
method: :get,
path: format("/v1/issuing/fraud_liability_debits/%<fraud_liability_debit>s", { fraud_liability_debit: CGI.escape(fraud_liability_debit) }),
params: params,
opts: opts,
base_address: :api
)
end
end
end
end
3 changes: 2 additions & 1 deletion lib/stripe/services/issuing_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

module Stripe
class IssuingService < StripeService
attr_reader :authorizations, :cards, :cardholders, :credit_underwriting_records, :disputes, :dispute_settlement_details, :personalization_designs, :physical_bundles, :tokens, :transactions
attr_reader :authorizations, :cards, :cardholders, :credit_underwriting_records, :disputes, :dispute_settlement_details, :fraud_liability_debits, :personalization_designs, :physical_bundles, :tokens, :transactions

def initialize(requestor)
super(requestor)
Expand All @@ -14,6 +14,7 @@ def initialize(requestor)
.new(@requestor)
@disputes = Stripe::Issuing::DisputeService.new(@requestor)
@dispute_settlement_details = Stripe::Issuing::DisputeSettlementDetailService.new(@requestor)
@fraud_liability_debits = Stripe::Issuing::FraudLiabilityDebitService.new(@requestor)
@personalization_designs = Stripe::Issuing::PersonalizationDesignService.new(@requestor)
@physical_bundles = Stripe::Issuing::PhysicalBundleService.new(@requestor)
@tokens = Stripe::Issuing::TokenService.new(@requestor)
Expand Down

0 comments on commit c1a67e7

Please sign in to comment.