apimatic-cp-sdk 0.0.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 (271) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +28 -0
  3. data/README.md +178 -0
  4. data/bin/console +15 -0
  5. data/lib/cell_point_api/api_helper.rb +10 -0
  6. data/lib/cell_point_api/apis/apple_pay_api.rb +51 -0
  7. data/lib/cell_point_api/apis/authentication_api.rb +81 -0
  8. data/lib/cell_point_api/apis/base_api.rb +67 -0
  9. data/lib/cell_point_api/apis/bulk_api.rb +93 -0
  10. data/lib/cell_point_api/apis/cards_api.rb +104 -0
  11. data/lib/cell_point_api/apis/notes_api.rb +66 -0
  12. data/lib/cell_point_api/apis/oauth_authorization_api.rb +44 -0
  13. data/lib/cell_point_api/apis/orders_api.rb +483 -0
  14. data/lib/cell_point_api/apis/payment_methods_api.rb +57 -0
  15. data/lib/cell_point_api/apis/proxy_api.rb +91 -0
  16. data/lib/cell_point_api/apis/transactions_api.rb +546 -0
  17. data/lib/cell_point_api/apis/wallet_api.rb +39 -0
  18. data/lib/cell_point_api/client.rb +145 -0
  19. data/lib/cell_point_api/configuration.rb +180 -0
  20. data/lib/cell_point_api/events/callbacks/callbacks_handler.rb +37 -0
  21. data/lib/cell_point_api/events/unknown_event.rb +32 -0
  22. data/lib/cell_point_api/exceptions/api_exception.rb +21 -0
  23. data/lib/cell_point_api/exceptions/oauth_provider_exception.rb +64 -0
  24. data/lib/cell_point_api/exceptions/problem_exception.rb +75 -0
  25. data/lib/cell_point_api/http/api_response.rb +19 -0
  26. data/lib/cell_point_api/http/auth/cpd_issued_jwt.rb +156 -0
  27. data/lib/cell_point_api/http/auth/merchant_issued_jwt.rb +53 -0
  28. data/lib/cell_point_api/http/http_call_back.rb +10 -0
  29. data/lib/cell_point_api/http/http_method_enum.rb +10 -0
  30. data/lib/cell_point_api/http/http_request.rb +10 -0
  31. data/lib/cell_point_api/http/http_response.rb +10 -0
  32. data/lib/cell_point_api/http/proxy_settings.rb +22 -0
  33. data/lib/cell_point_api/logging/configuration/api_logging_configuration.rb +186 -0
  34. data/lib/cell_point_api/logging/sdk_logger.rb +17 -0
  35. data/lib/cell_point_api/models/account.rb +168 -0
  36. data/lib/cell_point_api/models/account_status.rb +52 -0
  37. data/lib/cell_point_api/models/account_type.rb +44 -0
  38. data/lib/cell_point_api/models/action_base.rb +74 -0
  39. data/lib/cell_point_api/models/action_completion_response.rb +77 -0
  40. data/lib/cell_point_api/models/action_result_status.rb +40 -0
  41. data/lib/cell_point_api/models/action_type.rb +36 -0
  42. data/lib/cell_point_api/models/activity.rb +244 -0
  43. data/lib/cell_point_api/models/activity_data.rb +127 -0
  44. data/lib/cell_point_api/models/address_verification_status.rb +56 -0
  45. data/lib/cell_point_api/models/airline_ancillary.rb +244 -0
  46. data/lib/cell_point_api/models/airline_ancillary_data.rb +120 -0
  47. data/lib/cell_point_api/models/airline_fare.rb +348 -0
  48. data/lib/cell_point_api/models/airline_fare_data.rb +217 -0
  49. data/lib/cell_point_api/models/airline_industry_data.rb +152 -0
  50. data/lib/cell_point_api/models/airport.rb +144 -0
  51. data/lib/cell_point_api/models/amount.rb +105 -0
  52. data/lib/cell_point_api/models/ancillary_details.rb +366 -0
  53. data/lib/cell_point_api/models/apple_pay_config.rb +83 -0
  54. data/lib/cell_point_api/models/apple_pay_instrument_apple_pay_node.rb +119 -0
  55. data/lib/cell_point_api/models/apple_pay_payment_instrument.rb +123 -0
  56. data/lib/cell_point_api/models/apple_tokenized_token.rb +143 -0
  57. data/lib/cell_point_api/models/audience.rb +36 -0
  58. data/lib/cell_point_api/models/authorization.rb +145 -0
  59. data/lib/cell_point_api/models/authorization_group.rb +99 -0
  60. data/lib/cell_point_api/models/authorization_group1.rb +216 -0
  61. data/lib/cell_point_api/models/authorization_group_full.rb +193 -0
  62. data/lib/cell_point_api/models/authorize_order_by_id_post201_response.rb +128 -0
  63. data/lib/cell_point_api/models/auto_rental.rb +195 -0
  64. data/lib/cell_point_api/models/auto_rental_data.rb +76 -0
  65. data/lib/cell_point_api/models/auto_rental_industry_data.rb +182 -0
  66. data/lib/cell_point_api/models/base_model.rb +110 -0
  67. data/lib/cell_point_api/models/bin.rb +73 -0
  68. data/lib/cell_point_api/models/breadcrumb.rb +86 -0
  69. data/lib/cell_point_api/models/browser_info.rb +114 -0
  70. data/lib/cell_point_api/models/bundle.rb +195 -0
  71. data/lib/cell_point_api/models/bundled_activity.rb +229 -0
  72. data/lib/cell_point_api/models/bundled_airline_ancillary.rb +226 -0
  73. data/lib/cell_point_api/models/bundled_airline_fare.rb +330 -0
  74. data/lib/cell_point_api/models/bundled_auto_rental.rb +176 -0
  75. data/lib/cell_point_api/models/bundled_discount.rb +132 -0
  76. data/lib/cell_point_api/models/bundled_item_base.rb +123 -0
  77. data/lib/cell_point_api/models/bundled_lodging_reservation.rb +176 -0
  78. data/lib/cell_point_api/models/bundled_product.rb +161 -0
  79. data/lib/cell_point_api/models/buyer.rb +129 -0
  80. data/lib/cell_point_api/models/buyer_fingerprint.rb +125 -0
  81. data/lib/cell_point_api/models/buyer_history.rb +199 -0
  82. data/lib/cell_point_api/models/cancel.rb +109 -0
  83. data/lib/cell_point_api/models/cancelled_payment_transactions.rb +84 -0
  84. data/lib/cell_point_api/models/capabilities.rb +77 -0
  85. data/lib/cell_point_api/models/capture.rb +84 -0
  86. data/lib/cell_point_api/models/capture_payment_response.rb +159 -0
  87. data/lib/cell_point_api/models/card.rb +131 -0
  88. data/lib/cell_point_api/models/card_config.rb +105 -0
  89. data/lib/cell_point_api/models/card_identification.rb +126 -0
  90. data/lib/cell_point_api/models/card_instrument_card_node.rb +232 -0
  91. data/lib/cell_point_api/models/card_number.rb +122 -0
  92. data/lib/cell_point_api/models/card_payment_instrument.rb +136 -0
  93. data/lib/cell_point_api/models/card_scheme.rb +63 -0
  94. data/lib/cell_point_api/models/card_scheme_configuration.rb +87 -0
  95. data/lib/cell_point_api/models/carrier.rb +82 -0
  96. data/lib/cell_point_api/models/category.rb +36 -0
  97. data/lib/cell_point_api/models/client_assertion.rb +135 -0
  98. data/lib/cell_point_api/models/close.rb +89 -0
  99. data/lib/cell_point_api/models/close_refund_response.rb +73 -0
  100. data/lib/cell_point_api/models/closed_payment_transactions.rb +83 -0
  101. data/lib/cell_point_api/models/codeshare.rb +87 -0
  102. data/lib/cell_point_api/models/complete_person_name.rb +120 -0
  103. data/lib/cell_point_api/models/completion_redirect.rb +93 -0
  104. data/lib/cell_point_api/models/configuration.rb +86 -0
  105. data/lib/cell_point_api/models/contact_data.rb +82 -0
  106. data/lib/cell_point_api/models/cpu.rb +74 -0
  107. data/lib/cell_point_api/models/device_os.rb +60 -0
  108. data/lib/cell_point_api/models/discount.rb +150 -0
  109. data/lib/cell_point_api/models/discount_data.rb +83 -0
  110. data/lib/cell_point_api/models/driver.rb +86 -0
  111. data/lib/cell_point_api/models/external_transaction.rb +227 -0
  112. data/lib/cell_point_api/models/externally_tokenized_card.rb +81 -0
  113. data/lib/cell_point_api/models/failover.rb +105 -0
  114. data/lib/cell_point_api/models/failure_category.rb +62 -0
  115. data/lib/cell_point_api/models/failure_module.rb +58 -0
  116. data/lib/cell_point_api/models/fingerprint.rb +82 -0
  117. data/lib/cell_point_api/models/fraud_assessment.rb +163 -0
  118. data/lib/cell_point_api/models/fulfilled_activity.rb +207 -0
  119. data/lib/cell_point_api/models/fulfilled_airline_ancillary.rb +207 -0
  120. data/lib/cell_point_api/models/fulfilled_airline_fare.rb +207 -0
  121. data/lib/cell_point_api/models/fulfilled_auto_rental.rb +207 -0
  122. data/lib/cell_point_api/models/fulfilled_bundle.rb +207 -0
  123. data/lib/cell_point_api/models/fulfilled_discount.rb +178 -0
  124. data/lib/cell_point_api/models/fulfilled_line_item_base.rb +177 -0
  125. data/lib/cell_point_api/models/fulfilled_lodging_reservation.rb +207 -0
  126. data/lib/cell_point_api/models/fulfilled_order.rb +148 -0
  127. data/lib/cell_point_api/models/fulfilled_product.rb +207 -0
  128. data/lib/cell_point_api/models/fulfilled_tax_line.rb +162 -0
  129. data/lib/cell_point_api/models/fulfillment_data.rb +90 -0
  130. data/lib/cell_point_api/models/fulfillment_status.rb +41 -0
  131. data/lib/cell_point_api/models/funding_type.rb +40 -0
  132. data/lib/cell_point_api/models/gender.rb +40 -0
  133. data/lib/cell_point_api/models/hpp_data.rb +155 -0
  134. data/lib/cell_point_api/models/identifying_document.rb +159 -0
  135. data/lib/cell_point_api/models/identifying_document_type.rb +60 -0
  136. data/lib/cell_point_api/models/industry_data.rb +124 -0
  137. data/lib/cell_point_api/models/informational_price_row.rb +97 -0
  138. data/lib/cell_point_api/models/informational_price_section.rb +104 -0
  139. data/lib/cell_point_api/models/itinerary_type.rb +47 -0
  140. data/lib/cell_point_api/models/journey_segment.rb +83 -0
  141. data/lib/cell_point_api/models/line_item_base.rb +101 -0
  142. data/lib/cell_point_api/models/line_item_type.rb +60 -0
  143. data/lib/cell_point_api/models/links.rb +86 -0
  144. data/lib/cell_point_api/models/location.rb +153 -0
  145. data/lib/cell_point_api/models/lodging_industry_data.rb +216 -0
  146. data/lib/cell_point_api/models/lodging_reservation.rb +195 -0
  147. data/lib/cell_point_api/models/lodging_reservation_data.rb +76 -0
  148. data/lib/cell_point_api/models/loyalty_account.rb +103 -0
  149. data/lib/cell_point_api/models/network_info.rb +76 -0
  150. data/lib/cell_point_api/models/non_negative_amount.rb +105 -0
  151. data/lib/cell_point_api/models/non_positive_amount.rb +105 -0
  152. data/lib/cell_point_api/models/note.rb +139 -0
  153. data/lib/cell_point_api/models/note_request.rb +90 -0
  154. data/lib/cell_point_api/models/oauth_provider_error.rb +62 -0
  155. data/lib/cell_point_api/models/oauth_scope_cpd_issued_jwt.rb +158 -0
  156. data/lib/cell_point_api/models/oauth_token.rb +96 -0
  157. data/lib/cell_point_api/models/order.rb +414 -0
  158. data/lib/cell_point_api/models/order_canceled_reason.rb +56 -0
  159. data/lib/cell_point_api/models/order_core.rb +343 -0
  160. data/lib/cell_point_api/models/order_extended.rb +150 -0
  161. data/lib/cell_point_api/models/order_payment_summary.rb +117 -0
  162. data/lib/cell_point_api/models/order_status.rb +161 -0
  163. data/lib/cell_point_api/models/order_status_type.rb +58 -0
  164. data/lib/cell_point_api/models/order_transactions.rb +88 -0
  165. data/lib/cell_point_api/models/owner.rb +131 -0
  166. data/lib/cell_point_api/models/page_type.rb +26 -0
  167. data/lib/cell_point_api/models/passenger.rb +229 -0
  168. data/lib/cell_point_api/models/password_change_type.rb +41 -0
  169. data/lib/cell_point_api/models/pay_pal_action.rb +129 -0
  170. data/lib/cell_point_api/models/pay_pal_payment_instrument.rb +88 -0
  171. data/lib/cell_point_api/models/payment_data.rb +102 -0
  172. data/lib/cell_point_api/models/payment_data_header.rb +94 -0
  173. data/lib/cell_point_api/models/payment_data_version.rb +26 -0
  174. data/lib/cell_point_api/models/payment_field.rb +68 -0
  175. data/lib/cell_point_api/models/payment_instrument_base.rb +87 -0
  176. data/lib/cell_point_api/models/payment_method.rb +52 -0
  177. data/lib/cell_point_api/models/payment_methods_for_order_get200_response.rb +157 -0
  178. data/lib/cell_point_api/models/payment_methods_search_vouchers_post200_response.rb +82 -0
  179. data/lib/cell_point_api/models/payment_processor.rb +121 -0
  180. data/lib/cell_point_api/models/payment_status.rb +122 -0
  181. data/lib/cell_point_api/models/payment_transaction.rb +605 -0
  182. data/lib/cell_point_api/models/payment_transaction_authorized_amount.rb +105 -0
  183. data/lib/cell_point_api/models/payment_transaction_canceled_amount.rb +105 -0
  184. data/lib/cell_point_api/models/payment_transaction_captured_amount.rb +105 -0
  185. data/lib/cell_point_api/models/payment_transaction_pending_authorize_amount.rb +106 -0
  186. data/lib/cell_point_api/models/payment_transaction_pending_cancel_amount.rb +106 -0
  187. data/lib/cell_point_api/models/payment_transaction_pending_capture_amount.rb +106 -0
  188. data/lib/cell_point_api/models/payment_transaction_processing_fee.rb +106 -0
  189. data/lib/cell_point_api/models/payment_transaction_refunded_amount.rb +105 -0
  190. data/lib/cell_point_api/models/payments_v1_bulks_response.rb +74 -0
  191. data/lib/cell_point_api/models/payments_v1_orders_payments_retry_failed_refunds_request.rb +74 -0
  192. data/lib/cell_point_api/models/payments_v1_refunds_closures_request.rb +74 -0
  193. data/lib/cell_point_api/models/payments_v1_refunds_retry_failed_refunds_request.rb +74 -0
  194. data/lib/cell_point_api/models/payments_v1_schemes_response.rb +76 -0
  195. data/lib/cell_point_api/models/paypal_config.rb +94 -0
  196. data/lib/cell_point_api/models/person.rb +161 -0
  197. data/lib/cell_point_api/models/person_name.rb +89 -0
  198. data/lib/cell_point_api/models/phone.rb +132 -0
  199. data/lib/cell_point_api/models/pk_payment_method.rb +111 -0
  200. data/lib/cell_point_api/models/pk_payment_token.rb +94 -0
  201. data/lib/cell_point_api/models/postal_address.rb +217 -0
  202. data/lib/cell_point_api/models/price_summary.rb +191 -0
  203. data/lib/cell_point_api/models/product.rb +179 -0
  204. data/lib/cell_point_api/models/product_data.rb +104 -0
  205. data/lib/cell_point_api/models/property.rb +110 -0
  206. data/lib/cell_point_api/models/provider.rb +129 -0
  207. data/lib/cell_point_api/models/psp.rb +26 -0
  208. data/lib/cell_point_api/models/redirect_action.rb +116 -0
  209. data/lib/cell_point_api/models/refund_item.rb +310 -0
  210. data/lib/cell_point_api/models/refund_method.rb +36 -0
  211. data/lib/cell_point_api/models/refund_order_group_post201_response.rb +91 -0
  212. data/lib/cell_point_api/models/refund_reason.rb +104 -0
  213. data/lib/cell_point_api/models/refund_request.rb +161 -0
  214. data/lib/cell_point_api/models/refund_status.rb +44 -0
  215. data/lib/cell_point_api/models/refund_transaction.rb +311 -0
  216. data/lib/cell_point_api/models/refund_transaction_amount.rb +105 -0
  217. data/lib/cell_point_api/models/refund_type.rb +38 -0
  218. data/lib/cell_point_api/models/related_payment.rb +106 -0
  219. data/lib/cell_point_api/models/related_refund.rb +106 -0
  220. data/lib/cell_point_api/models/rental_location.rb +226 -0
  221. data/lib/cell_point_api/models/retry_refund_response.rb +73 -0
  222. data/lib/cell_point_api/models/reward.rb +101 -0
  223. data/lib/cell_point_api/models/room.rb +100 -0
  224. data/lib/cell_point_api/models/sales_channel.rb +36 -0
  225. data/lib/cell_point_api/models/save_pk_payment_token_request.rb +83 -0
  226. data/lib/cell_point_api/models/save_wallet_payment_token_request.rb +83 -0
  227. data/lib/cell_point_api/models/screen.rb +97 -0
  228. data/lib/cell_point_api/models/search_vouchers_request.rb +119 -0
  229. data/lib/cell_point_api/models/security_code.rb +83 -0
  230. data/lib/cell_point_api/models/security_code_match_status.rb +50 -0
  231. data/lib/cell_point_api/models/status.rb +43 -0
  232. data/lib/cell_point_api/models/status1.rb +52 -0
  233. data/lib/cell_point_api/models/summary.rb +82 -0
  234. data/lib/cell_point_api/models/tax.rb +134 -0
  235. data/lib/cell_point_api/models/taxes_and_fees_breakdown_page.rb +82 -0
  236. data/lib/cell_point_api/models/token_post200_response.rb +96 -0
  237. data/lib/cell_point_api/models/tokenized_card.rb +229 -0
  238. data/lib/cell_point_api/models/tokenized_card_with_contact_data.rb +247 -0
  239. data/lib/cell_point_api/models/tokenized_data.rb +169 -0
  240. data/lib/cell_point_api/models/total_row.rb +83 -0
  241. data/lib/cell_point_api/models/transaction_action.rb +108 -0
  242. data/lib/cell_point_api/models/transaction_action_result.rb +94 -0
  243. data/lib/cell_point_api/models/transaction_base.rb +132 -0
  244. data/lib/cell_point_api/models/transaction_failure.rb +222 -0
  245. data/lib/cell_point_api/models/travel_journey.rb +139 -0
  246. data/lib/cell_point_api/models/travel_leg.rb +194 -0
  247. data/lib/cell_point_api/models/trigger_bulk_request.rb +83 -0
  248. data/lib/cell_point_api/models/type.rb +67 -0
  249. data/lib/cell_point_api/models/type1.rb +47 -0
  250. data/lib/cell_point_api/models/type2.rb +40 -0
  251. data/lib/cell_point_api/models/type3.rb +41 -0
  252. data/lib/cell_point_api/models/type4.rb +56 -0
  253. data/lib/cell_point_api/models/type5.rb +78 -0
  254. data/lib/cell_point_api/models/uplift_config.rb +73 -0
  255. data/lib/cell_point_api/models/uplift_payment_instrument.rb +102 -0
  256. data/lib/cell_point_api/models/vehicle.rb +139 -0
  257. data/lib/cell_point_api/models/voucher_config.rb +92 -0
  258. data/lib/cell_point_api/models/voucher_issuer.rb +26 -0
  259. data/lib/cell_point_api/models/voucher_payment_instrument.rb +233 -0
  260. data/lib/cell_point_api/models/voucher_payment_instrument_node.rb +198 -0
  261. data/lib/cell_point_api/models/voucher_type.rb +36 -0
  262. data/lib/cell_point_api/models/wallet_instrument_wallet_node.rb +136 -0
  263. data/lib/cell_point_api/models/wallet_payment_instrument.rb +123 -0
  264. data/lib/cell_point_api/models/wallet_tokenized_token.rb +148 -0
  265. data/lib/cell_point_api/models/wallet_tokenized_token_identification.rb +75 -0
  266. data/lib/cell_point_api/models/wallet_type.rb +36 -0
  267. data/lib/cell_point_api/utilities/date_time_helper.rb +11 -0
  268. data/lib/cell_point_api/utilities/file_wrapper.rb +28 -0
  269. data/lib/cell_point_api/utilities/union_type_lookup.rb +260 -0
  270. data/lib/cell_point_api.rb +301 -0
  271. metadata +354 -0
