yapstone-payments 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (310) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +9 -0
  3. data/Gemfile.lock +79 -0
  4. data/README.md +203 -0
  5. data/Rakefile +10 -0
  6. data/docs/APM.md +29 -0
  7. data/docs/APMSpecInParameters.md +19 -0
  8. data/docs/Action.md +16 -0
  9. data/docs/Address.md +29 -0
  10. data/docs/Amount.md +21 -0
  11. data/docs/AuthResponse.md +19 -0
  12. data/docs/AuthTokenRequest.md +19 -0
  13. data/docs/AuthTokenResponse.md +17 -0
  14. data/docs/AuthenticationApi.md +58 -0
  15. data/docs/BankAccount.md +37 -0
  16. data/docs/BillingAddress.md +29 -0
  17. data/docs/BookingInfo.md +31 -0
  18. data/docs/CapturePaymentRequest.md +21 -0
  19. data/docs/Card.md +27 -0
  20. data/docs/CardResponse.md +21 -0
  21. data/docs/Consent.md +21 -0
  22. data/docs/CreditCardAuthResponse.md +25 -0
  23. data/docs/Customer.md +29 -0
  24. data/docs/CustomerData.md +19 -0
  25. data/docs/CustomerDetails.md +23 -0
  26. data/docs/Deposit.md +23 -0
  27. data/docs/DepositDetails.md +17 -0
  28. data/docs/DisburseLineItemsReq.md +19 -0
  29. data/docs/DisburseTransaction.md +19 -0
  30. data/docs/DisburseTransactionReq.md +17 -0
  31. data/docs/Disbursement.md +17 -0
  32. data/docs/DisbursementAllOf.md +17 -0
  33. data/docs/DisbursementDetails.md +17 -0
  34. data/docs/DisbursementRequest.md +16 -0
  35. data/docs/DisbursementRequests.md +17 -0
  36. data/docs/DisbursementResponse.md +17 -0
  37. data/docs/DisbursementsApi.md +138 -0
  38. data/docs/Error.md +25 -0
  39. data/docs/ErrorResponse.md +19 -0
  40. data/docs/Fields.md +17 -0
  41. data/docs/GovIdentification.md +29 -0
  42. data/docs/Guest.md +29 -0
  43. data/docs/GuestInfoResponse.md +19 -0
  44. data/docs/Href.md +17 -0
  45. data/docs/InlineResponse200.md +25 -0
  46. data/docs/InstallmentPlan.md +19 -0
  47. data/docs/Instrument.md +21 -0
  48. data/docs/InstrumentVerificationResponse.md +31 -0
  49. data/docs/KYC.md +21 -0
  50. data/docs/LeaseInfo.md +21 -0
  51. data/docs/LineItemDetails.md +25 -0
  52. data/docs/MarketplaceData.md +23 -0
  53. data/docs/Merketplace.md +17 -0
  54. data/docs/Money.md +19 -0
  55. data/docs/Name.md +27 -0
  56. data/docs/OfferingDetails.md +21 -0
  57. data/docs/OrderTransactions.md +25 -0
  58. data/docs/Payment.md +21 -0
  59. data/docs/PaymentCancelResponse.md +23 -0
  60. data/docs/PaymentCancelTransactionResponse.md +21 -0
  61. data/docs/PaymentDetails.md +29 -0
  62. data/docs/PaymentInstrument.md +27 -0
  63. data/docs/PaymentInstrumentCard.md +19 -0
  64. data/docs/PaymentInstrumentResponse.md +19 -0
  65. data/docs/PaymentPayment.md +27 -0
  66. data/docs/PaymentPaymentAllOf.md +27 -0
  67. data/docs/PaymentResponse.md +33 -0
  68. data/docs/PaymentsApi.md +447 -0
  69. data/docs/Phone.md +21 -0
  70. data/docs/ProcessPayment.md +29 -0
  71. data/docs/PropertyInfo.md +21 -0
  72. data/docs/PropertyInfoResponse.md +19 -0
  73. data/docs/RefundAction.md +16 -0
  74. data/docs/RefundCancelResponse.md +21 -0
  75. data/docs/RefundCancelTransactionResponse.md +19 -0
  76. data/docs/RefundRequest.md +25 -0
  77. data/docs/RefundResponse.md +29 -0
  78. data/docs/RefundStatus.md +16 -0
  79. data/docs/RefundTransactions.md +27 -0
  80. data/docs/RefundsApi.md +378 -0
  81. data/docs/RentalInfo.md +21 -0
  82. data/docs/Renter.md +29 -0
  83. data/docs/Resolution.md +17 -0
  84. data/docs/Result.md +21 -0
  85. data/docs/RiskStatus.md +17 -0
  86. data/docs/SanctionedEntities.md +19 -0
  87. data/docs/SearchApi.md +132 -0
  88. data/docs/SearchPaymentResponse.md +17 -0
  89. data/docs/StackTraceElement.md +25 -0
  90. data/docs/Status.md +16 -0
  91. data/docs/Throwable.md +21 -0
  92. data/docs/ToEntityRef.md +19 -0
  93. data/docs/Token.md +19 -0
  94. data/docs/TokenApi.md +134 -0
  95. data/docs/TokenReq.md +19 -0
  96. data/docs/TokenRequest.md +17 -0
  97. data/docs/TokenResponse.md +17 -0
  98. data/docs/Transaction.md +21 -0
  99. data/docs/TransactionResponse.md +27 -0
  100. data/docs/Triggers.md +21 -0
  101. data/docs/VacationRentalInfo.md +19 -0
  102. data/docs/VacationRentalInfoRequest.md +21 -0
  103. data/docs/VerifyInstrumentRequest.md +21 -0
  104. data/git_push.sh +55 -0
  105. data/lib/yapstone-payments.rb +137 -0
  106. data/lib/yapstone-payments/api/authentication_api.rb +92 -0
  107. data/lib/yapstone-payments/api/disbursements_api.rb +202 -0
  108. data/lib/yapstone-payments/api/payments_api.rb +598 -0
  109. data/lib/yapstone-payments/api/refunds_api.rb +507 -0
  110. data/lib/yapstone-payments/api/search_api.rb +187 -0
  111. data/lib/yapstone-payments/api/token_api.rb +182 -0
  112. data/lib/yapstone-payments/api_client.rb +386 -0
  113. data/lib/yapstone-payments/api_error.rb +57 -0
  114. data/lib/yapstone-payments/configuration.rb +249 -0
  115. data/lib/yapstone-payments/models/action.rb +39 -0
  116. data/lib/yapstone-payments/models/address.rb +258 -0
  117. data/lib/yapstone-payments/models/amount.rb +218 -0
  118. data/lib/yapstone-payments/models/apm.rb +292 -0
  119. data/lib/yapstone-payments/models/apm_spec_in_parameters.rb +208 -0
  120. data/lib/yapstone-payments/models/auth_response.rb +217 -0
  121. data/lib/yapstone-payments/models/auth_token_request.rb +205 -0
  122. data/lib/yapstone-payments/models/auth_token_response.rb +196 -0
  123. data/lib/yapstone-payments/models/bank_account.rb +347 -0
  124. data/lib/yapstone-payments/models/billing_address.rb +258 -0
  125. data/lib/yapstone-payments/models/booking_info.rb +266 -0
  126. data/lib/yapstone-payments/models/capture_payment_request.rb +252 -0
  127. data/lib/yapstone-payments/models/card.rb +247 -0
  128. data/lib/yapstone-payments/models/card_response.rb +217 -0
  129. data/lib/yapstone-payments/models/consent.rb +248 -0
  130. data/lib/yapstone-payments/models/credit_card_auth_response.rb +267 -0
  131. data/lib/yapstone-payments/models/customer.rb +256 -0
  132. data/lib/yapstone-payments/models/customer_data.rb +208 -0
  133. data/lib/yapstone-payments/models/customer_details.rb +226 -0
  134. data/lib/yapstone-payments/models/deposit.rb +228 -0
  135. data/lib/yapstone-payments/models/deposit_details.rb +199 -0
  136. data/lib/yapstone-payments/models/disburse_line_items_req.rb +208 -0
  137. data/lib/yapstone-payments/models/disburse_transaction.rb +208 -0
  138. data/lib/yapstone-payments/models/disburse_transaction_req.rb +199 -0
  139. data/lib/yapstone-payments/models/disbursement.rb +203 -0
  140. data/lib/yapstone-payments/models/disbursement_all_of.rb +197 -0
  141. data/lib/yapstone-payments/models/disbursement_details.rb +200 -0
  142. data/lib/yapstone-payments/models/disbursement_request.rb +187 -0
  143. data/lib/yapstone-payments/models/disbursement_requests.rb +198 -0
  144. data/lib/yapstone-payments/models/disbursement_response.rb +198 -0
  145. data/lib/yapstone-payments/models/error.rb +241 -0
  146. data/lib/yapstone-payments/models/error_response.rb +218 -0
  147. data/lib/yapstone-payments/models/fields.rb +196 -0
  148. data/lib/yapstone-payments/models/gov_identification.rb +292 -0
  149. data/lib/yapstone-payments/models/guest.rb +257 -0
  150. data/lib/yapstone-payments/models/guest_info_response.rb +208 -0
  151. data/lib/yapstone-payments/models/href.rb +196 -0
  152. data/lib/yapstone-payments/models/inline_response200.rb +232 -0
  153. data/lib/yapstone-payments/models/installment_plan.rb +208 -0
  154. data/lib/yapstone-payments/models/instrument.rb +250 -0
  155. data/lib/yapstone-payments/models/instrument_verification_response.rb +260 -0
  156. data/lib/yapstone-payments/models/kyc.rb +215 -0
  157. data/lib/yapstone-payments/models/lease_info.rb +218 -0
  158. data/lib/yapstone-payments/models/line_item_details.rb +236 -0
  159. data/lib/yapstone-payments/models/marketplace_data.rb +260 -0
  160. data/lib/yapstone-payments/models/merketplace.rb +197 -0
  161. data/lib/yapstone-payments/models/money.rb +207 -0
  162. data/lib/yapstone-payments/models/name.rb +248 -0
  163. data/lib/yapstone-payments/models/offering_details.rb +216 -0
  164. data/lib/yapstone-payments/models/order_transactions.rb +235 -0
  165. data/lib/yapstone-payments/models/payment.rb +216 -0
  166. data/lib/yapstone-payments/models/payment_cancel_response.rb +227 -0
  167. data/lib/yapstone-payments/models/payment_cancel_transaction_response.rb +218 -0
  168. data/lib/yapstone-payments/models/payment_details.rb +319 -0
  169. data/lib/yapstone-payments/models/payment_instrument.rb +277 -0
  170. data/lib/yapstone-payments/models/payment_instrument_card.rb +241 -0
  171. data/lib/yapstone-payments/models/payment_instrument_response.rb +205 -0
  172. data/lib/yapstone-payments/models/payment_payment.rb +257 -0
  173. data/lib/yapstone-payments/models/payment_payment_all_of.rb +250 -0
  174. data/lib/yapstone-payments/models/payment_response.rb +275 -0
  175. data/lib/yapstone-payments/models/phone.rb +218 -0
  176. data/lib/yapstone-payments/models/process_payment.rb +304 -0
  177. data/lib/yapstone-payments/models/property_info.rb +216 -0
  178. data/lib/yapstone-payments/models/property_info_response.rb +207 -0
  179. data/lib/yapstone-payments/models/refund_action.rb +35 -0
  180. data/lib/yapstone-payments/models/refund_cancel_response.rb +217 -0
  181. data/lib/yapstone-payments/models/refund_cancel_transaction_response.rb +207 -0
  182. data/lib/yapstone-payments/models/refund_request.rb +285 -0
  183. data/lib/yapstone-payments/models/refund_response.rb +253 -0
  184. data/lib/yapstone-payments/models/refund_status.rb +90 -0
  185. data/lib/yapstone-payments/models/refund_transactions.rb +245 -0
  186. data/lib/yapstone-payments/models/rental_info.rb +215 -0
  187. data/lib/yapstone-payments/models/renter.rb +254 -0
  188. data/lib/yapstone-payments/models/resolution.rb +196 -0
  189. data/lib/yapstone-payments/models/result.rb +218 -0
  190. data/lib/yapstone-payments/models/risk_status.rb +196 -0
  191. data/lib/yapstone-payments/models/sanctioned_entities.rb +207 -0
  192. data/lib/yapstone-payments/models/search_payment_response.rb +196 -0
  193. data/lib/yapstone-payments/models/stack_trace_element.rb +238 -0
  194. data/lib/yapstone-payments/models/status.rb +91 -0
  195. data/lib/yapstone-payments/models/throwable.rb +220 -0
  196. data/lib/yapstone-payments/models/to_entity_ref.rb +207 -0
  197. data/lib/yapstone-payments/models/token.rb +207 -0
  198. data/lib/yapstone-payments/models/token_req.rb +206 -0
  199. data/lib/yapstone-payments/models/token_request.rb +196 -0
  200. data/lib/yapstone-payments/models/token_response.rb +196 -0
  201. data/lib/yapstone-payments/models/transaction.rb +218 -0
  202. data/lib/yapstone-payments/models/transaction_response.rb +248 -0
  203. data/lib/yapstone-payments/models/triggers.rb +216 -0
  204. data/lib/yapstone-payments/models/vacation_rental_info.rb +205 -0
  205. data/lib/yapstone-payments/models/vacation_rental_info_request.rb +215 -0
  206. data/lib/yapstone-payments/models/verify_instrument_request.rb +215 -0
  207. data/lib/yapstone-payments/version.rb +15 -0
  208. data/spec/api/authentication_api_spec.rb +48 -0
  209. data/spec/api/disbursements_api_spec.rb +69 -0
  210. data/spec/api/payments_api_spec.rb +146 -0
  211. data/spec/api/refunds_api_spec.rb +127 -0
  212. data/spec/api/search_api_spec.rb +66 -0
  213. data/spec/api/token_api_spec.rb +67 -0
  214. data/spec/api_client_spec.rb +226 -0
  215. data/spec/configuration_spec.rb +42 -0
  216. data/spec/models/action_spec.rb +35 -0
  217. data/spec/models/address_spec.rb +77 -0
  218. data/spec/models/amount_spec.rb +53 -0
  219. data/spec/models/apm_spec.rb +81 -0
  220. data/spec/models/apm_spec_in_parameters_spec.rb +47 -0
  221. data/spec/models/auth_response_spec.rb +47 -0
  222. data/spec/models/auth_token_request_spec.rb +47 -0
  223. data/spec/models/auth_token_response_spec.rb +41 -0
  224. data/spec/models/bank_account_spec.rb +105 -0
  225. data/spec/models/billing_address_spec.rb +77 -0
  226. data/spec/models/booking_info_spec.rb +83 -0
  227. data/spec/models/capture_payment_request_spec.rb +57 -0
  228. data/spec/models/card_response_spec.rb +53 -0
  229. data/spec/models/card_spec.rb +71 -0
  230. data/spec/models/consent_spec.rb +57 -0
  231. data/spec/models/credit_card_auth_response_spec.rb +69 -0
  232. data/spec/models/customer_data_spec.rb +47 -0
  233. data/spec/models/customer_details_spec.rb +59 -0
  234. data/spec/models/customer_spec.rb +77 -0
  235. data/spec/models/deposit_details_spec.rb +41 -0
  236. data/spec/models/deposit_spec.rb +59 -0
  237. data/spec/models/disburse_line_items_req_spec.rb +47 -0
  238. data/spec/models/disburse_transaction_req_spec.rb +41 -0
  239. data/spec/models/disburse_transaction_spec.rb +47 -0
  240. data/spec/models/disbursement_all_of_spec.rb +41 -0
  241. data/spec/models/disbursement_details_spec.rb +41 -0
  242. data/spec/models/disbursement_request_spec.rb +35 -0
  243. data/spec/models/disbursement_requests_spec.rb +41 -0
  244. data/spec/models/disbursement_response_spec.rb +41 -0
  245. data/spec/models/disbursement_spec.rb +41 -0
  246. data/spec/models/error_response_spec.rb +47 -0
  247. data/spec/models/error_spec.rb +65 -0
  248. data/spec/models/fields_spec.rb +41 -0
  249. data/spec/models/gov_identification_spec.rb +81 -0
  250. data/spec/models/guest_info_response_spec.rb +47 -0
  251. data/spec/models/guest_spec.rb +77 -0
  252. data/spec/models/href_spec.rb +41 -0
  253. data/spec/models/inline_response200_spec.rb +65 -0
  254. data/spec/models/installment_plan_spec.rb +47 -0
  255. data/spec/models/instrument_spec.rb +57 -0
  256. data/spec/models/instrument_verification_response_spec.rb +83 -0
  257. data/spec/models/kyc_spec.rb +53 -0
  258. data/spec/models/lease_info_spec.rb +53 -0
  259. data/spec/models/line_item_details_spec.rb +65 -0
  260. data/spec/models/marketplace_data_spec.rb +63 -0
  261. data/spec/models/merketplace_spec.rb +41 -0
  262. data/spec/models/money_spec.rb +47 -0
  263. data/spec/models/name_spec.rb +71 -0
  264. data/spec/models/offering_details_spec.rb +53 -0
  265. data/spec/models/order_transactions_spec.rb +65 -0
  266. data/spec/models/payment_cancel_response_spec.rb +59 -0
  267. data/spec/models/payment_cancel_transaction_response_spec.rb +53 -0
  268. data/spec/models/payment_details_spec.rb +81 -0
  269. data/spec/models/payment_instrument_card_spec.rb +51 -0
  270. data/spec/models/payment_instrument_response_spec.rb +47 -0
  271. data/spec/models/payment_instrument_spec.rb +75 -0
  272. data/spec/models/payment_payment_all_of_spec.rb +71 -0
  273. data/spec/models/payment_payment_spec.rb +71 -0
  274. data/spec/models/payment_response_spec.rb +89 -0
  275. data/spec/models/payment_spec.rb +53 -0
  276. data/spec/models/phone_spec.rb +53 -0
  277. data/spec/models/process_payment_spec.rb +77 -0
  278. data/spec/models/property_info_response_spec.rb +47 -0
  279. data/spec/models/property_info_spec.rb +53 -0
  280. data/spec/models/refund_action_spec.rb +35 -0
  281. data/spec/models/refund_cancel_response_spec.rb +53 -0
  282. data/spec/models/refund_cancel_transaction_response_spec.rb +47 -0
  283. data/spec/models/refund_request_spec.rb +65 -0
  284. data/spec/models/refund_response_spec.rb +77 -0
  285. data/spec/models/refund_status_spec.rb +35 -0
  286. data/spec/models/refund_transactions_spec.rb +71 -0
  287. data/spec/models/rental_info_spec.rb +53 -0
  288. data/spec/models/renter_spec.rb +77 -0
  289. data/spec/models/resolution_spec.rb +41 -0
  290. data/spec/models/result_spec.rb +53 -0
  291. data/spec/models/risk_status_spec.rb +41 -0
  292. data/spec/models/sanctioned_entities_spec.rb +47 -0
  293. data/spec/models/search_payment_response_spec.rb +41 -0
  294. data/spec/models/stack_trace_element_spec.rb +65 -0
  295. data/spec/models/status_spec.rb +35 -0
  296. data/spec/models/throwable_spec.rb +53 -0
  297. data/spec/models/to_entity_ref_spec.rb +47 -0
  298. data/spec/models/token_req_spec.rb +47 -0
  299. data/spec/models/token_request_spec.rb +41 -0
  300. data/spec/models/token_response_spec.rb +41 -0
  301. data/spec/models/token_spec.rb +47 -0
  302. data/spec/models/transaction_response_spec.rb +71 -0
  303. data/spec/models/transaction_spec.rb +53 -0
  304. data/spec/models/triggers_spec.rb +53 -0
  305. data/spec/models/vacation_rental_info_request_spec.rb +53 -0
  306. data/spec/models/vacation_rental_info_spec.rb +47 -0
  307. data/spec/models/verify_instrument_request_spec.rb +53 -0
  308. data/spec/spec_helper.rb +111 -0
  309. data/yapstone-payments.gemspec +45 -0
  310. metadata +633 -0
