<commit_before>require 'open-uri'

module Mollie
  module API
    module Resource
      class Customers
        class Subscriptions < Base
          @parent_id = nil

          def getResourceObject
            Mollie::API::Object::Subscription
          end

          def getResourceName
            customer_id = URI::encode(@parent_id)
            "customers/#{@parent_id}/subscriptions"
          end

          def with(customer)
            @parent_id = customer.id
            self
          end
        end
      end
    end
  end
end<commit_msg>Use encoded version of customer_id for subscriptions<commit_after>require 'open-uri'

module Mollie
  module API
    module Resource
      class Customers
        class Subscriptions < Base
          @parent_id = nil

          def getResourceObject
            Mollie::API::Object::Subscription
          end

          def getResourceName
            customer_id = URI::encode(@parent_id)
            "customers/#{customer_id}/subscriptions"
          end

          def with(customer)
            @parent_id = customer.id
            self
          end
        end
      end
    end
  end
end
{'fraction_non_alphanumeric': 0.058260869565217394, 'fraction_numerical': 0.0, 'mean_word_length': 1.6099773242630386, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5319293', 'n_tokens_mistral': 301, 'n_tokens_neox': 294, 'n_words': 77}