velopayments 2.11.73 → 2.14.90.pre.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (360) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/Makefile +7 -1
  4. data/README.md +82 -26
  5. data/docs/Address.md +5 -5
  6. data/docs/AuthApi.md +65 -0
  7. data/docs/AuthResponse.md +25 -0
  8. data/docs/AutoTopUpConfig.md +21 -0
  9. data/docs/Company.md +3 -1
  10. data/docs/CreateIndividual.md +21 -0
  11. data/docs/CreatePayee.md +3 -25
  12. data/docs/CreatePayeeAddress.md +31 -0
  13. data/docs/CreatePayeesCSVRequest.md +17 -15
  14. data/docs/CreatePayoutRequest.md +1 -1
  15. data/docs/FundingManagerApi.md +180 -10
  16. data/docs/{FundingRequest.md → FundingRequestV1.md} +2 -2
  17. data/docs/{FundingRequest2.md → FundingRequestV2.md} +2 -2
  18. data/docs/FxSummaryV3.md +35 -0
  19. data/docs/{FxSummary.md → FxSummaryV4.md} +7 -7
  20. data/docs/GetFundingsResponseAllOf.md +17 -0
  21. data/docs/GetPaymentsForPayoutResponseV3.md +23 -0
  22. data/docs/GetPaymentsForPayoutResponseV3Page.md +25 -0
  23. data/docs/GetPaymentsForPayoutResponseV3Summary.md +33 -0
  24. data/docs/GetPaymentsForPayoutResponseV4.md +23 -0
  25. data/docs/GetPaymentsForPayoutResponseV4Summary.md +33 -0
  26. data/docs/GetPayoutsResponseV3.md +23 -0
  27. data/docs/GetPayoutsResponseV3Links.md +19 -0
  28. data/docs/GetPayoutsResponseV3Page.md +25 -0
  29. data/docs/GetPayoutsResponseV3Summary.md +25 -0
  30. data/docs/GetPayoutsResponseV4.md +23 -0
  31. data/docs/Individual.md +2 -2
  32. data/docs/{PaymentAuditCurrency.md → InvitationStatus.md} +2 -2
  33. data/docs/ListPaymentsResponse.md +4 -4
  34. data/docs/ListPaymentsResponsePage.md +25 -0
  35. data/docs/ListPaymentsResponseSummary.md +25 -0
  36. data/docs/ListSourceAccountResponse.md +2 -2
  37. data/docs/ListSourceAccountResponseLinks.md +19 -0
  38. data/docs/ListSourceAccountResponsePage.md +25 -0
  39. data/docs/ListSourceAccountResponseV2.md +21 -0
  40. data/docs/ListSourceAccountResponseV2Page.md +25 -0
  41. data/docs/Notifications.md +17 -0
  42. data/docs/PagedPayeeInvitationStatusResponse.md +21 -0
  43. data/docs/Payee.md +1 -3
  44. data/docs/PayeeDelta.md +29 -0
  45. data/docs/PayeeDeltaResponse.md +21 -0
  46. data/docs/PayeeDeltaResponseLinks.md +19 -0
  47. data/docs/PayeeDeltaResponsePage.md +25 -0
  48. data/docs/PayeeInvitationApi.md +68 -5
  49. data/docs/PayeeInvitationStatus.md +1 -1
  50. data/docs/PayeeInvitationStatusResponse.md +21 -0
  51. data/docs/PayeeResponse.md +3 -3
  52. data/docs/{GetPaymentsForPayoutResponseLinks.md → PayeeResponseLinks.md} +2 -2
  53. data/docs/{GetPaymentsForPayoutResponsePage.md → PayeeResponsePage.md} +2 -2
  54. data/docs/{GetPaymentsForPayoutResponseSummary.md → PayeeResponseSummary.md} +2 -2
  55. data/docs/PayeesApi.md +61 -0
  56. data/docs/PaymentAuditCurrencyV3.md +16 -0
  57. data/docs/PaymentAuditCurrencyV4.md +16 -0
  58. data/docs/PaymentAuditServiceApi.md +302 -6
  59. data/docs/PaymentEventResponseV3.md +39 -0
  60. data/docs/{PaymentEventResponse.md → PaymentEventResponseV4.md} +8 -8
  61. data/docs/PaymentInstruction.md +6 -6
  62. data/docs/PaymentResponseV3.md +81 -0
  63. data/docs/{PaymentResponse.md → PaymentResponseV4.md} +5 -5
  64. data/docs/PayorApplicationsApi.md +1 -1
  65. data/docs/PayorBrandingResponse.md +5 -5
  66. data/docs/PayorCreateApiKeyRequest.md +3 -3
  67. data/docs/PayorCreateApiKeyResponse.md +2 -2
  68. data/docs/PayorCreateApplicationRequest.md +2 -2
  69. data/docs/PayorEmailOptOutRequest.md +1 -1
  70. data/docs/PayorFundingBankDetailsUpdate.md +3 -3
  71. data/docs/PayorLinksResponse.md +19 -0
  72. data/docs/PayorLinksResponseLinks.md +23 -0
  73. data/docs/PayorLinksResponsePayors.md +23 -0
  74. data/docs/PayorRef.md +2 -2
  75. data/docs/{Payor.md → PayorV1.md} +15 -15
  76. data/docs/PayorV2.md +49 -0
  77. data/docs/PayorsApi.md +116 -6
  78. data/docs/PayoutHistoryApi.md +81 -2
  79. data/docs/{PayoutStatus.md → PayoutStatusV3.md} +2 -2
  80. data/docs/PayoutStatusV4.md +16 -0
  81. data/docs/PayoutSummaryAuditV3.md +41 -0
  82. data/docs/{PayoutSummaryAudit.md → PayoutSummaryAuditV4.md} +9 -7
  83. data/docs/PayoutSummaryResponse.md +4 -4
  84. data/docs/QuoteFxSummary.md +10 -10
  85. data/docs/RejectedPayment.md +10 -8
  86. data/docs/SetNotificationsRequest.md +17 -0
  87. data/docs/SourceAccount.md +3 -3
  88. data/docs/SourceAccountResponse.md +11 -9
  89. data/docs/SourceAccountResponseV2.md +45 -0
  90. data/docs/SourceAccountSummaryV3.md +21 -0
  91. data/docs/SourceAccountSummaryV4.md +21 -0
  92. data/docs/SubmitPayoutApi.md +2 -2
  93. data/docs/SupportedCountry.md +2 -2
  94. data/lib/velopayments.rb +58 -18
  95. data/lib/velopayments/api/auth_api.rb +88 -0
  96. data/lib/velopayments/api/countries_api.rb +35 -17
  97. data/lib/velopayments/api/currencies_api.rb +19 -10
  98. data/lib/velopayments/api/funding_manager_api.rb +323 -69
  99. data/lib/velopayments/api/get_payout_api.rb +20 -11
  100. data/lib/velopayments/api/instruct_payout_api.rb +21 -11
  101. data/lib/velopayments/api/payee_invitation_api.rb +150 -40
  102. data/lib/velopayments/api/payees_api.rb +130 -26
  103. data/lib/velopayments/api/payment_audit_service_api.rb +481 -55
  104. data/lib/velopayments/api/payor_applications_api.rb +40 -21
  105. data/lib/velopayments/api/payors_api.rb +209 -43
  106. data/lib/velopayments/api/payout_history_api.rb +141 -21
  107. data/lib/velopayments/api/quote_payout_api.rb +20 -11
  108. data/lib/velopayments/api/submit_payout_api.rb +22 -12
  109. data/lib/velopayments/api/withdraw_payout_api.rb +21 -11
  110. data/lib/velopayments/api_client.rb +3 -4
  111. data/lib/velopayments/api_error.rb +2 -2
  112. data/lib/velopayments/configuration.rb +7 -6
  113. data/lib/velopayments/models/address.rb +2 -2
  114. data/lib/velopayments/models/auth_response.rb +242 -0
  115. data/lib/velopayments/models/auto_top_up_config.rb +222 -0
  116. data/lib/velopayments/models/challenge.rb +2 -2
  117. data/lib/velopayments/models/company.rb +39 -6
  118. data/lib/velopayments/models/create_individual.rb +249 -0
  119. data/lib/velopayments/models/create_payee.rb +7 -109
  120. data/lib/velopayments/models/create_payee_address.rb +478 -0
  121. data/lib/velopayments/models/create_payees_csv_request.rb +268 -183
  122. data/lib/velopayments/models/create_payees_csv_response.rb +2 -2
  123. data/lib/velopayments/models/create_payees_request.rb +2 -2
  124. data/lib/velopayments/models/create_payment_channel.rb +9 -15
  125. data/lib/velopayments/models/create_payout_request.rb +2 -2
  126. data/lib/velopayments/models/failed_submission.rb +2 -2
  127. data/lib/velopayments/models/funding_audit.rb +2 -2
  128. data/lib/velopayments/models/funding_event.rb +2 -2
  129. data/lib/velopayments/models/funding_event_type.rb +2 -2
  130. data/lib/velopayments/models/{funding_request.rb → funding_request_v1.rb} +5 -5
  131. data/lib/velopayments/models/{funding_request2.rb → funding_request_v2.rb} +5 -5
  132. data/lib/velopayments/models/{fx_summary.rb → fx_summary_v3.rb} +7 -7
  133. data/lib/velopayments/models/fx_summary_v4.rb +363 -0
  134. data/lib/velopayments/models/get_fundings_response.rb +3 -2
  135. data/lib/velopayments/models/get_fundings_response_all_of.rb +196 -0
  136. data/lib/velopayments/models/get_payments_for_payout_response_v3.rb +228 -0
  137. data/lib/velopayments/models/get_payments_for_payout_response_v3_page.rb +232 -0
  138. data/lib/velopayments/models/get_payments_for_payout_response_v3_summary.rb +311 -0
  139. data/lib/velopayments/models/{get_payments_for_payout_response.rb → get_payments_for_payout_response_v4.rb} +9 -9
  140. data/lib/velopayments/models/get_payments_for_payout_response_v4_summary.rb +311 -0
  141. data/lib/velopayments/models/get_payout_statistics.rb +2 -2
  142. data/lib/velopayments/models/{get_payouts_response.rb → get_payouts_response_v3.rb} +9 -9
  143. data/lib/velopayments/models/{get_payments_for_payout_response_links.rb → get_payouts_response_v3_links.rb} +5 -5
  144. data/lib/velopayments/models/{get_payments_for_payout_response_page.rb → get_payouts_response_v3_page.rb} +5 -5
  145. data/lib/velopayments/models/{get_payments_for_payout_response_summary.rb → get_payouts_response_v3_summary.rb} +5 -5
  146. data/lib/velopayments/models/get_payouts_response_v4.rb +228 -0
  147. data/lib/velopayments/models/individual.rb +6 -4
  148. data/lib/velopayments/models/individual_name.rb +2 -2
  149. data/lib/velopayments/models/invitation_status.rb +37 -0
  150. data/lib/velopayments/models/invitation_status_response.rb +2 -2
  151. data/lib/velopayments/models/invite_payee_request.rb +2 -2
  152. data/lib/velopayments/models/language.rb +2 -2
  153. data/lib/velopayments/models/list_payments_response.rb +6 -6
  154. data/lib/velopayments/models/list_payments_response_page.rb +232 -0
  155. data/lib/velopayments/models/list_payments_response_summary.rb +232 -0
  156. data/lib/velopayments/models/list_source_account_response.rb +4 -4
  157. data/lib/velopayments/models/{social.rb → list_source_account_response_links.rb} +18 -27
  158. data/lib/velopayments/models/list_source_account_response_page.rb +232 -0
  159. data/lib/velopayments/models/list_source_account_response_v2.rb +219 -0
  160. data/lib/velopayments/models/list_source_account_response_v2_page.rb +232 -0
  161. data/lib/velopayments/models/marketing_opt_in.rb +2 -2
  162. data/lib/velopayments/models/notifications.rb +196 -0
  163. data/lib/velopayments/models/ofac_status.rb +2 -2
  164. data/lib/velopayments/models/onboarded_status.rb +2 -2
  165. data/lib/velopayments/models/paged_payee_invitation_status_response.rb +219 -0
  166. data/lib/velopayments/models/paged_response.rb +2 -2
  167. data/lib/velopayments/models/paged_response_page.rb +2 -2
  168. data/lib/velopayments/models/payee.rb +6 -15
  169. data/lib/velopayments/models/payee_delta.rb +288 -0
  170. data/lib/velopayments/models/payee_delta_response.rb +219 -0
  171. data/lib/velopayments/models/payee_delta_response_links.rb +205 -0
  172. data/lib/velopayments/models/payee_delta_response_page.rb +232 -0
  173. data/lib/velopayments/models/payee_invitation_status.rb +2 -2
  174. data/lib/velopayments/models/payee_invitation_status_response.rb +224 -0
  175. data/lib/velopayments/models/payee_response.rb +5 -5
  176. data/lib/velopayments/models/payee_response_links.rb +205 -0
  177. data/lib/velopayments/models/payee_response_page.rb +232 -0
  178. data/lib/velopayments/models/payee_response_summary.rb +232 -0
  179. data/lib/velopayments/models/payee_type.rb +2 -2
  180. data/lib/velopayments/models/{payment_audit_currency.rb → payment_audit_currency_v3.rb} +5 -5
  181. data/lib/velopayments/models/payment_audit_currency_v4.rb +37 -0
  182. data/lib/velopayments/models/payment_channel.rb +2 -2
  183. data/lib/velopayments/models/payment_channel_country.rb +2 -2
  184. data/lib/velopayments/models/payment_channel_rule.rb +2 -2
  185. data/lib/velopayments/models/payment_channel_rules_response.rb +2 -2
  186. data/lib/velopayments/models/{payment_event_response.rb → payment_event_response_v3.rb} +9 -9
  187. data/lib/velopayments/models/payment_event_response_v4.rb +351 -0
  188. data/lib/velopayments/models/payment_instruction.rb +2 -2
  189. data/lib/velopayments/models/{payment_response.rb → payment_response_v3.rb} +8 -8
  190. data/lib/velopayments/models/payment_response_v4.rb +587 -0
  191. data/lib/velopayments/models/payor_branding_response.rb +2 -2
  192. data/lib/velopayments/models/payor_create_api_key_request.rb +2 -2
  193. data/lib/velopayments/models/payor_create_api_key_response.rb +2 -2
  194. data/lib/velopayments/models/payor_create_application_request.rb +2 -2
  195. data/lib/velopayments/models/payor_email_opt_out_request.rb +7 -2
  196. data/lib/velopayments/models/payor_funding_bank_details_update.rb +2 -2
  197. data/lib/velopayments/models/payor_links_response.rb +210 -0
  198. data/lib/velopayments/models/payor_links_response_links.rb +277 -0
  199. data/lib/velopayments/models/payor_links_response_payors.rb +267 -0
  200. data/lib/velopayments/models/payor_logo_request.rb +2 -2
  201. data/lib/velopayments/models/payor_ref.rb +2 -2
  202. data/lib/velopayments/models/{payor.rb → payor_v1.rb} +6 -6
  203. data/lib/velopayments/models/payor_v2.rb +405 -0
  204. data/lib/velopayments/models/{payout_status.rb → payout_status_v3.rb} +5 -5
  205. data/lib/velopayments/models/payout_status_v4.rb +43 -0
  206. data/lib/velopayments/models/{payout_summary_audit.rb → payout_summary_audit_v3.rb} +18 -9
  207. data/lib/velopayments/models/payout_summary_audit_v4.rb +323 -0
  208. data/lib/velopayments/models/payout_summary_response.rb +2 -2
  209. data/lib/velopayments/models/query_batch_response.rb +2 -2
  210. data/lib/velopayments/models/quote_fx_summary.rb +4 -4
  211. data/lib/velopayments/models/quote_response.rb +2 -2
  212. data/lib/velopayments/models/rejected_payment.rb +37 -34
  213. data/lib/velopayments/models/set_notifications_request.rb +230 -0
  214. data/lib/velopayments/models/source_account.rb +2 -2
  215. data/lib/velopayments/models/source_account_response.rb +16 -7
  216. data/lib/velopayments/models/source_account_response_v2.rb +403 -0
  217. data/lib/velopayments/models/{source_account_summary.rb → source_account_summary_v3.rb} +7 -7
  218. data/lib/velopayments/models/source_account_summary_v4.rb +224 -0
  219. data/lib/velopayments/models/supported_countries_response.rb +2 -2
  220. data/lib/velopayments/models/supported_country.rb +36 -2
  221. data/lib/velopayments/models/supported_currency.rb +2 -2
  222. data/lib/velopayments/models/supported_currency_response.rb +2 -2
  223. data/lib/velopayments/version.rb +3 -3
  224. data/oa3-config.json +1 -1
  225. data/spec/api/auth_api_spec.rb +48 -0
  226. data/spec/api/countries_api_spec.rb +2 -2
  227. data/spec/api/currencies_api_spec.rb +2 -2
  228. data/spec/api/funding_manager_api_spec.rb +45 -4
  229. data/spec/api/get_payout_api_spec.rb +2 -2
  230. data/spec/api/instruct_payout_api_spec.rb +2 -2
  231. data/spec/api/payee_invitation_api_spec.rb +20 -4
  232. data/spec/api/payees_api_spec.rb +17 -2
  233. data/spec/api/payment_audit_service_api_spec.rb +91 -5
  234. data/spec/api/payor_applications_api_spec.rb +3 -3
  235. data/spec/api/payors_api_spec.rb +31 -6
  236. data/spec/api/payout_history_api_spec.rb +27 -3
  237. data/spec/api/quote_payout_api_spec.rb +2 -2
  238. data/spec/api/submit_payout_api_spec.rb +3 -3
  239. data/spec/api/withdraw_payout_api_spec.rb +2 -2
  240. data/spec/api_client_spec.rb +2 -2
  241. data/spec/configuration_spec.rb +2 -2
  242. data/spec/models/address_spec.rb +2 -2
  243. data/spec/models/auth_response_spec.rb +65 -0
  244. data/spec/models/{social_spec.rb → auto_top_up_config_spec.rb} +11 -11
  245. data/spec/models/challenge_spec.rb +2 -2
  246. data/spec/models/company_spec.rb +8 -2
  247. data/spec/models/create_individual_spec.rb +53 -0
  248. data/spec/models/create_payee_address_spec.rb +83 -0
  249. data/spec/models/create_payee_spec.rb +2 -68
  250. data/spec/models/create_payees_csv_request_spec.rb +26 -16
  251. data/spec/models/create_payees_csv_response_spec.rb +2 -2
  252. data/spec/models/create_payees_request_spec.rb +2 -2
  253. data/spec/models/create_payment_channel_spec.rb +6 -2
  254. data/spec/models/create_payout_request_spec.rb +2 -2
  255. data/spec/models/failed_submission_spec.rb +2 -2
  256. data/spec/models/funding_audit_spec.rb +2 -2
  257. data/spec/models/funding_event_spec.rb +2 -2
  258. data/spec/models/funding_event_type_spec.rb +2 -2
  259. data/spec/models/{funding_request2_spec.rb → funding_request_v1_spec.rb} +8 -8
  260. data/spec/models/{funding_request_spec.rb → funding_request_v2_spec.rb} +8 -8
  261. data/spec/models/{fx_summary_spec.rb → fx_summary_v3_spec.rb} +8 -8
  262. data/spec/models/fx_summary_v4_spec.rb +103 -0
  263. data/spec/models/get_fundings_response_all_of_spec.rb +41 -0
  264. data/spec/models/get_fundings_response_spec.rb +2 -2
  265. data/spec/models/{get_payments_for_payout_response_page_spec.rb → get_payments_for_payout_response_v3_page_spec.rb} +8 -8
  266. data/spec/models/{get_payments_for_payout_response_spec.rb → get_payments_for_payout_response_v3_spec.rb} +8 -8
  267. data/spec/models/get_payments_for_payout_response_v3_summary_spec.rb +93 -0
  268. data/spec/models/get_payments_for_payout_response_v4_spec.rb +59 -0
  269. data/spec/models/get_payments_for_payout_response_v4_summary_spec.rb +93 -0
  270. data/spec/models/get_payout_statistics_spec.rb +2 -2
  271. data/spec/models/get_payouts_response_v3_links_spec.rb +47 -0
  272. data/spec/models/get_payouts_response_v3_page_spec.rb +65 -0
  273. data/spec/models/{get_payouts_response_spec.rb → get_payouts_response_v3_spec.rb} +8 -8
  274. data/spec/models/{get_payments_for_payout_response_summary_spec.rb → get_payouts_response_v3_summary_spec.rb} +8 -8
  275. data/spec/models/get_payouts_response_v4_spec.rb +59 -0
  276. data/spec/models/individual_name_spec.rb +2 -2
  277. data/spec/models/individual_spec.rb +2 -2
  278. data/spec/models/invitation_status_response_spec.rb +2 -2
  279. data/spec/models/invitation_status_spec.rb +35 -0
  280. data/spec/models/invite_payee_request_spec.rb +2 -2
  281. data/spec/models/language_spec.rb +2 -2
  282. data/spec/models/list_payments_response_page_spec.rb +65 -0
  283. data/spec/models/list_payments_response_spec.rb +2 -2
  284. data/spec/models/list_payments_response_summary_spec.rb +65 -0
  285. data/spec/models/{get_payments_for_payout_response_links_spec.rb → list_source_account_response_links_spec.rb} +8 -8
  286. data/spec/models/list_source_account_response_page_spec.rb +65 -0
  287. data/spec/models/list_source_account_response_spec.rb +2 -2
  288. data/spec/models/list_source_account_response_v2_page_spec.rb +65 -0
  289. data/spec/models/list_source_account_response_v2_spec.rb +53 -0
  290. data/spec/models/marketing_opt_in_spec.rb +2 -2
  291. data/spec/models/notifications_spec.rb +41 -0
  292. data/spec/models/ofac_status_spec.rb +2 -2
  293. data/spec/models/onboarded_status_spec.rb +2 -2
  294. data/spec/models/paged_payee_invitation_status_response_spec.rb +53 -0
  295. data/spec/models/paged_response_page_spec.rb +2 -2
  296. data/spec/models/paged_response_spec.rb +2 -2
  297. data/spec/models/payee_delta_response_links_spec.rb +47 -0
  298. data/spec/models/payee_delta_response_page_spec.rb +65 -0
  299. data/spec/models/payee_delta_response_spec.rb +53 -0
  300. data/spec/models/payee_delta_spec.rb +77 -0
  301. data/spec/models/payee_invitation_status_response_spec.rb +53 -0
  302. data/spec/models/payee_invitation_status_spec.rb +2 -2
  303. data/spec/models/payee_response_links_spec.rb +47 -0
  304. data/spec/models/payee_response_page_spec.rb +65 -0
  305. data/spec/models/payee_response_spec.rb +2 -2
  306. data/spec/models/payee_response_summary_spec.rb +65 -0
  307. data/spec/models/payee_spec.rb +2 -8
  308. data/spec/models/payee_type_spec.rb +2 -2
  309. data/spec/models/{payment_audit_currency_spec.rb → payment_audit_currency_v3_spec.rb} +8 -8
  310. data/spec/models/payment_audit_currency_v4_spec.rb +35 -0
  311. data/spec/models/payment_channel_country_spec.rb +2 -2
  312. data/spec/models/payment_channel_rule_spec.rb +2 -2
  313. data/spec/models/payment_channel_rules_response_spec.rb +2 -2
  314. data/spec/models/payment_channel_spec.rb +2 -2
  315. data/spec/models/{payment_event_response_spec.rb → payment_event_response_v3_spec.rb} +8 -8
  316. data/spec/models/payment_event_response_v4_spec.rb +111 -0
  317. data/spec/models/payment_instruction_spec.rb +2 -2
  318. data/spec/models/{payment_response_spec.rb → payment_response_v3_spec.rb} +8 -8
  319. data/spec/models/payment_response_v4_spec.rb +241 -0
  320. data/spec/models/payor_branding_response_spec.rb +2 -2
  321. data/spec/models/payor_create_api_key_request_spec.rb +2 -2
  322. data/spec/models/payor_create_api_key_response_spec.rb +2 -2
  323. data/spec/models/payor_create_application_request_spec.rb +2 -2
  324. data/spec/models/payor_email_opt_out_request_spec.rb +2 -2
  325. data/spec/models/payor_funding_bank_details_update_spec.rb +2 -2
  326. data/spec/models/payor_links_response_links_spec.rb +63 -0
  327. data/spec/models/payor_links_response_payors_spec.rb +63 -0
  328. data/spec/models/payor_links_response_spec.rb +47 -0
  329. data/spec/models/payor_logo_request_spec.rb +2 -2
  330. data/spec/models/payor_ref_spec.rb +2 -2
  331. data/spec/models/{payor_spec.rb → payor_v1_spec.rb} +8 -8
  332. data/spec/models/payor_v2_spec.rb +145 -0
  333. data/spec/models/{payout_status_spec.rb → payout_status_v3_spec.rb} +8 -8
  334. data/spec/models/payout_status_v4_spec.rb +35 -0
  335. data/spec/models/{payout_summary_audit_spec.rb → payout_summary_audit_v3_spec.rb} +14 -8
  336. data/spec/models/payout_summary_audit_v4_spec.rb +113 -0
  337. data/spec/models/payout_summary_response_spec.rb +2 -2
  338. data/spec/models/query_batch_response_spec.rb +2 -2
  339. data/spec/models/quote_fx_summary_spec.rb +2 -2
  340. data/spec/models/quote_response_spec.rb +2 -2
  341. data/spec/models/rejected_payment_spec.rb +8 -6
  342. data/spec/models/set_notifications_request_spec.rb +41 -0
  343. data/spec/models/source_account_response_spec.rb +8 -2
  344. data/spec/models/source_account_response_v2_spec.rb +129 -0
  345. data/spec/models/source_account_spec.rb +2 -2
  346. data/spec/models/{source_account_summary_spec.rb → source_account_summary_v3_spec.rb} +8 -8
  347. data/spec/models/source_account_summary_v4_spec.rb +53 -0
  348. data/spec/models/supported_countries_response_spec.rb +2 -2
  349. data/spec/models/supported_country_spec.rb +10 -2
  350. data/spec/models/supported_currency_response_spec.rb +2 -2
  351. data/spec/models/supported_currency_spec.rb +2 -2
  352. data/spec/spec_helper.rb +2 -2
  353. data/velopayments-2.11.73.gem +0 -0
  354. data/velopayments-2.14.90.gem +0 -0
  355. data/velopayments.gemspec +2 -2
  356. metadata +230 -68
  357. data/docs/GetPaymentsForPayoutResponse.md +0 -23
  358. data/docs/GetPayoutsResponse.md +0 -23
  359. data/docs/Social.md +0 -21
  360. data/docs/SourceAccountSummary.md +0 -21
