• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

stripe / stripe-ruby / #5867

18 Apr 2024 09:24PM UTC coverage: 92.724% (-4.8%) from 97.485%
#5867

push

github

ramya-stripe
Bump version to 11.2.0

10067 of 10857 relevant lines covered (92.72%)

258.85 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

99.25
/lib/stripe/object_types.rb
1
# frozen_string_literal: true
2

3
# rubocop:disable Metrics/MethodLength
4
# rubocop:disable Metrics/AbcSize
5

6
module Stripe
1✔
7
  module ObjectTypes
1✔
8
    def self.object_names_to_classes
1✔
9
      {
×
10
        # data structures
11
        ListObject.object_name => ListObject,
24✔
12
        SearchResultObject.object_name => SearchResultObject,
24✔
13
        File.object_name_alt => File,
24✔
14

15
        # object classes: The beginning of the section generated from our OpenAPI spec
16
        Account.object_name => Account,
24✔
17
        AccountLink.object_name => AccountLink,
24✔
18
        AccountSession.object_name => AccountSession,
24✔
19
        ApplePayDomain.object_name => ApplePayDomain,
24✔
20
        ApplicationFee.object_name => ApplicationFee,
24✔
21
        ApplicationFeeRefund.object_name => ApplicationFeeRefund,
24✔
22
        Apps::Secret.object_name => Apps::Secret,
24✔
23
        Balance.object_name => Balance,
24✔
24
        BalanceTransaction.object_name => BalanceTransaction,
24✔
25
        BankAccount.object_name => BankAccount,
24✔
26
        Billing::Meter.object_name => Billing::Meter,
24✔
27
        Billing::MeterEvent.object_name => Billing::MeterEvent,
24✔
28
        Billing::MeterEventAdjustment.object_name => Billing::MeterEventAdjustment,
24✔
29
        Billing::MeterEventSummary.object_name => Billing::MeterEventSummary,
24✔
30
        BillingPortal::Configuration.object_name => BillingPortal::Configuration,
24✔
31
        BillingPortal::Session.object_name => BillingPortal::Session,
24✔
32
        Capability.object_name => Capability,
24✔
33
        Card.object_name => Card,
24✔
34
        CashBalance.object_name => CashBalance,
24✔
35
        Charge.object_name => Charge,
24✔
36
        Checkout::Session.object_name => Checkout::Session,
24✔
37
        Climate::Order.object_name => Climate::Order,
24✔
38
        Climate::Product.object_name => Climate::Product,
24✔
39
        Climate::Supplier.object_name => Climate::Supplier,
24✔
40
        ConfirmationToken.object_name => ConfirmationToken,
24✔
41
        CountrySpec.object_name => CountrySpec,
24✔
42
        Coupon.object_name => Coupon,
24✔
43
        CreditNote.object_name => CreditNote,
24✔
44
        CreditNoteLineItem.object_name => CreditNoteLineItem,
24✔
45
        Customer.object_name => Customer,
24✔
46
        CustomerBalanceTransaction.object_name => CustomerBalanceTransaction,
24✔
47
        CustomerCashBalanceTransaction.object_name => CustomerCashBalanceTransaction,
24✔
48
        CustomerSession.object_name => CustomerSession,
24✔
49
        Discount.object_name => Discount,
24✔
50
        Dispute.object_name => Dispute,
24✔
51
        Entitlements::ActiveEntitlement.object_name => Entitlements::ActiveEntitlement,
24✔
52
        Entitlements::Feature.object_name => Entitlements::Feature,
24✔
53
        EphemeralKey.object_name => EphemeralKey,
24✔
54
        Event.object_name => Event,
24✔
55
        ExchangeRate.object_name => ExchangeRate,
24✔
56
        File.object_name => File,
24✔
57
        FileLink.object_name => FileLink,
24✔
58
        FinancialConnections::Account.object_name => FinancialConnections::Account,
24✔
59
        FinancialConnections::AccountOwner.object_name => FinancialConnections::AccountOwner,
24✔
60
        FinancialConnections::AccountOwnership.object_name => FinancialConnections::AccountOwnership,
24✔
61
        FinancialConnections::Session.object_name => FinancialConnections::Session,
24✔
62
        FinancialConnections::Transaction.object_name => FinancialConnections::Transaction,
24✔
63
        Forwarding::Request.object_name => Forwarding::Request,
24✔
64
        FundingInstructions.object_name => FundingInstructions,
24✔
65
        Identity::VerificationReport.object_name => Identity::VerificationReport,
24✔
66
        Identity::VerificationSession.object_name => Identity::VerificationSession,
24✔
67
        Invoice.object_name => Invoice,
24✔
68
        InvoiceItem.object_name => InvoiceItem,
24✔
69
        InvoiceLineItem.object_name => InvoiceLineItem,
24✔
70
        Issuing::Authorization.object_name => Issuing::Authorization,
24✔
71
        Issuing::Card.object_name => Issuing::Card,
24✔
72
        Issuing::Cardholder.object_name => Issuing::Cardholder,
24✔
73
        Issuing::Dispute.object_name => Issuing::Dispute,
24✔
74
        Issuing::PersonalizationDesign.object_name => Issuing::PersonalizationDesign,
24✔
75
        Issuing::PhysicalBundle.object_name => Issuing::PhysicalBundle,
24✔
76
        Issuing::Token.object_name => Issuing::Token,
24✔
77
        Issuing::Transaction.object_name => Issuing::Transaction,
24✔
78
        LineItem.object_name => LineItem,
24✔
79
        LoginLink.object_name => LoginLink,
24✔
80
        Mandate.object_name => Mandate,
24✔
81
        PaymentIntent.object_name => PaymentIntent,
24✔
82
        PaymentLink.object_name => PaymentLink,
24✔
83
        PaymentMethod.object_name => PaymentMethod,
24✔
84
        PaymentMethodConfiguration.object_name => PaymentMethodConfiguration,
24✔
85
        PaymentMethodDomain.object_name => PaymentMethodDomain,
24✔
86
        Payout.object_name => Payout,
24✔
87
        Person.object_name => Person,
24✔
88
        Plan.object_name => Plan,
24✔
89
        Price.object_name => Price,
24✔
90
        Product.object_name => Product,
24✔
91
        ProductFeature.object_name => ProductFeature,
24✔
92
        PromotionCode.object_name => PromotionCode,
24✔
93
        Quote.object_name => Quote,
24✔
94
        Radar::EarlyFraudWarning.object_name => Radar::EarlyFraudWarning,
24✔
95
        Radar::ValueList.object_name => Radar::ValueList,
24✔
96
        Radar::ValueListItem.object_name => Radar::ValueListItem,
24✔
97
        Refund.object_name => Refund,
24✔
98
        Reporting::ReportRun.object_name => Reporting::ReportRun,
24✔
99
        Reporting::ReportType.object_name => Reporting::ReportType,
24✔
100
        Reversal.object_name => Reversal,
24✔
101
        Review.object_name => Review,
24✔
102
        SetupAttempt.object_name => SetupAttempt,
24✔
103
        SetupIntent.object_name => SetupIntent,
24✔
104
        ShippingRate.object_name => ShippingRate,
24✔
105
        Sigma::ScheduledQueryRun.object_name => Sigma::ScheduledQueryRun,
24✔
106
        Source.object_name => Source,
24✔
107
        SourceTransaction.object_name => SourceTransaction,
24✔
108
        Subscription.object_name => Subscription,
24✔
109
        SubscriptionItem.object_name => SubscriptionItem,
24✔
110
        SubscriptionSchedule.object_name => SubscriptionSchedule,
24✔
111
        Tax::Calculation.object_name => Tax::Calculation,
24✔
112
        Tax::CalculationLineItem.object_name => Tax::CalculationLineItem,
24✔
113
        Tax::Registration.object_name => Tax::Registration,
24✔
114
        Tax::Settings.object_name => Tax::Settings,
24✔
115
        Tax::Transaction.object_name => Tax::Transaction,
24✔
116
        Tax::TransactionLineItem.object_name => Tax::TransactionLineItem,
24✔
117
        TaxCode.object_name => TaxCode,
24✔
118
        TaxId.object_name => TaxId,
24✔
119
        TaxRate.object_name => TaxRate,
24✔
120
        Terminal::Configuration.object_name => Terminal::Configuration,
24✔
121
        Terminal::ConnectionToken.object_name => Terminal::ConnectionToken,
24✔
122
        Terminal::Location.object_name => Terminal::Location,
24✔
123
        Terminal::Reader.object_name => Terminal::Reader,
24✔
124
        TestHelpers::TestClock.object_name => TestHelpers::TestClock,
24✔
125
        Token.object_name => Token,
24✔
126
        Topup.object_name => Topup,
24✔
127
        Transfer.object_name => Transfer,
24✔
128
        Treasury::CreditReversal.object_name => Treasury::CreditReversal,
24✔
129
        Treasury::DebitReversal.object_name => Treasury::DebitReversal,
24✔
130
        Treasury::FinancialAccount.object_name => Treasury::FinancialAccount,
24✔
131
        Treasury::FinancialAccountFeatures.object_name => Treasury::FinancialAccountFeatures,
24✔
132
        Treasury::InboundTransfer.object_name => Treasury::InboundTransfer,
24✔
133
        Treasury::OutboundPayment.object_name => Treasury::OutboundPayment,
24✔
134
        Treasury::OutboundTransfer.object_name => Treasury::OutboundTransfer,
24✔
135
        Treasury::ReceivedCredit.object_name => Treasury::ReceivedCredit,
24✔
136
        Treasury::ReceivedDebit.object_name => Treasury::ReceivedDebit,
24✔
137
        Treasury::Transaction.object_name => Treasury::Transaction,
24✔
138
        Treasury::TransactionEntry.object_name => Treasury::TransactionEntry,
24✔
139
        UsageRecord.object_name => UsageRecord,
24✔
140
        UsageRecordSummary.object_name => UsageRecordSummary,
24✔
141
        WebhookEndpoint.object_name => WebhookEndpoint,
24✔
142
        # object classes: The end of the section generated from our OpenAPI spec
143
      }
144
    end
145
  end
146
end
147

148
# rubocop:enable Metrics/AbcSize
149
# rubocop:enable Metrics/MethodLength
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc