Sha256: 46e8c41d6f879c57030160ec1eea21a319c5353864c65881192eb7bd8ba0dff0

Contents?: true

Size: 276 Bytes

Versions: 10

Compression:

Stored size: 276 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

10 entries across 10 versions & 1 rubygems

Version Path
paddle-2.2.0 lib/paddle/classic/resources/pay_links.rb
paddle-2.1.4 lib/paddle/classic/resources/pay_links.rb
paddle-2.1.3 lib/paddle/classic/resources/pay_links.rb
paddle-2.1.2 lib/paddle/classic/resources/pay_links.rb
paddle-2.1.1 lib/paddle/classic/resources/pay_links.rb
paddle-2.1.0 lib/paddle/classic/resources/pay_links.rb
paddle-2.0.0 lib/paddle/classic/resources/pay_links.rb
paddle-1.1.2 lib/paddle/classic/resources/pay_links.rb
paddle-1.1.1 lib/paddle/classic/resources/pay_links.rb
paddle-1.1.0 lib/paddle/classic/resources/pay_links.rb