@@ -3,10 +3,10 @@
3
3
 
4
4
  ### Terms and Definitions Throughout this document and the Velo platform the following terms are used: * **Payor.** An entity (typically a corporation) which wishes to pay funds to one or more payees via a payout. * **Payee.** The recipient of funds paid out by a payor. * **Payment.** A single transfer of funds from a payor to a payee. * **Payout.** A batch of Payments, typically used by a payor to logically group payments (e.g. by business day). Technically there need be no relationship between the payments in a payout - a single payout can contain payments to multiple payees and/or multiple payments to a single payee. * **Sandbox.** An integration environment provided by Velo Payments which offers a similar API experience to the production environment, but all funding and payment events are simulated, along with many other services such as OFAC sanctions list checking. ## Overview The Velo Payments API allows a payor to perform a number of operations. The following is a list of the main capabilities in a natural order of execution: * Authenticate with the Velo platform * Maintain a collection of payees * Query the payor’s current balance of funds within the platform and perform additional funding * Issue payments to payees * Query the platform for a history of those payments This document describes the main concepts and APIs required to get up and running with the Velo Payments platform. It is not an exhaustive API reference. For that, please see the separate Velo Payments API Reference. ## API Considerations The Velo Payments API is REST based and uses the JSON format for requests and responses. Most calls are secured using OAuth 2 security and require a valid authentication access token for successful operation. See the Authentication section for details. Where a dynamic value is required in the examples below, the {token} format is used, suggesting that the caller needs to supply the appropriate value of the token in question (without including the { or } characters). Where curl examples are given, the –d @filename.json approach is used, indicating that the request body should be placed into a file named filename.json in the current directory. Each of the curl examples in this document should be considered a single line on the command-line, regardless of how they appear in print. ## Authenticating with the Velo Platform Once Velo backoffice staff have added your organization as a payor within the Velo platform sandbox, they will create you a payor Id, an API key and an API secret and share these with you in a secure manner. You will need to use these values to authenticate with the Velo platform in order to gain access to the APIs. The steps to take are explained in the following: create a string comprising the API key (e.g. 44a9537d-d55d-4b47-8082-14061c2bcdd8) and API secret (e.g. c396b26b-137a-44fd-87f5-34631f8fd529) with a colon between them. E.g. 44a9537d-d55d-4b47-8082-14061c2bcdd8:c396b26b-137a-44fd-87f5-34631f8fd529 base64 encode this string. E.g.: NDRhOTUzN2QtZDU1ZC00YjQ3LTgwODItMTQwNjFjMmJjZGQ4OmMzOTZiMjZiLTEzN2EtNDRmZC04N2Y1LTM0NjMxZjhmZDUyOQ== create an HTTP **Authorization** header with the value set to e.g. Basic NDRhOTUzN2QtZDU1ZC00YjQ3LTgwODItMTQwNjFjMmJjZGQ4OmMzOTZiMjZiLTEzN2EtNDRmZC04N2Y1LTM0NjMxZjhmZDUyOQ== perform the Velo authentication REST call using the HTTP header created above e.g. via curl: ``` curl -X POST \\ -H \"Content-Type: application/json\" \\ -H \"Authorization: Basic NDRhOTUzN2QtZDU1ZC00YjQ3LTgwODItMTQwNjFjMmJjZGQ4OmMzOTZiMjZiLTEzN2EtNDRmZC04N2Y1LTM0NjMxZjhmZDUyOQ==\" \\ 'https://api.sandbox.velopayments.com/v1/authenticate?grant_type=client_credentials' ``` If successful, this call will result in a **200** HTTP status code and a response body such as: ``` { \"access_token\":\"19f6bafd-93fd-4747-b229-00507bbc991f\", \"token_type\":\"bearer\", \"expires_in\":1799, \"scope\":\"...\" } ``` ## API access following authentication Following successful authentication, the value of the access_token field in the response (indicated in green above) should then be presented with all subsequent API calls to allow the Velo platform to validate that the caller is authenticated. This is achieved by setting the HTTP Authorization header with the value set to e.g. Bearer 19f6bafd-93fd-4747-b229-00507bbc991f such as the curl example below: ``` -H \"Authorization: Bearer 19f6bafd-93fd-4747-b229-00507bbc991f \" ``` If you make other Velo API calls which require authorization but the Authorization header is missing or invalid then you will get a **401** HTTP status response.
5
5
 
6
- OpenAPI spec version: 2.11.73
6
+ The version of the OpenAPI document: 2.14.92
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.0.0-SNAPSHOT
9
+ OpenAPI Generator version: 4.1.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -36,6 +36,11 @@ module VeloPayments
36
36
 
37
37
  attr_accessor :address_country
38
38
 
39
+ attr_accessor :individual_national_identification
40
+
41
+ # Must not be date in future. Example - 1970-05-20
42
+ attr_accessor :individual_date_of_birth
43
+
39
44
  attr_accessor :individual_title
40
45
 
41
46
  attr_accessor :individual_first_name
@@ -44,34 +49,33 @@ module VeloPayments
44
49
 
45
50
  attr_accessor :individual_last_name
46
51
 
47
- attr_accessor :individual_national_identification
48
-
49
- # example - 1970-05-20
50
- attr_accessor :individual_date_of_birth
51
-
52
52
  attr_accessor :company_name
53
53
 
54
54
  # Company Tax Id (EIN) must be 9 numeric characters. Must match the regular expression ```[\\d]{9}```.
55
- attr_accessor :company_tax_id
55
+ attr_accessor :company_ein
56
56
 
57
- # Must match the regular expression ```^[A-Za-z0-9]+$```.
58
- attr_accessor :payment_channel_iban
57
+ attr_accessor :company_operating_name
59
58
 
59
+ # Either routing number and account number or only iban must be set
60
60
  attr_accessor :payment_channel_account_number
61
61
 
62
- attr_accessor :payment_channel_routing_no
62
+ # Either routing number and account number or only iban must be set
63
+ attr_accessor :payment_channel_routing_number
64
+
65
+ attr_accessor :payment_channel_account_name
66
+
67
+ # Must match the regular expression ```^[A-Za-z0-9]+$```.
68
+ attr_accessor :payment_channel_iban
63
69
 
64
- # Must be a 3 character currency code. ISO 4217
70
+ # Must be a 2 character country code - per ISO 3166-1
65
71
  attr_accessor :payment_channel_country_code
66
72
 
67
73
  attr_accessor :payment_channel_currency
68
74
 
69
- attr_accessor :payment_channel_account_name
75
+ attr_accessor :challenge_description
70
76
 
71
77
  attr_accessor :challenge_value
72
78
 
73
- attr_accessor :challenge_description
74
-
75
79
  attr_accessor :payee_language
76
80
 
77
81
  class EnumAttributeValidator
@@ -110,22 +114,23 @@ module VeloPayments
110
114
  :'address_county_or_province' => :'addressCountyOrProvince',
111
115
  :'address_zip_or_postcode' => :'addressZipOrPostcode',
112
116
  :'address_country' => :'addressCountry',
117
+ :'individual_national_identification' => :'individualNationalIdentification',
118
+ :'individual_date_of_birth' => :'individualDateOfBirth',
113
119
  :'individual_title' => :'individualTitle',
114
120
  :'individual_first_name' => :'individualFirstName',
115
121
  :'individual_other_names' => :'individualOtherNames',
116
122
  :'individual_last_name' => :'individualLastName',
117
- :'individual_national_identification' => :'individualNationalIdentification',
118
- :'individual_date_of_birth' => :'individualDateOfBirth',
119
123
  :'company_name' => :'companyName',
120
- :'company_tax_id' => :'companyTaxId',
121
- :'payment_channel_iban' => :'paymentChannelIban',
124
+ :'company_ein' => :'companyEIN',
125
+ :'company_operating_name' => :'companyOperatingName',
122
126
  :'payment_channel_account_number' => :'paymentChannelAccountNumber',
123
- :'payment_channel_routing_no' => :'paymentChannelRoutingNo',
127
+ :'payment_channel_routing_number' => :'paymentChannelRoutingNumber',
128
+ :'payment_channel_account_name' => :'paymentChannelAccountName',
129
+ :'payment_channel_iban' => :'paymentChannelIban',
124
130
  :'payment_channel_country_code' => :'paymentChannelCountryCode',
125
131
  :'payment_channel_currency' => :'paymentChannelCurrency',
126
- :'payment_channel_account_name' => :'paymentChannelAccountName',
127
- :'challenge_value' => :'challengeValue',
128
132
  :'challenge_description' => :'challengeDescription',
133
+ :'challenge_value' => :'challengeValue',
129
134
  :'payee_language' => :'payeeLanguage'
130
135
  }
131
136
  end
@@ -144,22 +149,23 @@ module VeloPayments
144
149
  :'address_county_or_province' => :'String',
145
150
  :'address_zip_or_postcode' => :'String',
146
151
  :'address_country' => :'String',
152
+ :'individual_national_identification' => :'String',
153
+ :'individual_date_of_birth' => :'Date',
147
154
  :'individual_title' => :'String',
148
155
  :'individual_first_name' => :'String',
149
156
  :'individual_other_names' => :'String',
150
157
  :'individual_last_name' => :'String',
151
- :'individual_national_identification' => :'String',
152
- :'individual_date_of_birth' => :'Date',
153
158
  :'company_name' => :'String',
154
- :'company_tax_id' => :'String',
155
- :'payment_channel_iban' => :'String',
159
+ :'company_ein' => :'String',
160
+ :'company_operating_name' => :'String',
156
161
  :'payment_channel_account_number' => :'String',
157
- :'payment_channel_routing_no' => :'String',
162
+ :'payment_channel_routing_number' => :'String',
163
+ :'payment_channel_account_name' => :'String',
164
+ :'payment_channel_iban' => :'String',
158
165
  :'payment_channel_country_code' => :'String',
159
166
  :'payment_channel_currency' => :'String',
160
- :'payment_channel_account_name' => :'String',
161
- :'challenge_value' => :'String',
162
167
  :'challenge_description' => :'String',
168
+ :'challenge_value' => :'String',
163
169
  :'payee_language' => :'String'
164
170
  }
165
171
  end
@@ -223,6 +229,14 @@ module VeloPayments
223
229
  self.address_country = attributes[:'address_country']
224
230
  end
225
231
 
232
+ if attributes.key?(:'individual_national_identification')
233
+ self.individual_national_identification = attributes[:'individual_national_identification']
234
+ end
235
+
236
+ if attributes.key?(:'individual_date_of_birth')
237
+ self.individual_date_of_birth = attributes[:'individual_date_of_birth']
238
+ end
239
+
226
240
  if attributes.key?(:'individual_title')
227
241
  self.individual_title = attributes[:'individual_title']
228
242
  end
@@ -239,32 +253,32 @@ module VeloPayments
239
253
  self.individual_last_name = attributes[:'individual_last_name']
240
254
  end
241
255
 
242
- if attributes.key?(:'individual_national_identification')
243
- self.individual_national_identification = attributes[:'individual_national_identification']
244
- end
245
-
246
- if attributes.key?(:'individual_date_of_birth')
247
- self.individual_date_of_birth = attributes[:'individual_date_of_birth']
248
- end
249
-
250
256
  if attributes.key?(:'company_name')
251
257
  self.company_name = attributes[:'company_name']
252
258
  end
253
259
 
254
- if attributes.key?(:'company_tax_id')
255
- self.company_tax_id = attributes[:'company_tax_id']
260
+ if attributes.key?(:'company_ein')
261
+ self.company_ein = attributes[:'company_ein']
256
262
  end
257
263
 
258
- if attributes.key?(:'payment_channel_iban')
259
- self.payment_channel_iban = attributes[:'payment_channel_iban']
264
+ if attributes.key?(:'company_operating_name')
265
+ self.company_operating_name = attributes[:'company_operating_name']
260
266
  end
261
267
 
262
268
  if attributes.key?(:'payment_channel_account_number')
263
269
  self.payment_channel_account_number = attributes[:'payment_channel_account_number']
264
270
  end
265
271
 
266
- if attributes.key?(:'payment_channel_routing_no')
267
- self.payment_channel_routing_no = attributes[:'payment_channel_routing_no']
272
+ if attributes.key?(:'payment_channel_routing_number')
273
+ self.payment_channel_routing_number = attributes[:'payment_channel_routing_number']
274
+ end
275
+
276
+ if attributes.key?(:'payment_channel_account_name')
277
+ self.payment_channel_account_name = attributes[:'payment_channel_account_name']
278
+ end
279
+
280
+ if attributes.key?(:'payment_channel_iban')
281
+ self.payment_channel_iban = attributes[:'payment_channel_iban']
268
282
  end
269
283
 
270
284
  if attributes.key?(:'payment_channel_country_code')
@@ -275,18 +289,14 @@ module VeloPayments
275
289
  self.payment_channel_currency = attributes[:'payment_channel_currency']
276
290
  end
277
291
 
278
- if attributes.key?(:'payment_channel_account_name')
279
- self.payment_channel_account_name = attributes[:'payment_channel_account_name']
292
+ if attributes.key?(:'challenge_description')
293
+ self.challenge_description = attributes[:'challenge_description']
280
294
  end
281
295
 
282
296
  if attributes.key?(:'challenge_value')
283
297
  self.challenge_value = attributes[:'challenge_value']
284
298
  end
285
299
 
286
- if attributes.key?(:'challenge_description')
287
- self.challenge_description = attributes[:'challenge_description']
288
- end
289
-
290
300
  if attributes.key?(:'payee_language')
291
301
  self.payee_language = attributes[:'payee_language']
292
302
  end
@@ -316,36 +326,44 @@ module VeloPayments
316
326
  invalid_properties.push('invalid value for "email", email cannot be nil.')
317
327
  end
318
328
 
329
+ if @email.to_s.length > 255
330
+ invalid_properties.push('invalid value for "email", the character length must be smaller than or equal to 255.')
331
+ end
332
+
333
+ if @email.to_s.length < 3
334
+ invalid_properties.push('invalid value for "email", the character length must be great than or equal to 3.')
335
+ end
336
+
319
337
  if @address_line1.nil?
320
338
  invalid_properties.push('invalid value for "address_line1", address_line1 cannot be nil.')
321
339
  end
322
340
 
