lib/stripe/util.rb in stripe-3.5.2 vs lib/stripe/util.rb in stripe-3.5.3
- old
+ new
@@ -10,14 +10,18 @@
:stripe_version
].freeze
# Options that should be copyable from one StripeObject to another
# including options that may be internal.
- OPTS_COPYABLE = (OPTS_USER_SPECIFIED + Set[:api_base]).freeze
+ OPTS_COPYABLE = (
+ OPTS_USER_SPECIFIED + Set[:api_base]
+ ).freeze
# Options that should be persisted between API requests. This includes
# client, which is an object containing an HTTP client to reuse.
- OPTS_KEYS_TO_PERSIST = (OPTS_USER_SPECIFIED + Set[:client]).freeze
+ OPTS_PERSISTABLE = (
+ OPTS_USER_SPECIFIED + Set[:client] - Set[:idempotency_key]
+ ).freeze
def self.objects_to_ids(h)
case h
when APIResource
h.id