mangopay-v4 4.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (214) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +30 -0
  3. data/.rspec +4 -0
  4. data/.rubocop.yml +2 -0
  5. data/.travis.yml +13 -0
  6. data/Gemfile +2 -0
  7. data/LICENSE +20 -0
  8. data/README.md +380 -0
  9. data/bin/mangopay +9 -0
  10. data/lib/mangopay.rb +133 -0
  11. data/lib/mangopay/api/api.rb +9 -0
  12. data/lib/mangopay/api/api_methods.rb +137 -0
  13. data/lib/mangopay/api/auth_token_manager.rb +173 -0
  14. data/lib/mangopay/api/http_client.rb +325 -0
  15. data/lib/mangopay/api/service/bank_accounts.rb +146 -0
  16. data/lib/mangopay/api/service/cards.rb +152 -0
  17. data/lib/mangopay/api/service/client_wallets.rb +89 -0
  18. data/lib/mangopay/api/service/clients.rb +68 -0
  19. data/lib/mangopay/api/service/dispute_documents.rb +158 -0
  20. data/lib/mangopay/api/service/disputes.rb +187 -0
  21. data/lib/mangopay/api/service/e_money.rb +42 -0
  22. data/lib/mangopay/api/service/events.rb +47 -0
  23. data/lib/mangopay/api/service/hooks.rb +93 -0
  24. data/lib/mangopay/api/service/kyc_documents.rb +153 -0
  25. data/lib/mangopay/api/service/mandates.rb +142 -0
  26. data/lib/mangopay/api/service/oauth_tokens.rb +25 -0
  27. data/lib/mangopay/api/service/pay_ins.rb +260 -0
  28. data/lib/mangopay/api/service/pay_outs.rb +54 -0
  29. data/lib/mangopay/api/service/pre_authorizations.rb +69 -0
  30. data/lib/mangopay/api/service/refunds.rb +62 -0
  31. data/lib/mangopay/api/service/reports.rb +151 -0
  32. data/lib/mangopay/api/service/repudiations.rb +32 -0
  33. data/lib/mangopay/api/service/responses.rb +102 -0
  34. data/lib/mangopay/api/service/settlement_transfers.rb +55 -0
  35. data/lib/mangopay/api/service/transactions.rb +183 -0
  36. data/lib/mangopay/api/service/transfers.rb +54 -0
  37. data/lib/mangopay/api/service/ubo_declarations.rb +70 -0
  38. data/lib/mangopay/api/service/users.rb +163 -0
  39. data/lib/mangopay/api/service/wallets.rb +99 -0
  40. data/lib/mangopay/api/uri_provider.rb +35 -0
  41. data/lib/mangopay/common/json_tag_converter.rb +68 -0
  42. data/lib/mangopay/common/jsonifier.rb +249 -0
  43. data/lib/mangopay/common/log_provider.rb +34 -0
  44. data/lib/mangopay/common/rate_limit_interval.rb +17 -0
  45. data/lib/mangopay/common/read_only_fields.rb +27 -0
  46. data/lib/mangopay/common/response_error.rb +61 -0
  47. data/lib/mangopay/common/sort_direction.rb +15 -0
  48. data/lib/mangopay/common/sort_field.rb +13 -0
  49. data/lib/mangopay/common/template_url_options.rb +9 -0
  50. data/lib/mangopay/configuration.rb +39 -0
  51. data/lib/mangopay/environment.rb +66 -0
  52. data/lib/mangopay/model/address.rb +27 -0
  53. data/lib/mangopay/model/declared_ubo.rb +21 -0
  54. data/lib/mangopay/model/dispute_reason.rb +15 -0
  55. data/lib/mangopay/model/document_page_consult.rb +15 -0
  56. data/lib/mangopay/model/e_money.rb +18 -0
  57. data/lib/mangopay/model/entity/account/bank_account.rb +26 -0
  58. data/lib/mangopay/model/entity/account/ca_bank_account.rb +27 -0
  59. data/lib/mangopay/model/entity/account/gb_bank_account.rb +21 -0
  60. data/lib/mangopay/model/entity/account/iban_bank_account.rb +21 -0
  61. data/lib/mangopay/model/entity/account/other_bank_account.rb +24 -0
  62. data/lib/mangopay/model/entity/account/us_bank_account.rb +24 -0
  63. data/lib/mangopay/model/entity/card.rb +45 -0
  64. data/lib/mangopay/model/entity/card_registration.rb +43 -0
  65. data/lib/mangopay/model/entity/client.rb +63 -0
  66. data/lib/mangopay/model/entity/client_wallet.rb +23 -0
  67. data/lib/mangopay/model/entity/dispute.rb +50 -0
  68. data/lib/mangopay/model/entity/dispute_document.rb +29 -0
  69. data/lib/mangopay/model/entity/entity_base.rb +18 -0
  70. data/lib/mangopay/model/entity/hook.rb +26 -0
  71. data/lib/mangopay/model/entity/kyc_document.rb +28 -0
  72. data/lib/mangopay/model/entity/mandate.rb +51 -0
  73. data/lib/mangopay/model/entity/pay_in/bank_wire_direct_pay_in.rb +22 -0
  74. data/lib/mangopay/model/entity/pay_in/card_direct_pay_in.rb +33 -0
  75. data/lib/mangopay/model/entity/pay_in/card_pre_authorized_pay_in.rb +13 -0
  76. data/lib/mangopay/model/entity/pay_in/card_web_pay_in.rb +40 -0
  77. data/lib/mangopay/model/entity/pay_in/direct_debit_direct_pay_in.rb +23 -0
  78. data/lib/mangopay/model/entity/pay_in/direct_debit_web_pay_in.rb +38 -0
  79. data/lib/mangopay/model/entity/pay_in/pay_in.rb +16 -0
  80. data/lib/mangopay/model/entity/pay_out.rb +22 -0
  81. data/lib/mangopay/model/entity/pre_authorization.rb +68 -0
  82. data/lib/mangopay/model/entity/refund.rb +18 -0
  83. data/lib/mangopay/model/entity/report.rb +51 -0
  84. data/lib/mangopay/model/entity/repudiation.rb +18 -0
  85. data/lib/mangopay/model/entity/settlement_transfer.rb +17 -0
  86. data/lib/mangopay/model/entity/transaction.rb +52 -0
  87. data/lib/mangopay/model/entity/transfer.rb +13 -0
  88. data/lib/mangopay/model/entity/ubo_declaration.rb +32 -0
  89. data/lib/mangopay/model/entity/user/legal_user.rb +53 -0
  90. data/lib/mangopay/model/entity/user/natural_user.rb +50 -0
  91. data/lib/mangopay/model/entity/user/user.rb +18 -0
  92. data/lib/mangopay/model/entity/wallet.rb +28 -0
  93. data/lib/mangopay/model/enum/account_type.rb +24 -0
  94. data/lib/mangopay/model/enum/card_status.rb +15 -0
  95. data/lib/mangopay/model/enum/card_type.rb +33 -0
  96. data/lib/mangopay/model/enum/card_validity.rb +19 -0
  97. data/lib/mangopay/model/enum/country_iso.rb +759 -0
  98. data/lib/mangopay/model/enum/culture_code.rb +44 -0
  99. data/lib/mangopay/model/enum/currency_iso.rb +552 -0
  100. data/lib/mangopay/model/enum/declared_ubo_refused_reason_type.rb +16 -0
  101. data/lib/mangopay/model/enum/declared_ubo_status.rb +18 -0
  102. data/lib/mangopay/model/enum/deposit_type.rb +15 -0
  103. data/lib/mangopay/model/enum/direct_debit_type.rb +13 -0
  104. data/lib/mangopay/model/enum/dispute_doc_refused_reason_type.rb +25 -0
  105. data/lib/mangopay/model/enum/dispute_document_type.rb +23 -0
  106. data/lib/mangopay/model/enum/dispute_reason_type.rb +33 -0
  107. data/lib/mangopay/model/enum/dispute_status.rb +21 -0
  108. data/lib/mangopay/model/enum/dispute_type.rb +15 -0
  109. data/lib/mangopay/model/enum/document_status.rb +21 -0
  110. data/lib/mangopay/model/enum/download_format.rb +11 -0
  111. data/lib/mangopay/model/enum/event_type.rb +74 -0
  112. data/lib/mangopay/model/enum/funds_type.rb +15 -0
  113. data/lib/mangopay/model/enum/hook_status.rb +13 -0
  114. data/lib/mangopay/model/enum/hook_validity.rb +15 -0
  115. data/lib/mangopay/model/enum/income_range.rb +21 -0
  116. data/lib/mangopay/model/enum/kyc_doc_refused_reason_type.rb +37 -0
  117. data/lib/mangopay/model/enum/kyc_document_type.rb +19 -0
  118. data/lib/mangopay/model/enum/kyc_level.rb +13 -0
  119. data/lib/mangopay/model/enum/legal_person_type.rb +15 -0
  120. data/lib/mangopay/model/enum/mandate_culture_code.rb +23 -0
  121. data/lib/mangopay/model/enum/mandate_execution_type.rb +11 -0
  122. data/lib/mangopay/model/enum/mandate_scheme.rb +13 -0
  123. data/lib/mangopay/model/enum/mandate_status.rb +24 -0
  124. data/lib/mangopay/model/enum/mandate_type.rb +11 -0
  125. data/lib/mangopay/model/enum/natural_user_capacity.rb +15 -0
  126. data/lib/mangopay/model/enum/pay_in_execution_type.rb +18 -0
  127. data/lib/mangopay/model/enum/pay_in_payment_type.rb +21 -0
  128. data/lib/mangopay/model/enum/pay_out_payment_type.rb +11 -0
  129. data/lib/mangopay/model/enum/payment_status.rb +21 -0
  130. data/lib/mangopay/model/enum/person_type.rb +15 -0
  131. data/lib/mangopay/model/enum/platform_type.rb +23 -0
  132. data/lib/mangopay/model/enum/pre_authorization_execution_type.rb +11 -0
  133. data/lib/mangopay/model/enum/pre_authorization_status.rb +18 -0
  134. data/lib/mangopay/model/enum/refund_reason_type.rb +21 -0
  135. data/lib/mangopay/model/enum/report_status.rb +17 -0
  136. data/lib/mangopay/model/enum/report_type.rb +13 -0
  137. data/lib/mangopay/model/enum/secure_mode.rb +16 -0
  138. data/lib/mangopay/model/enum/transaction_nature.rb +17 -0
  139. data/lib/mangopay/model/enum/transaction_status.rb +15 -0
  140. data/lib/mangopay/model/enum/transaction_type.rb +15 -0
  141. data/lib/mangopay/model/enum/ubo_declaration_refused_reason_type.rb +19 -0
  142. data/lib/mangopay/model/enum/ubo_declaration_status.rb +21 -0
  143. data/lib/mangopay/model/event.rb +18 -0
  144. data/lib/mangopay/model/model.rb +194 -0
  145. data/lib/mangopay/model/money.rb +17 -0
  146. data/lib/mangopay/model/pay_in_web_extended_view.rb +31 -0
  147. data/lib/mangopay/model/refund_reason.rb +15 -0
  148. data/lib/mangopay/model/report_filter.rb +83 -0
  149. data/lib/mangopay/model/request/cancel_request.rb +16 -0
  150. data/lib/mangopay/model/request/complete_registration_request.rb +13 -0
  151. data/lib/mangopay/model/request/currency_request.rb +13 -0
  152. data/lib/mangopay/model/request/deactivation_request.rb +10 -0
  153. data/lib/mangopay/model/request/filter_request.rb +38 -0
  154. data/lib/mangopay/model/request/submit_document_request.rb +14 -0
  155. data/lib/mangopay/model/request/submit_ubo_declaration_request.rb +14 -0
  156. data/lib/mangopay/model/request/upload_file_request.rb +9 -0
  157. data/lib/mangopay/model/response_replica.rb +27 -0
  158. data/lib/mangopay/util/custom_formatter.rb +12 -0
  159. data/lib/mangopay/util/custom_logger.rb +34 -0
  160. data/lib/mangopay/util/enum.rb +52 -0
  161. data/lib/mangopay/util/file_encoder.rb +16 -0
  162. data/lib/mangopay/util/non_instantiable.rb +6 -0
  163. data/lib/mangopay/util/storage_strategy.rb +10 -0
  164. data/lib/mangopay/util/void_logger.rb +6 -0
  165. data/mangopay.gemspec +32 -0
  166. data/spec/context/address_context.rb +25 -0
  167. data/spec/context/bank_account_context.rb +138 -0
  168. data/spec/context/card_context.rb +46 -0
  169. data/spec/context/client_context.rb +45 -0
  170. data/spec/context/dispute_context.rb +37 -0
  171. data/spec/context/dispute_document_context.rb +20 -0
  172. data/spec/context/hook_context.rb +16 -0
  173. data/spec/context/kyc_document_context.rb +23 -0
  174. data/spec/context/mandate_context.rb +27 -0
  175. data/spec/context/pay_in_context.rb +225 -0
  176. data/spec/context/pay_out_context.rb +39 -0
  177. data/spec/context/pre_authorization_context.rb +41 -0
  178. data/spec/context/refund_context.rb +33 -0
  179. data/spec/context/report_context.rb +22 -0
  180. data/spec/context/repudiation_context.rb +19 -0
  181. data/spec/context/settlement_transfer_context.rb +28 -0
  182. data/spec/context/transfer_context.rb +51 -0
  183. data/spec/context/ubo_declaration_context.rb +25 -0
  184. data/spec/context/user_context.rb +83 -0
  185. data/spec/context/wallet_context.rb +53 -0
  186. data/spec/mangopay/bank_accounts_spec.rb +229 -0
  187. data/spec/mangopay/cards_spec.rb +135 -0
  188. data/spec/mangopay/client_wallets_spec.rb +148 -0
  189. data/spec/mangopay/clients_spec.rb +55 -0
  190. data/spec/mangopay/configuration_spec.rb +126 -0
  191. data/spec/mangopay/dispute_documents_spec.rb +174 -0
  192. data/spec/mangopay/disputes_spec.rb +265 -0
  193. data/spec/mangopay/e_money_spec.rb +38 -0
  194. data/spec/mangopay/events_spec.rb +50 -0
  195. data/spec/mangopay/hooks_spec.rb +71 -0
  196. data/spec/mangopay/kyc_documents_spec.rb +180 -0
  197. data/spec/mangopay/mandates_spec.rb +219 -0
  198. data/spec/mangopay/oauth_tokens_spec.rb +41 -0
  199. data/spec/mangopay/pay_ins_spec.rb +181 -0
  200. data/spec/mangopay/pay_outs_spec.rb +39 -0
  201. data/spec/mangopay/pre_authorizations_spec.rb +58 -0
  202. data/spec/mangopay/refunds_spec.rb +40 -0
  203. data/spec/mangopay/reports_spec.rb +121 -0
  204. data/spec/mangopay/responses_spec.rb +295 -0
  205. data/spec/mangopay/settlement_transfers_spec.rb +37 -0
  206. data/spec/mangopay/transactions_spec.rb +233 -0
  207. data/spec/mangopay/transfers_spec.rb +38 -0
  208. data/spec/mangopay/ubo_declarations_spec.rb +65 -0
  209. data/spec/mangopay/users_spec.rb +146 -0
  210. data/spec/mangopay/wallets_spec.rb +104 -0
  211. data/spec/resources/logo.png +0 -0
  212. data/spec/resources/test_pdf.pdf +0 -0
  213. data/spec/spec_helper.rb +72 -0
  214. metadata +349 -0
