lib/genesis_ruby/api/requests/wpf/create.rb in genesis_ruby-0.1.3 vs lib/genesis_ruby/api/requests/wpf/create.rb in genesis_ruby-0.1.4
- old
+ new
@@ -13,11 +13,11 @@
include Mixins::Requests::AddressInfoAttributes
include Mixins::Requests::Financial::AsyncAttributes
include Mixins::Requests::Financial::NotificationAttributes
include Mixins::Requests::Financial::PendingPaymentAttributes
include Mixins::Requests::Financial::Threeds::Version2::WpfAttributes
- include Mixins::Requests::Financial::Cards::Recurring::RecurringTypeAttributes
+ include Mixins::Requests::Financial::Cards::AccountOwnerAttributes
include Mixins::Requests::Financial::Cards::Recurring::RecurringCategoryAttributes
include Mixins::Requests::Financial::DynamicDescriptorAttributes
include Mixins::Requests::Financial::RiskAttributes
include Mixins::Requests::Financial::Business::BusinessAttributes
@@ -58,20 +58,10 @@
allowed: [sca_exemptions::LOW_VALUE, sca_exemptions::LOW_RISK],
value: value.to_s.empty? ? nil : value.to_s.downcase,
allow_empty: true
end
- # Specifies the recurring type of transaction
- def recurring_type=(value)
- allowed_values = [
- GenesisRuby::Api::Constants::Transactions::Parameters::Recurring::Types::INITIAL,
- GenesisRuby::Api::Constants::Transactions::Parameters::Recurring::Types::MANAGED
- ]
-
- allowed_options attribute: __method__, allowed: allowed_values, value: value, allow_empty: true
- end
-
protected
# Load base configuration
def init_configuration
init_xml_configuration
@@ -114,13 +104,13 @@
sca_params: {
sca_exemption: sca_exemption
},
threeds_v2_params: threeds_v2_wpf_attributes_structure,
web_payment_form_id: web_payment_form_id,
- recurring_type: recurring_type,
recurring_category: recurring_category,
dynamic_descriptor_params: dynamic_descriptor_structure,
- risk_params: risk_parameters_structure
+ risk_params: risk_parameters_structure,
+ account_owner: account_owner_attributes_structure
}
}
end
private