323
- if @address_line1.to_s.length > 255
324
- invalid_properties.push('invalid value for "address_line1", the character length must be smaller than or equal to 255.')
341
+ if @address_line1.to_s.length > 100
342
+ invalid_properties.push('invalid value for "address_line1", the character length must be smaller than or equal to 100.')
325
343
  end
326
344
 
327
345
  if @address_line1.to_s.length < 2
328
346
  invalid_properties.push('invalid value for "address_line1", the character length must be great than or equal to 2.')
329
347
  end
330
348
 
331
- if !@address_line2.nil? && @address_line2.to_s.length > 255
332
- invalid_properties.push('invalid value for "address_line2", the character length must be smaller than or equal to 255.')
349
+ if !@address_line2.nil? && @address_line2.to_s.length > 100
350
+ invalid_properties.push('invalid value for "address_line2", the character length must be smaller than or equal to 100.')
333
351
  end
334
352
 
335
353
  if !@address_line2.nil? && @address_line2.to_s.length < 0
336
354
  invalid_properties.push('invalid value for "address_line2", the character length must be great than or equal to 0.')
337
355
  end
338
356
 
339
- if !@address_line3.nil? && @address_line3.to_s.length > 255
340
- invalid_properties.push('invalid value for "address_line3", the character length must be smaller than or equal to 255.')
357
+ if !@address_line3.nil? && @address_line3.to_s.length > 100
358
+ invalid_properties.push('invalid value for "address_line3", the character length must be smaller than or equal to 100.')
341
359
  end
342
360
 
343
361
  if !@address_line3.nil? && @address_line3.to_s.length < 0
344
362
  invalid_properties.push('invalid value for "address_line3", the character length must be great than or equal to 0.')
345
363
  end
346
364
 
347
- if !@address_line4.nil? && @address_line4.to_s.length > 255
348
- invalid_properties.push('invalid value for "address_line4", the character length must be smaller than or equal to 255.')
365
+ if !@address_line4.nil? && @address_line4.to_s.length > 100
366
+ invalid_properties.push('invalid value for "address_line4", the character length must be smaller than or equal to 100.')
349
367
  end
350
368
 
351
369
  if !@address_line4.nil? && @address_line4.to_s.length < 0
@@ -356,32 +374,32 @@ module VeloPayments
356
374
  invalid_properties.push('invalid value for "address_city", address_city cannot be nil.')
357
375
  end
358
376
 
359
- if @address_city.to_s.length > 100
360
- invalid_properties.push('invalid value for "address_city", the character length must be smaller than or equal to 100.')
377
+ if @address_city.to_s.length > 50
378
+ invalid_properties.push('invalid value for "address_city", the character length must be smaller than or equal to 50.')
361
379
  end
362
380
 
363
381
  if @address_city.to_s.length < 2
364
382
  invalid_properties.push('invalid value for "address_city", the character length must be great than or equal to 2.')
365
383
  end
366
384
 
367
- if !@address_county_or_province.nil? && @address_county_or_province.to_s.length > 100
368
- invalid_properties.push('invalid value for "address_county_or_province", the character length must be smaller than or equal to 100.')
385
+ if !@address_county_or_province.nil? && @address_county_or_province.to_s.length > 50
386
+ invalid_properties.push('invalid value for "address_county_or_province", the character length must be smaller than or equal to 50.')
369
387
  end
370
388
 
371
- if !@address_county_or_province.nil? && @address_county_or_province.to_s.length < 2
372
- invalid_properties.push('invalid value for "address_county_or_province", the character length must be great than or equal to 2.')
389
+ if !@address_county_or_province.nil? && @address_county_or_province.to_s.length < 1
390
+ invalid_properties.push('invalid value for "address_county_or_province", the character length must be great than or equal to 1.')
373
391
  end
374
392
 
375
393
  if @address_zip_or_postcode.nil?
376
394
  invalid_properties.push('invalid value for "address_zip_or_postcode", address_zip_or_postcode cannot be nil.')
377
395
  end
378
396
 
379
- if @address_zip_or_postcode.to_s.length > 30
380
- invalid_properties.push('invalid value for "address_zip_or_postcode", the character length must be smaller than or equal to 30.')
397
+ if @address_zip_or_postcode.to_s.length > 60
398
+ invalid_properties.push('invalid value for "address_zip_or_postcode", the character length must be smaller than or equal to 60.')
381
399
  end
382
400
 
383
- if @address_zip_or_postcode.to_s.length < 2
384
- invalid_properties.push('invalid value for "address_zip_or_postcode", the character length must be great than or equal to 2.')
401
+ if @address_zip_or_postcode.to_s.length < 1
402
+ invalid_properties.push('invalid value for "address_zip_or_postcode", the character length must be great than or equal to 1.')
385
403
  end
386
404
 
387
405
  if @address_country.nil?
@@ -396,8 +414,16 @@ module VeloPayments
396
414
  invalid_properties.push('invalid value for "address_country", the character length must be great than or equal to 2.')
397
415
  end
398
416
 
399
- if !@individual_title.nil? && @individual_title.to_s.length > 10
400
- invalid_properties.push('invalid value for "individual_title", the character length must be smaller than or equal to 10.')
417
+ if !@individual_national_identification.nil? && @individual_national_identification.to_s.length > 30
418
+ invalid_properties.push('invalid value for "individual_national_identification", the character length must be smaller than or equal to 30.')
419
+ end
420
+
421
+ if !@individual_national_identification.nil? && @individual_national_identification.to_s.length < 6
422
+ invalid_properties.push('invalid value for "individual_national_identification", the character length must be great than or equal to 6.')
423
+ end
424
+
425
+ if !@individual_title.nil? && @individual_title.to_s.length > 40
426
+ invalid_properties.push('invalid value for "individual_title", the character length must be smaller than or equal to 40.')
401
427
  end
402
428
 
403
429
  if !@individual_title.nil? && @individual_title.to_s.length < 1
@@ -437,21 +463,16 @@ module VeloPayments
437
463
  end
438
464
 
439
465
  pattern = Regexp.new(/[\\d]{9}/)
440
- if !@company_tax_id.nil? && @company_tax_id !~ pattern
441
- invalid_properties.push("invalid value for \"company_tax_id\", must conform to the pattern #{pattern}.")
466
+ if !@company_ein.nil? && @company_ein !~ pattern
467
+ invalid_properties.push("invalid value for \"company_ein\", must conform to the pattern #{pattern}.")
442
468
  end
443
469
 
444
- if !@payment_channel_iban.nil? && @payment_channel_iban.to_s.length > 34
445
- invalid_properties.push('invalid value for "payment_channel_iban", the character length must be smaller than or equal to 34.')
470
+ if !@company_operating_name.nil? && @company_operating_name.to_s.length > 100
471
+ invalid_properties.push('invalid value for "company_operating_name", the character length must be smaller than or equal to 100.')
446
472
  end
447
473
 
448
- if !@payment_channel_iban.nil? && @payment_channel_iban.to_s.length < 15
449
- invalid_properties.push('invalid value for "payment_channel_iban", the character length must be great than or equal to 15.')
450
- end
451
-
452
- pattern = Regexp.new(/^[A-Za-z0-9]+$/)
453
- if !@payment_channel_iban.nil? && @payment_channel_iban !~ pattern
454
- invalid_properties.push("invalid value for \"payment_channel_iban\", must conform to the pattern #{pattern}.")
474
+ if !@company_operating_name.nil? && @company_operating_name.to_s.length < 1
475
+ invalid_properties.push('invalid value for "company_operating_name", the character length must be great than or equal to 1.')
455
476
  end
456
477
 
457
478
  if !@payment_channel_account_number.nil? && @payment_channel_account_number.to_s.length > 17
@@ -462,28 +483,33 @@ module VeloPayments
462
483
  invalid_properties.push('invalid value for "payment_channel_account_number", the character length must be great than or equal to 6.')
463
484
  end
464
485
 
465
- if !@payment_channel_routing_no.nil? && @payment_channel_routing_no.to_s.length > 9
466
- invalid_properties.push('invalid value for "payment_channel_routing_no", the character length must be smaller than or equal to 9.')
486
+ if !@payment_channel_routing_number.nil? && @payment_channel_routing_number.to_s.length > 9
487
+ invalid_properties.push('invalid value for "payment_channel_routing_number", the character length must be smaller than or equal to 9.')
467
488
  end
468
489
 
469
- if !@payment_channel_routing_no.nil? && @payment_channel_routing_no.to_s.length < 9
470
- invalid_properties.push('invalid value for "payment_channel_routing_no", the character length must be great than or equal to 9.')
490
+ if !@payment_channel_routing_number.nil? && @payment_channel_routing_number.to_s.length < 9
491
+ invalid_properties.push('invalid value for "payment_channel_routing_number", the character length must be great than or equal to 9.')
471
492
  end
472
493
 
473
- if !@payment_channel_country_code.nil? && @payment_channel_country_code.to_s.length > 9
474
- invalid_properties.push('invalid value for "payment_channel_country_code", the character length must be smaller than or equal to 9.')
494
+ if !@payment_channel_iban.nil? && @payment_channel_iban.to_s.length > 34
495
+ invalid_properties.push('invalid value for "payment_channel_iban", the character length must be smaller than or equal to 34.')
475
496
  end
476
497
 
477
- if !@payment_channel_country_code.nil? && @payment_channel_country_code.to_s.length < 9
478
- invalid_properties.push('invalid value for "payment_channel_country_code", the character length must be great than or equal to 9.')
498
+ if !@payment_channel_iban.nil? && @payment_channel_iban.to_s.length < 15
499
+ invalid_properties.push('invalid value for "payment_channel_iban", the character length must be great than or equal to 15.')
479
500
  end
480
501
 
481
- if !@challenge_value.nil? && @challenge_value.to_s.length > 20
482
- invalid_properties.push('invalid value for "challenge_value", the character length must be smaller than or equal to 20.')
502
+ pattern = Regexp.new(/^[A-Za-z0-9]+$/)
503
+ if !@payment_channel_iban.nil? && @payment_channel_iban !~ pattern
504
+ invalid_properties.push("invalid value for \"payment_channel_iban\", must conform to the pattern #{pattern}.")
483
505
  end
484
506
 
485
- if !@challenge_value.nil? && @challenge_value.to_s.length < 3
486
- invalid_properties.push('invalid value for "challenge_value", the character length must be great than or equal to 3.')
507
+ if !@payment_channel_country_code.nil? && @payment_channel_country_code.to_s.length > 2
508
+ invalid_properties.push('invalid value for "payment_channel_country_code", the character length must be smaller than or equal to 2.')
509
+ end
510
+
511
+ if !@payment_channel_country_code.nil? && @payment_channel_country_code.to_s.length < 2
512
+ invalid_properties.push('invalid value for "payment_channel_country_code", the character length must be great than or equal to 2.')
487
513
  end