@@ -0,0 +1,38 @@
1
+ require_relative '../context/transfer_context'
2
+ require_relative '../../lib/mangopay/api/service/transfers'
3
+
4
+ describe MangoApi::Transfers do
5
+ include_context 'transfer_context'
6
+
7
+ describe '.create' do
8
+
9
+ context 'given a valid object' do
10
+ transfer = TRANSFER_DATA
11
+
12
+ it 'creates the transfer entity' do
13
+ created = MangoApi::Transfers.create transfer
14
+
15
+ expect(created).to be_kind_of MangoModel::Transfer
16
+ expect(created.id).not_to be_nil
17
+ debited = created.debited_funds.amount
18
+ fees = created.fees.amount
19
+ credited = created.credited_funds.amount
20
+ expect(debited - fees == credited).to be_truthy
21
+ expect(its_the_same_transfer(transfer, created)).to be_truthy
22
+ end
23
+ end
24
+ end
25
+
26
+ context "given an existing entity's ID" do
27
+ created = TRANSFER_PERSISTED
28
+ id = created.id
29
+
30
+ it 'retrieves the corresponding entity' do
31
+ retrieved = MangoApi::Transfers.get id
32
+
33
+ expect(retrieved).to be_kind_of MangoModel::Transfer
34
+ expect(retrieved.id).to eq id
35
+ expect(its_the_same_transfer(created, retrieved)).to be_truthy
36
+ end
37
+ end
38
+ end
@@ -0,0 +1,65 @@
1
+ require_relative '../../lib/mangopay/api/service/ubo_declarations'
2
+ require_relative '../context/ubo_declaration_context'
3
+ require_relative '../../lib/mangopay/model/enum/ubo_declaration_status'
4
+
5
+ describe MangoApi::UboDeclarations do
6
+ include_context 'ubo_declaration_context'
7
+
8
+ describe '.create' do
9
+
10
+ context 'given a valid object' do
11
+ ubo_decl = UBO_DECLARATION_DATA
12
+
13
+ it 'creates the UBO declaration entity' do
14
+ created = MangoApi::UboDeclarations.create(ubo_decl, LEGAL_USER_PERSISTED.id)
15
+
16
+ expect(created).to be_kind_of MangoModel::UboDeclaration
17
+ expect(created.status).to be MangoModel::UboDeclarationStatus::CREATED
18
+ expect(created.user_id).to eq LEGAL_USER_PERSISTED.id
19
+ created.declared_ubos.each do |ubo|
20
+ expect(ubo).to be_kind_of MangoModel::DeclaredUbo
21
+ expect(ubo.status).to be MangoModel::DeclaredUboStatus::CREATED
22
+ end
23
+ end
24
+ end
25
+ end
26
+
27
+ describe '.update' do
28
+
29
+ context 'given a valid object' do
30
+ created = UBO_DECLARATION_PERSISTED
31
+ natural_user = NATURAL_USER_DATA
32
+ natural_user.capacity = MangoModel::NaturalUserCapacity::DECLARATIVE
33
+ decl_user = MangoApi::Users.create natural_user
34
+ created.declared_ubos = [decl_user.id]
35
+
36
+ it 'updates the corresponding entity' do
37
+ updated = MangoApi::UboDeclarations.update created
38
+
39
+ expect(updated).to be_kind_of MangoModel::UboDeclaration
40
+ expect(updated.id).to eq created.id
41
+ expect(updated.declared_ubos.length).to eq created.declared_ubos.length
42
+ updated.declared_ubos.each do |ubo|
43
+ expect(ubo).to be_kind_of MangoModel::DeclaredUbo
44
+ expect(created.declared_ubos).to include ubo.user_id
45
+ end
46
+ end
47
+ end
48
+ end
49
+
50
+ describe '.submit' do
51
+
52
+ context "given an existing entity's ID" do
53
+ created = UBO_DECLARATION_PERSISTED
54
+ id = created.id
55
+
56
+ it 'submits the corresponding entity for approval' do
57
+ submitted = MangoApi::UboDeclarations.submit id
58
+
59
+ expect(submitted).to be_kind_of MangoModel::UboDeclaration
60
+ expect(submitted.id).to eq id
61
+ expect(submitted.status).to be MangoModel::UboDeclarationStatus::VALIDATION_ASKED
62
+ end
63
+ end
64
+ end
65
+ end
@@ -0,0 +1,146 @@
1
+ require_relative '../context/user_context'
2
+ require_relative '../../lib/mangopay/api/service/users'
3
+ require_relative '../../lib/mangopay/common/sort_direction'
4
+ require_relative '../../lib/mangopay/common/sort_field'
5
+
6
+ describe MangoApi::Users do
7
+ include_context 'user_context'
8
+
9
+ describe '.create' do
10
+
11
+ describe '#Natural' do
12
+ context 'given a valid object' do
13
+ user = NATURAL_USER_DATA
14
+
15
+ it 'creates the natural user entity' do
16
+ created = persist_user user
17
+
18
+ expect(created).to be_kind_of MangoModel::NaturalUser
19
+ expect(created.id).not_to be_nil
20
+ expect(its_the_same_user(user, created)).to be_truthy
21
+ end
22
+ end
23
+ end
24
+
25
+ describe '#Legal' do
26
+ context 'given a valid object' do
27
+ user = LEGAL_USER_DATA
28
+
29
+ it 'creates the legal user entity' do
30
+ persisted = persist_user user
31
+
32
+ expect(persisted).to be_kind_of MangoModel::LegalUser
33
+ expect(persisted.id).not_to be_nil
34
+ expect(its_the_same_user(user, persisted)).to be_truthy
35
+ end
36
+ end
37
+ end
38
+ end
39
+
40
+ describe '.update' do
41
+ updated_value = 'Updated'.freeze
42
+
43
+ describe '#Natural' do
44
+ context 'given a valid object' do
45
+ created = NATURAL_USER_PERSISTED
46
+ created.first_name = updated_value
47
+
48
+ it 'updates the corresponding entity' do
49
+ updated = MangoApi::Users.update created
50
+
51
+ expect(updated).to be_kind_of MangoModel::NaturalUser
52
+ expect(updated.id).to eq created.id
53
+ expect(updated.first_name).to eq updated_value
54
+ expect(its_the_same_user(created, updated)).to be_truthy
55
+ end
56
+ end
57
+ end
58
+
59
+ describe '#Legal' do
60
+ context 'given a valid object' do
61
+ created = LEGAL_USER_PERSISTED
62
+ created.name = updated_value
63
+
64
+ it 'updates the corresponding entity' do
65
+ updated = MangoApi::Users.update created
66
+
67
+ expect(updated).to be_kind_of MangoModel::LegalUser
68
+ expect(updated.id).to eq created.id
69
+ expect(updated.name).to eq updated_value
70
+ expect(its_the_same_user(created, updated)).to be_truthy
71
+ end
72
+ end
73
+ end
74
+ end
75
+
76
+ describe '.get' do
77
+
78
+ describe '#Natural' do
79
+ context "given an existing entity's ID" do
80
+ created = NATURAL_USER_PERSISTED
81
+ id = created.id
82
+
83
+ it 'retrieves the corresponding entity' do
84
+ retrieved = MangoApi::Users.get id
85
+
86
+ expect(retrieved).to be_kind_of MangoModel::NaturalUser
87
+ expect(retrieved.id).to eq id
88
+ expect(its_the_same_user(created, retrieved)).to be_truthy
89
+ end
90
+ end
91
+ end
92
+
93
+ describe '#Legal' do
94
+ context "given an existing entity's ID" do
95
+ created = LEGAL_USER_PERSISTED
96
+ id = created.id
97
+
98
+ it 'retrieves the corresponding entity' do
99
+ retrieved = MangoApi::Users.get id
100
+
101
+ expect(retrieved).to be_kind_of MangoModel::LegalUser
102
+ expect(retrieved.id).to eq id
103
+ expect(its_the_same_user(created, retrieved)).to be_truthy
104
+ end
105
+ end
106
+ end
107
+ end
108
+
109
+ describe '.all' do
110
+ default_per_page = 10
111
+
112
+ context 'not having specified filters' do
113
+ results = MangoApi::Users.all
114
+
115
+ it 'retrieves list with default parameters' do
116
+ expect(results).to be_kind_of Array
117
+ expect(results.length).to eq default_per_page
118
+ results.each do |result|
119
+ expect(result).to be_kind_of MangoModel::User
120
+ end
121
+ end
122
+ end
123
+
124
+ context 'having specified filters' do
125
+ per_page = 15
126
+ results = MangoApi::Users.all do |filter|
127
+ filter.page = 1
128
+ filter.per_page = per_page
129
+ filter.sort_field = MangoPay::SortField::CREATION_DATE
130
+ filter.sort_direction = MangoPay::SortDirection::ASC
131
+ end
132
+
133
+ it 'retrieves list according to provided parameters' do
134
+ expect(results).to be_kind_of Array
135
+ expect(results.length).to eq per_page
136
+ results.each.with_index do |result, index|
137
+ expect(result).to be_kind_of MangoModel::User
138
+ next if index == results.length - 1
139
+ first_date = result.creation_date
140
+ second_date = results[index + 1].creation_date
141
+ expect(first_date <= second_date).to be_truthy
142
+ end
143
+ end
144
+ end
145
+ end
146
+ end
@@ -0,0 +1,104 @@
1
+ require_relative '../context/wallet_context'
2
+ require_relative '../../lib/mangopay/api/service/wallets'
3
+ require_relative '../../lib/mangopay/common/sort_direction'
4
+ require_relative '../../lib/mangopay/common/sort_field'
5
+
6
+ describe MangoApi::Wallets do
7
+ include_context 'wallet_context'
8
+
9
+ describe '.create' do
10
+
11
+ context 'given a valid object' do
12
+ wallet = WALLET_DATA
13
+
14
+ it 'creates the wallet entity' do
15
+ created = persist_wallet wallet
16
+ expect(created).to be_kind_of MangoModel::Wallet
17
+ expect(created.id).not_to be_nil
18
+ expect(its_the_same_wallet(wallet, created)).to be_truthy
19
+ end
20
+ end
21
+ end
22
+
23
+ describe '.update' do
24
+ updated_value = 'Updated'.freeze
25
+
26
+ context 'given a valid object' do
27
+ created = WALLET_PERSISTED
28
+ created.description = updated_value
29
+
30
+ it 'updated the corresponding entity' do
31
+ updated = MangoApi::Wallets.update created
32
+
33
+ expect(updated).to be_kind_of MangoModel::Wallet
34
+ expect(updated.id).to eq created.id
35
+ expect(updated.description).to eq updated_value
36
+ expect(its_the_same_wallet(created, updated)).to be_truthy
37
+ end
38
+ end
39
+ end
40
+
41
+ describe '.get' do
42
+
43
+ context "given an existing entity's ID" do
44
+ wallet = WALLET_PERSISTED
45
+ id = wallet.id
46
+
47
+ it 'retrieves the corresponding entity' do
48
+ retrieved = MangoApi::Wallets.get id
49
+
50
+ expect(retrieved).to be_kind_of MangoModel::Wallet
51
+ expect(retrieved.id).to eq id
52
+ expect(its_the_same_wallet(wallet, retrieved)).to be_truthy
53
+ end
54
+ end
55
+ end
56
+
57
+ describe '.of_user' do
58
+ # prepare some test data
59
+ 10.times do
60
+ persist_wallet WALLET_DATA
61
+ end
62
+
63
+ context "given an existing user entity's ID" do
64
+ id = NATURAL_USER_PERSISTED.id
65
+
66
+ context 'not having specified filters' do
67
+ default_per_page = 10
68
+
69
+ it 'retrieves list with default parameters' do
70
+ results = MangoApi::Wallets.of_user id
71
+
72
+ expect(results).to be_kind_of Array
73
+ expect(results.length).to eq default_per_page
74
+ results.each do |result|
75
+ expect(result).to be_kind_of MangoModel::Wallet
76
+ expect(result.owners.include?(id)).to be_truthy
77
+ end
78
+ end
79
+ end
80
+
81
+ context 'having specified filters' do
82
+ per_page = 3
83
+ results = MangoApi::Wallets.of_user id do |filter|
84
+ filter.page = 1
85
+ filter.per_page = per_page
86
+ filter.sort_field = MangoPay::SortField::CREATION_DATE
87
+ filter.sort_direction = MangoPay::SortDirection::ASC
88
+ end
89
+
90
+ it 'retrieves list according to provided parameters' do
91
+ expect(results).to be_kind_of Array
92
+ expect(results.length).to eq per_page
93
+ results.each.with_index do |result, index|
94
+ expect(result).to be_kind_of MangoModel::Wallet
95
+ next if index == results.length - 1
96
+ first_date = result.creation_date
97
+ second_date = results[index + 1].creation_date
98
+ expect(first_date <= second_date).to be_truthy
99
+ end
100
+ end
101
+ end
102
+ end
103
+ end
104
+ end
Binary file
Binary file
@@ -0,0 +1,72 @@
1
+ require_relative '../lib/mangopay'
2
+
3
+ # This file was generated by the `rspec --init` command. Conventionally, all
4
+ # specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
5
+ # The generated `.rspec` file contains `--require spec_helper` which will cause
6
+ # this file to always be loaded, without a need to explicitly require it in any
7
+ # files.
8
+ #
9
+ # Given that it is always loaded, you are encouraged to keep this file as
10
+ # light-weight as possible. Requiring heavyweight dependencies from this file
11
+ # will add to the boot time of your test suite on EVERY test run, even for an
12
+ # individual file that may not need all of that loaded. Instead, consider making
13
+ # a separate helper file that requires the additional dependencies and performs
14
+ # the additional setup, and require it from the spec files that actually need
15
+ # it.
16
+ #
17
+ # See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
18
+
19
+ def reconfig_mangopay
20
+ MangoPay.configure do |config|
21
+ config.preproduction = true
22
+ config.client_id = 'sdk-unit-tests'
23
+ config.client_passphrase = 'cqFfFrWfCcb7UadHNxx2C9Lo6Djw8ZduLi7J9USTmu8bhxxpju'
24
+ # config.temp_dir = 'oauth' # uncomment to use file storage for OAuth tokens
25
+ config.http_timeout = 10_000
26
+ end
27
+ end
28
+
29
+ reconfig_mangopay
30
+
31
+ RSpec.configure do |config|
32
+
33
+ # Uncomment the +filter_run_including+ line in order to run single test cases.
34
+ # Specifying which tests to run is done by adding the :focus tag as follows:
35
+ #
36
+ # describe 'description of test which should run', :focus do
37
+ # ...
38
+ #
39
+ # config.filter_run_including focus: true
40
+
41
+ config.tty = true
42
+
43
+ # rspec-expectations config goes here. You can use an alternate
44
+ # assertion/expectation library such as wrong or the stdlib/minitest
45
+ # assertions if you prefer.
46
+ config.expect_with :rspec do |expectations|
47
+ # This option will default to `true` in RSpec 4. It makes the `description`
48
+ # and `failure_message` of custom matchers include text for helper methods
49
+ # defined using `chain`, e.g.:
50
+ # be_bigger_than(2).and_smaller_than(4).description
51
+ # # => "be bigger than 2 and smaller than 4"
52
+ # ...rather than:
53
+ # # => "be bigger than 2"
54
+ expectations.include_chain_clauses_in_custom_matcher_descriptions = true
55
+ end
56
+
57
+ # rspec-mocks config goes here. You can use an alternate test double
58
+ # library (such as bogus or mocha) by changing the `mock_with` option here.
59
+ config.mock_with :rspec do |mocks|
60
+ # Prevents you from mocking or stubbing a method that does not exist on
61
+ # a real object. This is generally recommended, and will default to
62
+ # `true` in RSpec 4.
63
+ mocks.verify_partial_doubles = true
64
+ end
65
+
66
+ # This option will default to `:apply_to_host_groups` in RSpec 4 (and will
67
+ # have no way to turn it off -- the option exists only for backwards
68
+ # compatibility in RSpec 3). It causes shared context metadata to be
69
+ # inherited by the metadata hash of host groups and examples, rather than
70
+ # triggering implicit auto-inclusion in groups with matching metadata.
71
+ config.shared_context_metadata_behavior = :apply_to_host_groups
72
+ end
metadata ADDED
@@ -0,0 +1,349 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: mangopay-v4
3
+ version: !ruby/object:Gem::Version
4
+ version: 4.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Paul Hristea
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2018-03-06 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: multi_json
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: 1.7.7
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: 1.7.7
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: 10.1.0
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: 10.1.0
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: 3.0.0
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: 3.0.0
55
+ description: |2
56
+ The mangopay Gem makes interacting with MANGOPAY Services much easier.
57
+ For any questions regarding the use of MANGOPAY's Services feel free to contact us at http://www.mangopay.com/get-started-2/
58
+ You can find more documentation about MANGOPAY Services at http://docs.mangopay.com/
59
+ email: support@mangopay.com
60
+ executables:
61
+ - mangopay
62
+ extensions: []
63
+ extra_rdoc_files: []
64
+ files:
65
+ - ".gitignore"
66
+ - ".rspec"
67
+ - ".rubocop.yml"
68
+ - ".travis.yml"
69
+ - Gemfile
70
+ - LICENSE
71
+ - README.md
72
+ - bin/mangopay
73
+ - lib/mangopay.rb
74
+ - lib/mangopay/api/api.rb
75
+ - lib/mangopay/api/api_methods.rb
76
+ - lib/mangopay/api/auth_token_manager.rb
77
+ - lib/mangopay/api/http_client.rb
78
+ - lib/mangopay/api/service/bank_accounts.rb
79
+ - lib/mangopay/api/service/cards.rb
80
+ - lib/mangopay/api/service/client_wallets.rb
81
+ - lib/mangopay/api/service/clients.rb
82
+ - lib/mangopay/api/service/dispute_documents.rb
83
+ - lib/mangopay/api/service/disputes.rb
84
+ - lib/mangopay/api/service/e_money.rb
85
+ - lib/mangopay/api/service/events.rb
86
+ - lib/mangopay/api/service/hooks.rb
87
+ - lib/mangopay/api/service/kyc_documents.rb
88
+ - lib/mangopay/api/service/mandates.rb
89
+ - lib/mangopay/api/service/oauth_tokens.rb
90
+ - lib/mangopay/api/service/pay_ins.rb
91
+ - lib/mangopay/api/service/pay_outs.rb
92
+ - lib/mangopay/api/service/pre_authorizations.rb
93
+ - lib/mangopay/api/service/refunds.rb
94
+ - lib/mangopay/api/service/reports.rb
95
+ - lib/mangopay/api/service/repudiations.rb
96
+ - lib/mangopay/api/service/responses.rb
97
+ - lib/mangopay/api/service/settlement_transfers.rb
98
+ - lib/mangopay/api/service/transactions.rb
99
+ - lib/mangopay/api/service/transfers.rb
100
+ - lib/mangopay/api/service/ubo_declarations.rb
101
+ - lib/mangopay/api/service/users.rb
102
+ - lib/mangopay/api/service/wallets.rb
103
+ - lib/mangopay/api/uri_provider.rb
104
+ - lib/mangopay/common/json_tag_converter.rb
105
+ - lib/mangopay/common/jsonifier.rb
106
+ - lib/mangopay/common/log_provider.rb
107
+ - lib/mangopay/common/rate_limit_interval.rb
108
+ - lib/mangopay/common/read_only_fields.rb
109
+ - lib/mangopay/common/response_error.rb
110
+ - lib/mangopay/common/sort_direction.rb
111
+ - lib/mangopay/common/sort_field.rb
112
+ - lib/mangopay/common/template_url_options.rb
113
+ - lib/mangopay/configuration.rb
114
+ - lib/mangopay/environment.rb
115
+ - lib/mangopay/model/address.rb
116
+ - lib/mangopay/model/declared_ubo.rb
117
+ - lib/mangopay/model/dispute_reason.rb
118
+ - lib/mangopay/model/document_page_consult.rb
119
+ - lib/mangopay/model/e_money.rb
120
+ - lib/mangopay/model/entity/account/bank_account.rb
121
+ - lib/mangopay/model/entity/account/ca_bank_account.rb
122
+ - lib/mangopay/model/entity/account/gb_bank_account.rb
123
+ - lib/mangopay/model/entity/account/iban_bank_account.rb
124
+ - lib/mangopay/model/entity/account/other_bank_account.rb
125
+ - lib/mangopay/model/entity/account/us_bank_account.rb
126
+ - lib/mangopay/model/entity/card.rb
127
+ - lib/mangopay/model/entity/card_registration.rb
128
+ - lib/mangopay/model/entity/client.rb
129
+ - lib/mangopay/model/entity/client_wallet.rb
130
+ - lib/mangopay/model/entity/dispute.rb
131
+ - lib/mangopay/model/entity/dispute_document.rb
132
+ - lib/mangopay/model/entity/entity_base.rb
133
+ - lib/mangopay/model/entity/hook.rb
134
+ - lib/mangopay/model/entity/kyc_document.rb
135
+ - lib/mangopay/model/entity/mandate.rb
136
+ - lib/mangopay/model/entity/pay_in/bank_wire_direct_pay_in.rb
137
+ - lib/mangopay/model/entity/pay_in/card_direct_pay_in.rb
138
+ - lib/mangopay/model/entity/pay_in/card_pre_authorized_pay_in.rb
139
+ - lib/mangopay/model/entity/pay_in/card_web_pay_in.rb
140
+ - lib/mangopay/model/entity/pay_in/direct_debit_direct_pay_in.rb
141
+ - lib/mangopay/model/entity/pay_in/direct_debit_web_pay_in.rb
142
+ - lib/mangopay/model/entity/pay_in/pay_in.rb
143
+ - lib/mangopay/model/entity/pay_out.rb
144
+ - lib/mangopay/model/entity/pre_authorization.rb
145
+ - lib/mangopay/model/entity/refund.rb
146
+ - lib/mangopay/model/entity/report.rb
147
+ - lib/mangopay/model/entity/repudiation.rb
148
+ - lib/mangopay/model/entity/settlement_transfer.rb
149
+ - lib/mangopay/model/entity/transaction.rb
150
+ - lib/mangopay/model/entity/transfer.rb
151
+ - lib/mangopay/model/entity/ubo_declaration.rb
152
+ - lib/mangopay/model/entity/user/legal_user.rb
153
+ - lib/mangopay/model/entity/user/natural_user.rb
154
+ - lib/mangopay/model/entity/user/user.rb
155
+ - lib/mangopay/model/entity/wallet.rb
156
+ - lib/mangopay/model/enum/account_type.rb
157
+ - lib/mangopay/model/enum/card_status.rb
158
+ - lib/mangopay/model/enum/card_type.rb
159
+ - lib/mangopay/model/enum/card_validity.rb
160
+ - lib/mangopay/model/enum/country_iso.rb
161
+ - lib/mangopay/model/enum/culture_code.rb
162
+ - lib/mangopay/model/enum/currency_iso.rb
163
+ - lib/mangopay/model/enum/declared_ubo_refused_reason_type.rb
164
+ - lib/mangopay/model/enum/declared_ubo_status.rb
165
+ - lib/mangopay/model/enum/deposit_type.rb
166
+ - lib/mangopay/model/enum/direct_debit_type.rb
167
+ - lib/mangopay/model/enum/dispute_doc_refused_reason_type.rb
168
+ - lib/mangopay/model/enum/dispute_document_type.rb
169
+ - lib/mangopay/model/enum/dispute_reason_type.rb
170
+ - lib/mangopay/model/enum/dispute_status.rb
171
+ - lib/mangopay/model/enum/dispute_type.rb
172
+ - lib/mangopay/model/enum/document_status.rb
173
+ - lib/mangopay/model/enum/download_format.rb
174
+ - lib/mangopay/model/enum/event_type.rb
175
+ - lib/mangopay/model/enum/funds_type.rb
176
+ - lib/mangopay/model/enum/hook_status.rb
177
+ - lib/mangopay/model/enum/hook_validity.rb
178
+ - lib/mangopay/model/enum/income_range.rb
179
+ - lib/mangopay/model/enum/kyc_doc_refused_reason_type.rb
180
+ - lib/mangopay/model/enum/kyc_document_type.rb
181
+ - lib/mangopay/model/enum/kyc_level.rb
182
+ - lib/mangopay/model/enum/legal_person_type.rb
183
+ - lib/mangopay/model/enum/mandate_culture_code.rb
184
+ - lib/mangopay/model/enum/mandate_execution_type.rb
185
+ - lib/mangopay/model/enum/mandate_scheme.rb
186
+ - lib/mangopay/model/enum/mandate_status.rb
187
+ - lib/mangopay/model/enum/mandate_type.rb
188
+ - lib/mangopay/model/enum/natural_user_capacity.rb
189
+ - lib/mangopay/model/enum/pay_in_execution_type.rb
190
+ - lib/mangopay/model/enum/pay_in_payment_type.rb
191
+ - lib/mangopay/model/enum/pay_out_payment_type.rb
192
+ - lib/mangopay/model/enum/payment_status.rb
193
+ - lib/mangopay/model/enum/person_type.rb
194
+ - lib/mangopay/model/enum/platform_type.rb
195
+ - lib/mangopay/model/enum/pre_authorization_execution_type.rb
196
+ - lib/mangopay/model/enum/pre_authorization_status.rb
197
+ - lib/mangopay/model/enum/refund_reason_type.rb
198
+ - lib/mangopay/model/enum/report_status.rb
199
+ - lib/mangopay/model/enum/report_type.rb
200
+ - lib/mangopay/model/enum/secure_mode.rb
201
+ - lib/mangopay/model/enum/transaction_nature.rb
202
+ - lib/mangopay/model/enum/transaction_status.rb
203
+ - lib/mangopay/model/enum/transaction_type.rb
204
+ - lib/mangopay/model/enum/ubo_declaration_refused_reason_type.rb
205
+ - lib/mangopay/model/enum/ubo_declaration_status.rb
206
+ - lib/mangopay/model/event.rb
207
+ - lib/mangopay/model/model.rb
208
+ - lib/mangopay/model/money.rb
209
+ - lib/mangopay/model/pay_in_web_extended_view.rb
210
+ - lib/mangopay/model/refund_reason.rb
211
+ - lib/mangopay/model/report_filter.rb
212
+ - lib/mangopay/model/request/cancel_request.rb
213
+ - lib/mangopay/model/request/complete_registration_request.rb
214
+ - lib/mangopay/model/request/currency_request.rb
215
+ - lib/mangopay/model/request/deactivation_request.rb
216
+ - lib/mangopay/model/request/filter_request.rb
217
+ - lib/mangopay/model/request/submit_document_request.rb
218
+ - lib/mangopay/model/request/submit_ubo_declaration_request.rb
219
+ - lib/mangopay/model/request/upload_file_request.rb
220
+ - lib/mangopay/model/response_replica.rb
221
+ - lib/mangopay/util/custom_formatter.rb
222
+ - lib/mangopay/util/custom_logger.rb
223
+ - lib/mangopay/util/enum.rb
224
+ - lib/mangopay/util/file_encoder.rb
225
+ - lib/mangopay/util/non_instantiable.rb
226
+ - lib/mangopay/util/storage_strategy.rb
227
+ - lib/mangopay/util/void_logger.rb
228
+ - mangopay.gemspec
229
+ - spec/context/address_context.rb
230
+ - spec/context/bank_account_context.rb
231
+ - spec/context/card_context.rb
232
+ - spec/context/client_context.rb
233
+ - spec/context/dispute_context.rb
234
+ - spec/context/dispute_document_context.rb
235
+ - spec/context/hook_context.rb
236
+ - spec/context/kyc_document_context.rb
237
+ - spec/context/mandate_context.rb
238
+ - spec/context/pay_in_context.rb
239
+ - spec/context/pay_out_context.rb
240
+ - spec/context/pre_authorization_context.rb
241
+ - spec/context/refund_context.rb
242
+ - spec/context/report_context.rb
243
+ - spec/context/repudiation_context.rb
244
+ - spec/context/settlement_transfer_context.rb
245
+ - spec/context/transfer_context.rb
246
+ - spec/context/ubo_declaration_context.rb
247
+ - spec/context/user_context.rb
248
+ - spec/context/wallet_context.rb
249
+ - spec/mangopay/bank_accounts_spec.rb
250
+ - spec/mangopay/cards_spec.rb
251
+ - spec/mangopay/client_wallets_spec.rb
252
+ - spec/mangopay/clients_spec.rb
253
+ - spec/mangopay/configuration_spec.rb
254
+ - spec/mangopay/dispute_documents_spec.rb
255
+ - spec/mangopay/disputes_spec.rb
256
+ - spec/mangopay/e_money_spec.rb
257
+ - spec/mangopay/events_spec.rb
258
+ - spec/mangopay/hooks_spec.rb
259
+ - spec/mangopay/kyc_documents_spec.rb
260
+ - spec/mangopay/mandates_spec.rb
261
+ - spec/mangopay/oauth_tokens_spec.rb
262
+ - spec/mangopay/pay_ins_spec.rb
263
+ - spec/mangopay/pay_outs_spec.rb
264
+ - spec/mangopay/pre_authorizations_spec.rb
265
+ - spec/mangopay/refunds_spec.rb
266
+ - spec/mangopay/reports_spec.rb
267
+ - spec/mangopay/responses_spec.rb
268
+ - spec/mangopay/settlement_transfers_spec.rb
269
+ - spec/mangopay/transactions_spec.rb
270
+ - spec/mangopay/transfers_spec.rb
271
+ - spec/mangopay/ubo_declarations_spec.rb
272
+ - spec/mangopay/users_spec.rb
273
+ - spec/mangopay/wallets_spec.rb
274
+ - spec/resources/logo.png
275
+ - spec/resources/test_pdf.pdf
276
+ - spec/spec_helper.rb
277
+ homepage: http://docs.mangopay.com/
278
+ licenses:
279
+ - MIT
280
+ metadata: {}
281
+ post_install_message:
282
+ rdoc_options: []
283
+ require_paths:
284
+ - lib
285
+ required_ruby_version: !ruby/object:Gem::Requirement
286
+ requirements:
287
+ - - ">="
288
+ - !ruby/object:Gem::Version
289
+ version: 1.9.2
290
+ required_rubygems_version: !ruby/object:Gem::Requirement
291
+ requirements:
292
+ - - ">="
293
+ - !ruby/object:Gem::Version
294
+ version: '0'
295
+ requirements: []
296
+ rubyforge_project:
297
+ rubygems_version: 2.6.13
298
+ signing_key:
299
+ specification_version: 4
300
+ summary: Ruby bindings for the version 2 of the MANGOPAY API
301
+ test_files:
302
+ - spec/context/address_context.rb
303
+ - spec/context/bank_account_context.rb
304
+ - spec/context/card_context.rb
305
+ - spec/context/client_context.rb
306
+ - spec/context/dispute_context.rb
307
+ - spec/context/dispute_document_context.rb
308
+ - spec/context/hook_context.rb
309
+ - spec/context/kyc_document_context.rb
310
+ - spec/context/mandate_context.rb
311
+ - spec/context/pay_in_context.rb
312
+ - spec/context/pay_out_context.rb
313
+ - spec/context/pre_authorization_context.rb
314
+ - spec/context/refund_context.rb
315
+ - spec/context/report_context.rb
316
+ - spec/context/repudiation_context.rb
317
+ - spec/context/settlement_transfer_context.rb
318
+ - spec/context/transfer_context.rb
319
+ - spec/context/ubo_declaration_context.rb
320
+ - spec/context/user_context.rb
321
+ - spec/context/wallet_context.rb
322
+ - spec/mangopay/bank_accounts_spec.rb
323
+ - spec/mangopay/cards_spec.rb
324
+ - spec/mangopay/client_wallets_spec.rb
325
+ - spec/mangopay/clients_spec.rb
326
+ - spec/mangopay/configuration_spec.rb
327
+ - spec/mangopay/dispute_documents_spec.rb
328
+ - spec/mangopay/disputes_spec.rb
329
+ - spec/mangopay/e_money_spec.rb
330
+ - spec/mangopay/events_spec.rb
331
+ - spec/mangopay/hooks_spec.rb
332
+ - spec/mangopay/kyc_documents_spec.rb
333
+ - spec/mangopay/mandates_spec.rb
334
+ - spec/mangopay/oauth_tokens_spec.rb
335
+ - spec/mangopay/pay_ins_spec.rb
336
+ - spec/mangopay/pay_outs_spec.rb
337
+ - spec/mangopay/pre_authorizations_spec.rb
338
+ - spec/mangopay/refunds_spec.rb
339
+ - spec/mangopay/reports_spec.rb
340
+ - spec/mangopay/responses_spec.rb
341
+ - spec/mangopay/settlement_transfers_spec.rb
342
+ - spec/mangopay/transactions_spec.rb
343
+ - spec/mangopay/transfers_spec.rb
344
+ - spec/mangopay/ubo_declarations_spec.rb
345
+ - spec/mangopay/users_spec.rb
346
+ - spec/mangopay/wallets_spec.rb
347
+ - spec/resources/logo.png
348
+ - spec/resources/test_pdf.pdf
349
+ - spec/spec_helper.rb