Sha256: ebe9d2e36f345c26c85b8e05bff58e79b3307b5ae5cfaf0c0b16c835438ce0fb
Contents?: true
Size: 1.04 KB
Versions: 7
Compression:
Stored size: 1.04 KB
Contents
# typed: true # frozen_string_literal: true module Mercadopago ## # This class will allow you to charge your customers through our web form from any device in a simple, fast and secure way. # [Click here for more infos](https://www.mercadopago.com.br/developers/en/guides/online-payments/checkout-pro/introduction) class Preference < MPBase def get(preference_id, request_options: nil) _get(uri: "/checkout/preferences/#{preference_id}", request_options: request_options) end def create(preference_data, request_options: nil) raise TypeError, 'Param preference_data must be a Hash' unless preference_data.is_a?(Hash) _post(uri: '/checkout/preferences', data: preference_data, request_options: request_options) end def update(preference_id, preference_data, request_options: nil) raise TypeError, 'Param preference_data must be a Hash' unless preference_data.is_a?(Hash) _put(uri: "/checkout/preferences/#{preference_id}", data: preference_data, request_options: request_options) end end end
Version data entries
7 entries across 7 versions & 1 rubygems