488
514
 
489
515
  if !@challenge_description.nil? && @challenge_description.to_s.length > 255
@@ -494,6 +520,14 @@ module VeloPayments
494
520
  invalid_properties.push('invalid value for "challenge_description", the character length must be great than or equal to 1.')
495
521
  end
496
522
 
523
+ if !@challenge_value.nil? && @challenge_value.to_s.length > 20
524
+ invalid_properties.push('invalid value for "challenge_value", the character length must be smaller than or equal to 20.')
525
+ end
526
+
527
+ if !@challenge_value.nil? && @challenge_value.to_s.length < 3
528
+ invalid_properties.push('invalid value for "challenge_value", the character length must be great than or equal to 3.')
529
+ end
530
+
497
531
  invalid_properties
498
532
  end
499
533
 
@@ -505,27 +539,31 @@ module VeloPayments
505
539
  return false if @remote_id.to_s.length > 100
506
540
  return false if @remote_id.to_s.length < 1
507
541
  return false if @email.nil?
542
+ return false if @email.to_s.length > 255
543
+ return false if @email.to_s.length < 3
508
544
  return false if @address_line1.nil?
509
- return false if @address_line1.to_s.length > 255
545
+ return false if @address_line1.to_s.length > 100
510
546
  return false if @address_line1.to_s.length < 2
511
- return false if !@address_line2.nil? && @address_line2.to_s.length > 255
547
+ return false if !@address_line2.nil? && @address_line2.to_s.length > 100
512
548
  return false if !@address_line2.nil? && @address_line2.to_s.length < 0
513
- return false if !@address_line3.nil? && @address_line3.to_s.length > 255
549
+ return false if !@address_line3.nil? && @address_line3.to_s.length > 100
514
550
  return false if !@address_line3.nil? && @address_line3.to_s.length < 0
515
- return false if !@address_line4.nil? && @address_line4.to_s.length > 255
551
+ return false if !@address_line4.nil? && @address_line4.to_s.length > 100
516
552
  return false if !@address_line4.nil? && @address_line4.to_s.length < 0
517
553
  return false if @address_city.nil?
518
- return false if @address_city.to_s.length > 100
554
+ return false if @address_city.to_s.length > 50
519
555
  return false if @address_city.to_s.length < 2
520
- return false if !@address_county_or_province.nil? && @address_county_or_province.to_s.length > 100
521
- return false if !@address_county_or_province.nil? && @address_county_or_province.to_s.length < 2
556
+ return false if !@address_county_or_province.nil? && @address_county_or_province.to_s.length > 50
557
+ return false if !@address_county_or_province.nil? && @address_county_or_province.to_s.length < 1
522
558
  return false if @address_zip_or_postcode.nil?
523
- return false if @address_zip_or_postcode.to_s.length > 30
524
- return false if @address_zip_or_postcode.to_s.length < 2
559
+ return false if @address_zip_or_postcode.to_s.length > 60
560
+ return false if @address_zip_or_postcode.to_s.length < 1
525
561
  return false if @address_country.nil?
526
562
  return false if @address_country.to_s.length > 50
527
563
  return false if @address_country.to_s.length < 2
528
- return false if !@individual_title.nil? && @individual_title.to_s.length > 10
564
+ return false if !@individual_national_identification.nil? && @individual_national_identification.to_s.length > 30
565
+ return false if !@individual_national_identification.nil? && @individual_national_identification.to_s.length < 6
566
+ return false if !@individual_title.nil? && @individual_title.to_s.length > 40
529
567
  return false if !@individual_title.nil? && @individual_title.to_s.length < 1
530
568
  return false if !@individual_first_name.nil? && @individual_first_name.to_s.length > 40
531
569
  return false if !@individual_first_name.nil? && @individual_first_name.to_s.length < 1
@@ -535,22 +573,26 @@ module VeloPayments
535
573
  return false if !@individual_last_name.nil? && @individual_last_name.to_s.length < 1
536
574
  return false if !@company_name.nil? && @company_name.to_s.length > 40
537
575
  return false if !@company_name.nil? && @company_name.to_s.length < 1
538
- return false if !@company_tax_id.nil? && @company_tax_id !~ Regexp.new(/[\\d]{9}/)
576
+ return false if !@company_ein.nil? && @company_ein !~ Regexp.new(/[\\d]{9}/)
577
+ return false if !@company_operating_name.nil? && @company_operating_name.to_s.length > 100
578
+ return false if !@company_operating_name.nil? && @company_operating_name.to_s.length < 1
579
+ return false if !@payment_channel_account_number.nil? && @payment_channel_account_number.to_s.length > 17
580
+ return false if !@payment_channel_account_number.nil? && @payment_channel_account_number.to_s.length < 6
581
+ return false if !@payment_channel_routing_number.nil? && @payment_channel_routing_number.to_s.length > 9
582
+ return false if !@payment_channel_routing_number.nil? && @payment_channel_routing_number.to_s.length < 9
539
583
  return false if !@payment_channel_iban.nil? && @payment_channel_iban.to_s.length > 34
540
584
  return false if !@payment_channel_iban.nil? && @payment_channel_iban.to_s.length < 15
541
585
  return false if !@payment_channel_iban.nil? && @payment_channel_iban !~ Regexp.new(/^[A-Za-z0-9]+$/)
542
- return false if !@payment_channel_account_number.nil? && @payment_channel_account_number.to_s.length > 17
543
- return false if !@payment_channel_account_number.nil? && @payment_channel_account_number.to_s.length < 6
544
- return false if !@payment_channel_routing_no.nil? && @payment_channel_routing_no.to_s.length > 9
545
- return false if !@payment_channel_routing_no.nil? && @payment_channel_routing_no.to_s.length < 9
546
- return false if !@payment_channel_country_code.nil? && @payment_channel_country_code.to_s.length > 9
547
- return false if !@payment_channel_country_code.nil? && @payment_channel_country_code.to_s.length < 9
586
+ payment_channel_country_code_validator = EnumAttributeValidator.new('String', ["AF", "AX", "AL", "DZ", "AS", "AD", "AO", "AI", "AQ", "AG", "AR", "AM", "AW", "AU", "AT", "AZ", "BS", "BH", "BD", "BB", "BY", "BE", "BZ", "BJ", "BM", "BT", "BO", "BQ", "BA", "BW", "BV", "BR", "IO", "BN", "BG", "BF", "BI", "KH", "CM", "CA", "CV", "KY", "CF", "TD", "CL", "CN", "CX", "CC", "CO", "KM", "CG", "CD", "CK", "CR", "CI", "HR", "CU", "CW", "CY", "CZ", "DK", "DJ", "DM", "DO", "EC", "EG", "SV", "GQ", "ER", "EE", "ET", "FK", "FO", "FJ", "FI", "FR", "GF", "PF", "TF", "GA", "GM", "GE", "DE", "GH", "GI", "GR", "GL", "GD", "GP", "GU", "GT", "GG", "GN", "GW", "GY", "HT", "HM", "VA", "HN", "HK", "HU", "IS", "IN", "ID", "IR", "IQ", "IE", "IM", "IL", "IT", "JM", "JP", "JE", "JO", "KZ", "KE", "KI", "KP", "KR", "KW", "KG", "LA", "LV", "LB", "LS", "LR", "LY", "LI", "LT", "LU", "MO", "MK", "MG", "MW", "MY", "MV", "ML", "MT", "MH", "MQ", "MR", "MU", "YT", "MX", "FM", "MD", "MC", "MN", "ME", "MS", "MA", "MZ", "MM", "NA", "NR", "NP", "NL", "NC", "NZ", "NI", "NE", "NG", "NU", "NF", "MP", "false", "OM", "PK", "PW", "PS", "PA", "PG", "PY", "PE", "PH", "PN", "PL", "PT", "PR", "QA", "RE", "RO", "RU", "RW", "BL", "SH", "KN", "LC", "MF", "PM", "VC", "WS", "SM", "ST", "SA", "SN", "RS", "SC", "SL", "SG", "SX", "SK", "SI", "SB", "SO", "ZA", "GS", "SS", "ES", "LK", "SD", "SR", "SJ", "SZ", "SE", "CH", "SY", "TW", "TJ", "TZ", "TH", "TL", "TG", "TK", "TO", "TT", "TN", "TR", "TM", "TC", "TV", "UG", "UA", "AE", "GB", "US", "UM", "UY", "UZ", "VU", "VE", "VN", "VG", "VI", "WF", "EH", "YE", "ZM", "ZW"])
587
+ return false unless payment_channel_country_code_validator.valid?(@payment_channel_country_code)
588
+ return false if !@payment_channel_country_code.nil? && @payment_channel_country_code.to_s.length > 2
589
+ return false if !@payment_channel_country_code.nil? && @payment_channel_country_code.to_s.length < 2
548
590
  payment_channel_currency_validator = EnumAttributeValidator.new('String', ["USD", "GBP", "EUR"])
549
591
  return false unless payment_channel_currency_validator.valid?(@payment_channel_currency)
550
- return false if !@challenge_value.nil? && @challenge_value.to_s.length > 20
551
- return false if !@challenge_value.nil? && @challenge_value.to_s.length < 3
552
592
  return false if !@challenge_description.nil? && @challenge_description.to_s.length > 255
553
593
  return false if !@challenge_description.nil? && @challenge_description.to_s.length < 1
594
+ return false if !@challenge_value.nil? && @challenge_value.to_s.length > 20
595
+ return false if !@challenge_value.nil? && @challenge_value.to_s.length < 3
554
596
  payee_language_validator = EnumAttributeValidator.new('String', ["AR", "EN", "ES", "FR", "HE", "HI", "JA", "PT", "RU", "UR", "ZH"])
555
597
  return false unless payee_language_validator.valid?(@payee_language)
556
598
  true
@@ -574,6 +616,24 @@ module VeloPayments
574
616
  @remote_id = remote_id
575
617
  end
576
618
 
