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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
12 changes: 5 additions & 7 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ Layout/LineLength:
- "lib/stripe/resources/**/*.rb"
- "lib/stripe/services/**/*.rb"
- "lib/stripe/events/**/*.rb"
- "lib/stripe/params/**/*.rb"
- "test/**/*.rb"

Lint/MissingSuper:
Exclude:
- "lib/stripe/resources/**/*.rb"
- "lib/stripe/services/**/*.rb"
- "lib/stripe/params/**/*.rb"
- "test/stripe/request_params_test.rb"

Metrics/AbcSize:
Expand Down Expand Up @@ -92,20 +92,18 @@ Metrics/ParameterLists:
- "lib/stripe/api_operations/request.rb"
- "lib/stripe/stripe_object.rb"
- "lib/stripe/stripe_client.rb"
- "lib/stripe/resources/**/*.rb"
- "lib/stripe/services/**/*.rb"
- "lib/stripe/params/**/*.rb"

Naming/MethodParameterName:
# We have many parameters that are less than 3 characters for tax codes
Exclude:
- "lib/stripe/resources/**/*.rb"
- "lib/stripe/services/**/*.rb"
- "lib/stripe/params/**/*.rb"

Naming/VariableNumber:
# We use a variety of variable number syntaxes
Exclude:
- "lib/stripe/resources/**/*.rb"
- "lib/stripe/services/**/*.rb"
- "lib/stripe/params/**/*.rb"

Style/AccessModifierDeclarations:
EnforcedStyle: inline
Expand Down
1 change: 1 addition & 0 deletions lib/stripe.rb
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
# Named API resources
require "stripe/resources"
require "stripe/services"
require "stripe/params"

# OAuth
require "stripe/oauth"
Expand Down
588 changes: 588 additions & 0 deletions lib/stripe/params.rb

Large diffs are not rendered by default.

13 changes: 13 additions & 0 deletions lib/stripe/params/account_capability_list_params.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# File generated from our OpenAPI spec
# frozen_string_literal: true

module Stripe
class AccountCapabilityListParams < Stripe::RequestParams
# Specifies which fields in the response should be expanded.
attr_accessor :expand

def initialize(expand: nil)
@expand = expand
end
end
end
13 changes: 13 additions & 0 deletions lib/stripe/params/account_capability_retrieve_params.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# File generated from our OpenAPI spec
# frozen_string_literal: true

module Stripe
class AccountCapabilityRetrieveParams < Stripe::RequestParams
# Specifies which fields in the response should be expanded.
attr_accessor :expand

def initialize(expand: nil)
@expand = expand
end
end
end
18 changes: 18 additions & 0 deletions lib/stripe/params/account_capability_update_params.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# File generated from our OpenAPI spec
# frozen_string_literal: true

module Stripe
class AccountCapabilityUpdateParams < Stripe::RequestParams
# Specifies which fields in the response should be expanded.
attr_accessor :expand
# To request a new capability for an account, pass true. There can be a delay before the requested capability becomes active. If the capability has any activation requirements, the response includes them in the `requirements` arrays.
#
# If a capability isn't permanent, you can remove it from the account by passing false. Some capabilities are permanent after they've been requested. Attempting to remove a permanent capability returns an error.
attr_accessor :requested

def initialize(expand: nil, requested: nil)
@expand = expand
@requested = requested
end
end
end
Loading