Sha256: e49050f341e8a46c31aae5a0a3e75725cab68d4c7b7aefb619dff0979a47a129

Contents?: true

Size: 297 Bytes

Versions: 9

Compression:

Stored size: 297 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.7.0 lib/paddle/models/pricing_preview.rb
paddle-2.6.0 lib/paddle/models/pricing_preview.rb
paddle-2.5.2 lib/paddle/models/pricing_preview.rb
paddle-2.5.1 lib/paddle/models/pricing_preview.rb
paddle-2.5.0 lib/paddle/models/pricing_preview.rb
paddle-2.4.1 lib/paddle/models/pricing_preview.rb
paddle-2.4.0 lib/paddle/models/pricing_preview.rb
paddle-2.3.0 lib/paddle/models/pricing_preview.rb
paddle-2.2.1 lib/paddle/models/pricing_preview.rb