Class: Stripe::StripeService
- Inherits:
-
Object
- Object
- Stripe::StripeService
- Defined in:
- lib/stripe/stripe_service.rb
Direct Known Subclasses
AccountCapabilityService, AccountExternalAccountService, AccountLinkService, AccountLoginLinkService, AccountPersonService, AccountService, AccountSessionService, ApplePayDomainService, ApplicationFeeRefundService, ApplicationFeeService, Apps::SecretService, AppsService, BalanceService, BalanceTransactionService, Billing::AlertService, Billing::CreditBalanceSummaryService, Billing::CreditBalanceTransactionService, Billing::CreditGrantService, Billing::MeterEventAdjustmentService, Billing::MeterEventService, Billing::MeterEventSummaryService, Billing::MeterService, BillingPortal::ConfigurationService, BillingPortal::SessionService, BillingPortalService, BillingService, ChargeService, Checkout::SessionLineItemService, Checkout::SessionService, CheckoutService, Climate::OrderService, Climate::ProductService, Climate::SupplierService, ClimateService, ConfirmationTokenService, CountrySpecService, CouponService, CreditNoteLineItemService, CreditNotePreviewLinesService, CreditNoteService, CustomerBalanceTransactionService, CustomerCashBalanceService, CustomerCashBalanceTransactionService, CustomerFundingInstructionsService, CustomerPaymentMethodService, CustomerPaymentSourceService, CustomerService, CustomerSessionService, CustomerTaxIdService, DisputeService, Entitlements::ActiveEntitlementService, Entitlements::FeatureService, EntitlementsService, EphemeralKeyService, EventService, ExchangeRateService, FileLinkService, FileService, FinancialConnections::AccountOwnerService, FinancialConnections::AccountService, FinancialConnections::SessionService, FinancialConnections::TransactionService, FinancialConnectionsService, Forwarding::RequestService, ForwardingService, Identity::VerificationReportService, Identity::VerificationSessionService, IdentityService, InvoiceItemService, InvoiceLineItemService, InvoiceRenderingTemplateService, InvoiceService, InvoiceUpcomingLinesService, Issuing::AuthorizationService, Issuing::CardService, Issuing::CardholderService, Issuing::DisputeService, Issuing::PersonalizationDesignService, Issuing::PhysicalBundleService, Issuing::TokenService, Issuing::TransactionService, IssuingService, MandateService, OAuthService, PaymentIntentService, PaymentLinkLineItemService, PaymentLinkService, PaymentMethodConfigurationService, PaymentMethodDomainService, PaymentMethodService, PayoutService, PlanService, PriceService, ProductFeatureService, ProductService, PromotionCodeService, QuoteComputedUpfrontLineItemsService, QuoteLineItemService, QuoteService, Radar::EarlyFraudWarningService, Radar::ValueListItemService, Radar::ValueListService, RadarService, RefundService, Reporting::ReportRunService, Reporting::ReportTypeService, ReportingService, ReviewService, SetupAttemptService, SetupIntentService, ShippingRateService, Stripe::Sigma::ScheduledQueryRunService, SigmaService, SourceService, SourceTransactionService, SubscriptionItemService, SubscriptionItemUsageRecordService, SubscriptionItemUsageRecordSummaryService, SubscriptionScheduleService, SubscriptionService, Tax::CalculationLineItemService, Tax::CalculationService, Tax::RegistrationService, Tax::SettingsService, Tax::TransactionLineItemService, Tax::TransactionService, TaxCodeService, TaxIdService, TaxRateService, TaxService, Terminal::ConfigurationService, Terminal::ConnectionTokenService, Terminal::LocationService, Terminal::ReaderService, TerminalService, TestHelpers::ConfirmationTokenService, TestHelpers::CustomerService, TestHelpers::Issuing::AuthorizationService, TestHelpers::Issuing::CardService, TestHelpers::Issuing::PersonalizationDesignService, TestHelpers::Issuing::TransactionService, TestHelpers::IssuingService, TestHelpers::RefundService, TestHelpers::Terminal::ReaderService, TestHelpers::TerminalService, TestHelpers::TestClockService, TestHelpers::Treasury::InboundTransferService, TestHelpers::Treasury::OutboundPaymentService, TestHelpers::Treasury::OutboundTransferService, TestHelpers::Treasury::ReceivedCreditService, TestHelpers::Treasury::ReceivedDebitService, TestHelpers::TreasuryService, TestHelpersService, TokenService, TopupService, TransferReversalService, TransferService, Treasury::CreditReversalService, Treasury::DebitReversalService, Treasury::FinancialAccountFeaturesService, Treasury::FinancialAccountService, Treasury::InboundTransferService, Treasury::OutboundPaymentService, Treasury::OutboundTransferService, Treasury::ReceivedCreditService, Treasury::ReceivedDebitService, Treasury::TransactionEntryService, Treasury::TransactionService, TreasuryService, V1Services, V2::Billing::MeterEventAdjustmentService, V2::Billing::MeterEventService, V2::Billing::MeterEventSessionService, V2::Billing::MeterEventStreamService, V2::BillingService, V2::Core::EventDestinationService, V2::Core::EventService, V2::CoreService, V2Services, WebhookEndpointService
Instance Method Summary collapse
-
#initialize(requestor) ⇒ StripeService
constructor
Initializes a new StripeService.
- #request(method:, path:, base_address:, params: {}, opts: {}) ⇒ Object
- #request_stream(method:, path:, base_address:, params: {}, opts: {}, &read_body_chunk_block) ⇒ Object
Constructor Details
#initialize(requestor) ⇒ StripeService
Initializes a new StripeService
7 8 9 |
# File 'lib/stripe/stripe_service.rb', line 7 def initialize(requestor) @requestor = requestor end |
Instance Method Details
#request(method:, path:, base_address:, params: {}, opts: {}) ⇒ Object
11 12 13 14 15 16 17 18 19 |
# File 'lib/stripe/stripe_service.rb', line 11 def request(method:, path:, base_address:, params: {}, opts: {}) @requestor.execute_request( method, path, base_address, params: params, opts: RequestOptions.extract_opts_from_hash(opts) ) end |
#request_stream(method:, path:, base_address:, params: {}, opts: {}, &read_body_chunk_block) ⇒ Object
21 22 23 24 25 26 27 28 29 30 |
# File 'lib/stripe/stripe_service.rb', line 21 def request_stream(method:, path:, base_address:, params: {}, opts: {}, &read_body_chunk_block) @requestor.execute_request_stream( method, path, base_address, params: params, opts: RequestOptions.extract_opts_from_hash(opts), &read_body_chunk_block ) end |