619
+ # Custom attribute writer method with validation
620
+ # @param [Object] email Value to be assigned
621
+ def email=(email)
622
+ if email.nil?
623
+ fail ArgumentError, 'email cannot be nil'
624
+ end
625
+
626
+ if email.to_s.length > 255
627
+ fail ArgumentError, 'invalid value for "email", the character length must be smaller than or equal to 255.'
628
+ end
629
+
630
+ if email.to_s.length < 3
631
+ fail ArgumentError, 'invalid value for "email", the character length must be great than or equal to 3.'
632
+ end
633
+
634
+ @email = email
635
+ end
636
+
577
637
  # Custom attribute writer method with validation
578
638
  # @param [Object] address_line1 Value to be assigned
579
639
  def address_line1=(address_line1)
@@ -581,8 +641,8 @@ module VeloPayments
581
641
  fail ArgumentError, 'address_line1 cannot be nil'
582
642
  end
583
643
 
584
- if address_line1.to_s.length > 255
585
- fail ArgumentError, 'invalid value for "address_line1", the character length must be smaller than or equal to 255.'
644
+ if address_line1.to_s.length > 100
645
+ fail ArgumentError, 'invalid value for "address_line1", the character length must be smaller than or equal to 100.'
586
646
  end
587
647
 
588
648
  if address_line1.to_s.length < 2
@@ -595,8 +655,8 @@ module VeloPayments
595
655
  # Custom attribute writer method with validation
596
656
  # @param [Object] address_line2 Value to be assigned
597
657
  def address_line2=(address_line2)
598
- if !address_line2.nil? && address_line2.to_s.length > 255
599
- fail ArgumentError, 'invalid value for "address_line2", the character length must be smaller than or equal to 255.'
658
+ if !address_line2.nil? && address_line2.to_s.length > 100
659
+ fail ArgumentError, 'invalid value for "address_line2", the character length must be smaller than or equal to 100.'
600
660
  end
601
661
 
602
662
  if !address_line2.nil? && address_line2.to_s.length < 0
@@ -609,8 +669,8 @@ module VeloPayments
609
669
  # Custom attribute writer method with validation
610
670
  # @param [Object] address_line3 Value to be assigned
611
671
  def address_line3=(address_line3)
612
- if !address_line3.nil? && address_line3.to_s.length > 255
613
- fail ArgumentError, 'invalid value for "address_line3", the character length must be smaller than or equal to 255.'
672
+ if !address_line3.nil? && address_line3.to_s.length > 100
673
+ fail ArgumentError, 'invalid value for "address_line3", the character length must be smaller than or equal to 100.'
614
674
  end
615
675
 
616
676
  if !address_line3.nil? && address_line3.to_s.length < 0
@@ -623,8 +683,8 @@ module VeloPayments
623
683
  # Custom attribute writer method with validation
624
684
  # @param [Object] address_line4 Value to be assigned
625
685
  def address_line4=(address_line4)
626
- if !address_line4.nil? && address_line4.to_s.length > 255
627
- fail ArgumentError, 'invalid value for "address_line4", the character length must be smaller than or equal to 255.'
686
+ if !address_line4.nil? && address_line4.to_s.length > 100
687
+ fail ArgumentError, 'invalid value for "address_line4", the character length must be smaller than or equal to 100.'
628
688
  end
629
689
 
630
690
  if !address_line4.nil? && address_line4.to_s.length < 0
@@ -641,8 +701,8 @@ module VeloPayments
641
701
  fail ArgumentError, 'address_city cannot be nil'
642
702
  end
643
703
 
644
- if address_city.to_s.length > 100
645
- fail ArgumentError, 'invalid value for "address_city", the character length must be smaller than or equal to 100.'
704
+ if address_city.to_s.length > 50
705
+ fail ArgumentError, 'invalid value for "address_city", the character length must be smaller than or equal to 50.'
646
706
  end
647
707
 
648
708
  if address_city.to_s.length < 2
@@ -655,12 +715,12 @@ module VeloPayments
655
715
  # Custom attribute writer method with validation
656
716
  # @param [Object] address_county_or_province Value to be assigned
657
717
  def address_county_or_province=(address_county_or_province)
658
- if !address_county_or_province.nil? && address_county_or_province.to_s.length > 100
659
- fail ArgumentError, 'invalid value for "address_county_or_province", the character length must be smaller than or equal to 100.'
718
+ if !address_county_or_province.nil? && address_county_or_province.to_s.length > 50
719
+ fail ArgumentError, 'invalid value for "address_county_or_province", the character length must be smaller than or equal to 50.'
660
720
  end
661
721
 
662
- if !address_county_or_province.nil? && address_county_or_province.to_s.length < 2
663
- fail ArgumentError, 'invalid value for "address_county_or_province", the character length must be great than or equal to 2.'
722
+ if !address_county_or_province.nil? && address_county_or_province.to_s.length < 1
723
+ fail ArgumentError, 'invalid value for "address_county_or_province", the character length must be great than or equal to 1.'
664
724
  end
665
725
 
666
726
  @address_county_or_province = address_county_or_province
@@ -673,12 +733,12 @@ module VeloPayments
673
733
  fail ArgumentError, 'address_zip_or_postcode cannot be nil'
674
734
  end
675
735
 
676
- if address_zip_or_postcode.to_s.length > 30
677
- fail ArgumentError, 'invalid value for "address_zip_or_postcode", the character length must be smaller than or equal to 30.'
736
+ if address_zip_or_postcode.to_s.length > 60
737
+ fail ArgumentError, 'invalid value for "address_zip_or_postcode", the character length must be smaller than or equal to 60.'
678
738
  end
679
739
 
680
- if address_zip_or_postcode.to_s.length < 2
681
- fail ArgumentError, 'invalid value for "address_zip_or_postcode", the character length must be great than or equal to 2.'
740
+ if address_zip_or_postcode.to_s.length < 1
741
+ fail ArgumentError, 'invalid value for "address_zip_or_postcode", the character length must be great than or equal to 1.'
682
742
  end
683
743
 
684
744
  @address_zip_or_postcode = address_zip_or_postcode
@@ -702,11 +762,25 @@ module VeloPayments
702
762
  @address_country = address_country
703
763
  end
704
764
 
765
+ # Custom attribute writer method with validation
766
+ # @param [Object] individual_national_identification Value to be assigned
767
+ def individual_national_identification=(individual_national_identification)
768
+ if !individual_national_identification.nil? && individual_national_identification.to_s.length > 30
769
+ fail ArgumentError, 'invalid value for "individual_national_identification", the character length must be smaller than or equal to 30.'
770
+ end
771
+
772
+ if !individual_national_identification.nil? && individual_national_identification.to_s.length < 6
773
+ fail ArgumentError, 'invalid value for "individual_national_identification", the character length must be great than or equal to 6.'
774
+ end
775
+
776
+ @individual_national_identification = individual_national_identification
777
+ end
778
+
705
779
  # Custom attribute writer method with validation
706
780
  # @param [Object] individual_title Value to be assigned
707
781
  def individual_title=(individual_title)
708
- if !individual_title.nil? && individual_title.to_s.length > 10
709
- fail ArgumentError, 'invalid value for "individual_title", the character length must be smaller than or equal to 10.'
782
+ if !individual_title.nil? && individual_title.to_s.length > 40
783
+ fail ArgumentError, 'invalid value for "individual_title", the character length must be smaller than or equal to 40.'
710
784
  end
711
785
 
712
786
  if !individual_title.nil? && individual_title.to_s.length < 1
@@ -773,33 +847,28 @@ module VeloPayments
773
847
  end
774
848
 
775
849
  # Custom attribute writer method with validation
776
- # @param [Object] company_tax_id Value to be assigned
777
- def company_tax_id=(company_tax_id)
850
+ # @param [Object] company_ein Value to be assigned
851
+ def company_ein=(company_ein)
778
852
  pattern = Regexp.new(/[\\d]{9}/)
779
- if !company_tax_id.nil? && company_tax_id !~ pattern
780
- fail ArgumentError, "invalid value for \"company_tax_id\", must conform to the pattern #{pattern}."
853
+ if !company_ein.nil? && company_ein !~ pattern
854
+ fail ArgumentError, "invalid value for \"company_ein\", must conform to the pattern #{pattern}."
781
855
  end
782
856
 
783
- @company_tax_id = company_tax_id
857
+ @company_ein = company_ein
784
858
  end
785
859
 
786
860
  # Custom attribute writer method with validation
787
- # @param [Object] payment_channel_iban Value to be assigned
788
- def payment_channel_iban=(payment_channel_iban)
789
- if !payment_channel_iban.nil? && payment_channel_iban.to_s.length > 34
790
- fail ArgumentError, 'invalid value for "payment_channel_iban", the character length must be smaller than or equal to 34.'
861
+ # @param [Object] company_operating_name Value to be assigned
862
+ def company_operating_name=(company_operating_name)
863
+ if !company_operating_name.nil? && company_operating_name.to_s.length > 100
864
+ fail ArgumentError, 'invalid value for "company_operating_name", the character length must be smaller than or equal to 100.'
791
865
  end
792
866
 
793
- if !payment_channel_iban.nil? && payment_channel_iban.to_s.length < 15
794
- fail ArgumentError, 'invalid value for "payment_channel_iban", the character length must be great than or equal to 15.'
867
+ if !company_operating_name.nil? && company_operating_name.to_s.length < 1
868
+ fail ArgumentError, 'invalid value for "company_operating_name", the character length must be great than or equal to 1.'
795
869
  end
796
870
 
797
- pattern = Regexp.new(/^[A-Za-z0-9]+$/)
798
- if !payment_channel_iban.nil? && payment_channel_iban !~ pattern
799
- fail ArgumentError, "invalid value for \"payment_channel_iban\", must conform to the pattern #{pattern}."
800
- end
801
-
802
- @payment_channel_iban = payment_channel_iban
871
+ @company_operating_name = company_operating_name
803
872
  end
804
873
 
805
874
  # Custom attribute writer method with validation
@@ -817,30 +886,45 @@ module VeloPayments
817
886
  end
818
887
 
819
888
  # Custom attribute writer method with validation
820
- # @param [Object] payment_channel_routing_no Value to be assigned
821
- def payment_channel_routing_no=(payment_channel_routing_no)
822
- if !payment_channel_routing_no.nil? && payment_channel_routing_no.to_s.length > 9
823
- fail ArgumentError, 'invalid value for "payment_channel_routing_no", the character length must be smaller than or equal to 9.'
889
+ # @param [Object] payment_channel_routing_number Value to be assigned
890
+ def payment_channel_routing_number=(payment_channel_routing_number)
891
+ if !payment_channel_routing_number.nil? && payment_channel_routing_number.to_s.length > 9
892
+ fail ArgumentError, 'invalid value for "payment_channel_routing_number", the character length must be smaller than or equal to 9.'
824
893
  end
