Class: MoneyMover::Dwolla::ReceiveOnlyBusinessCustomer
- Inherits:
-
ReceiveOnlyCustomer
- Object
- ApiResource
- Customer
- ReceiveOnlyCustomer
- MoneyMover::Dwolla::ReceiveOnlyBusinessCustomer
- Defined in:
- lib/money_mover/dwolla/models/receive_only_business_customer.rb
Constant Summary
Constants inherited from Customer
Instance Attribute Summary
Attributes inherited from Customer
#address1, #address2, #businessClassification, #businessName, #businessType, #city, #created, #dateOfBirth, #doingBusinessAs, #ein, #email, #firstName, #ipAddress, #lastName, #phone, #postalCode, #ssn, #state, #status, #type, #website
Attributes inherited from ApiResource
#_embedded, #_links, #attrs, #id, #resource_location
Instance Method Summary collapse
Methods inherited from Customer
Methods inherited from ApiResource
#destroy, fetch, #initialize, #save
Constructor Details
This class inherits a constructor from MoneyMover::Dwolla::ApiResource
Instance Method Details
#create_params ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/money_mover/dwolla/models/receive_only_business_customer.rb', line 4 def create_params create_attrs = { firstName: firstName, lastName: lastName, email: email, } create_attrs[:businessName] = businessName if businessName.present? create_attrs[:ipAddress] = ipAddress if ipAddress.present? create_attrs[:type] = 'receive-only' create_attrs end |