- Accept multiple receivers for each instruction.
- Can set a fixed value (e.g. R$ 50,00).
- Can set a percentage value (e.g. 10%).
- Define which one will take the fees.
- Accept payments to any MoIP users, even those without API keys.
- Re-releasing 0.3.0 after some Rubygems issues.
- Add dependency of active_model gem for validations.
- Try always to store the plain value of attributes. While the previous version would require you to provide phones in the
"(51)93040-5060"
format, now works even with"051930405060"
. - Payer accepts address_state and address_country downcased.
- CreditCard accept a valid string date as owner_birthday.
- Extract conversions of attributes' formats to a new Formatter class.
- Prevent use of CreditCardPayment#to_json with a invalid CreditCard.
- Prevent use of Instruction#to_xml with invalid attributes by itself or a invalid Payer.
New validations:
- CreditCard
- Require a logo and a security_code.
- Validate length of owner_phone (accepts 8 and 9 digit phones with its DDD code).
- Validate length of security_code (American Express has 4 digits, others 3).
- Validate format of expiration_date using
%m/%y
. - Limit logos in the available at AVAILABLE_LOGOS constant.
- Instruction
- Require an id, payment_reason, values and a payer.
- Payer
- Require and id, name, email, address_street, address_street_number, address_neighbourhood, address_city, address_state, address_country, address_cep and an address_phone.
- Validate length of address_state in 2 chars.
- Validate length of address_country in 3 chars.
- Validate length of address_cep in 8 chars.
- Validate length of address_phone (accepts 8 and 9 digit phones with its DDD code).
- Deprecate owner_rg attribute of MyMoip::CreditCard; you should provide a owner_cpf from now on. Should explain issues with Visa's risk analysis.
- Request's log messages moved to debug level.
- Make CreditCard class accept string and symbol logos.
- Create MyMoip::CreditCard::AVAILABLE_LOGOS constant.
- Standardise Request#api_call parameters.
- Fix American Express logo format expected by Moip.
- Remove .rvmrc
- CreditCardPayment's initialization can now receive a hash of options.
- lib/requests folder created.
- Requests has methods to return its response id.
- Explicitly require order for Requests classes.
- Bugfix related to explicitly require MyMoip class being needed.
- Update production url from
https://desenvolvedor.moip.com.br
tohttps://www.moip.com.br
.
- First version of the gem.