Class: Io::Flow::V0::Models::PaymentRequestReviewCheckType

Inherits:
Object
  • Object
show all
Defined in:
lib/flow_commerce/flow_api_v0_client.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(value) ⇒ PaymentRequestReviewCheckType

Returns a new instance of PaymentRequestReviewCheckType.



24519
24520
24521
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 24519

def initialize(value)
  @value = HttpClient::Preconditions.assert_class('value', value, String)
end

Instance Attribute Details

#valueObject (readonly)

Returns the value of attribute value.



24517
24518
24519
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 24517

def value
  @value
end

Class Method Details

.apply(value) ⇒ Object

Returns the instance of PaymentRequestReviewCheckType for this value, creating a new instance for an unknown value



24524
24525
24526
24527
24528
24529
24530
24531
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 24524

def PaymentRequestReviewCheckType.apply(value)
  if value.instance_of?(PaymentRequestReviewCheckType)
    value
  else
    HttpClient::Preconditions.assert_class_or_nil('value', value, String)
    value.nil? ? nil : (from_string(value) || PaymentRequestReviewCheckType.new(value))
  end
end

.fraud_previous_chargebacksObject

Previous transactions on the account have received fraud chargebacks.



24568
24569
24570
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 24568

def PaymentRequestReviewCheckType.fraud_previous_chargebacks
  @@_fraud_previous_chargebacks ||= PaymentRequestReviewCheckType.new('fraud_previous_chargebacks')
end

.fraud_risky_velocityObject

The purchase frequency or amount are unusually high given previous reputation, and is a high risk of fraud.



24563
24564
24565
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 24563

def PaymentRequestReviewCheckType.fraud_risky_velocity
  @@_fraud_risky_velocity ||= PaymentRequestReviewCheckType.new('fraud_risky_velocity')
end

.fraud_suspicious_behaviorObject

Suspicious behavior such as irregular behavioral data signals.



24549
24550
24551
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 24549

def PaymentRequestReviewCheckType.fraud_suspicious_behavior
  @@_fraud_suspicious_behavior ||= PaymentRequestReviewCheckType.new('fraud_suspicious_behavior')
end

.fraud_suspicious_past_activityObject

The customer is associated with past suspicious behavior on the partner network. For example, association with a past chargeback at your store or another merchant in our partner network, suspicious use of payment methods, shipping addresses, etc.



24557
24558
24559
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 24557

def PaymentRequestReviewCheckType.fraud_suspicious_past_activity
  @@_fraud_suspicious_past_activity ||= PaymentRequestReviewCheckType.new('fraud_suspicious_past_activity')
end

.from_string(value) ⇒ Object

Returns the instance of PaymentRequestReviewCheckType for this value, or nil if not found



24534
24535
24536
24537
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 24534

def PaymentRequestReviewCheckType.from_string(value)
  HttpClient::Preconditions.assert_class('value', value, String)
  PaymentRequestReviewCheckType.ALL.find { |v| v.value == value }
end

.order_domesticObject

The order is a domestic order.



24588
24589
24590
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 24588

def PaymentRequestReviewCheckType.order_domestic
  @@_order_domestic ||= PaymentRequestReviewCheckType.new('order_domestic')
end

.order_missing_informationObject

The order is missing information.



24583
24584
24585
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 24583

def PaymentRequestReviewCheckType.order_missing_information
  @@_order_missing_information ||= PaymentRequestReviewCheckType.new('order_missing_information')
end

.order_restricted_goodsObject

The order contains restricted goods.



24573
24574
24575
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 24573

def PaymentRequestReviewCheckType.order_restricted_goods
  @@_order_restricted_goods ||= PaymentRequestReviewCheckType.new('order_restricted_goods')
end

.order_unsupported_destinationObject

The destination is not supported.



24578
24579
24580
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 24578

def PaymentRequestReviewCheckType.order_unsupported_destination
  @@_order_unsupported_destination ||= PaymentRequestReviewCheckType.new('order_unsupported_destination')
end

.restricted_party_screeningObject

The customer is on the restricted party list.



24544
24545
24546
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 24544

def PaymentRequestReviewCheckType.restricted_party_screening
  @@_restricted_party_screening ||= PaymentRequestReviewCheckType.new('restricted_party_screening')
end

Instance Method Details

#to_hashObject



24592
24593
24594
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 24592

def to_hash
  value
end