Skip to content

Commit b672669

Browse files
committed
Add expand to allowed_params
1 parent 860d0b2 commit b672669

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/stripe_mock/request_handlers/subscriptions.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ def create_subscription(route, method_url, params, headers)
106106
customer[:default_source] = new_card[:id]
107107
end
108108

109-
allowed_params = %w(customer application_fee_percent coupon items metadata plan quantity source tax_percent trial_end trial_period_days current_period_start created prorate billing_cycle_anchor billing days_until_due idempotency_key enable_incomplete_payments cancel_at_period_end default_tax_rates payment_behavior pending_invoice_item_interval default_payment_method collection_method on_behalf_of transfer_data, expand)
109+
allowed_params = %w(customer application_fee_percent coupon items metadata plan quantity source tax_percent trial_end trial_period_days current_period_start created prorate billing_cycle_anchor billing days_until_due idempotency_key enable_incomplete_payments cancel_at_period_end default_tax_rates payment_behavior pending_invoice_item_interval default_payment_method collection_method on_behalf_of transfer_data expand)
110110
unknown_params = params.keys - allowed_params.map(&:to_sym)
111111
if unknown_params.length > 0
112112
raise Stripe::InvalidRequestError.new("Received unknown parameter: #{unknown_params.join}", unknown_params.first.to_s, http_status: 400)

0 commit comments

Comments
 (0)