@@ -0,0 +1,21 @@
1
+ # Yapstone::Phone
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **country_dialing_code** | **Integer** | The prefix for dialing a country with no special characters or spaces. | [optional]
8
+ **number** | **String** | phone number | [optional]
9
+ **extension** | **Integer** | If there is an extension associated with the number, it appears here. | [optional]
10
+
11
+ ## Code Sample
12
+
13
+ ```ruby
14
+ require 'Yapstone'
15
+
16
+ instance = Yapstone::Phone.new(country_dialing_code: null,
17
+ number: null,
18
+ extension: null)
19
+ ```
20
+
21
+
@@ -0,0 +1,29 @@
1
+ # Yapstone::ProcessPayment
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **channel** | **String** | The mode of communication (or channel) used to process the payment. | [optional]
8
+ **client_correlation_id** | **String** | A unique identifier that is attached to all transactions that have to do with a particular payment. You can track all the steps a payment went through using this ID. | [optional]
9
+ **client_unique_transaction_id** | **String** | This is the unique transaction ID for one transaction to do with a payment being processed. You can use this to retrieve a specific transaction vs. a set of associated transactions (which is what you would use the clientCorrelationId for). You can use this to identify duplicate requests. | [optional]
10
+ **marketplace** | [**MarketplaceData**](MarketplaceData.md) | | [optional]
11
+ **customer** | [**Customer**](Customer.md) | | [optional]
12
+ **payment_details** | [**PaymentDetails**](PaymentDetails.md) | | [optional]
13
+ **custom_data** | **Hash<String, String>** | | [optional]
14
+
15
+ ## Code Sample
16
+
17
+ ```ruby
18
+ require 'Yapstone'
19
+
20
+ instance = Yapstone::ProcessPayment.new(channel: null,
21
+ client_correlation_id: null,
22
+ client_unique_transaction_id: null,
23
+ marketplace: null,
24
+ customer: null,
25
+ payment_details: null,
26
+ custom_data: null)
27
+ ```
28
+
29
+
@@ -0,0 +1,21 @@
1
+ # Yapstone::PropertyInfo
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **address** | [**Address**](Address.md) | | [optional]
8
+ **external_property_id** | **String** | Unique identifier for a property. | [optional]
9
+ **property_name** | **String** | | [optional]
10
+
11
+ ## Code Sample
12
+
13
+ ```ruby
14
+ require 'Yapstone'
15
+
16
+ instance = Yapstone::PropertyInfo.new(address: null,
17
+ external_property_id: null,
18
+ property_name: null)
19
+ ```
20
+
21
+
@@ -0,0 +1,19 @@
1
+ # Yapstone::PropertyInfoResponse
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **external_property_id** | **String** | Optionally provide your system's internal identifier for this entity, for use later if you need to correlate data across systems or consolidate records. | [optional]
8
+ **property_id** | **String** | | [optional]
9
+
10
+ ## Code Sample
11
+
12
+ ```ruby
13
+ require 'Yapstone'
14
+
15
+ instance = Yapstone::PropertyInfoResponse.new(external_property_id: 967055d5-ebdf-4e38-908c-6ed3ec5043dc,
16
+ property_id: null)
17
+ ```
18
+
19
+
@@ -0,0 +1,16 @@
1
+ # Yapstone::RefundAction
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+
8
+ ## Code Sample
9
+
10
+ ```ruby
11
+ require 'Yapstone'
12
+
13
+ instance = Yapstone::RefundAction.new()
14
+ ```
15
+
16
+
@@ -0,0 +1,21 @@
1
+ # Yapstone::RefundCancelResponse
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **refund_id** | **String** | refundId | [optional]
8
+ **status** | [**Status**](Status.md) | | [optional]
9
+ **transactions** | [**Array<RefundCancelTransactionResponse>**](RefundCancelTransactionResponse.md) | | [optional]
10
+
11
+ ## Code Sample
12
+
13
+ ```ruby
14
+ require 'Yapstone'
15
+
16
+ instance = Yapstone::RefundCancelResponse.new(refund_id: null,
17
+ status: null,
18
+ transactions: null)
19
+ ```
20
+
21
+
@@ -0,0 +1,19 @@
1
+ # Yapstone::RefundCancelTransactionResponse
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **transaction_id** | **String** | A unique identifier for the specific transaction associated with the payment you are cancelling. | [optional]
8
+ **response** | **String** | Response | [optional]
9
+
10
+ ## Code Sample
11
+
12
+ ```ruby
13
+ require 'Yapstone'
14
+
15
+ instance = Yapstone::RefundCancelTransactionResponse.new(transaction_id: null,
16
+ response: null)
17
+ ```
18
+
19
+
@@ -0,0 +1,25 @@
1
+ # Yapstone::RefundRequest
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **client_correlation_id** | **String** | client correlation id | [optional]
8
+ **client_unique_transaction_id** | **String** | clientUniqueTransactionId used to identify duplicate request | [optional]
9
+ **payment_id** | **String** | | [optional]
10
+ **amount** | [**Amount**](Amount.md) | | [optional]
11
+ **transactions** | [**Array<Transaction>**](Transaction.md) | | [optional]
12
+
13
+ ## Code Sample
14
+
15
+ ```ruby
16
+ require 'Yapstone'
17
+
18
+ instance = Yapstone::RefundRequest.new(client_correlation_id: null,
19
+ client_unique_transaction_id: null,
20
+ payment_id: null,
21
+ amount: null,
22
+ transactions: null)
23
+ ```
24
+
25
+
@@ -0,0 +1,29 @@
1
+ # Yapstone::RefundResponse
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **client_correlation_id** | **String** | | [optional]
8
+ **client_unique_transaction_id** | **String** | Provide a nonce for this request. Yapstone's system will use this to prevent request duplication or accidental retry from causing multiple payments. | [optional]
9
+ **action** | [**RefundAction**](RefundAction.md) | | [optional]
10
+ **payment_id** | **String** | | [optional]
11
+ **refund_id** | **String** | | [optional]
12
+ **status** | [**Status**](Status.md) | | [optional]
13
+ **refund_transactions** | [**Array<RefundTransactions>**](RefundTransactions.md) | | [optional]
14
+
15
+ ## Code Sample
16
+
17
+ ```ruby
18
+ require 'Yapstone'
19
+
20
+ instance = Yapstone::RefundResponse.new(client_correlation_id: null,
21
+ client_unique_transaction_id: 4ed13361-5d66-4b76-8c6c-b462d5f638a7,
22
+ action: null,
23
+ payment_id: null,
24
+ refund_id: null,
25
+ status: null,
26
+ refund_transactions: null)
27
+ ```
28
+
29
+
@@ -0,0 +1,16 @@
1
+ # Yapstone::RefundStatus
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+
8
+ ## Code Sample
9
+
10
+ ```ruby
11
+ require 'Yapstone'
12
+
13
+ instance = Yapstone::RefundStatus.new()
14
+ ```
15
+
16
+
@@ -0,0 +1,27 @@
1
+ # Yapstone::RefundTransactions
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **client_unique_transaction_id** | **String** | clientUniqueTransactionId | [optional]
8
+ **refund_id** | **String** | | [optional]
9
+ **refund_transaction_id** | **String** | Unique identifier provided by Yapstone for the transaction. | [optional]
10
+ **line_items** | [**Array<LineItemDetails>**](LineItemDetails.md) | | [optional]
11
+ **status** | [**RefundStatus**](RefundStatus.md) | | [optional]
12
+ **transaction_type** | **String** | | [optional]
13
+
14
+ ## Code Sample
15
+
16
+ ```ruby
17
+ require 'Yapstone'
18
+
19
+ instance = Yapstone::RefundTransactions.new(client_unique_transaction_id: null,
20
+ refund_id: null,
21
+ refund_transaction_id: null,
22
+ line_items: null,
23
+ status: null,
24
+ transaction_type: null)
25
+ ```
26
+
27
+
@@ -0,0 +1,378 @@
1
+ # Yapstone::RefundsApi
2
+
3
+ All URIs are relative to *https://api-prod-sandbox.yapstone.com*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**cancel_refund**](RefundsApi.md#cancel_refund) | **DELETE** /v2/refunds/refund/{refundId} | Cancel Payment by payment Id
8
+ [**create_payment_refund**](RefundsApi.md#create_payment_refund) | **POST** /v2/refunds/payment | Create a refund
9
+ [**create_transaction_refund**](RefundsApi.md#create_transaction_refund) | **POST** /v2/refunds/transaction | Create a refund
10
+ [**get_by_originaltransaction_id**](RefundsApi.md#get_by_originaltransaction_id) | **GET** /v2/refunds/transaction/{transactionId} | Get master Transaction details including all refund details by transaction Id
11
+ [**get_refund**](RefundsApi.md#get_refund) | **GET** /v2/refunds/refund/{refundId} | Get master payment details including all refund detail by refund ID.
12
+ [**get_refund_by_payment_id**](RefundsApi.md#get_refund_by_payment_id) | **GET** /v2/refunds/payment/{paymentId} | Get master payment details including all refund details by Payment Id.
13
+
14
+
15
+
16
+ ## cancel_refund
17
+
18
+ > RefundCancelResponse cancel_refund(authorization, x_yapstone_ip_address, refund_id, opts)
19
+
20
+ Cancel Payment by payment Id
21
+
22
+ ### Example
23
+
24
+ ```ruby
25
+ # load the gem
26
+ require 'yapstone-payments'
27
+ # setup authorization
28
+ Yapstone.configure do |config|
29
+ # Configure Bearer authorization (JWT): Bearer
30
+ config.access_token = 'YOUR_BEARER_TOKEN'
31
+ end
32
+
33
+ api_instance = Yapstone::RefundsApi.new
34
+ authorization = 'authorization_example' # String | Authorization
35
+ x_yapstone_ip_address = 'x_yapstone_ip_address_example' # String | Ip Address of the client
36
+ refund_id = 'refund_id_example' # String | refundId
37
+ opts = {
38
+ x_yapstone_trace_id: 'x_yapstone_trace_id_example', # String | X-Yapstone-Trace-Id
39
+ x_yapstone_fpsid: 'x_yapstone_fpsid_example' # String | Device Finger Print Id
40
+ }
41
+
42
+ begin
43
+ #Cancel Payment by payment Id
44
+ result = api_instance.cancel_refund(authorization, x_yapstone_ip_address, refund_id, opts)
45
+ p result
46
+ rescue Yapstone::ApiError => e
47
+ puts "Exception when calling RefundsApi->cancel_refund: #{e}"
48
+ end
49
+ ```
50
+
51
+ ### Parameters
52
+
53
+
54
+ Name | Type | Description | Notes
55
+ ------------- | ------------- | ------------- | -------------
56
+ **authorization** | **String**| Authorization |
57
+ **x_yapstone_ip_address** | **String**| Ip Address of the client |
58
+ **refund_id** | **String**| refundId |
59
+ **x_yapstone_trace_id** | **String**| X-Yapstone-Trace-Id | [optional]
60
+ **x_yapstone_fpsid** | **String**| Device Finger Print Id | [optional]
61
+
62
+ ### Return type
63
+
64
+ [**RefundCancelResponse**](RefundCancelResponse.md)
65
+
66
+ ### Authorization
67
+
68
+ [Bearer](../README.md#Bearer)
69
+
70
+ ### HTTP request headers
71
+
72
+ - **Content-Type**: Not defined
73
+ - **Accept**: application/json
74
+
75
+
76
+ ## create_payment_refund
77
+
78
+ > RefundResponse create_payment_refund(authorization, x_yapstone_ip_address, refund_request, opts)
79
+
80
+ Create a refund
81
+
82
+ Create a refund for a payment that was processed
83
+
84
+ ### Example
85
+
86
+ ```ruby
87
+ # load the gem
88
+ require 'yapstone-payments'
89
+ # setup authorization
90
+ Yapstone.configure do |config|
91
+ # Configure Bearer authorization (JWT): Bearer
92
+ config.access_token = 'YOUR_BEARER_TOKEN'
93
+ end
94
+
95
+ api_instance = Yapstone::RefundsApi.new
96
+ authorization = 'authorization_example' # String | Authorization
97
+ x_yapstone_ip_address = 'x_yapstone_ip_address_example' # String | IP Address of the client
98
+ refund_request = Yapstone::RefundRequest.new # RefundRequest |
99
+ opts = {
100
+ x_yapstone_trace_id: 'x_yapstone_trace_id_example', # String | Optionally provide a unique identifier for this request, for use later if you need to debug this request with Yapstone support. Can be any arbitrary string.
101
+ x_yapstone_fpsid: 'x_yapstone_fpsid_example' # String | Device Finger Print Id
102
+ }
103
+
104
+ begin
105
+ #Create a refund
106
+ result = api_instance.create_payment_refund(authorization, x_yapstone_ip_address, refund_request, opts)
107
+ p result
108
+ rescue Yapstone::ApiError => e
109
+ puts "Exception when calling RefundsApi->create_payment_refund: #{e}"
110
+ end
111
+ ```
112
+
113
+ ### Parameters
114
+
115
+
116
+ Name | Type | Description | Notes
117
+ ------------- | ------------- | ------------- | -------------
118
+ **authorization** | **String**| Authorization |
119
+ **x_yapstone_ip_address** | **String**| IP Address of the client |
120
+ **refund_request** | [**RefundRequest**](RefundRequest.md)| |
121
+ **x_yapstone_trace_id** | **String**| Optionally provide a unique identifier for this request, for use later if you need to debug this request with Yapstone support. Can be any arbitrary string. | [optional]
122
+ **x_yapstone_fpsid** | **String**| Device Finger Print Id | [optional]
123
+
124
+ ### Return type
125
+
126
+ [**RefundResponse**](RefundResponse.md)
127
+
128
+ ### Authorization
129
+
130
+ [Bearer](../README.md#Bearer)
131
+
132
+ ### HTTP request headers
133
+
134
+ - **Content-Type**: application/json
135
+ - **Accept**: application/json
136
+
137
+
138
+ ## create_transaction_refund
139
+
140
+ > RefundResponse create_transaction_refund(authorization, x_yapstone_ip_address, transaction, opts)
141
+
142
+ Create a refund
143
+
144
+ Use this end point to kick off a refund for transaction. If you've already captured the transaction, this will result in a refund of the amount captured and the details of that refund will be returned in the response body.
145
+
146
+ ### Example
147
+
148
+ ```ruby
149
+ # load the gem
150
+ require 'yapstone-payments'
151
+ # setup authorization
152
+ Yapstone.configure do |config|
153
+ # Configure Bearer authorization (JWT): Bearer
154
+ config.access_token = 'YOUR_BEARER_TOKEN'
155
+ end
156
+
157
+ api_instance = Yapstone::RefundsApi.new
158
+ authorization = 'authorization_example' # String | Authorization
159
+ x_yapstone_ip_address = 'x_yapstone_ip_address_example' # String | IP Address of the client
160
+ transaction = Yapstone::Transaction.new # Transaction |
161
+ opts = {
162
+ x_yapstone_trace_id: 'x_yapstone_trace_id_example', # String | Optionally provide a unique identifier for this request, for use later if you need to debug this request with Yapstone support. Can be any arbitrary string.
163
+ x_yapstone_fpsid: 'x_yapstone_fpsid_example' # String | Device Finger Print Id
164
+ }
165
+
166
+ begin
167
+ #Create a refund
168
+ result = api_instance.create_transaction_refund(authorization, x_yapstone_ip_address, transaction, opts)
169
+ p result
170
+ rescue Yapstone::ApiError => e
171
+ puts "Exception when calling RefundsApi->create_transaction_refund: #{e}"
172
+ end
173
+ ```
174
+
175
+ ### Parameters
176
+
177
+
178
+ Name | Type | Description | Notes
179
+ ------------- | ------------- | ------------- | -------------
180
+ **authorization** | **String**| Authorization |
181
+ **x_yapstone_ip_address** | **String**| IP Address of the client |
182
+ **transaction** | [**Transaction**](Transaction.md)| |
183
+ **x_yapstone_trace_id** | **String**| Optionally provide a unique identifier for this request, for use later if you need to debug this request with Yapstone support. Can be any arbitrary string. | [optional]
184
+ **x_yapstone_fpsid** | **String**| Device Finger Print Id | [optional]
185
+
186
+ ### Return type
187
+
188
+ [**RefundResponse**](RefundResponse.md)
189
+
190
+ ### Authorization
191
+
192
+ [Bearer](../README.md#Bearer)
193
+
194
+ ### HTTP request headers
195
+
196
+ - **Content-Type**: application/json
197
+ - **Accept**: application/json
198
+
199
+
200
+ ## get_by_originaltransaction_id
201
+
202
+ > TransactionResponse get_by_originaltransaction_id(authorization, x_yapstone_ip_address, transaction_id, opts)
203
+
204
+ Get master Transaction details including all refund details by transaction Id
205
+
206
+ Transactions are nested inside payments. Master transactions are nested inside the master payment.
207
+
208
+ ### Example
209
+
210
+ ```ruby
211
+ # load the gem
212
+ require 'yapstone-payments'
213
+ # setup authorization
214
+ Yapstone.configure do |config|
215
+ # Configure Bearer authorization (JWT): Bearer
216
+ config.access_token = 'YOUR_BEARER_TOKEN'
217
+ end
218
+
219
+ api_instance = Yapstone::RefundsApi.new
220
+ authorization = 'authorization_example' # String | Authorization
221
+ x_yapstone_ip_address = 'x_yapstone_ip_address_example' # String | IP Address of the client
222
+ transaction_id = 'transaction_id_example' # String | transactionId
223
+ opts = {
224
+ x_yapstone_trace_id: 'x_yapstone_trace_id_example' # String | Optionally provide a unique identifier for this request, for use later if you need to debug this request with Yapstone support. Can be any arbitrary string.
225
+ }
226
+
227
+ begin
228
+ #Get master Transaction details including all refund details by transaction Id
229
+ result = api_instance.get_by_originaltransaction_id(authorization, x_yapstone_ip_address, transaction_id, opts)
230
+ p result
231
+ rescue Yapstone::ApiError => e
232
+ puts "Exception when calling RefundsApi->get_by_originaltransaction_id: #{e}"
233
+ end
234
+ ```
235
+
236
+ ### Parameters
237
+
238
+
239
+ Name | Type | Description | Notes
240
+ ------------- | ------------- | ------------- | -------------
241
+ **authorization** | **String**| Authorization |
242
+ **x_yapstone_ip_address** | **String**| IP Address of the client |
243
+ **transaction_id** | **String**| transactionId |
244
+ **x_yapstone_trace_id** | **String**| Optionally provide a unique identifier for this request, for use later if you need to debug this request with Yapstone support. Can be any arbitrary string. | [optional]
245
+
246
+ ### Return type
247
+
248
+ [**TransactionResponse**](TransactionResponse.md)
249
+
250
+ ### Authorization
251
+
252
+ [Bearer](../README.md#Bearer)
253
+
254
+ ### HTTP request headers
255
+
256
+ - **Content-Type**: Not defined
257
+ - **Accept**: application/json
258
+
259
+
260
+ ## get_refund
261
+
262
+ > RefundResponse get_refund(authorization, x_yapstone_ip_address, refund_id, opts)
263
+
264
+ Get master payment details including all refund detail by refund ID.
265
+
266
+ A master payment is the initial payment that all other payment details and transactions tied to that payment connect to. You can use a refund ID to retrieve master payment information.
267
+
268
+ ### Example
269
+
270
+ ```ruby
271
+ # load the gem
272
+ require 'yapstone-payments'
273
+ # setup authorization
274
+ Yapstone.configure do |config|
275
+ # Configure Bearer authorization (JWT): Bearer
276
+ config.access_token = 'YOUR_BEARER_TOKEN'
277
+ end
278
+
279
+ api_instance = Yapstone::RefundsApi.new
280
+ authorization = 'authorization_example' # String | Authorization
281
+ x_yapstone_ip_address = 'x_yapstone_ip_address_example' # String | IP Address of the client
282
+ refund_id = 'refund_id_example' # String | refundId
283
+ opts = {
284
+ x_yapstone_trace_id: 'x_yapstone_trace_id_example' # String | Optionally provide a unique identifier for this request, for use later if you need to debug this request with Yapstone support. Can be any arbitrary string.
285
+ }
286
+
287
+ begin
288
+ #Get master payment details including all refund detail by refund ID.
289
+ result = api_instance.get_refund(authorization, x_yapstone_ip_address, refund_id, opts)
290
+ p result
291
+ rescue Yapstone::ApiError => e
292
+ puts "Exception when calling RefundsApi->get_refund: #{e}"
293
+ end
294
+ ```
295
+
296
+ ### Parameters
297
+
298
+
299
+ Name | Type | Description | Notes
300
+ ------------- | ------------- | ------------- | -------------
301
+ **authorization** | **String**| Authorization |
302
+ **x_yapstone_ip_address** | **String**| IP Address of the client |
303
+ **refund_id** | **String**| refundId |
304
+ **x_yapstone_trace_id** | **String**| Optionally provide a unique identifier for this request, for use later if you need to debug this request with Yapstone support. Can be any arbitrary string. | [optional]
305
+
306
+ ### Return type
307
+
308
+ [**RefundResponse**](RefundResponse.md)
309
+
310
+ ### Authorization
311
+
312
+ [Bearer](../README.md#Bearer)
313
+
314
+ ### HTTP request headers
315
+
316
+ - **Content-Type**: Not defined
317
+ - **Accept**: application/json
318
+
319
+
320
+ ## get_refund_by_payment_id
321
+
322
+ > RefundResponse get_refund_by_payment_id(authorization, x_yapstone_ip_address, payment_id, opts)
323
+
324
+ Get master payment details including all refund details by Payment Id.
325
+
326
+ A master payment is the initial payment that all other payment details and transactions tied to that payment connect to.
327
+
328
+ ### Example
329
+
330
+ ```ruby
331
+ # load the gem
332
+ require 'yapstone-payments'
333
+ # setup authorization
334
+ Yapstone.configure do |config|
335
+ # Configure Bearer authorization (JWT): Bearer
336
+ config.access_token = 'YOUR_BEARER_TOKEN'
337
+ end
338
+
339
+ api_instance = Yapstone::RefundsApi.new
340
+ authorization = 'authorization_example' # String | Authorization
341
+ x_yapstone_ip_address = 'x_yapstone_ip_address_example' # String | IP Address of the client
342
+ payment_id = 'payment_id_example' # String | paymentId
343
+ opts = {
344
+ x_yapstone_trace_id: 'x_yapstone_trace_id_example' # String | Optionally provide a unique identifier for this request, for use later if you need to debug this request with Yapstone support. Can be any arbitrary string.
345
+ }
346
+
347
+ begin
348
+ #Get master payment details including all refund details by Payment Id.
349
+ result = api_instance.get_refund_by_payment_id(authorization, x_yapstone_ip_address, payment_id, opts)
350
+ p result
351
+ rescue Yapstone::ApiError => e
352
+ puts "Exception when calling RefundsApi->get_refund_by_payment_id: #{e}"
353
+ end
354
+ ```
355
+
356
+ ### Parameters
357
+
358
+
359
+ Name | Type | Description | Notes
360
+ ------------- | ------------- | ------------- | -------------
361
+ **authorization** | **String**| Authorization |
362
+ **x_yapstone_ip_address** | **String**| IP Address of the client |
363
+ **payment_id** | **String**| paymentId |
364
+ **x_yapstone_trace_id** | **String**| Optionally provide a unique identifier for this request, for use later if you need to debug this request with Yapstone support. Can be any arbitrary string. | [optional]
365
+
366
+ ### Return type
367
+
368
+ [**RefundResponse**](RefundResponse.md)
369
+
370
+ ### Authorization
371
+
372
+ [Bearer](../README.md#Bearer)
373
+
374
+ ### HTTP request headers
375
+
376
+ - **Content-Type**: Not defined
377
+ - **Accept**: application/json
378
+