@@ -0,0 +1,66 @@
1
+ # cell_point_api
2
+ #
3
+ # This file was automatically generated by APIMATIC v3.0 (
4
+ # https://www.apimatic.io ).
5
+
6
+ module CellPointApi
7
+ # NotesApi
8
+ class NotesApi < BaseApi
9
+ # Create a new note for a payment.
10
+ # @param [NoteRequest] body Optional parameter: Request body containing the
11
+ # note details.
12
+ # @return [ApiResponse] Complete http response with raw body and status code.
13
+ def create_note(body: nil)
14
+ @api_call
15
+ .request(new_request_builder(HttpMethodEnum::POST,
16
+ '/payments/v1/notes',
17
+ Server::DEFAULT)
18
+ .header_param(new_parameter('application/json', key: 'Content-Type'))
19
+ .body_param(new_parameter(body))
20
+ .header_param(new_parameter('application/json', key: 'accept'))
21
+ .body_serializer(proc do |param| param.to_json unless param.nil? end)
22
+ .auth(Single.new('cpdIssuedJWT')))
23
+ .response(new_response_handler
24
+ .deserializer(APIHelper.method(:custom_type_deserializer))
25
+ .deserialize_into(Note.method(:from_hash))
26
+ .is_api_response(true)
27
+ .local_error('400',
28
+ 'Bad Request',
29
+ ProblemException))
30
+ .execute
31
+ end
32
+
33
+ # Retrieve a specific note by its ID.
34
+ # @param [String] note_id Required parameter: Unique identifier of the
35
+ # note.
36
+ # @return [ApiResponse] Complete http response with raw body and status code.
37
+ def get_note_by_id(note_id)
38
+ @api_call
39
+ .request(new_request_builder(HttpMethodEnum::GET,
40
+ '/payments/v1/notes/{noteId}',
41
+ Server::DEFAULT)
42
+ .template_param(new_parameter(note_id, key: 'noteId')
43
+ .is_required(true)
44
+ .should_encode(true))
45
+ .header_param(new_parameter('application/json', key: 'accept'))
46
+ .auth(Single.new('cpdIssuedJWT')))
47
+ .response(new_response_handler
48
+ .deserializer(APIHelper.method(:custom_type_deserializer))
49
+ .deserialize_into(Note.method(:from_hash))
50
+ .is_api_response(true)
51
+ .local_error('400',
52
+ 'Bad Request',
53
+ ProblemException)
54
+ .local_error('401',
55
+ 'Authorization Required',
56
+ APIException)
57
+ .local_error('404',
58
+ 'Resource Not Found',
59
+ APIException)
60
+ .local_error('500',
61
+ 'Internal Server Error',
62
+ ProblemException))
63
+ .execute
64
+ end
65
+ end
66
+ end
@@ -0,0 +1,44 @@
1
+ # cell_point_api
2
+ #
3
+ # This file was automatically generated by APIMATIC v3.0 (
4
+ # https://www.apimatic.io ).
5
+
6
+ module CellPointApi
7
+ # OauthAuthorizationApi
8
+ class OauthAuthorizationApi < BaseApi
9
+ # Create a new OAuth 2 token.
10
+ # @param [String] authorization Required parameter: Authorization header in
11
+ # Basic auth format
12
+ # @param [String] scope Optional parameter: Requested scopes as a
13
+ # space-delimited list.
14
+ # @param [Hash] _field_parameters Additional optional form parameters are
15
+ # supported by this endpoint.
16
+ # @return [ApiResponse] Complete http response with raw body and status code.
17
+ def request_token_cpd_issued_jwt(authorization,
18
+ scope: nil,
19
+ _field_parameters: nil)
20
+ @api_call
21
+ .request(new_request_builder(HttpMethodEnum::POST,
22
+ '/token',
23
+ Server::ACCESS_TOKEN_SERVER)
24
+ .form_param(new_parameter('client_credentials', key: 'grant_type'))
25
+ .header_param(new_parameter(authorization, key: 'Authorization')
26
+ .is_required(true))
27
+ .form_param(new_parameter(scope, key: 'scope'))
28
+ .header_param(new_parameter('application/x-www-form-urlencoded', key: 'content-type'))
29
+ .header_param(new_parameter('application/json', key: 'accept'))
30
+ .additional_form_params(_field_parameters))
31
+ .response(new_response_handler
32
+ .deserializer(APIHelper.method(:custom_type_deserializer))
33
+ .deserialize_into(OauthToken.method(:from_hash))
34
+ .is_api_response(true)
35
+ .local_error('400',
36
+ 'OAuth 2 provider returned an error.',
37
+ OauthProviderException)
38
+ .local_error('401',
39
+ 'OAuth 2 provider says client authentication failed.',
40
+ OauthProviderException))
41
+ .execute
42
+ end
43
+ end
44
+ end
@@ -0,0 +1,483 @@
1
+ # cell_point_api
2
+ #
3
+ # This file was automatically generated by APIMATIC v3.0 (
4
+ # https://www.apimatic.io ).
5
+
6
+ module CellPointApi
7
+ # OrdersApi
8
+ class OrdersApi < BaseApi
9
+ # Creates a new order.
10
+ # @param [UUID | String] idempotency_key Optional parameter: A unique
11
+ # identifier. If you don't receive a response (for example, in case of a
12
+ # timeout), you can safely retry the request with the same header. If the
13
+ # system already processed the request, the response to the first attempt
14
+ # will be returned without duplication. Idempotency-Keys will last for
15
+ # 24hrs. After this time, please do a GET call to the resource to check the
16
+ # status. > This is used only in `POST` requests, so they have the same
17
+ # idempotency guarantees as `PUT`.
18
+ # @param [Order] body Optional parameter: Order request body.
19
+ # @return [ApiResponse] Complete http response with raw body and status code.
20
+ def create_order(idempotency_key: nil,
21
+ body: nil)
22
+ @api_call
23
+ .request(new_request_builder(HttpMethodEnum::POST,
24
+ '/payments/v1/orders',
25
+ Server::DEFAULT)
26
+ .header_param(new_parameter('application/json', key: 'Content-Type'))
27
+ .header_param(new_parameter(idempotency_key, key: 'Idempotency-Key'))
28
+ .body_param(new_parameter(body))
29
+ .header_param(new_parameter('application/json', key: 'accept'))
30
+ .body_serializer(proc do |param| param.to_json unless param.nil? end)
31
+ .auth(Single.new('cpdIssuedJWT')))
32
+ .response(new_response_handler
33
+ .deserializer(APIHelper.method(:custom_type_deserializer))
34
+ .deserialize_into(OrderCore.method(:from_hash))
35
+ .is_api_response(true)
36
+ .local_error('400',
37
+ 'Bad Request',
38
+ ProblemException)
39
+ .local_error('401',
40
+ 'Authorization Required',
41
+ APIException)
42
+ .local_error('403',
43
+ 'Forbidden',
44
+ ProblemException)
45
+ .local_error('406',
46
+ 'Cannot generate content acceptable according to the `Accept`'\
47
+ ' headers in the request',
48
+ ProblemException)
49
+ .local_error('500',
50
+ 'Internal Server Error',
51
+ ProblemException)
52
+ .local_error('502',
53
+ 'Bad Gateway',
54
+ APIException)
55
+ .local_error('503',
56
+ 'Service Unavailable',
57
+ APIException))
58
+ .execute
59
+ end
60
+
61
+ # Retrieve a specific order
62
+ # @param [String] order_id Required parameter: Order to retrieve
63
+ # @return [ApiResponse] Complete http response with raw body and status code.
64
+ def get_order_by_id(order_id)
65
+ @api_call
66
+ .request(new_request_builder(HttpMethodEnum::GET,
67
+ '/payments/v1/orders/{orderId}',
68
+ Server::DEFAULT)
69
+ .template_param(new_parameter(order_id, key: 'orderId')
70
+ .is_required(true)
71
+ .should_encode(true))
72
+ .header_param(new_parameter('application/json', key: 'accept'))
73
+ .auth(Or.new('cpdIssuedJWT', 'cpdIssuedJWT')))
74
+ .response(new_response_handler
75
+ .deserializer(APIHelper.method(:custom_type_deserializer))
76
+ .deserialize_into(Order.method(:from_hash))
77
+ .is_api_response(true)
78
+ .local_error('400',
79
+ 'Bad Request',
80
+ ProblemException)
81
+ .local_error('401',
82
+ 'Authorization Required',
83
+ APIException)
84
+ .local_error('404',
85
+ 'Resource Not Found',
86
+ APIException)
87
+ .local_error('406',
88
+ 'Cannot generate content acceptable according to the `Accept`'\
89
+ ' headers in the request',
90
+ ProblemException)
91
+ .local_error('500',
92
+ 'Internal Server Error',
93
+ ProblemException)
94
+ .local_error('502',
95
+ 'Bad Gateway',
96
+ APIException)
97
+ .local_error('503',
98
+ 'Service Unavailable',
99
+ APIException))
100
+ .execute
101
+ end
102
+
103
+ # Retrieve the status and summary of a specific order.
104
+ # Same information can be retrieved from the callback of [Create
105
+ # Order](#tag/Orders/operation/create-order).
106
+ # This can be polled as an alternative to that callback.
107
+ # The information from the endpoint will change when the `order.status` has
108
+ # changed. Changes to transactions within an order will not cause a
109
+ # new version of this resource to be available.
110
+ # As such, do not use the endpoint to get real-time information about an
111
+ # active order that a buyer is attempting to pay for.
112
+ # The status will only change once the order is fully paid and has
113
+ # transitioned to the `PAID` state.
114
+ # For polling, we recommend using the `If-None-Match` header and sending the
115
+ # ETag, so a `304` will be responded with if the resource has not changed.
116
+ # @param [String] order_id Required parameter: Order to retrieve status
117
+ # of.
118
+ # @param [Date] if_none_match Optional parameter: The `If-None-Match` HTTP
119
+ # request header makes the request conditional. For `GET` and `HEAD`
120
+ # methods, the server will return the requested resource, with a `200`
121
+ # status, only if it doesn't have an `ETag` matching the given ones. For
122
+ # other methods, the request will be processed only if the eventually
123
+ # existing resource's `ETag` doesn't match any of the values listed. When
124
+ # the condition fails for `GET` and `HEAD` methods, then the server must
125
+ # return HTTP status code `304` (Not Modified). For methods that apply
126
+ # server-side changes, the status code `412` (Precondition Failed) is used.
127
+ # Note that the server generating a `304` response MUST generate any of the
128
+ # following header fields that would have been sent in a `200` (OK) response
129
+ # to the same request: Cache-Control, Content-Location, Date, ETag, Expires,
130
+ # and Vary. The comparison with the stored `ETag` uses the weak comparison
131
+ # algorithm, meaning two files are considered identical if the content is
132
+ # equivalent — they don't have to be identical byte by byte. For example,
133
+ # two pages that differ by their creation date in the footer would still be
134
+ # considered identical. When used in combination with `If-Modified-Since`,
135
+ # `If-None-Match` has precedence (if the server supports it). There are two
136
+ # common use cases: - For `GET` and `HEAD` methods, to update a cached
137
+ # entity that has an associated ETag. - For other methods, and in
138
+ # particular for `PUT`, `If-None-Match` used with the * value can be
139
+ # used to save a file not known to exist, guaranteeing that another
140
+ # upload didn't happen before, losing the data of the previous put; this
141
+ # problem is a variation of the lost update problem.
142
+ # @return [ApiResponse] Complete http response with raw body and status code.
143
+ def get_order_summary_by_id(order_id,
144
+ if_none_match: nil)
145
+ @api_call
146
+ .request(new_request_builder(HttpMethodEnum::GET,
147
+ '/payments/v1/orders/{orderId}/summary',
148
+ Server::DEFAULT)
149
+ .template_param(new_parameter(order_id, key: 'orderId')
150
+ .is_required(true)
151
+ .should_encode(true))
152
+ .header_param(new_parameter(if_none_match, key: 'If-None-Match'))
153
+ .header_param(new_parameter('application/json', key: 'accept'))
154
+ .auth(Or.new('cpdIssuedJWT', 'cpdIssuedJWT')))
155
+ .response(new_response_handler
156
+ .deserializer(APIHelper.method(:custom_type_deserializer))
157
+ .deserialize_into(OrderPaymentSummary.method(:from_hash))
158
+ .is_api_response(true)
159
+ .local_error('400',
160
+ 'Bad Request',
161
+ ProblemException)
162
+ .local_error('401',
163
+ 'Authorization Required',
164
+ APIException)
165
+ .local_error('404',
166
+ 'Resource Not Found',
167
+ APIException)
168
+ .local_error('406',
169
+ 'Cannot generate content acceptable according to the `Accept`'\
170
+ ' headers in the request',
171
+ ProblemException)
172
+ .local_error('500',
173
+ 'Internal Server Error',
174
+ ProblemException)
175
+ .local_error('502',
176
+ 'Bad Gateway',
177
+ APIException)
178
+ .local_error('503',
179
+ 'Service Unavailable',
180
+ APIException))
181
+ .execute
182
+ end
183
+
184
+ # Retrieve all transactions connected to an order.
185
+ # A transaction includes:
186
+ # - Payments
187
+ # - Refunds
188
+ # - Payouts
189
+ # @param [String] order_id Required parameter: Order to retrieve all
190
+ # transactions for.
191
+ # @return [ApiResponse] Complete http response with raw body and status code.
192
+ def orders_transactions(order_id)
193
+ @api_call
194
+ .request(new_request_builder(HttpMethodEnum::GET,
195
+ '/payments/v1/orders/{orderId}/transactions',
196
+ Server::DEFAULT)
197
+ .template_param(new_parameter(order_id, key: 'orderId')
198
+ .is_required(true)
199
+ .should_encode(true))
200
+ .header_param(new_parameter('application/json', key: 'accept'))
201
+ .auth(Single.new('cpdIssuedJWT')))
202
+ .response(new_response_handler
203
+ .deserializer(APIHelper.method(:custom_type_deserializer))
204
+ .deserialize_into(OrderTransactions.method(:from_hash))
205
+ .is_api_response(true)
206
+ .local_error('400',
207
+ 'Bad Request',
208
+ ProblemException))
209
+ .execute
210
+ end
211
+
212
+ # Fulfills a completed order.
213
+ # @param [String] order_id Required parameter: Order to fulfill.
214
+ # @param [UUID | String] idempotency_key Optional parameter: A unique
215
+ # identifier. If you don't receive a response (for example, in case of a
216
+ # timeout), you can safely retry the request with the same header. If the
217
+ # system already processed the request, the response to the first attempt
218
+ # will be returned without duplication. Idempotency-Keys will last for
219
+ # 24hrs. After this time, please do a GET call to the resource to check the
220
+ # status. > This is used only in `POST` requests, so they have the same
221
+ # idempotency guarantees as `PUT`.
222
+ # @param [FulfilledOrder] body Optional parameter: Order fulfillment request
223
+ # body.
224
+ # @return [ApiResponse] Complete http response with raw body and status code.
225
+ def fulfill_order(order_id,
226
+ idempotency_key: nil,
227
+ body: nil)
228
+ @api_call
229
+ .request(new_request_builder(HttpMethodEnum::POST,
230
+ '/payments/v1/orders/{orderId}/fulfillments',
231
+ Server::DEFAULT)
232
+ .template_param(new_parameter(order_id, key: 'orderId')
233
+ .is_required(true)
234
+ .should_encode(true))
235
+ .header_param(new_parameter('application/json', key: 'Content-Type'))
236
+ .header_param(new_parameter(idempotency_key, key: 'Idempotency-Key'))
237
+ .body_param(new_parameter(body))
238
+ .header_param(new_parameter('application/json', key: 'accept'))
239
+ .body_serializer(proc do |param| param.to_json unless param.nil? end)
240
+ .auth(Single.new('cpdIssuedJWT')))
241
+ .response(new_response_handler
242
+ .deserializer(APIHelper.method(:custom_type_deserializer))
243
+ .deserialize_into(OrderPaymentSummary.method(:from_hash))
244
+ .is_api_response(true)
245
+ .local_error('400',
246
+ 'Bad Request',
247
+ ProblemException)
248
+ .local_error('401',
249
+ 'Authorization Required',
250
+ APIException)
251
+ .local_error('403',
252
+ 'Forbidden',
253
+ ProblemException)
254
+ .local_error('406',
255
+ 'Cannot generate content acceptable according to the `Accept`'\
256
+ ' headers in the request',
257
+ ProblemException)
258
+ .local_error('500',
259
+ 'Internal Server Error',
260
+ ProblemException)
261
+ .local_error('502',
262
+ 'Bad Gateway',
263
+ APIException)
264
+ .local_error('503',
265
+ 'Service Unavailable',
266
+ APIException))
267
+ .execute
268
+ end
269
+
270
+ # Before the payment can transition to a PAID state, the terms and
271
+ # conditions must be accepted.
272
+ # Each payment can mark itself as accepting those terms, but if the payments
273
+ # weren't marked so,
274
+ # an additional call to this endpoint would be required after all the
275
+ # payments have been made.
276
+ # @param [String] order_id Required parameter: Order to accept Terms and
277
+ # Conditions for
278
+ # @param [UUID | String] idempotency_key Optional parameter: A unique
279
+ # identifier. If you don't receive a response (for example, in case of a
280
+ # timeout), you can safely retry the request with the same header. If the
281
+ # system already processed the request, the response to the first attempt
282
+ # will be returned without duplication. Idempotency-Keys will last for
283
+ # 24hrs. After this time, please do a GET call to the resource to check the
284
+ # status. > This is used only in `POST` requests, so they have the same
285
+ # idempotency guarantees as `PUT`.
286
+ # @return [ApiResponse] Complete http response with raw body and status code.
287
+ def confirm_payments(order_id,
288
+ idempotency_key: nil)
289
+ @api_call
290
+ .request(new_request_builder(HttpMethodEnum::POST,
291
+ '/payments/v1/orders/{orderId}/confirm-payments',
292
+ Server::DEFAULT)
293
+ .template_param(new_parameter(order_id, key: 'orderId')
294
+ .is_required(true)
295
+ .should_encode(true))
296
+ .header_param(new_parameter(idempotency_key, key: 'Idempotency-Key'))
297
+ .auth(Single.new('cpdIssuedJWT')))
298
+ .response(new_response_handler
299
+ .is_response_void(true)
300
+ .is_api_response(true)
301
+ .local_error('400',
302
+ 'Bad Request',
303
+ ProblemException))
304
+ .execute
305
+ end
306
+
307
+ # Creates a new fingerprint for a buyer.
308
+ # @param [String] order_id Required parameter: OrderId to save the
309
+ # fingerprint against.
310
+ # @param [UUID | String] idempotency_key Optional parameter: A unique
311
+ # identifier. If you don't receive a response (for example, in case of a
312
+ # timeout), you can safely retry the request with the same header. If the
313
+ # system already processed the request, the response to the first attempt
314
+ # will be returned without duplication. Idempotency-Keys will last for
315
+ # 24hrs. After this time, please do a GET call to the resource to check the
316
+ # status. > This is used only in `POST` requests, so they have the same
317
+ # idempotency guarantees as `PUT`.
318
+ # @param [BuyerFingerprint] body Optional parameter: Buyer Fingerprint to be
319
+ # saved.
320
+ # @return [ApiResponse] Complete http response with raw body and status code.
321
+ def create_fingerprint(order_id,
322
+ idempotency_key: nil,
323
+ body: nil)
324
+ @api_call
325
+ .request(new_request_builder(HttpMethodEnum::POST,
326
+ '/payments/v1/orders/{orderId}/fingerprints',
327
+ Server::DEFAULT)
328
+ .template_param(new_parameter(order_id, key: 'orderId')
329
+ .is_required(true)
330
+ .should_encode(true))
331
+ .header_param(new_parameter('application/json', key: 'Content-Type'))
332
+ .header_param(new_parameter(idempotency_key, key: 'Idempotency-Key'))
333
+ .body_param(new_parameter(body))
334
+ .body_serializer(proc do |param| param.to_json unless param.nil? end)
335
+ .auth(Single.new('cpdIssuedJWT')))
336
+ .response(new_response_handler
337
+ .is_response_void(true)
338
+ .is_api_response(true)
339
+ .local_error('400',
340
+ 'Bad Request',
341
+ ProblemException)
342
+ .local_error('401',
343
+ 'Authorization Required',
344
+ APIException)
345
+ .local_error('403',
346
+ 'Forbidden',
347
+ ProblemException)
348
+ .local_error('406',
349
+ 'Cannot generate content acceptable according to the `Accept`'\
350
+ ' headers in the request',
351
+ ProblemException)
352
+ .local_error('500',
353
+ 'Internal Server Error',
354
+ ProblemException)
355
+ .local_error('502',
356
+ 'Bad Gateway',
357
+ APIException)
358
+ .local_error('503',
359
+ 'Service Unavailable',
360
+ APIException))
361
+ .execute
362
+ end
363
+
364
+ # Creates an order connected to other orders within an existing Order Group.
365
+ # An Order Group is made by passing an `orderGroupId` when [creating an
366
+ # order](#tag/Orders/operation/create-order).
367
+ # @param [String] order_group_id Required parameter: Order group in which to
368
+ # make the connected order.
369
+ # @param [UUID | String] idempotency_key Optional parameter: A unique
370
+ # identifier. If you don't receive a response (for example, in case of a
371
+ # timeout), you can safely retry the request with the same header. If the
372
+ # system already processed the request, the response to the first attempt
373
+ # will be returned without duplication. Idempotency-Keys will last for
374
+ # 24hrs. After this time, please do a GET call to the resource to check the
375
+ # status. > This is used only in `POST` requests, so they have the same
376
+ # idempotency guarantees as `PUT`.
377
+ # @param [Order] body Optional parameter: Order request body.
378
+ # @return [ApiResponse] Complete http response with raw body and status code.
379
+ def create_connected_order(order_group_id,
380
+ idempotency_key: nil,
381
+ body: nil)
382
+ @api_call
383
+ .request(new_request_builder(HttpMethodEnum::POST,
384
+ '/payments/v1/order-groups/{orderGroupId}/orders',
385
+ Server::DEFAULT)
386
+ .template_param(new_parameter(order_group_id, key: 'orderGroupId')
387
+ .is_required(true)
388
+ .should_encode(true))
389
+ .header_param(new_parameter('application/json', key: 'Content-Type'))
390
+ .header_param(new_parameter(idempotency_key, key: 'Idempotency-Key'))
391
+ .body_param(new_parameter(body))
392
+ .header_param(new_parameter('application/json', key: 'accept'))
393
+ .body_serializer(proc do |param| param.to_json unless param.nil? end)
394
+ .auth(Single.new('cpdIssuedJWT')))
395
+ .response(new_response_handler
396
+ .deserializer(APIHelper.method(:custom_type_deserializer))
397
+ .deserialize_into(OrderCore.method(:from_hash))
398
+ .is_api_response(true)
399
+ .local_error('400',
400
+ 'Bad Request',
401
+ ProblemException)
402
+ .local_error('401',
403
+ 'Authorization Required',
404
+ APIException)
405
+ .local_error('403',
406
+ 'Forbidden',
407
+ ProblemException)
408
+ .local_error('406',
409
+ 'Cannot generate content acceptable according to the `Accept`'\
410
+ ' headers in the request',
411
+ ProblemException)
412
+ .local_error('500',
413
+ 'Internal Server Error',
414
+ ProblemException)
415
+ .local_error('502',
416
+ 'Bad Gateway',
417
+ APIException)
418
+ .local_error('503',
419
+ 'Service Unavailable',
420
+ APIException))
421
+ .execute
422
+ end
423
+
424
+ # Refunds an entire order group.
425
+ # An Order Group is made by passing an `orderGroupId` when [creating an
426
+ # order](#tag/Orders/operation/create-order).
427
+ # @param [String] order_group_id Required parameter: Order to fulfill.
428
+ # @param [UUID | String] idempotency_key Optional parameter: A unique
429
+ # identifier. If you don't receive a response (for example, in case of a
430
+ # timeout), you can safely retry the request with the same header. If the
431
+ # system already processed the request, the response to the first attempt
432
+ # will be returned without duplication. Idempotency-Keys will last for
433
+ # 24hrs. After this time, please do a GET call to the resource to check the
434
+ # status. > This is used only in `POST` requests, so they have the same
435
+ # idempotency guarantees as `PUT`.
436
+ # @param [RefundRequest] body Optional parameter: Refund request body.
437
+ # @return [ApiResponse] Complete http response with raw body and status code.
438
+ def refund_order_group(order_group_id,
439
+ idempotency_key: nil,
440
+ body: nil)
441
+ @api_call
442
+ .request(new_request_builder(HttpMethodEnum::POST,
443
+ '/payments/v1/order-groups/{orderGroupId}/refunds',
444
+ Server::DEFAULT)
445
+ .template_param(new_parameter(order_group_id, key: 'orderGroupId')
446
+ .is_required(true)
447
+ .should_encode(true))
448
+ .header_param(new_parameter('application/json', key: 'Content-Type'))
449
+ .header_param(new_parameter(idempotency_key, key: 'Idempotency-Key'))
450
+ .body_param(new_parameter(body))
451
+ .header_param(new_parameter('application/json', key: 'accept'))
452
+ .body_serializer(proc do |param| param.to_json unless param.nil? end)
453
+ .auth(Single.new('cpdIssuedJWT')))
454
+ .response(new_response_handler
455
+ .deserializer(APIHelper.method(:custom_type_deserializer))
456
+ .deserialize_into(RefundOrderGroupPost201Response.method(:from_hash))
457
+ .is_api_response(true)
458
+ .local_error('400',
459
+ 'Bad Request',
460
+ ProblemException)
461
+ .local_error('401',
462
+ 'Authorization Required',
463
+ APIException)
464
+ .local_error('403',
465
+ 'Forbidden',
466
+ ProblemException)
467
+ .local_error('406',
468
+ 'Cannot generate content acceptable according to the `Accept`'\
469
+ ' headers in the request',
470
+ ProblemException)
471
+ .local_error('500',
472
+ 'Internal Server Error',
473
+ ProblemException)
474
+ .local_error('502',
475
+ 'Bad Gateway',
476
+ APIException)
477
+ .local_error('503',
478
+ 'Service Unavailable',
479
+ APIException))
480
+ .execute
481
+ end
482
+ end
483
+ end
@@ -0,0 +1,57 @@
1
+ # cell_point_api
2
+ #
3
+ # This file was automatically generated by APIMATIC v3.0 (
4
+ # https://www.apimatic.io ).
5
+
6
+ module CellPointApi
7
+ # PaymentMethodsApi
8
+ class PaymentMethodsApi < BaseApi
9
+ # Gets the payment methods available for a given order id.
10
+ # @param [String] order_id Required parameter: Order to retrieve the payment
11
+ # methods that the buyer has available to pay for it with.
12
+ # @return [ApiResponse] Complete http response with raw body and status code.
13
+ def orders_get_payment_methods(order_id)
14
+ @api_call
15
+ .request(new_request_builder(HttpMethodEnum::GET,
16
+ '/payments/v1/orders/{orderId}/payment-methods',
17
+ Server::DEFAULT)
18
+ .template_param(new_parameter(order_id, key: 'orderId')
19
+ .is_required(true)
20
+ .should_encode(true))
21
+ .header_param(new_parameter('application/json', key: 'accept'))
22
+ .auth(Single.new('cpdIssuedJWT')))
23
+ .response(new_response_handler
24
+ .deserializer(APIHelper.method(:custom_type_deserializer))
25
+ .deserialize_into(PaymentMethodsForOrderGet200Response.method(:from_hash))
26
+ .is_api_response(true)
27
+ .local_error('400',
28
+ 'Bad Request',
29
+ ProblemException))
30
+ .execute
31
+ end
32
+
33
+ # Returns a list of available vouchers matching the search criteria.
34
+ # @param [SearchVouchersRequest] body Optional parameter: Request body
35
+ # containing the search criteria.
36
+ # @return [ApiResponse] Complete http response with raw body and status code.
37
+ def orders_search_vouchers(body: nil)
38
+ @api_call
39
+ .request(new_request_builder(HttpMethodEnum::POST,
40
+ '/payments/v1/search-vouchers',
41
+ Server::DEFAULT)
42
+ .header_param(new_parameter('application/json', key: 'Content-Type'))
43
+ .body_param(new_parameter(body))
44
+ .header_param(new_parameter('application/json', key: 'accept'))
45
+ .body_serializer(proc do |param| param.to_json unless param.nil? end)
46
+ .auth(Single.new('cpdIssuedJWT')))
47
+ .response(new_response_handler
48
+ .deserializer(APIHelper.method(:custom_type_deserializer))
49
+ .deserialize_into(PaymentMethodsSearchVouchersPost200Response.method(:from_hash))
50
+ .is_api_response(true)
51
+ .local_error('400',
52
+ 'Bad Request',
53
+ ProblemException))
54
+ .execute
55
+ end
56
+ end
57
+ end