spec/mangopay/shared_resources.rb in mangopay-3.0.15 vs spec/mangopay/shared_resources.rb in mangopay-3.0.16

- old
+ new

@@ -38,11 +38,18 @@ MangoPay::NaturalUser.create({ Tag: 'Test natural user', Email: 'my@email.com', FirstName: 'John', LastName: 'Doe', - Address: 'Here', + Address: { + AddressLine1: 'Le Palais Royal', + AddressLine2: '8 Rue de Montpensier', + City: 'Paris', + Region: '', + PostalCode: '75001', + Country: 'FR' + }, Birthday: 1300186358, Birthplace: 'Paris', Nationality: 'FR', CountryOfResidence: 'FR', Occupation: 'Worker', @@ -53,14 +60,28 @@ let(:new_legal_user) { MangoPay::LegalUser.create({ Name: 'Super', Email: 'super@email.com', LegalPersonType: 'BUSINESS', - HeadquartersAddress: 'Here', + HeadquartersAddress: { + AddressLine1: '6 Parvis Notre-Dame', + AddressLine2: 'Pl. Jean-Paul II', + City: 'Paris', + Region: '', + PostalCode: '75004', + Country: 'FR' + }, LegalRepresentativeFirstName: 'John', LegalRepresentativeLastName: 'Doe', - LegalRepresentativeAdress: 'Here', + LegalRepresentativeAdress: { + AddressLine1: '38 Rue de Montpensier', + AddressLine2: '', + City: 'Paris', + Region: '', + PostalCode: '75001', + Country: 'FR' + }, LegalRepresentativeEmail: 'john@doe.com', LegalRepresentativeBirthday: 1300186358, LegalRepresentativeNationality: 'FR', LegalRepresentativeCountryOfResidence: 'FR', Statute: '', @@ -105,12 +126,19 @@ let(:new_bank_account) { MangoPay::BankAccount.create(new_natural_user['Id'], { Type: 'IBAN', OwnerName: 'John', - OwnerAddress: 'Here', - IBAN: 'FR76 1790 6000 3200 0833 5232 973', - BIC: 'AGRIFRPP879', + OwnerAddress: { + AddressLine1: 'Le Palais Royal', + AddressLine2: '8 Rue de Montpensier', + City: 'Paris', + Region: '', + PostalCode: '75001', + Country: 'FR' + }, + IBAN: 'FR7618829754160173622224154', + BIC: 'CMBRFR2BCME', Tag: 'Test bank account' }) } end