Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion API_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
23fb5589c3b9c027a742408f7ac2cff1be45a926
577fcb57736b925392ea563c0284df9002c75ac9
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v2080
v2100
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ Stripe.enable_telemetry = false
### Types

In [v14.0.0](https://github.com/stripe/stripe-python/releases/tag/v7.1.0) and newer, the library provides RBI
static type annotations. See [the wiki](https://github.com/stripe/stripe-ruby/wiki/Static-Type-Annotations)
static type annotations. See [the wiki](https://github.com/stripe/stripe-ruby/wiki/Static-Type-Annotations-(with-Sorbet))
for an detailed guide.

Please note that these types are available only for static analysis and we only support RBIs at the moment.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,24 @@ def self.lookup_type
"v2.money_management.transaction.created"
end

class V2MoneyManagementTransactionCreatedEventData < ::Stripe::StripeObject
# Id of the v1 Transaction corresponding to this Transaction.
attr_reader :v1_id

def self.inner_class_types
@inner_class_types = {}
end

def self.field_remappings
@field_remappings = {}
end
end

def self.inner_class_types
@inner_class_types = { data: V2MoneyManagementTransactionCreatedEventData }
end
attr_reader :data, :related_object

# Retrieves the related object from the API. Makes an API request on every call.
def fetch_related_object
_request(
Expand All @@ -18,7 +36,6 @@ def fetch_related_object
opts: { stripe_context: context }
)
end
attr_reader :related_object
end

# Occurs when a Transaction is created.
Expand Down
2 changes: 2 additions & 0 deletions lib/stripe/object_types.rb
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,8 @@ def self.v2_object_names_to_classes
V2::Billing::PricingPlan.object_name => V2::Billing::PricingPlan,
V2::Billing::PricingPlanComponent.object_name => V2::Billing::PricingPlanComponent,
V2::Billing::PricingPlanSubscription.object_name => V2::Billing::PricingPlanSubscription,
V2::Billing::PricingPlanSubscriptionComponents.object_name =>
V2::Billing::PricingPlanSubscriptionComponents,
V2::Billing::PricingPlanVersion.object_name => V2::Billing::PricingPlanVersion,
V2::Billing::Profile.object_name => V2::Billing::Profile,
V2::Billing::RateCard.object_name => V2::Billing::RateCard,
Expand Down
6 changes: 6 additions & 0 deletions lib/stripe/params.rb
Original file line number Diff line number Diff line change
Expand Up @@ -713,6 +713,7 @@
require "stripe/params/v2/billing/pricing_plan_subscription_list_params"
require "stripe/params/v2/billing/pricing_plan_subscription_retrieve_params"
require "stripe/params/v2/billing/pricing_plan_subscription_update_params"
require "stripe/params/v2/billing/pricing_plan_subscriptions/component_retrieve_params"
require "stripe/params/v2/billing/pricing_plan_update_params"
require "stripe/params/v2/billing/pricing_plans/component_create_params"
require "stripe/params/v2/billing/pricing_plans/component_delete_params"
Expand Down Expand Up @@ -770,17 +771,22 @@
require "stripe/params/v2/core/vault/gb_bank_account_archive_params"
require "stripe/params/v2/core/vault/gb_bank_account_create_params"
require "stripe/params/v2/core/vault/gb_bank_account_initiate_confirmation_of_payee_params"
require "stripe/params/v2/core/vault/gb_bank_account_list_params"
require "stripe/params/v2/core/vault/gb_bank_account_retrieve_params"
require "stripe/params/v2/core/vault/us_bank_account_archive_params"
require "stripe/params/v2/core/vault/us_bank_account_confirm_microdeposits_params"
require "stripe/params/v2/core/vault/us_bank_account_create_params"
require "stripe/params/v2/core/vault/us_bank_account_list_params"
require "stripe/params/v2/core/vault/us_bank_account_retrieve_params"
require "stripe/params/v2/core/vault/us_bank_account_send_microdeposits_params"
require "stripe/params/v2/core/vault/us_bank_account_update_params"
require "stripe/params/v2/money_management/adjustment_list_params"
require "stripe/params/v2/money_management/adjustment_retrieve_params"
require "stripe/params/v2/money_management/financial_account_close_params"
require "stripe/params/v2/money_management/financial_account_create_params"
require "stripe/params/v2/money_management/financial_account_list_params"
require "stripe/params/v2/money_management/financial_account_retrieve_params"
require "stripe/params/v2/money_management/financial_account_update_params"
require "stripe/params/v2/money_management/financial_address_create_params"
require "stripe/params/v2/money_management/financial_address_list_params"
require "stripe/params/v2/money_management/financial_address_retrieve_params"
Expand Down
6 changes: 5 additions & 1 deletion lib/stripe/params/billing/meter_create_params.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ def initialize(event_payload_key: nil)
attr_accessor :expand
# Fields that specify how to calculate a meter event's value.
attr_accessor :value_settings
# Set of keys that will be used to group meter events by. Each key must be present in the event payload.
attr_accessor :dimension_payload_keys

def initialize(
customer_mapping: nil,
Expand All @@ -55,7 +57,8 @@ def initialize(
event_name: nil,
event_time_window: nil,
expand: nil,
value_settings: nil
value_settings: nil,
dimension_payload_keys: nil
)
@customer_mapping = customer_mapping
@default_aggregation = default_aggregation
Expand All @@ -64,6 +67,7 @@ def initialize(
@event_time_window = event_time_window
@expand = expand
@value_settings = value_settings
@dimension_payload_keys = dimension_payload_keys
end
end
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ module Billing
class MeterEventSummaryListParams < ::Stripe::RequestParams
# The customer for which to fetch event summaries.
attr_accessor :customer
# Key-value pairs used to filter meter events by dimension values. If specified, event summaries will be generated with only matching meter events.
attr_accessor :dimension_filters
# List of dimension payload keys to group by. If specified, event summaries will be grouped by the given dimension payload key values.
attr_accessor :dimension_group_by_keys
# The timestamp from when to stop aggregating meter events (exclusive). Must be aligned with minute boundaries.
attr_accessor :end_time
# A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.
Expand All @@ -23,6 +27,8 @@ class MeterEventSummaryListParams < ::Stripe::RequestParams

def initialize(
customer: nil,
dimension_filters: nil,
dimension_group_by_keys: nil,
end_time: nil,
ending_before: nil,
expand: nil,
Expand All @@ -32,6 +38,8 @@ def initialize(
value_grouping_window: nil
)
@customer = customer
@dimension_filters = dimension_filters
@dimension_group_by_keys = dimension_group_by_keys
@end_time = end_time
@ending_before = ending_before
@expand = expand
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,240 @@
module Stripe
module DelegatedCheckout
class RequestedSessionCreateParams < ::Stripe::RequestParams
class FulfillmentDetails < ::Stripe::RequestParams
class Address < ::Stripe::RequestParams
# City, district, suburb, town, or village.
attr_accessor :city
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
attr_accessor :country
# Address line 1, such as the street, PO Box, or company name.
attr_accessor :line1
# Address line 2, such as the apartment, suite, unit, or building.
attr_accessor :line2
# ZIP or postal code.
attr_accessor :postal_code
# State, county, province, or region.
attr_accessor :state

def initialize(
city: nil,
country: nil,
line1: nil,
line2: nil,
postal_code: nil,
state: nil
)
@city = city
@country = country
@line1 = line1
@line2 = line2
@postal_code = postal_code
@state = state
end
end
# Attribute for param field address
attr_accessor :address
# The customer's email address.
attr_accessor :email
# The customer's name.
attr_accessor :name
# The customer's phone number.
attr_accessor :phone

def initialize(address: nil, email: nil, name: nil, phone: nil)
@address = address
@email = email
@name = name
@phone = phone
end
end

class LineItemDetail < ::Stripe::RequestParams
# The quantity of the line item.
attr_accessor :quantity
# The SKU ID of the line item.
attr_accessor :sku_id

def initialize(quantity: nil, sku_id: nil)
@quantity = quantity
@sku_id = sku_id
end
end

class PaymentMethodData < ::Stripe::RequestParams
class BillingDetails < ::Stripe::RequestParams
class Address < ::Stripe::RequestParams
# City, district, suburb, town, or village.
attr_accessor :city
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
attr_accessor :country
# Address line 1, such as the street, PO Box, or company name.
attr_accessor :line1
# Address line 2, such as the apartment, suite, unit, or building.
attr_accessor :line2
# ZIP or postal code.
attr_accessor :postal_code
# State, county, province, or region.
attr_accessor :state

def initialize(
city: nil,
country: nil,
line1: nil,
line2: nil,
postal_code: nil,
state: nil
)
@city = city
@country = country
@line1 = line1
@line2 = line2
@postal_code = postal_code
@state = state
end
end
# The address for the billing details.
attr_accessor :address
# The email for the billing details.
attr_accessor :email
# The name for the billing details.
attr_accessor :name
# The phone for the billing details.
attr_accessor :phone

def initialize(address: nil, email: nil, name: nil, phone: nil)
@address = address
@email = email
@name = name
@phone = phone
end
end

class Card < ::Stripe::RequestParams
# The CVC of the card.
attr_accessor :cvc
# The expiration month of the card.
attr_accessor :exp_month
# The expiration year of the card.
attr_accessor :exp_year
# The number of the card.
attr_accessor :number

def initialize(cvc: nil, exp_month: nil, exp_year: nil, number: nil)
@cvc = cvc
@exp_month = exp_month
@exp_year = exp_year
@number = number
end
end
# The billing details for the payment method data.
attr_accessor :billing_details
# The card for the payment method data.
attr_accessor :card
# The type of the payment method data.
attr_accessor :type

def initialize(billing_details: nil, card: nil, type: nil)
@billing_details = billing_details
@card = card
@type = type
end
end

class RiskDetails < ::Stripe::RequestParams
class ClientDeviceMetadataDetails < ::Stripe::RequestParams
# The radar session.
attr_accessor :radar_session
# The referrer of the client device.
attr_accessor :referrer
# The remote IP address of the client device.
attr_accessor :remote_ip
# The time on page in seconds.
attr_accessor :time_on_page
# The user agent of the client device.
attr_accessor :user_agent

def initialize(
radar_session: nil,
referrer: nil,
remote_ip: nil,
time_on_page: nil,
user_agent: nil
)
@radar_session = radar_session
@referrer = referrer
@remote_ip = remote_ip
@time_on_page = time_on_page
@user_agent = user_agent
end
end
# The client device metadata details for this requested session.
attr_accessor :client_device_metadata_details

def initialize(client_device_metadata_details: nil)
@client_device_metadata_details = client_device_metadata_details
end
end

class SellerDetails < ::Stripe::RequestParams
# The network profile for the seller.
attr_accessor :network_profile

def initialize(network_profile: nil)
@network_profile = network_profile
end
end
# The currency for this requested session.
attr_accessor :currency
# The customer for this requested session.
attr_accessor :customer
# Specifies which fields in the response should be expanded.
attr_accessor :expand
# The details of the fulfillment.
attr_accessor :fulfillment_details
# The details of the line items.
attr_accessor :line_item_details
# The metadata for this requested session.
attr_accessor :metadata
# The payment method for this requested session.
attr_accessor :payment_method
# The payment method data for this requested session.
attr_accessor :payment_method_data
# The risk details for this requested session.
attr_accessor :risk_details
# The details of the seller.
attr_accessor :seller_details
# The setup future usage for this requested session.
attr_accessor :setup_future_usage
# The shared metadata for this requested session.
attr_accessor :shared_metadata

def initialize(expand: nil)
def initialize(
currency: nil,
customer: nil,
expand: nil,
fulfillment_details: nil,
line_item_details: nil,
metadata: nil,
payment_method: nil,
payment_method_data: nil,
risk_details: nil,
seller_details: nil,
setup_future_usage: nil,
shared_metadata: nil
)
@currency = currency
@customer = customer
@expand = expand
@fulfillment_details = fulfillment_details
@line_item_details = line_item_details
@metadata = metadata
@payment_method = payment_method
@payment_method_data = payment_method_data
@risk_details = risk_details
@seller_details = seller_details
@setup_future_usage = setup_future_usage
@shared_metadata = shared_metadata
end
end
end
Expand Down
Loading