Sha256: 951791839410035f54a768fdab23bd9a645afa6a5705926cd3dbed9969d05bba

Contents?: true

Size: 299 Bytes

Versions: 9

Compression:

Stored size: 299 Bytes

Contents

module Paddle
  class PricingPreview < Object

    class << self

      def generate(items:, **params)
        attrs = {items: items}
        response = Client.post_request("pricing-preview", body: attrs.merge(params))
        PricingPreview.new(response.body["data"])
      end

    end

  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
paddle-2.2.0 lib/paddle/models/pricing_preview.rb
paddle-2.1.4 lib/paddle/models/pricing_preview.rb
paddle-2.1.3 lib/paddle/models/pricing_preview.rb
paddle-2.1.2 lib/paddle/models/pricing_preview.rb
paddle-2.1.1 lib/paddle/models/pricing_preview.rb
paddle-2.1.0 lib/paddle/models/pricing_preview.rb
paddle-2.0.0 lib/paddle/models/pricing_preview.rb
paddle-1.1.2 lib/paddle/models/pricing_preview.rb
paddle-1.1.1 lib/paddle/models/pricing_preview.rb