class Cryptopay::CustomerUpdateParams
Constants
- ENCODER
Public Class Methods
Builds the object from hash @param [Hash] attributes Model attributes in the form of hash @return [Cryptopay::CustomerUpdateParams] Returns the model itself
# File lib/cryptopay/models/customer_update_params.rb, line 53 def self.build_from_hash(data) attributes = ENCODER.build_from_hash(data) new(attributes) end
Initializes the object @param [Hash] attributes Model attributes in the form of hash
# File lib/cryptopay/models/customer_update_params.rb, line 24 def initialize(attributes = {}) @attributes = ENCODER.sanitize(attributes) end
Public Instance Methods
The customer’s currency in your system
# File lib/cryptopay/models/customer_update_params.rb, line 29 def currency @attributes[:currency] end
# File lib/cryptopay/models/customer_update_params.rb, line 64 def inspect "#<#{self.class}:0x#{object_id.to_s(16)}> JSON: " + JSON.pretty_generate(to_hash) end
Show invalid properties with the reasons. Usually used together with valid? @return Array for valid properties with the reasons
# File lib/cryptopay/models/customer_update_params.rb, line 40 def invalid_properties [] end
This object allows you specify 1 cryptocurrency address for each type of supported cryptocurrencies i.e. BTC, ETH, XRP, LTC and BCH. In case Cryptopay
detects a High-Risk transaction, such transaction will not be processed. Instead, it will be sent to the address specified for respective cryptocurrency. If you do not specify any addresses here, High-Risk payments will be put on hold
# File lib/cryptopay/models/customer_update_params.rb, line 34 def refund_addresses @attributes[:refund_addresses] end
Returns the object in the form of hash @return [Hash] Returns the object in the form of hash
# File lib/cryptopay/models/customer_update_params.rb, line 60 def to_hash ENCODER.to_hash(@attributes) end
Check to see if the all the properties in the model are valid @return true if the model is valid
# File lib/cryptopay/models/customer_update_params.rb, line 46 def valid? invalid_properties.empty? end