paypal-server-sdk 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (275) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +35 -0
  3. data/README.md +112 -0
  4. data/lib/paypal_server_sdk/api_helper.rb +10 -0
  5. data/lib/paypal_server_sdk/client.rb +85 -0
  6. data/lib/paypal_server_sdk/configuration.rb +109 -0
  7. data/lib/paypal_server_sdk/controllers/base_controller.rb +71 -0
  8. data/lib/paypal_server_sdk/controllers/o_auth_authorization_controller.rb +42 -0
  9. data/lib/paypal_server_sdk/controllers/orders_controller.rb +517 -0
  10. data/lib/paypal_server_sdk/controllers/payments_controller.rb +404 -0
  11. data/lib/paypal_server_sdk/controllers/vault_controller.rb +224 -0
  12. data/lib/paypal_server_sdk/exceptions/api_exception.rb +10 -0
  13. data/lib/paypal_server_sdk/exceptions/error_exception.rb +71 -0
  14. data/lib/paypal_server_sdk/exceptions/o_auth_provider_exception.rb +48 -0
  15. data/lib/paypal_server_sdk/http/api_response.rb +21 -0
  16. data/lib/paypal_server_sdk/http/auth/o_auth2.rb +136 -0
  17. data/lib/paypal_server_sdk/http/http_call_back.rb +10 -0
  18. data/lib/paypal_server_sdk/http/http_method_enum.rb +10 -0
  19. data/lib/paypal_server_sdk/http/http_request.rb +10 -0
  20. data/lib/paypal_server_sdk/http/http_response.rb +10 -0
  21. data/lib/paypal_server_sdk/logging/configuration/api_logging_configuration.rb +114 -0
  22. data/lib/paypal_server_sdk/logging/sdk_logger.rb +17 -0
  23. data/lib/paypal_server_sdk/models/activity_timestamps.rb +68 -0
  24. data/lib/paypal_server_sdk/models/address.rb +116 -0
  25. data/lib/paypal_server_sdk/models/address_details.rb +160 -0
  26. data/lib/paypal_server_sdk/models/amount_breakdown.rb +115 -0
  27. data/lib/paypal_server_sdk/models/amount_with_breakdown.rb +80 -0
  28. data/lib/paypal_server_sdk/models/apple_pay_attributes.rb +60 -0
  29. data/lib/paypal_server_sdk/models/apple_pay_attributes_response.rb +50 -0
  30. data/lib/paypal_server_sdk/models/apple_pay_card.rb +94 -0
  31. data/lib/paypal_server_sdk/models/apple_pay_card_response.rb +167 -0
  32. data/lib/paypal_server_sdk/models/apple_pay_decrypted_token_data.rb +95 -0
  33. data/lib/paypal_server_sdk/models/apple_pay_payment_data.rb +83 -0
  34. data/lib/paypal_server_sdk/models/apple_pay_payment_data_type.rb +24 -0
  35. data/lib/paypal_server_sdk/models/apple_pay_payment_object.rb +114 -0
  36. data/lib/paypal_server_sdk/models/apple_pay_payment_token.rb +51 -0
  37. data/lib/paypal_server_sdk/models/apple_pay_request.rb +137 -0
  38. data/lib/paypal_server_sdk/models/apple_pay_tokenized_card.rb +113 -0
  39. data/lib/paypal_server_sdk/models/assurance_details.rb +68 -0
  40. data/lib/paypal_server_sdk/models/authentication_response.rb +61 -0
  41. data/lib/paypal_server_sdk/models/authorization.rb +192 -0
  42. data/lib/paypal_server_sdk/models/authorization_incomplete_reason.rb +23 -0
  43. data/lib/paypal_server_sdk/models/authorization_status.rb +35 -0
  44. data/lib/paypal_server_sdk/models/authorization_status_details.rb +50 -0
  45. data/lib/paypal_server_sdk/models/authorization_status_with_details.rb +60 -0
  46. data/lib/paypal_server_sdk/models/authorization_with_additional_data.rb +205 -0
  47. data/lib/paypal_server_sdk/models/avs_code.rb +90 -0
  48. data/lib/paypal_server_sdk/models/bancontact_payment_object.rb +95 -0
  49. data/lib/paypal_server_sdk/models/bancontact_payment_request.rb +73 -0
  50. data/lib/paypal_server_sdk/models/base_model.rb +62 -0
  51. data/lib/paypal_server_sdk/models/bin_details.rb +88 -0
  52. data/lib/paypal_server_sdk/models/blik_experience_context.rb +122 -0
  53. data/lib/paypal_server_sdk/models/blik_level0_payment_object.rb +48 -0
  54. data/lib/paypal_server_sdk/models/blik_one_click_payment_object.rb +52 -0
  55. data/lib/paypal_server_sdk/models/blik_one_click_payment_request.rb +82 -0
  56. data/lib/paypal_server_sdk/models/blik_payment_object.rb +86 -0
  57. data/lib/paypal_server_sdk/models/blik_payment_request.rb +105 -0
  58. data/lib/paypal_server_sdk/models/capture.rb +228 -0
  59. data/lib/paypal_server_sdk/models/capture_incomplete_reason.rb +55 -0
  60. data/lib/paypal_server_sdk/models/capture_payment_instruction.rb +89 -0
  61. data/lib/paypal_server_sdk/models/capture_request.rb +108 -0
  62. data/lib/paypal_server_sdk/models/capture_status.rb +35 -0
  63. data/lib/paypal_server_sdk/models/capture_status_details.rb +50 -0
  64. data/lib/paypal_server_sdk/models/capture_status_with_details.rb +60 -0
  65. data/lib/paypal_server_sdk/models/captured_payment.rb +248 -0
  66. data/lib/paypal_server_sdk/models/card_attributes.rb +70 -0
  67. data/lib/paypal_server_sdk/models/card_attributes_response.rb +50 -0
  68. data/lib/paypal_server_sdk/models/card_authentication_response.rb +51 -0
  69. data/lib/paypal_server_sdk/models/card_brand.rb +93 -0
  70. data/lib/paypal_server_sdk/models/card_customer_information.rb +85 -0
  71. data/lib/paypal_server_sdk/models/card_experience_context.rb +59 -0
  72. data/lib/paypal_server_sdk/models/card_from_request.rb +60 -0
  73. data/lib/paypal_server_sdk/models/card_payment_token.rb +166 -0
  74. data/lib/paypal_server_sdk/models/card_request.rb +176 -0
  75. data/lib/paypal_server_sdk/models/card_response.rb +139 -0
  76. data/lib/paypal_server_sdk/models/card_response_entity.rb +156 -0
  77. data/lib/paypal_server_sdk/models/card_stored_credential.rb +95 -0
  78. data/lib/paypal_server_sdk/models/card_supplementary_data.rb +71 -0
  79. data/lib/paypal_server_sdk/models/card_type.rb +32 -0
  80. data/lib/paypal_server_sdk/models/card_vault_response.rb +86 -0
  81. data/lib/paypal_server_sdk/models/card_verification.rb +51 -0
  82. data/lib/paypal_server_sdk/models/card_verification_details.rb +111 -0
  83. data/lib/paypal_server_sdk/models/card_verification_method.rb +29 -0
  84. data/lib/paypal_server_sdk/models/card_verification_processor_response.rb +62 -0
  85. data/lib/paypal_server_sdk/models/checkout_payment_intent.rb +24 -0
  86. data/lib/paypal_server_sdk/models/cobranded_card.rb +70 -0
  87. data/lib/paypal_server_sdk/models/confirm_order_request.rb +74 -0
  88. data/lib/paypal_server_sdk/models/customer_information.rb +72 -0
  89. data/lib/paypal_server_sdk/models/customer_request.rb +62 -0
  90. data/lib/paypal_server_sdk/models/customer_vault_payment_tokens_response.rb +105 -0
  91. data/lib/paypal_server_sdk/models/cvv_code.rb +60 -0
  92. data/lib/paypal_server_sdk/models/disbursement_mode.rb +23 -0
  93. data/lib/paypal_server_sdk/models/dispute_category.rb +23 -0
  94. data/lib/paypal_server_sdk/models/eci_flag.rb +39 -0
  95. data/lib/paypal_server_sdk/models/enrollment_status.rb +29 -0
  96. data/lib/paypal_server_sdk/models/eps_payment_object.rb +74 -0
  97. data/lib/paypal_server_sdk/models/eps_payment_request.rb +73 -0
  98. data/lib/paypal_server_sdk/models/error_details.rb +110 -0
  99. data/lib/paypal_server_sdk/models/exchange_rate.rb +75 -0
  100. data/lib/paypal_server_sdk/models/experience_context.rb +98 -0
  101. data/lib/paypal_server_sdk/models/fullfillment_type.rb +31 -0
  102. data/lib/paypal_server_sdk/models/giropay_payment_object.rb +74 -0
  103. data/lib/paypal_server_sdk/models/giropay_payment_request.rb +73 -0
  104. data/lib/paypal_server_sdk/models/google_pay_authentication_method.rb +23 -0
  105. data/lib/paypal_server_sdk/models/google_pay_card_attributes.rb +51 -0
  106. data/lib/paypal_server_sdk/models/google_pay_card_response.rb +104 -0
  107. data/lib/paypal_server_sdk/models/google_pay_decrypted_token_data.rb +105 -0
  108. data/lib/paypal_server_sdk/models/google_pay_payment_method.rb +20 -0
  109. data/lib/paypal_server_sdk/models/google_pay_request.rb +118 -0
  110. data/lib/paypal_server_sdk/models/google_pay_request_card.rb +84 -0
  111. data/lib/paypal_server_sdk/models/google_pay_wallet_response.rb +85 -0
  112. data/lib/paypal_server_sdk/models/ideal_payment_object.rb +85 -0
  113. data/lib/paypal_server_sdk/models/ideal_payment_request.rb +83 -0
  114. data/lib/paypal_server_sdk/models/item.rb +134 -0
  115. data/lib/paypal_server_sdk/models/item_category.rb +26 -0
  116. data/lib/paypal_server_sdk/models/level2_card_processing_data.rb +66 -0
  117. data/lib/paypal_server_sdk/models/level3_card_processing_data.rb +120 -0
  118. data/lib/paypal_server_sdk/models/liability_shift_indicator.rb +26 -0
  119. data/lib/paypal_server_sdk/models/line_item.rb +177 -0
  120. data/lib/paypal_server_sdk/models/link_description.rb +75 -0
  121. data/lib/paypal_server_sdk/models/link_http_method.rb +41 -0
  122. data/lib/paypal_server_sdk/models/money.rb +62 -0
  123. data/lib/paypal_server_sdk/models/my_bank_payment_object.rb +85 -0
  124. data/lib/paypal_server_sdk/models/my_bank_payment_request.rb +73 -0
  125. data/lib/paypal_server_sdk/models/name.rb +61 -0
  126. data/lib/paypal_server_sdk/models/net_amount_breakdown_item.rb +73 -0
  127. data/lib/paypal_server_sdk/models/network_token.rb +95 -0
  128. data/lib/paypal_server_sdk/models/network_transaction_reference.rb +90 -0
  129. data/lib/paypal_server_sdk/models/network_transaction_reference_entity.rb +88 -0
  130. data/lib/paypal_server_sdk/models/o_auth_provider_error.rb +45 -0
  131. data/lib/paypal_server_sdk/models/o_auth_token.rb +106 -0
  132. data/lib/paypal_server_sdk/models/order.rb +178 -0
  133. data/lib/paypal_server_sdk/models/order_application_context.rb +193 -0
  134. data/lib/paypal_server_sdk/models/order_application_context_landing_page.rb +32 -0
  135. data/lib/paypal_server_sdk/models/order_application_context_shipping_preference.rb +34 -0
  136. data/lib/paypal_server_sdk/models/order_application_context_user_action.rb +29 -0
  137. data/lib/paypal_server_sdk/models/order_authorize_request.rb +51 -0
  138. data/lib/paypal_server_sdk/models/order_authorize_request_payment_source.rb +104 -0
  139. data/lib/paypal_server_sdk/models/order_authorize_response.rb +171 -0
  140. data/lib/paypal_server_sdk/models/order_authorize_response_payment_source.rb +88 -0
  141. data/lib/paypal_server_sdk/models/order_capture_request.rb +51 -0
  142. data/lib/paypal_server_sdk/models/order_capture_request_payment_source.rb +104 -0
  143. data/lib/paypal_server_sdk/models/order_confirm_application_context.rb +109 -0
  144. data/lib/paypal_server_sdk/models/order_request.rb +103 -0
  145. data/lib/paypal_server_sdk/models/order_status.rb +35 -0
  146. data/lib/paypal_server_sdk/models/order_tracker_item.rb +99 -0
  147. data/lib/paypal_server_sdk/models/order_tracker_request.rb +116 -0
  148. data/lib/paypal_server_sdk/models/order_tracker_response.rb +122 -0
  149. data/lib/paypal_server_sdk/models/order_tracker_status.rb +23 -0
  150. data/lib/paypal_server_sdk/models/p24_payment_object.rb +108 -0
  151. data/lib/paypal_server_sdk/models/p24_payment_request.rb +85 -0
  152. data/lib/paypal_server_sdk/models/pa_res_status.rb +42 -0
  153. data/lib/paypal_server_sdk/models/patch.rb +83 -0
  154. data/lib/paypal_server_sdk/models/patch_op.rb +35 -0
  155. data/lib/paypal_server_sdk/models/pay_pal_experience_landing_page.rb +26 -0
  156. data/lib/paypal_server_sdk/models/pay_pal_experience_user_action.rb +24 -0
  157. data/lib/paypal_server_sdk/models/pay_pal_payment_token.rb +180 -0
  158. data/lib/paypal_server_sdk/models/pay_pal_payment_token_customer_type.rb +25 -0
  159. data/lib/paypal_server_sdk/models/pay_pal_payment_token_usage_pattern.rb +35 -0
  160. data/lib/paypal_server_sdk/models/pay_pal_payment_token_usage_type.rb +23 -0
  161. data/lib/paypal_server_sdk/models/pay_pal_wallet.rb +158 -0
  162. data/lib/paypal_server_sdk/models/pay_pal_wallet_account_verification_status.rb +24 -0
  163. data/lib/paypal_server_sdk/models/pay_pal_wallet_attributes.rb +59 -0
  164. data/lib/paypal_server_sdk/models/pay_pal_wallet_attributes_response.rb +70 -0
  165. data/lib/paypal_server_sdk/models/pay_pal_wallet_customer.rb +85 -0
  166. data/lib/paypal_server_sdk/models/pay_pal_wallet_customer_request.rb +85 -0
  167. data/lib/paypal_server_sdk/models/pay_pal_wallet_experience_context.rb +140 -0
  168. data/lib/paypal_server_sdk/models/pay_pal_wallet_response.rb +166 -0
  169. data/lib/paypal_server_sdk/models/pay_pal_wallet_vault_instruction.rb +115 -0
  170. data/lib/paypal_server_sdk/models/pay_pal_wallet_vault_response.rb +86 -0
  171. data/lib/paypal_server_sdk/models/pay_pal_wallet_vault_status.rb +26 -0
  172. data/lib/paypal_server_sdk/models/payee.rb +65 -0
  173. data/lib/paypal_server_sdk/models/payee_base.rb +64 -0
  174. data/lib/paypal_server_sdk/models/payee_payment_method_preference.rb +23 -0
  175. data/lib/paypal_server_sdk/models/payer.rb +120 -0
  176. data/lib/paypal_server_sdk/models/payer_base.rb +64 -0
  177. data/lib/paypal_server_sdk/models/payment_advice_code.rb +30 -0
  178. data/lib/paypal_server_sdk/models/payment_authorization.rb +212 -0
  179. data/lib/paypal_server_sdk/models/payment_collection.rb +99 -0
  180. data/lib/paypal_server_sdk/models/payment_initiator.rb +23 -0
  181. data/lib/paypal_server_sdk/models/payment_instruction.rb +105 -0
  182. data/lib/paypal_server_sdk/models/payment_method_preference.rb +72 -0
  183. data/lib/paypal_server_sdk/models/payment_source.rb +187 -0
  184. data/lib/paypal_server_sdk/models/payment_source_response.rb +171 -0
  185. data/lib/paypal_server_sdk/models/payment_supplementary_data.rb +50 -0
  186. data/lib/paypal_server_sdk/models/payment_token_request.rb +60 -0
  187. data/lib/paypal_server_sdk/models/payment_token_request_card.rb +125 -0
  188. data/lib/paypal_server_sdk/models/payment_token_request_payment_source.rb +59 -0
  189. data/lib/paypal_server_sdk/models/payment_token_response.rb +87 -0
  190. data/lib/paypal_server_sdk/models/payment_token_response_payment_source.rb +87 -0
  191. data/lib/paypal_server_sdk/models/phone.rb +77 -0
  192. data/lib/paypal_server_sdk/models/phone_number.rb +54 -0
  193. data/lib/paypal_server_sdk/models/phone_number_with_country_code.rb +66 -0
  194. data/lib/paypal_server_sdk/models/phone_type.rb +32 -0
  195. data/lib/paypal_server_sdk/models/phone_with_type.rb +59 -0
  196. data/lib/paypal_server_sdk/models/platform_fee.rb +63 -0
  197. data/lib/paypal_server_sdk/models/processing_instruction.rb +23 -0
  198. data/lib/paypal_server_sdk/models/processor_response.rb +83 -0
  199. data/lib/paypal_server_sdk/models/processor_response_code.rb +479 -0
  200. data/lib/paypal_server_sdk/models/purchase_unit.rb +227 -0
  201. data/lib/paypal_server_sdk/models/purchase_unit_request.rb +193 -0
  202. data/lib/paypal_server_sdk/models/reauthorize_request.rb +62 -0
  203. data/lib/paypal_server_sdk/models/refund.rb +195 -0
  204. data/lib/paypal_server_sdk/models/refund_incomplete_reason.rb +20 -0
  205. data/lib/paypal_server_sdk/models/refund_payment_instruction.rb +68 -0
  206. data/lib/paypal_server_sdk/models/refund_platform_fee.rb +52 -0
  207. data/lib/paypal_server_sdk/models/refund_request.rb +100 -0
  208. data/lib/paypal_server_sdk/models/refund_status.rb +29 -0
  209. data/lib/paypal_server_sdk/models/refund_status_details.rb +50 -0
  210. data/lib/paypal_server_sdk/models/refund_status_with_details.rb +60 -0
  211. data/lib/paypal_server_sdk/models/related_identifiers.rb +69 -0
  212. data/lib/paypal_server_sdk/models/seller_payable_breakdown.rb +156 -0
  213. data/lib/paypal_server_sdk/models/seller_protection.rb +65 -0
  214. data/lib/paypal_server_sdk/models/seller_protection_status.rb +29 -0
  215. data/lib/paypal_server_sdk/models/seller_receivable_breakdown.rb +129 -0
  216. data/lib/paypal_server_sdk/models/setup_token_card_experience_context.rb +103 -0
  217. data/lib/paypal_server_sdk/models/setup_token_request.rb +60 -0
  218. data/lib/paypal_server_sdk/models/setup_token_request_card.rb +141 -0
  219. data/lib/paypal_server_sdk/models/setup_token_request_payment_source.rb +77 -0
  220. data/lib/paypal_server_sdk/models/setup_token_response.rb +106 -0
  221. data/lib/paypal_server_sdk/models/setup_token_response_card.rb +156 -0
  222. data/lib/paypal_server_sdk/models/setup_token_response_payment_source.rb +68 -0
  223. data/lib/paypal_server_sdk/models/shipment_carrier.rb +3852 -0
  224. data/lib/paypal_server_sdk/models/shipping_details.rb +106 -0
  225. data/lib/paypal_server_sdk/models/shipping_name.rb +50 -0
  226. data/lib/paypal_server_sdk/models/shipping_option.rb +94 -0
  227. data/lib/paypal_server_sdk/models/shipping_preference.rb +26 -0
  228. data/lib/paypal_server_sdk/models/shipping_type.rb +29 -0
  229. data/lib/paypal_server_sdk/models/shipping_with_tracking_details.rb +124 -0
  230. data/lib/paypal_server_sdk/models/sofort_payment_object.rb +85 -0
  231. data/lib/paypal_server_sdk/models/sofort_payment_request.rb +73 -0
  232. data/lib/paypal_server_sdk/models/standard_entry_class_code.rb +36 -0
  233. data/lib/paypal_server_sdk/models/store_in_vault_instruction.rb +20 -0
  234. data/lib/paypal_server_sdk/models/stored_payment_source.rb +95 -0
  235. data/lib/paypal_server_sdk/models/stored_payment_source_payment_type.rb +26 -0
  236. data/lib/paypal_server_sdk/models/stored_payment_source_usage_type.rb +27 -0
  237. data/lib/paypal_server_sdk/models/supplementary_data.rb +58 -0
  238. data/lib/paypal_server_sdk/models/supplementary_purchase_data.rb +63 -0
  239. data/lib/paypal_server_sdk/models/tax_id_type.rb +23 -0
  240. data/lib/paypal_server_sdk/models/tax_info.rb +57 -0
  241. data/lib/paypal_server_sdk/models/three_d_secure_authentication_response.rb +62 -0
  242. data/lib/paypal_server_sdk/models/token.rb +56 -0
  243. data/lib/paypal_server_sdk/models/token_request_type.rb +23 -0
  244. data/lib/paypal_server_sdk/models/token_type.rb +20 -0
  245. data/lib/paypal_server_sdk/models/trustly_payment_object.rb +85 -0
  246. data/lib/paypal_server_sdk/models/trustly_payment_request.rb +73 -0
  247. data/lib/paypal_server_sdk/models/universal_product_code.rb +56 -0
  248. data/lib/paypal_server_sdk/models/upc_type.rb +38 -0
  249. data/lib/paypal_server_sdk/models/vault_customer.rb +50 -0
  250. data/lib/paypal_server_sdk/models/vault_experience_context.rb +112 -0
  251. data/lib/paypal_server_sdk/models/vault_instruction.rb +50 -0
  252. data/lib/paypal_server_sdk/models/vault_instruction_base.rb +52 -0
  253. data/lib/paypal_server_sdk/models/vault_pay_pal_wallet_request.rb +115 -0
  254. data/lib/paypal_server_sdk/models/vault_response.rb +86 -0
  255. data/lib/paypal_server_sdk/models/vault_status.rb +26 -0
  256. data/lib/paypal_server_sdk/models/vault_token_request.rb +56 -0
  257. data/lib/paypal_server_sdk/models/vault_venmo_experience_context.rb +73 -0
  258. data/lib/paypal_server_sdk/models/vault_venmo_request.rb +115 -0
  259. data/lib/paypal_server_sdk/models/vaulted_digital_wallet.rb +106 -0
  260. data/lib/paypal_server_sdk/models/vaulted_digital_wallet_shipping_details.rb +75 -0
  261. data/lib/paypal_server_sdk/models/venmo_payment_token.rb +169 -0
  262. data/lib/paypal_server_sdk/models/venmo_payment_token_customer_type.rb +25 -0
  263. data/lib/paypal_server_sdk/models/venmo_payment_token_usage_pattern.rb +35 -0
  264. data/lib/paypal_server_sdk/models/venmo_payment_token_usage_type.rb +23 -0
  265. data/lib/paypal_server_sdk/models/venmo_wallet_additional_attributes.rb +60 -0
  266. data/lib/paypal_server_sdk/models/venmo_wallet_attributes_response.rb +50 -0
  267. data/lib/paypal_server_sdk/models/venmo_wallet_customer_information.rb +63 -0
  268. data/lib/paypal_server_sdk/models/venmo_wallet_experience_context.rb +65 -0
  269. data/lib/paypal_server_sdk/models/venmo_wallet_request.rb +89 -0
  270. data/lib/paypal_server_sdk/models/venmo_wallet_response.rb +120 -0
  271. data/lib/paypal_server_sdk/models/venmo_wallet_vault_attributes.rb +114 -0
  272. data/lib/paypal_server_sdk/utilities/date_time_helper.rb +11 -0
  273. data/lib/paypal_server_sdk/utilities/file_wrapper.rb +16 -0
  274. data/lib/paypal_server_sdk.rb +306 -0
  275. metadata +357 -0