825
894
 
826
- if !payment_channel_routing_no.nil? && payment_channel_routing_no.to_s.length < 9
827
- fail ArgumentError, 'invalid value for "payment_channel_routing_no", the character length must be great than or equal to 9.'
895
+ if !payment_channel_routing_number.nil? && payment_channel_routing_number.to_s.length < 9
896
+ fail ArgumentError, 'invalid value for "payment_channel_routing_number", the character length must be great than or equal to 9.'
828
897
  end
829
898
 
830
- @payment_channel_routing_no = payment_channel_routing_no
899
+ @payment_channel_routing_number = payment_channel_routing_number
831
900
  end
832
901
 
833
902
  # Custom attribute writer method with validation
834
- # @param [Object] payment_channel_country_code Value to be assigned
835
- def payment_channel_country_code=(payment_channel_country_code)
836
- if !payment_channel_country_code.nil? && payment_channel_country_code.to_s.length > 9
837
- fail ArgumentError, 'invalid value for "payment_channel_country_code", the character length must be smaller than or equal to 9.'
903
+ # @param [Object] payment_channel_iban Value to be assigned
904
+ def payment_channel_iban=(payment_channel_iban)
905
+ if !payment_channel_iban.nil? && payment_channel_iban.to_s.length > 34
906
+ fail ArgumentError, 'invalid value for "payment_channel_iban", the character length must be smaller than or equal to 34.'
838
907
  end
839
908
 
840
- if !payment_channel_country_code.nil? && payment_channel_country_code.to_s.length < 9
841
- fail ArgumentError, 'invalid value for "payment_channel_country_code", the character length must be great than or equal to 9.'
909
+ if !payment_channel_iban.nil? && payment_channel_iban.to_s.length < 15
910
+ fail ArgumentError, 'invalid value for "payment_channel_iban", the character length must be great than or equal to 15.'
842
911
  end
843
912
 
913
+ pattern = Regexp.new(/^[A-Za-z0-9]+$/)
914
+ if !payment_channel_iban.nil? && payment_channel_iban !~ pattern
915
+ fail ArgumentError, "invalid value for \"payment_channel_iban\", must conform to the pattern #{pattern}."
916
+ end
917
+
918
+ @payment_channel_iban = payment_channel_iban
919
+ end
920
+
921
+ # Custom attribute writer method checking allowed values (enum).
922
+ # @param [Object] payment_channel_country_code Object to be assigned
923
+ def payment_channel_country_code=(payment_channel_country_code)
924
+ validator = EnumAttributeValidator.new('String', ["AF", "AX", "AL", "DZ", "AS", "AD", "AO", "AI", "AQ", "AG", "AR", "AM", "AW", "AU", "AT", "AZ", "BS", "BH", "BD", "BB", "BY", "BE", "BZ", "BJ", "BM", "BT", "BO", "BQ", "BA", "BW", "BV", "BR", "IO", "BN", "BG", "BF", "BI", "KH", "CM", "CA", "CV", "KY", "CF", "TD", "CL", "CN", "CX", "CC", "CO", "KM", "CG", "CD", "CK", "CR", "CI", "HR", "CU", "CW", "CY", "CZ", "DK", "DJ", "DM", "DO", "EC", "EG", "SV", "GQ", "ER", "EE", "ET", "FK", "FO", "FJ", "FI", "FR", "GF", "PF", "TF", "GA", "GM", "GE", "DE", "GH", "GI", "GR", "GL", "GD", "GP", "GU", "GT", "GG", "GN", "GW", "GY", "HT", "HM", "VA", "HN", "HK", "HU", "IS", "IN", "ID", "IR", "IQ", "IE", "IM", "IL", "IT", "JM", "JP", "JE", "JO", "KZ", "KE", "KI", "KP", "KR", "KW", "KG", "LA", "LV", "LB", "LS", "LR", "LY", "LI", "LT", "LU", "MO", "MK", "MG", "MW", "MY", "MV", "ML", "MT", "MH", "MQ", "MR", "MU", "YT", "MX", "FM", "MD", "MC", "MN", "ME", "MS", "MA", "MZ", "MM", "NA", "NR", "NP", "NL", "NC", "NZ", "NI", "NE", "NG", "NU", "NF", "MP", "false", "OM", "PK", "PW", "PS", "PA", "PG", "PY", "PE", "PH", "PN", "PL", "PT", "PR", "QA", "RE", "RO", "RU", "RW", "BL", "SH", "KN", "LC", "MF", "PM", "VC", "WS", "SM", "ST", "SA", "SN", "RS", "SC", "SL", "SG", "SX", "SK", "SI", "SB", "SO", "ZA", "GS", "SS", "ES", "LK", "SD", "SR", "SJ", "SZ", "SE", "CH", "SY", "TW", "TJ", "TZ", "TH", "TL", "TG", "TK", "TO", "TT", "TN", "TR", "TM", "TC", "TV", "UG", "UA", "AE", "GB", "US", "UM", "UY", "UZ", "VU", "VE", "VN", "VG", "VI", "WF", "EH", "YE", "ZM", "ZW"])
925
+ unless validator.valid?(payment_channel_country_code)
926
+ fail ArgumentError, "invalid value for \"payment_channel_country_code\", must be one of #{validator.allowable_values}."
927
+ end
844
928
  @payment_channel_country_code = payment_channel_country_code
845
929
  end
846
930
 
@@ -854,20 +938,6 @@ module VeloPayments
854
938
  @payment_channel_currency = payment_channel_currency
855
939
  end
856
940
 
857
- # Custom attribute writer method with validation
858
- # @param [Object] challenge_value Value to be assigned
859
- def challenge_value=(challenge_value)
860
- if !challenge_value.nil? && challenge_value.to_s.length > 20
861
- fail ArgumentError, 'invalid value for "challenge_value", the character length must be smaller than or equal to 20.'
862
- end
863
-
864
- if !challenge_value.nil? && challenge_value.to_s.length < 3
865
- fail ArgumentError, 'invalid value for "challenge_value", the character length must be great than or equal to 3.'
866
- end
867
-
868
- @challenge_value = challenge_value
869
- end
870
-
871
941
  # Custom attribute writer method with validation
872
942
  # @param [Object] challenge_description Value to be assigned
873
943
  def challenge_description=(challenge_description)
@@ -882,6 +952,20 @@ module VeloPayments
882
952
  @challenge_description = challenge_description
883
953
  end
884
954
 
955
+ # Custom attribute writer method with validation
956
+ # @param [Object] challenge_value Value to be assigned
957
+ def challenge_value=(challenge_value)
958
+ if !challenge_value.nil? && challenge_value.to_s.length > 20
959
+ fail ArgumentError, 'invalid value for "challenge_value", the character length must be smaller than or equal to 20.'
960
+ end
961
+
962
+ if !challenge_value.nil? && challenge_value.to_s.length < 3
963
+ fail ArgumentError, 'invalid value for "challenge_value", the character length must be great than or equal to 3.'
964
+ end
965
+
966
+ @challenge_value = challenge_value
967
+ end
968
+
885
969
  # Custom attribute writer method checking allowed values (enum).
886
970
  # @param [Object] payee_language Object to be assigned
887
971
  def payee_language=(payee_language)
@@ -908,22 +992,23 @@ module VeloPayments
908
992
  address_county_or_province == o.address_county_or_province &&
909
993
  address_zip_or_postcode == o.address_zip_or_postcode &&
910
994
  address_country == o.address_country &&
995
+ individual_national_identification == o.individual_national_identification &&
996
+ individual_date_of_birth == o.individual_date_of_birth &&
911
997
  individual_title == o.individual_title &&
912
998
  individual_first_name == o.individual_first_name &&
913
999
  individual_other_names == o.individual_other_names &&
914
1000
  individual_last_name == o.individual_last_name &&
915
- individual_national_identification == o.individual_national_identification &&
916
- individual_date_of_birth == o.individual_date_of_birth &&
917
1001
  company_name == o.company_name &&
918
- company_tax_id == o.company_tax_id &&
919
- payment_channel_iban == o.payment_channel_iban &&
1002
+ company_ein == o.company_ein &&
1003
+ company_operating_name == o.company_operating_name &&
920
1004
  payment_channel_account_number == o.payment_channel_account_number &&
921
- payment_channel_routing_no == o.payment_channel_routing_no &&
1005
+ payment_channel_routing_number == o.payment_channel_routing_number &&
1006
+ payment_channel_account_name == o.payment_channel_account_name &&
1007
+ payment_channel_iban == o.payment_channel_iban &&
922
1008
  payment_channel_country_code == o.payment_channel_country_code &&
923
1009
  payment_channel_currency == o.payment_channel_currency &&
924
- payment_channel_account_name == o.payment_channel_account_name &&
925
- challenge_value == o.challenge_value &&
926
1010
  challenge_description == o.challenge_description &&
1011
+ challenge_value == o.challenge_value &&
927
1012
  payee_language == o.payee_language
928
1013
  end
929
1014
 
@@ -936,7 +1021,7 @@ module VeloPayments
936
1021
  # Calculates hash code according to all attributes.
937
1022
  # @return [Integer] Hash code
938
1023
  def hash
939
- [type, remote_id, email, address_line1, address_line2, address_line3, address_line4, address_city, address_county_or_province, address_zip_or_postcode, address_country, individual_title, individual_first_name, individual_other_names, individual_last_name, individual_national_identification, individual_date_of_birth, company_name, company_tax_id, payment_channel_iban, payment_channel_account_number, payment_channel_routing_no, payment_channel_country_code, payment_channel_currency, payment_channel_account_name, challenge_value, challenge_description, payee_language].hash
1024
+ [type, remote_id, email, address_line1, address_line2, address_line3, address_line4, address_city, address_county_or_province, address_zip_or_postcode, address_country, individual_national_identification, individual_date_of_birth, individual_title, individual_first_name, individual_other_names, individual_last_name, company_name, company_ein, company_operating_name, payment_channel_account_number, payment_channel_routing_number, payment_channel_account_name, payment_channel_iban, payment_channel_country_code, payment_channel_currency, challenge_description, challenge_value, payee_language].hash
940
1025
  end
941
1026
 
942
1027
  # Builds the object from hash