class VertexClient::Payload::TaxArea
Public Instance Methods
body()
click to toggle source
# File lib/vertex_client/payloads/tax_area.rb, line 9 def body { tax_area_lookup: { postal_address: transform_customer(params)[:destination] } } end
validate!()
click to toggle source
# File lib/vertex_client/payloads/tax_area.rb, line 5 def validate! raise VertexClient::ValidationError.new('At least give a value') if values_empty? end
values_empty?()
click to toggle source
# File lib/vertex_client/payloads/tax_area.rb, line 17 def values_empty? params.values.all?(&:empty?) end