@@ -0,0 +1,42 @@
1
+ # paypal_server_sdk
2
+ #
3
+ # This file was automatically generated by APIMATIC v2.0
4
+ # ( https://apimatic.io ).
5
+
6
+ module PaypalServerSdk
7
+ # Transactions status result identifier. The outcome of the issuer's
8
+ # authentication.
9
+ class PAResStatus
10
+ PA_RES_STATUS = [
11
+ # TODO: Write general description for Y
12
+ Y = 'Y'.freeze,
13
+
14
+ # TODO: Write general description for N
15
+ N = 'N'.freeze,
16
+
17
+ # TODO: Write general description for U
18
+ U = 'U'.freeze,
19
+
20
+ # TODO: Write general description for A
21
+ A = 'A'.freeze,
22
+
23
+ # TODO: Write general description for C
24
+ C = 'C'.freeze,
25
+
26
+ # TODO: Write general description for R
27
+ R = 'R'.freeze,
28
+
29
+ # TODO: Write general description for D
30
+ D = 'D'.freeze,
31
+
32
+ # TODO: Write general description for I
33
+ I = 'I'.freeze
34
+ ].freeze
35
+
36
+ def self.validate(value)
37
+ return false if value.nil?
38
+
39
+ true
40
+ end
41
+ end
42
+ end
@@ -0,0 +1,83 @@
1
+ # paypal_server_sdk
2
+ #
3
+ # This file was automatically generated by APIMATIC v2.0
4
+ # ( https://apimatic.io ).
5
+
6
+ module PaypalServerSdk
7
+ # The JSON patch object to apply partial updates to resources.
8
+ class Patch < BaseModel
9
+ SKIP = Object.new
10
+ private_constant :SKIP
11
+
12
+ # The operation.
13
+ # @return [PatchOp]
14
+ attr_accessor :op
15
+
16
+ # The <a href="https://tools.ietf.org/html/rfc6901">JSON Pointer</a> to the
17
+ # target document location at which to complete the operation.
18
+ # @return [String]
19
+ attr_accessor :path
20
+
21
+ # The value to apply. The <code>remove</code>, <code>copy</code>, and
22
+ # <code>move</code> operations do not require a value. Since <a
23
+ # href="https://www.rfc-editor.org/rfc/rfc69021">JSON Patch</a> allows any
24
+ # type for <code>value</code>, the <code>type</code> property is not
25
+ # specified.
26
+ # @return [Object]
27
+ attr_accessor :value
28
+
29
+ # The <a href="https://tools.ietf.org/html/rfc6901">JSON Pointer</a> to the
30
+ # target document location from which to move the value. Required for the
31
+ # <code>move</code> operation.
32
+ # @return [String]
33
+ attr_accessor :from
34
+
35
+ # A mapping from model property names to API property names.
36
+ def self.names
37
+ @_hash = {} if @_hash.nil?
38
+ @_hash['op'] = 'op'
39
+ @_hash['path'] = 'path'
40
+ @_hash['value'] = 'value'
41
+ @_hash['from'] = 'from'
42
+ @_hash
43
+ end
44
+
45
+ # An array for optional fields
46
+ def self.optionals
47
+ %w[
48
+ path
49
+ value
50
+ from
51
+ ]
52
+ end
53
+
54
+ # An array for nullable fields
55
+ def self.nullables
56
+ []
57
+ end
58
+
59
+ def initialize(op:, path: SKIP, value: SKIP, from: SKIP)
60
+ @op = op
61
+ @path = path unless path == SKIP
62
+ @value = value unless value == SKIP
63
+ @from = from unless from == SKIP
64
+ end
65
+
66
+ # Creates an instance of the object from a hash.
67
+ def self.from_hash(hash)
68
+ return nil unless hash
69
+
70
+ # Extract variables from the hash.
71
+ op = hash.key?('op') ? hash['op'] : nil
72
+ path = hash.key?('path') ? hash['path'] : SKIP
73
+ value = hash.key?('value') ? hash['value'] : SKIP
74
+ from = hash.key?('from') ? hash['from'] : SKIP
75
+
76
+ # Create object from extracted values.
77
+ Patch.new(op: op,
78
+ path: path,
79
+ value: value,
80
+ from: from)
81
+ end
82
+ end
83
+ end
@@ -0,0 +1,35 @@
1
+ # paypal_server_sdk
2
+ #
3
+ # This file was automatically generated by APIMATIC v2.0
4
+ # ( https://apimatic.io ).
5
+
6
+ module PaypalServerSdk
7
+ # The operation.
8
+ class PatchOp
9
+ PATCH_OP = [
10
+ # TODO: Write general description for ADD
11
+ ADD = 'add'.freeze,
12
+
13
+ # TODO: Write general description for REMOVE
14
+ REMOVE = 'remove'.freeze,
15
+
16
+ # TODO: Write general description for REPLACE
17
+ REPLACE = 'replace'.freeze,
18
+
19
+ # TODO: Write general description for MOVE
20
+ MOVE = 'move'.freeze,
21
+
22
+ # TODO: Write general description for COPY
23
+ COPY = 'copy'.freeze,
24
+
25
+ # TODO: Write general description for TEST
26
+ TEST = 'test'.freeze
27
+ ].freeze
28
+
29
+ def self.validate(value)
30
+ return false if value.nil?
31
+
32
+ true
33
+ end
34
+ end
35
+ end
@@ -0,0 +1,26 @@
1
+ # paypal_server_sdk
2
+ #
3
+ # This file was automatically generated by APIMATIC v2.0
4
+ # ( https://apimatic.io ).
5
+
6
+ module PaypalServerSdk
7
+ # The type of landing page to show on the PayPal site for customer checkout.
8
+ class PayPalExperienceLandingPage
9
+ PAY_PAL_EXPERIENCE_LANDING_PAGE = [
10
+ # TODO: Write general description for LOGIN
11
+ LOGIN = 'LOGIN'.freeze,
12
+
13
+ # TODO: Write general description for GUEST_CHECKOUT
14
+ GUEST_CHECKOUT = 'GUEST_CHECKOUT'.freeze,
15
+
16
+ # TODO: Write general description for NO_PREFERENCE
17
+ NO_PREFERENCE = 'NO_PREFERENCE'.freeze
18
+ ].freeze
19
+
20
+ def self.validate(value)
21
+ return false if value.nil?
22
+
23
+ true
24
+ end
25
+ end
26
+ end
@@ -0,0 +1,24 @@
1
+ # paypal_server_sdk
2
+ #
3
+ # This file was automatically generated by APIMATIC v2.0
4
+ # ( https://apimatic.io ).
5
+
6
+ module PaypalServerSdk
7
+ # Configures a <strong>Continue</strong> or <strong>Pay Now</strong> checkout
8
+ # flow.
9
+ class PayPalExperienceUserAction
10
+ PAY_PAL_EXPERIENCE_USER_ACTION = [
11
+ # TODO: Write general description for CONTINUE
12
+ CONTINUE = 'CONTINUE'.freeze,
13
+
14
+ # TODO: Write general description for PAY_NOW
15
+ PAY_NOW = 'PAY_NOW'.freeze
16
+ ].freeze
17
+
18
+ def self.validate(value)
19
+ return false if value.nil?
20
+
21
+ true
22
+ end
23
+ end
24
+ end
@@ -0,0 +1,180 @@
1
+ # paypal_server_sdk
2
+ #
3
+ # This file was automatically generated by APIMATIC v2.0
4
+ # ( https://apimatic.io ).
5
+
6
+ module PaypalServerSdk
7
+ # PayPalPaymentToken Model.
8
+ class PayPalPaymentToken < BaseModel
9
+ SKIP = Object.new
10
+ private_constant :SKIP
11
+
12
+ # The description displayed to the consumer on the approval flow for a
13
+ # digital wallet, as well as on the merchant view of the payment token
14
+ # management experience. exp: PayPal.com.
15
+ # @return [String]
16
+ attr_accessor :description
17
+
18
+ # The shipping details.
19
+ # @return [VaultedDigitalWalletShippingDetails]
20
+ attr_accessor :shipping
21
+
22
+ # Create multiple payment tokens for the same payer, merchant/platform
23
+ # combination. Use this when the customer has not logged in at
24
+ # merchant/platform. The payment token thus generated, can then also be used
25
+ # to create the customer account at merchant/platform. Use this also when
26
+ # multiple payment tokens are required for the same payer, different
27
+ # customer at merchant/platform. This helps to identify customers distinctly
28
+ # even though they may share the same PayPal account. This only applies to
29
+ # PayPal payment source.
30
+ # @return [TrueClass | FalseClass]
31
+ attr_accessor :permit_multiple_payment_tokens
32
+
33
+ # The usage type associated with a digital wallet payment token.
34
+ # @return [String]
35
+ attr_accessor :usage_type
36
+
37
+ # The customer type associated with a digital wallet payment token. This is
38
+ # to indicate whether the customer acting on the merchant / platform is
39
+ # either a business or a consumer.
40
+ # @return [String]
41
+ attr_accessor :customer_type
42
+
43
+ # The internationalized email address.<blockquote><strong>Note:</strong> Up
44
+ # to 64 characters are allowed before and 255 characters are allowed after
45
+ # the <code>@</code> sign. However, the generally accepted maximum length
46
+ # for an email address is 254 characters. The pattern verifies that an
47
+ # unquoted <code>@</code> sign exists.</blockquote>
48
+ # @return [String]
49
+ attr_accessor :email_address
50
+
51
+ # The account identifier for a PayPal account.
52
+ # @return [String]
53
+ attr_accessor :payer_id
54
+
55
+ # The name of the party.
56
+ # @return [Name]
57
+ attr_accessor :name
58
+
59
+ # The phone information.
60
+ # @return [PhoneWithType]
61
+ attr_accessor :phone
62
+
63
+ # The portable international postal address. Maps to
64
+ # [AddressValidationMetadata](https://github.com/googlei18n/libaddressinput/
65
+ # wiki/AddressValidationMetadata) and HTML 5.1 [Autofilling form controls:
66
+ # the autocomplete
67
+ # attribute](https://www.w3.org/TR/html51/sec-forms.html#autofilling-form-co
68
+ # ntrols-the-autocomplete-attribute).
69
+ # @return [Address]
70
+ attr_accessor :address
71
+
72
+ # The account identifier for a PayPal account.
73
+ # @return [String]
74
+ attr_accessor :account_id
75
+
76
+ # The phone number, in its canonical international [E.164 numbering plan
77
+ # format](https://www.itu.int/rec/T-REC-E.164/en).
78
+ # @return [Phone]
79
+ attr_accessor :phone_number
80
+
81
+ # A mapping from model property names to API property names.
82
+ def self.names
83
+ @_hash = {} if @_hash.nil?
84
+ @_hash['description'] = 'description'
85
+ @_hash['shipping'] = 'shipping'
86
+ @_hash['permit_multiple_payment_tokens'] =
87
+ 'permit_multiple_payment_tokens'
88
+ @_hash['usage_type'] = 'usage_type'
89
+ @_hash['customer_type'] = 'customer_type'
90
+ @_hash['email_address'] = 'email_address'
91
+ @_hash['payer_id'] = 'payer_id'
92
+ @_hash['name'] = 'name'
93
+ @_hash['phone'] = 'phone'
94
+ @_hash['address'] = 'address'
95
+ @_hash['account_id'] = 'account_id'
96
+ @_hash['phone_number'] = 'phone_number'
97
+ @_hash
98
+ end
99
+
100
+ # An array for optional fields
101
+ def self.optionals
102
+ %w[
103
+ description
104
+ shipping
105
+ permit_multiple_payment_tokens
106
+ usage_type
107
+ customer_type
108
+ email_address
109
+ payer_id
110
+ name
111
+ phone
112
+ address
113
+ account_id
114
+ phone_number
115
+ ]
116
+ end
117
+
118
+ # An array for nullable fields
119
+ def self.nullables
120
+ []
121
+ end
122
+
123
+ def initialize(description: SKIP, shipping: SKIP,
124
+ permit_multiple_payment_tokens: false, usage_type: SKIP,
125
+ customer_type: SKIP, email_address: SKIP, payer_id: SKIP,
126
+ name: SKIP, phone: SKIP, address: SKIP, account_id: SKIP,
127
+ phone_number: SKIP)
128
+ @description = description unless description == SKIP
129
+ @shipping = shipping unless shipping == SKIP
130
+ unless permit_multiple_payment_tokens == SKIP
131
+ @permit_multiple_payment_tokens =
132
+ permit_multiple_payment_tokens
133
+ end
134
+ @usage_type = usage_type unless usage_type == SKIP
135
+ @customer_type = customer_type unless customer_type == SKIP
136
+ @email_address = email_address unless email_address == SKIP
137
+ @payer_id = payer_id unless payer_id == SKIP
138
+ @name = name unless name == SKIP
139
+ @phone = phone unless phone == SKIP
140
+ @address = address unless address == SKIP
141
+ @account_id = account_id unless account_id == SKIP
142
+ @phone_number = phone_number unless phone_number == SKIP
143
+ end
144
+
145
+ # Creates an instance of the object from a hash.
146
+ def self.from_hash(hash)
147
+ return nil unless hash
148
+
149
+ # Extract variables from the hash.
150
+ description = hash.key?('description') ? hash['description'] : SKIP
151
+ shipping = VaultedDigitalWalletShippingDetails.from_hash(hash['shipping']) if
152
+ hash['shipping']
153
+ permit_multiple_payment_tokens =
154
+ hash['permit_multiple_payment_tokens'] ||= false
155
+ usage_type = hash.key?('usage_type') ? hash['usage_type'] : SKIP
156
+ customer_type = hash.key?('customer_type') ? hash['customer_type'] : SKIP
157
+ email_address = hash.key?('email_address') ? hash['email_address'] : SKIP
158
+ payer_id = hash.key?('payer_id') ? hash['payer_id'] : SKIP
159
+ name = Name.from_hash(hash['name']) if hash['name']
160
+ phone = PhoneWithType.from_hash(hash['phone']) if hash['phone']
161
+ address = Address.from_hash(hash['address']) if hash['address']
162
+ account_id = hash.key?('account_id') ? hash['account_id'] : SKIP
163
+ phone_number = Phone.from_hash(hash['phone_number']) if hash['phone_number']
164
+
165
+ # Create object from extracted values.
166
+ PayPalPaymentToken.new(description: description,
167
+ shipping: shipping,
168
+ permit_multiple_payment_tokens: permit_multiple_payment_tokens,
169
+ usage_type: usage_type,
170
+ customer_type: customer_type,
171
+ email_address: email_address,
172
+ payer_id: payer_id,
173
+ name: name,
174
+ phone: phone,
175
+ address: address,
176
+ account_id: account_id,
177
+ phone_number: phone_number)
178
+ end
179
+ end
180
+ end
@@ -0,0 +1,25 @@
1
+ # paypal_server_sdk
2
+ #
3
+ # This file was automatically generated by APIMATIC v2.0
4
+ # ( https://apimatic.io ).
5
+
6
+ module PaypalServerSdk
7
+ # The customer type associated with the PayPal payment token. This is to
8
+ # indicate whether the customer acting on the merchant / platform is either a
9
+ # business or a consumer.
10
+ class PayPalPaymentTokenCustomerType
11
+ PAY_PAL_PAYMENT_TOKEN_CUSTOMER_TYPE = [
12
+ # TODO: Write general description for CONSUMER
13
+ CONSUMER = 'CONSUMER'.freeze,
14
+
15
+ # TODO: Write general description for BUSINESS
16
+ BUSINESS = 'BUSINESS'.freeze
17
+ ].freeze
18
+
19
+ def self.validate(value)
20
+ return false if value.nil?
21
+
22
+ true
23
+ end
24
+ end
25
+ end
@@ -0,0 +1,35 @@
1
+ # paypal_server_sdk
2
+ #
3
+ # This file was automatically generated by APIMATIC v2.0
4
+ # ( https://apimatic.io ).
5
+
6
+ module PaypalServerSdk
7
+ # Expected business/pricing model for the billing agreement.
8
+ class PayPalPaymentTokenUsagePattern
9
+ PAY_PAL_PAYMENT_TOKEN_USAGE_PATTERN = [
10
+ # TODO: Write general description for IMMEDIATE
11
+ IMMEDIATE = 'IMMEDIATE'.freeze,
12
+
13
+ # TODO: Write general description for DEFERRED
14
+ DEFERRED = 'DEFERRED'.freeze,
15
+
16
+ # TODO: Write general description for RECURRING_PREPAID
17
+ RECURRING_PREPAID = 'RECURRING_PREPAID'.freeze,
18
+
19
+ # TODO: Write general description for RECURRING_POSTPAID
20
+ RECURRING_POSTPAID = 'RECURRING_POSTPAID'.freeze,
21
+
22
+ # TODO: Write general description for THRESHOLD_PREPAID
23
+ THRESHOLD_PREPAID = 'THRESHOLD_PREPAID'.freeze,
24
+
25
+ # TODO: Write general description for THRESHOLD_POSTPAID
26
+ THRESHOLD_POSTPAID = 'THRESHOLD_POSTPAID'.freeze
27
+ ].freeze
28
+
29
+ def self.validate(value)
30
+ return false if value.nil?
31
+
32
+ true
33
+ end
34
+ end
35
+ end
@@ -0,0 +1,23 @@
1
+ # paypal_server_sdk
2
+ #
3
+ # This file was automatically generated by APIMATIC v2.0
4
+ # ( https://apimatic.io ).
5
+
6
+ module PaypalServerSdk
7
+ # The usage type associated with the PayPal payment token.
8
+ class PayPalPaymentTokenUsageType
9
+ PAY_PAL_PAYMENT_TOKEN_USAGE_TYPE = [
10
+ # TODO: Write general description for MERCHANT
11
+ MERCHANT = 'MERCHANT'.freeze,
12
+
13
+ # TODO: Write general description for PLATFORM
14
+ PLATFORM = 'PLATFORM'.freeze
15
+ ].freeze
16
+
17
+ def self.validate(value)
18
+ return false if value.nil?
19
+
20
+ true
21
+ end
22
+ end
23
+ end
@@ -0,0 +1,158 @@
1
+ # paypal_server_sdk
2
+ #
3
+ # This file was automatically generated by APIMATIC v2.0
4
+ # ( https://apimatic.io ).
5
+
6
+ module PaypalServerSdk
7
+ # A resource that identifies a PayPal Wallet is used for payment.
8
+ class PayPalWallet < BaseModel
9
+ SKIP = Object.new
10
+ private_constant :SKIP
11
+
12
+ # The PayPal-generated ID for the vaulted payment source. This ID should be
13
+ # stored on the merchant's server so the saved payment source can be used
14
+ # for future transactions.
15
+ # @return [String]
16
+ attr_accessor :vault_id
17
+
18
+ # The internationalized email address.<blockquote><strong>Note:</strong> Up
19
+ # to 64 characters are allowed before and 255 characters are allowed after
20
+ # the <code>@</code> sign. However, the generally accepted maximum length
21
+ # for an email address is 254 characters. The pattern verifies that an
22
+ # unquoted <code>@</code> sign exists.</blockquote>
23
+ # @return [String]
24
+ attr_accessor :email_address
25
+
26
+ # The name of the party.
27
+ # @return [Name]
28
+ attr_accessor :name
29
+
30
+ # The phone information.
31
+ # @return [PhoneWithType]
32
+ attr_accessor :phone
33
+
34
+ # The stand-alone date, in [Internet date and time
35
+ # format](https://tools.ietf.org/html/rfc3339#section-5.6). To represent
36
+ # special legal values, such as a date of birth, you should use dates with
37
+ # no associated time or time-zone data. Whenever possible, use the standard
38
+ # `date_time` type. This regular expression does not validate all dates. For
39
+ # example, February 31 is valid and nothing is known about leap years.
40
+ # @return [String]
41
+ attr_accessor :birth_date
42
+
43
+ # The tax ID of the customer. The customer is also known as the payer. Both
44
+ # `tax_id` and `tax_id_type` are required.
45
+ # @return [TaxInfo]
46
+ attr_accessor :tax_info
47
+
48
+ # The portable international postal address. Maps to
49
+ # [AddressValidationMetadata](https://github.com/googlei18n/libaddressinput/
50
+ # wiki/AddressValidationMetadata) and HTML 5.1 [Autofilling form controls:
51
+ # the autocomplete
52
+ # attribute](https://www.w3.org/TR/html51/sec-forms.html#autofilling-form-co
53
+ # ntrols-the-autocomplete-attribute).
54
+ # @return [Address]
55
+ attr_accessor :address
56
+
57
+ # Additional attributes associated with the use of this PayPal Wallet.
58
+ # @return [PayPalWalletAttributes]
59
+ attr_accessor :attributes
60
+
61
+ # Customizes the payer experience during the approval process for payment
62
+ # with PayPal.<blockquote><strong>Note:</strong> Partners and Marketplaces
63
+ # might configure <code>brand_name</code> and
64
+ # <code>shipping_preference</code> during partner account setup, which
65
+ # overrides the request values.</blockquote>
66
+ # @return [PayPalWalletExperienceContext]
67
+ attr_accessor :experience_context
68
+
69
+ # The PayPal billing agreement ID. References an approved recurring payment
70
+ # for goods or services.
71
+ # @return [String]
72
+ attr_accessor :billing_agreement_id
73
+
74
+ # A mapping from model property names to API property names.
75
+ def self.names
76
+ @_hash = {} if @_hash.nil?
77
+ @_hash['vault_id'] = 'vault_id'
78
+ @_hash['email_address'] = 'email_address'
79
+ @_hash['name'] = 'name'
80
+ @_hash['phone'] = 'phone'
81
+ @_hash['birth_date'] = 'birth_date'
82
+ @_hash['tax_info'] = 'tax_info'
83
+ @_hash['address'] = 'address'
84
+ @_hash['attributes'] = 'attributes'
85
+ @_hash['experience_context'] = 'experience_context'
86
+ @_hash['billing_agreement_id'] = 'billing_agreement_id'
87
+ @_hash
88
+ end
89
+
90
+ # An array for optional fields
91
+ def self.optionals
92
+ %w[
93
+ vault_id
94
+ email_address
95
+ name
96
+ phone
97
+ birth_date
98
+ tax_info
99
+ address
100
+ attributes
101
+ experience_context
102
+ billing_agreement_id
103
+ ]
104
+ end
105
+
106
+ # An array for nullable fields
107
+ def self.nullables
108
+ []
109
+ end
110
+
111
+ def initialize(vault_id: SKIP, email_address: SKIP, name: SKIP, phone: SKIP,
112
+ birth_date: SKIP, tax_info: SKIP, address: SKIP,
113
+ attributes: SKIP, experience_context: SKIP,
114
+ billing_agreement_id: SKIP)
115
+ @vault_id = vault_id unless vault_id == SKIP
116
+ @email_address = email_address unless email_address == SKIP
117
+ @name = name unless name == SKIP
118
+ @phone = phone unless phone == SKIP
119
+ @birth_date = birth_date unless birth_date == SKIP
120
+ @tax_info = tax_info unless tax_info == SKIP
121
+ @address = address unless address == SKIP
122
+ @attributes = attributes unless attributes == SKIP
123
+ @experience_context = experience_context unless experience_context == SKIP
124
+ @billing_agreement_id = billing_agreement_id unless billing_agreement_id == SKIP
125
+ end
126
+
127
+ # Creates an instance of the object from a hash.
128
+ def self.from_hash(hash)
129
+ return nil unless hash
130
+
131
+ # Extract variables from the hash.
132
+ vault_id = hash.key?('vault_id') ? hash['vault_id'] : SKIP
133
+ email_address = hash.key?('email_address') ? hash['email_address'] : SKIP
134
+ name = Name.from_hash(hash['name']) if hash['name']
135
+ phone = PhoneWithType.from_hash(hash['phone']) if hash['phone']
136
+ birth_date = hash.key?('birth_date') ? hash['birth_date'] : SKIP
137
+ tax_info = TaxInfo.from_hash(hash['tax_info']) if hash['tax_info']
138
+ address = Address.from_hash(hash['address']) if hash['address']
139
+ attributes = PayPalWalletAttributes.from_hash(hash['attributes']) if hash['attributes']
140
+ experience_context = PayPalWalletExperienceContext.from_hash(hash['experience_context']) if
141
+ hash['experience_context']
142
+ billing_agreement_id =
143
+ hash.key?('billing_agreement_id') ? hash['billing_agreement_id'] : SKIP
144
+
145
+ # Create object from extracted values.
146
+ PayPalWallet.new(vault_id: vault_id,
147
+ email_address: email_address,
148
+ name: name,
149
+ phone: phone,
150
+ birth_date: birth_date,
151
+ tax_info: tax_info,
152
+ address: address,
153
+ attributes: attributes,
154
+ experience_context: experience_context,
155
+ billing_agreement_id: billing_agreement_id)
156
+ end
157
+ end
158
+ end
@@ -0,0 +1,24 @@
1
+ # paypal_server_sdk
2
+ #
3
+ # This file was automatically generated by APIMATIC v2.0
4
+ # ( https://apimatic.io ).
5
+
6
+ module PaypalServerSdk
7
+ # The account status indicates whether the buyer has verified the financial
8
+ # details associated with their PayPal account.
9
+ class PayPalWalletAccountVerificationStatus
10
+ PAY_PAL_WALLET_ACCOUNT_VERIFICATION_STATUS = [
11
+ # TODO: Write general description for VERIFIED
12
+ VERIFIED = 'VERIFIED'.freeze,
13
+
14
+ # TODO: Write general description for UNVERIFIED
15
+ UNVERIFIED = 'UNVERIFIED'.freeze
16
+ ].freeze
17
+
18
+ def self.validate(value)
19
+ return false if value.nil?
20
+
21
+ true
22
+ end
23
+ end
24
+ end