Sha256: 01d33b3f7d3cac8f8f8873986941a96a9421d226c2df9b2a79cfb9cf35799e94

Contents?: true

Size: 274 Bytes

Versions: 9

Compression:

Stored size: 274 Bytes

Contents

module Paddle
  module Classic
    class PayLinksResource < Resource
      def generate(**params)
        response = post_request("2.0/product/generate_pay_link", body: params)

        PayLink.new(response.body["response"]) if response.success?
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
paddle-2.7.0 lib/paddle/classic/resources/pay_links.rb
paddle-2.6.0 lib/paddle/classic/resources/pay_links.rb
paddle-2.5.2 lib/paddle/classic/resources/pay_links.rb
paddle-2.5.1 lib/paddle/classic/resources/pay_links.rb
paddle-2.5.0 lib/paddle/classic/resources/pay_links.rb
paddle-2.4.1 lib/paddle/classic/resources/pay_links.rb
paddle-2.4.0 lib/paddle/classic/resources/pay_links.rb
paddle-2.3.0 lib/paddle/classic/resources/pay_links.rb
paddle-2.2.1 lib/paddle/classic/resources/pay_links.rb