yapstone-payments 1.0.0
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.
- checksums.yaml +7 -0
- data/Gemfile +9 -0
- data/Gemfile.lock +79 -0
- data/README.md +203 -0
- data/Rakefile +10 -0
- data/docs/APM.md +29 -0
- data/docs/APMSpecInParameters.md +19 -0
- data/docs/Action.md +16 -0
- data/docs/Address.md +29 -0
- data/docs/Amount.md +21 -0
- data/docs/AuthResponse.md +19 -0
- data/docs/AuthTokenRequest.md +19 -0
- data/docs/AuthTokenResponse.md +17 -0
- data/docs/AuthenticationApi.md +58 -0
- data/docs/BankAccount.md +37 -0
- data/docs/BillingAddress.md +29 -0
- data/docs/BookingInfo.md +31 -0
- data/docs/CapturePaymentRequest.md +21 -0
- data/docs/Card.md +27 -0
- data/docs/CardResponse.md +21 -0
- data/docs/Consent.md +21 -0
- data/docs/CreditCardAuthResponse.md +25 -0
- data/docs/Customer.md +29 -0
- data/docs/CustomerData.md +19 -0
- data/docs/CustomerDetails.md +23 -0
- data/docs/Deposit.md +23 -0
- data/docs/DepositDetails.md +17 -0
- data/docs/DisburseLineItemsReq.md +19 -0
- data/docs/DisburseTransaction.md +19 -0
- data/docs/DisburseTransactionReq.md +17 -0
- data/docs/Disbursement.md +17 -0
- data/docs/DisbursementAllOf.md +17 -0
- data/docs/DisbursementDetails.md +17 -0
- data/docs/DisbursementRequest.md +16 -0
- data/docs/DisbursementRequests.md +17 -0
- data/docs/DisbursementResponse.md +17 -0
- data/docs/DisbursementsApi.md +138 -0
- data/docs/Error.md +25 -0
- data/docs/ErrorResponse.md +19 -0
- data/docs/Fields.md +17 -0
- data/docs/GovIdentification.md +29 -0
- data/docs/Guest.md +29 -0
- data/docs/GuestInfoResponse.md +19 -0
- data/docs/Href.md +17 -0
- data/docs/InlineResponse200.md +25 -0
- data/docs/InstallmentPlan.md +19 -0
- data/docs/Instrument.md +21 -0
- data/docs/InstrumentVerificationResponse.md +31 -0
- data/docs/KYC.md +21 -0
- data/docs/LeaseInfo.md +21 -0
- data/docs/LineItemDetails.md +25 -0
- data/docs/MarketplaceData.md +23 -0
- data/docs/Merketplace.md +17 -0
- data/docs/Money.md +19 -0
- data/docs/Name.md +27 -0
- data/docs/OfferingDetails.md +21 -0
- data/docs/OrderTransactions.md +25 -0
- data/docs/Payment.md +21 -0
- data/docs/PaymentCancelResponse.md +23 -0
- data/docs/PaymentCancelTransactionResponse.md +21 -0
- data/docs/PaymentDetails.md +29 -0
- data/docs/PaymentInstrument.md +27 -0
- data/docs/PaymentInstrumentCard.md +19 -0
- data/docs/PaymentInstrumentResponse.md +19 -0
- data/docs/PaymentPayment.md +27 -0
- data/docs/PaymentPaymentAllOf.md +27 -0
- data/docs/PaymentResponse.md +33 -0
- data/docs/PaymentsApi.md +447 -0
- data/docs/Phone.md +21 -0
- data/docs/ProcessPayment.md +29 -0
- data/docs/PropertyInfo.md +21 -0
- data/docs/PropertyInfoResponse.md +19 -0
- data/docs/RefundAction.md +16 -0
- data/docs/RefundCancelResponse.md +21 -0
- data/docs/RefundCancelTransactionResponse.md +19 -0
- data/docs/RefundRequest.md +25 -0
- data/docs/RefundResponse.md +29 -0
- data/docs/RefundStatus.md +16 -0
- data/docs/RefundTransactions.md +27 -0
- data/docs/RefundsApi.md +378 -0
- data/docs/RentalInfo.md +21 -0
- data/docs/Renter.md +29 -0
- data/docs/Resolution.md +17 -0
- data/docs/Result.md +21 -0
- data/docs/RiskStatus.md +17 -0
- data/docs/SanctionedEntities.md +19 -0
- data/docs/SearchApi.md +132 -0
- data/docs/SearchPaymentResponse.md +17 -0
- data/docs/StackTraceElement.md +25 -0
- data/docs/Status.md +16 -0
- data/docs/Throwable.md +21 -0
- data/docs/ToEntityRef.md +19 -0
- data/docs/Token.md +19 -0
- data/docs/TokenApi.md +134 -0
- data/docs/TokenReq.md +19 -0
- data/docs/TokenRequest.md +17 -0
- data/docs/TokenResponse.md +17 -0
- data/docs/Transaction.md +21 -0
- data/docs/TransactionResponse.md +27 -0
- data/docs/Triggers.md +21 -0
- data/docs/VacationRentalInfo.md +19 -0
- data/docs/VacationRentalInfoRequest.md +21 -0
- data/docs/VerifyInstrumentRequest.md +21 -0
- data/git_push.sh +55 -0
- data/lib/yapstone-payments.rb +137 -0
- data/lib/yapstone-payments/api/authentication_api.rb +92 -0
- data/lib/yapstone-payments/api/disbursements_api.rb +202 -0
- data/lib/yapstone-payments/api/payments_api.rb +598 -0
- data/lib/yapstone-payments/api/refunds_api.rb +507 -0
- data/lib/yapstone-payments/api/search_api.rb +187 -0
- data/lib/yapstone-payments/api/token_api.rb +182 -0
- data/lib/yapstone-payments/api_client.rb +386 -0
- data/lib/yapstone-payments/api_error.rb +57 -0
- data/lib/yapstone-payments/configuration.rb +249 -0
- data/lib/yapstone-payments/models/action.rb +39 -0
- data/lib/yapstone-payments/models/address.rb +258 -0
- data/lib/yapstone-payments/models/amount.rb +218 -0
- data/lib/yapstone-payments/models/apm.rb +292 -0
- data/lib/yapstone-payments/models/apm_spec_in_parameters.rb +208 -0
- data/lib/yapstone-payments/models/auth_response.rb +217 -0
- data/lib/yapstone-payments/models/auth_token_request.rb +205 -0
- data/lib/yapstone-payments/models/auth_token_response.rb +196 -0
- data/lib/yapstone-payments/models/bank_account.rb +347 -0
- data/lib/yapstone-payments/models/billing_address.rb +258 -0
- data/lib/yapstone-payments/models/booking_info.rb +266 -0
- data/lib/yapstone-payments/models/capture_payment_request.rb +252 -0
- data/lib/yapstone-payments/models/card.rb +247 -0
- data/lib/yapstone-payments/models/card_response.rb +217 -0
- data/lib/yapstone-payments/models/consent.rb +248 -0
- data/lib/yapstone-payments/models/credit_card_auth_response.rb +267 -0
- data/lib/yapstone-payments/models/customer.rb +256 -0
- data/lib/yapstone-payments/models/customer_data.rb +208 -0
- data/lib/yapstone-payments/models/customer_details.rb +226 -0
- data/lib/yapstone-payments/models/deposit.rb +228 -0
- data/lib/yapstone-payments/models/deposit_details.rb +199 -0
- data/lib/yapstone-payments/models/disburse_line_items_req.rb +208 -0
- data/lib/yapstone-payments/models/disburse_transaction.rb +208 -0
- data/lib/yapstone-payments/models/disburse_transaction_req.rb +199 -0
- data/lib/yapstone-payments/models/disbursement.rb +203 -0
- data/lib/yapstone-payments/models/disbursement_all_of.rb +197 -0
- data/lib/yapstone-payments/models/disbursement_details.rb +200 -0
- data/lib/yapstone-payments/models/disbursement_request.rb +187 -0
- data/lib/yapstone-payments/models/disbursement_requests.rb +198 -0
- data/lib/yapstone-payments/models/disbursement_response.rb +198 -0
- data/lib/yapstone-payments/models/error.rb +241 -0
- data/lib/yapstone-payments/models/error_response.rb +218 -0
- data/lib/yapstone-payments/models/fields.rb +196 -0
- data/lib/yapstone-payments/models/gov_identification.rb +292 -0
- data/lib/yapstone-payments/models/guest.rb +257 -0
- data/lib/yapstone-payments/models/guest_info_response.rb +208 -0
- data/lib/yapstone-payments/models/href.rb +196 -0
- data/lib/yapstone-payments/models/inline_response200.rb +232 -0
- data/lib/yapstone-payments/models/installment_plan.rb +208 -0
- data/lib/yapstone-payments/models/instrument.rb +250 -0
- data/lib/yapstone-payments/models/instrument_verification_response.rb +260 -0
- data/lib/yapstone-payments/models/kyc.rb +215 -0
- data/lib/yapstone-payments/models/lease_info.rb +218 -0
- data/lib/yapstone-payments/models/line_item_details.rb +236 -0
- data/lib/yapstone-payments/models/marketplace_data.rb +260 -0
- data/lib/yapstone-payments/models/merketplace.rb +197 -0
- data/lib/yapstone-payments/models/money.rb +207 -0
- data/lib/yapstone-payments/models/name.rb +248 -0
- data/lib/yapstone-payments/models/offering_details.rb +216 -0
- data/lib/yapstone-payments/models/order_transactions.rb +235 -0
- data/lib/yapstone-payments/models/payment.rb +216 -0
- data/lib/yapstone-payments/models/payment_cancel_response.rb +227 -0
- data/lib/yapstone-payments/models/payment_cancel_transaction_response.rb +218 -0
- data/lib/yapstone-payments/models/payment_details.rb +319 -0
- data/lib/yapstone-payments/models/payment_instrument.rb +277 -0
- data/lib/yapstone-payments/models/payment_instrument_card.rb +241 -0
- data/lib/yapstone-payments/models/payment_instrument_response.rb +205 -0
- data/lib/yapstone-payments/models/payment_payment.rb +257 -0
- data/lib/yapstone-payments/models/payment_payment_all_of.rb +250 -0
- data/lib/yapstone-payments/models/payment_response.rb +275 -0
- data/lib/yapstone-payments/models/phone.rb +218 -0
- data/lib/yapstone-payments/models/process_payment.rb +304 -0
- data/lib/yapstone-payments/models/property_info.rb +216 -0
- data/lib/yapstone-payments/models/property_info_response.rb +207 -0
- data/lib/yapstone-payments/models/refund_action.rb +35 -0
- data/lib/yapstone-payments/models/refund_cancel_response.rb +217 -0
- data/lib/yapstone-payments/models/refund_cancel_transaction_response.rb +207 -0
- data/lib/yapstone-payments/models/refund_request.rb +285 -0
- data/lib/yapstone-payments/models/refund_response.rb +253 -0
- data/lib/yapstone-payments/models/refund_status.rb +90 -0
- data/lib/yapstone-payments/models/refund_transactions.rb +245 -0
- data/lib/yapstone-payments/models/rental_info.rb +215 -0
- data/lib/yapstone-payments/models/renter.rb +254 -0
- data/lib/yapstone-payments/models/resolution.rb +196 -0
- data/lib/yapstone-payments/models/result.rb +218 -0
- data/lib/yapstone-payments/models/risk_status.rb +196 -0
- data/lib/yapstone-payments/models/sanctioned_entities.rb +207 -0
- data/lib/yapstone-payments/models/search_payment_response.rb +196 -0
- data/lib/yapstone-payments/models/stack_trace_element.rb +238 -0
- data/lib/yapstone-payments/models/status.rb +91 -0
- data/lib/yapstone-payments/models/throwable.rb +220 -0
- data/lib/yapstone-payments/models/to_entity_ref.rb +207 -0
- data/lib/yapstone-payments/models/token.rb +207 -0
- data/lib/yapstone-payments/models/token_req.rb +206 -0
- data/lib/yapstone-payments/models/token_request.rb +196 -0
- data/lib/yapstone-payments/models/token_response.rb +196 -0
- data/lib/yapstone-payments/models/transaction.rb +218 -0
- data/lib/yapstone-payments/models/transaction_response.rb +248 -0
- data/lib/yapstone-payments/models/triggers.rb +216 -0
- data/lib/yapstone-payments/models/vacation_rental_info.rb +205 -0
- data/lib/yapstone-payments/models/vacation_rental_info_request.rb +215 -0
- data/lib/yapstone-payments/models/verify_instrument_request.rb +215 -0
- data/lib/yapstone-payments/version.rb +15 -0
- data/spec/api/authentication_api_spec.rb +48 -0
- data/spec/api/disbursements_api_spec.rb +69 -0
- data/spec/api/payments_api_spec.rb +146 -0
- data/spec/api/refunds_api_spec.rb +127 -0
- data/spec/api/search_api_spec.rb +66 -0
- data/spec/api/token_api_spec.rb +67 -0
- data/spec/api_client_spec.rb +226 -0
- data/spec/configuration_spec.rb +42 -0
- data/spec/models/action_spec.rb +35 -0
- data/spec/models/address_spec.rb +77 -0
- data/spec/models/amount_spec.rb +53 -0
- data/spec/models/apm_spec.rb +81 -0
- data/spec/models/apm_spec_in_parameters_spec.rb +47 -0
- data/spec/models/auth_response_spec.rb +47 -0
- data/spec/models/auth_token_request_spec.rb +47 -0
- data/spec/models/auth_token_response_spec.rb +41 -0
- data/spec/models/bank_account_spec.rb +105 -0
- data/spec/models/billing_address_spec.rb +77 -0
- data/spec/models/booking_info_spec.rb +83 -0
- data/spec/models/capture_payment_request_spec.rb +57 -0
- data/spec/models/card_response_spec.rb +53 -0
- data/spec/models/card_spec.rb +71 -0
- data/spec/models/consent_spec.rb +57 -0
- data/spec/models/credit_card_auth_response_spec.rb +69 -0
- data/spec/models/customer_data_spec.rb +47 -0
- data/spec/models/customer_details_spec.rb +59 -0
- data/spec/models/customer_spec.rb +77 -0
- data/spec/models/deposit_details_spec.rb +41 -0
- data/spec/models/deposit_spec.rb +59 -0
- data/spec/models/disburse_line_items_req_spec.rb +47 -0
- data/spec/models/disburse_transaction_req_spec.rb +41 -0
- data/spec/models/disburse_transaction_spec.rb +47 -0
- data/spec/models/disbursement_all_of_spec.rb +41 -0
- data/spec/models/disbursement_details_spec.rb +41 -0
- data/spec/models/disbursement_request_spec.rb +35 -0
- data/spec/models/disbursement_requests_spec.rb +41 -0
- data/spec/models/disbursement_response_spec.rb +41 -0
- data/spec/models/disbursement_spec.rb +41 -0
- data/spec/models/error_response_spec.rb +47 -0
- data/spec/models/error_spec.rb +65 -0
- data/spec/models/fields_spec.rb +41 -0
- data/spec/models/gov_identification_spec.rb +81 -0
- data/spec/models/guest_info_response_spec.rb +47 -0
- data/spec/models/guest_spec.rb +77 -0
- data/spec/models/href_spec.rb +41 -0
- data/spec/models/inline_response200_spec.rb +65 -0
- data/spec/models/installment_plan_spec.rb +47 -0
- data/spec/models/instrument_spec.rb +57 -0
- data/spec/models/instrument_verification_response_spec.rb +83 -0
- data/spec/models/kyc_spec.rb +53 -0
- data/spec/models/lease_info_spec.rb +53 -0
- data/spec/models/line_item_details_spec.rb +65 -0
- data/spec/models/marketplace_data_spec.rb +63 -0
- data/spec/models/merketplace_spec.rb +41 -0
- data/spec/models/money_spec.rb +47 -0
- data/spec/models/name_spec.rb +71 -0
- data/spec/models/offering_details_spec.rb +53 -0
- data/spec/models/order_transactions_spec.rb +65 -0
- data/spec/models/payment_cancel_response_spec.rb +59 -0
- data/spec/models/payment_cancel_transaction_response_spec.rb +53 -0
- data/spec/models/payment_details_spec.rb +81 -0
- data/spec/models/payment_instrument_card_spec.rb +51 -0
- data/spec/models/payment_instrument_response_spec.rb +47 -0
- data/spec/models/payment_instrument_spec.rb +75 -0
- data/spec/models/payment_payment_all_of_spec.rb +71 -0
- data/spec/models/payment_payment_spec.rb +71 -0
- data/spec/models/payment_response_spec.rb +89 -0
- data/spec/models/payment_spec.rb +53 -0
- data/spec/models/phone_spec.rb +53 -0
- data/spec/models/process_payment_spec.rb +77 -0
- data/spec/models/property_info_response_spec.rb +47 -0
- data/spec/models/property_info_spec.rb +53 -0
- data/spec/models/refund_action_spec.rb +35 -0
- data/spec/models/refund_cancel_response_spec.rb +53 -0
- data/spec/models/refund_cancel_transaction_response_spec.rb +47 -0
- data/spec/models/refund_request_spec.rb +65 -0
- data/spec/models/refund_response_spec.rb +77 -0
- data/spec/models/refund_status_spec.rb +35 -0
- data/spec/models/refund_transactions_spec.rb +71 -0
- data/spec/models/rental_info_spec.rb +53 -0
- data/spec/models/renter_spec.rb +77 -0
- data/spec/models/resolution_spec.rb +41 -0
- data/spec/models/result_spec.rb +53 -0
- data/spec/models/risk_status_spec.rb +41 -0
- data/spec/models/sanctioned_entities_spec.rb +47 -0
- data/spec/models/search_payment_response_spec.rb +41 -0
- data/spec/models/stack_trace_element_spec.rb +65 -0
- data/spec/models/status_spec.rb +35 -0
- data/spec/models/throwable_spec.rb +53 -0
- data/spec/models/to_entity_ref_spec.rb +47 -0
- data/spec/models/token_req_spec.rb +47 -0
- data/spec/models/token_request_spec.rb +41 -0
- data/spec/models/token_response_spec.rb +41 -0
- data/spec/models/token_spec.rb +47 -0
- data/spec/models/transaction_response_spec.rb +71 -0
- data/spec/models/transaction_spec.rb +53 -0
- data/spec/models/triggers_spec.rb +53 -0
- data/spec/models/vacation_rental_info_request_spec.rb +53 -0
- data/spec/models/vacation_rental_info_spec.rb +47 -0
- data/spec/models/verify_instrument_request_spec.rb +53 -0
- data/spec/spec_helper.rb +111 -0
- data/yapstone-payments.gemspec +45 -0
- metadata +633 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: a4d159cbfb8c0c6cbe1ae71796ab7912cca8e758be136417a49cb9503c91a2f4
|
|
4
|
+
data.tar.gz: 154cf6cc478adf321f47d6d1e0da8f1ea7811188a5ce691b47ee9d259f0a2d20
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: 65e538927d6f30b066854606d4b2a48d8f82a5d5558ca2086943bc6f07f50a447ff3422b18758baaeead4c5c6b40f1e99a583932a53ba673237b21775fc3adf9
|
|
7
|
+
data.tar.gz: 7d0b27193b9ed510aeb26bb2f2fb72c920effef548464ff2d219cf0bd564629a76e32cb0239ec09788e5dfa2e79ceaf67a35dcd7e603a9765a606ffadf8719d8
|
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
PATH
|
|
2
|
+
remote: .
|
|
3
|
+
specs:
|
|
4
|
+
yapstone-payments (1.0.0)
|
|
5
|
+
json (~> 2.1, >= 2.1.0)
|
|
6
|
+
typhoeus (~> 1.0, >= 1.0.1)
|
|
7
|
+
|
|
8
|
+
GEM
|
|
9
|
+
remote: https://rubygems.org/
|
|
10
|
+
specs:
|
|
11
|
+
ZenTest (4.11.2)
|
|
12
|
+
addressable (2.5.2)
|
|
13
|
+
public_suffix (>= 2.0.2, < 4.0)
|
|
14
|
+
autotest (4.4.6)
|
|
15
|
+
ZenTest (>= 4.4.1)
|
|
16
|
+
autotest-fsevent (0.2.14)
|
|
17
|
+
sys-uname
|
|
18
|
+
autotest-growl (0.2.16)
|
|
19
|
+
autotest-rails-pure (4.1.2)
|
|
20
|
+
byebug (10.0.2)
|
|
21
|
+
coderay (1.1.2)
|
|
22
|
+
crack (0.4.3)
|
|
23
|
+
safe_yaml (~> 1.0.0)
|
|
24
|
+
diff-lcs (1.3)
|
|
25
|
+
ethon (0.11.0)
|
|
26
|
+
ffi (>= 1.3.0)
|
|
27
|
+
ffi (1.9.25)
|
|
28
|
+
hashdiff (0.3.7)
|
|
29
|
+
json (2.1.0)
|
|
30
|
+
method_source (0.9.0)
|
|
31
|
+
pry (0.11.3)
|
|
32
|
+
coderay (~> 1.1.0)
|
|
33
|
+
method_source (~> 0.9.0)
|
|
34
|
+
pry-byebug (3.6.0)
|
|
35
|
+
byebug (~> 10.0)
|
|
36
|
+
pry (~> 0.10)
|
|
37
|
+
public_suffix (3.0.3)
|
|
38
|
+
rake (12.0.0)
|
|
39
|
+
rspec (3.8.0)
|
|
40
|
+
rspec-core (~> 3.8.0)
|
|
41
|
+
rspec-expectations (~> 3.8.0)
|
|
42
|
+
rspec-mocks (~> 3.8.0)
|
|
43
|
+
rspec-core (3.8.0)
|
|
44
|
+
rspec-support (~> 3.8.0)
|
|
45
|
+
rspec-expectations (3.8.1)
|
|
46
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
|
47
|
+
rspec-support (~> 3.8.0)
|
|
48
|
+
rspec-mocks (3.8.0)
|
|
49
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
|
50
|
+
rspec-support (~> 3.8.0)
|
|
51
|
+
rspec-support (3.8.0)
|
|
52
|
+
safe_yaml (1.0.4)
|
|
53
|
+
sys-uname (1.0.3)
|
|
54
|
+
ffi (>= 1.0.0)
|
|
55
|
+
typhoeus (1.3.0)
|
|
56
|
+
ethon (>= 0.9.0)
|
|
57
|
+
vcr (3.0.3)
|
|
58
|
+
webmock (1.24.6)
|
|
59
|
+
addressable (>= 2.3.6)
|
|
60
|
+
crack (>= 0.3.2)
|
|
61
|
+
hashdiff
|
|
62
|
+
|
|
63
|
+
PLATFORMS
|
|
64
|
+
ruby
|
|
65
|
+
|
|
66
|
+
DEPENDENCIES
|
|
67
|
+
autotest (~> 4.4, >= 4.4.6)
|
|
68
|
+
autotest-fsevent (~> 0.2, >= 0.2.12)
|
|
69
|
+
autotest-growl (~> 0.2, >= 0.2.16)
|
|
70
|
+
autotest-rails-pure (~> 4.1, >= 4.1.2)
|
|
71
|
+
yapstone-payments!
|
|
72
|
+
pry-byebug
|
|
73
|
+
rake (~> 12.0.0)
|
|
74
|
+
rspec (~> 3.6, >= 3.6.0)
|
|
75
|
+
vcr (~> 3.0, >= 3.0.1)
|
|
76
|
+
webmock (~> 1.24, >= 1.24.3)
|
|
77
|
+
|
|
78
|
+
BUNDLED WITH
|
|
79
|
+
1.16.1
|
data/README.md
ADDED
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
# yapstone-payments
|
|
2
|
+
|
|
3
|
+
Yapstone - the Ruby gem for the Payments Orchestrator
|
|
4
|
+
|
|
5
|
+
\"REST API for Payments Orchestrator\"
|
|
6
|
+
|
|
7
|
+
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
|
8
|
+
|
|
9
|
+
- API version: 1.6.4-SNAPSHOT
|
|
10
|
+
- Package version: 1.0.0
|
|
11
|
+
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
|
12
|
+
|
|
13
|
+
## Installation
|
|
14
|
+
|
|
15
|
+
### Build a gem
|
|
16
|
+
|
|
17
|
+
To build the Ruby code into a gem:
|
|
18
|
+
|
|
19
|
+
```shell
|
|
20
|
+
gem build yapstone-payments.gemspec
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
Then either install the gem locally:
|
|
24
|
+
|
|
25
|
+
```shell
|
|
26
|
+
gem install ./yapstone-payments-1.0.0.gem
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
(for development, run `gem install --dev ./yapstone-payments-1.0.0.gem` to install the development dependencies)
|
|
30
|
+
|
|
31
|
+
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
|
32
|
+
|
|
33
|
+
Finally add this to the Gemfile:
|
|
34
|
+
|
|
35
|
+
gem 'yapstone-payments', '~> 1.0.0'
|
|
36
|
+
|
|
37
|
+
### Install from Git
|
|
38
|
+
|
|
39
|
+
If the Ruby gem is hosted at a git repository: https://github.com/GIT_USER_ID/GIT_REPO_ID, then add the following in the Gemfile:
|
|
40
|
+
|
|
41
|
+
gem 'yapstone-payments', :git => 'https://github.com/GIT_USER_ID/GIT_REPO_ID.git'
|
|
42
|
+
|
|
43
|
+
### Include the Ruby code directly
|
|
44
|
+
|
|
45
|
+
Include the Ruby code directly using `-I` as follows:
|
|
46
|
+
|
|
47
|
+
```shell
|
|
48
|
+
ruby -Ilib script.rb
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
## Getting Started
|
|
52
|
+
|
|
53
|
+
Please follow the [installation](#installation) procedure and then run the following code:
|
|
54
|
+
|
|
55
|
+
```ruby
|
|
56
|
+
# Load the gem
|
|
57
|
+
require 'yapstone-payments'
|
|
58
|
+
|
|
59
|
+
api_instance = Yapstone::AuthenticationApi.new
|
|
60
|
+
grant_type = 'client_credentials' # String | To do OAuth2 authentication, you must indicate the grant type, then adhere to it structurally. Yapstone API endpoints authenticate with OAuth2 and the grant type client credentials. This type of authentication is used to access resources on your own system rather than access a user's resources.
|
|
61
|
+
authorization = 'Basic SGxkdU5OcU1xMzBUZ0djYUpDWVpIWVRsejJjQUJlSHo6YkdIeWNpWXVibzNVTXZLRA==' # String | Provide client_id:client_secret as base64 encoded basic auth.
|
|
62
|
+
|
|
63
|
+
begin
|
|
64
|
+
#Authenticate Partner
|
|
65
|
+
result = api_instance.authenticate_partner(grant_type, authorization)
|
|
66
|
+
p result
|
|
67
|
+
rescue Yapstone::ApiError => e
|
|
68
|
+
puts "Exception when calling AuthenticationApi->authenticate_partner: #{e}"
|
|
69
|
+
end
|
|
70
|
+
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
## Documentation for API Endpoints
|
|
74
|
+
|
|
75
|
+
All URIs are relative to *https://api-prod-sandbox.yapstone.com*
|
|
76
|
+
|
|
77
|
+
Class | Method | HTTP request | Description
|
|
78
|
+
------------ | ------------- | ------------- | -------------
|
|
79
|
+
*Yapstone::AuthenticationApi* | [**authenticate_partner**](docs/AuthenticationApi.md#authenticate_partner) | **POST** /v1/oauth2/client_credential/accesstoken | Authenticate Partner
|
|
80
|
+
*Yapstone::DisbursementsApi* | [**disburse_payment_by_id**](docs/DisbursementsApi.md#disburse_payment_by_id) | **PUT** /v2/disbursements/payment/{paymentId} | Change payment from \"Hold payout\" state to be ready for disbursement
|
|
81
|
+
*Yapstone::DisbursementsApi* | [**disburse_transaction_by_id**](docs/DisbursementsApi.md#disburse_transaction_by_id) | **PUT** /v2/disbursements/transaction/{transactionId} | Change transaction from \"Hold payout\" state to be ready for disbursement (payout)
|
|
82
|
+
*Yapstone::PaymentsApi* | [**cancel_payment**](docs/PaymentsApi.md#cancel_payment) | **DELETE** /v2/payments/payment/{paymentId} | Cancel Payment by payment Id
|
|
83
|
+
*Yapstone::PaymentsApi* | [**cancel_transaction**](docs/PaymentsApi.md#cancel_transaction) | **DELETE** /v2/payments/transaction/{transactionId} | Cancel Transaction by TransactionId
|
|
84
|
+
*Yapstone::PaymentsApi* | [**capture_payment**](docs/PaymentsApi.md#capture_payment) | **PATCH** /v2/payments/payment/{paymentId} | Capture a prior authorized payment
|
|
85
|
+
*Yapstone::PaymentsApi* | [**create_payment**](docs/PaymentsApi.md#create_payment) | **POST** /v2/payments/payment | Process Payment
|
|
86
|
+
*Yapstone::PaymentsApi* | [**get_payment**](docs/PaymentsApi.md#get_payment) | **GET** /v2/payments/payment/{paymentId} | Get with Payment Id
|
|
87
|
+
*Yapstone::PaymentsApi* | [**get_transaction**](docs/PaymentsApi.md#get_transaction) | **GET** /v2/payments/transaction/{transactionId} | Get Transaction by Transaction Id
|
|
88
|
+
*Yapstone::PaymentsApi* | [**verify_payment_instrument**](docs/PaymentsApi.md#verify_payment_instrument) | **POST** /v2/payments/instrument/verify | Verify payment instrument
|
|
89
|
+
*Yapstone::RefundsApi* | [**cancel_refund**](docs/RefundsApi.md#cancel_refund) | **DELETE** /v2/refunds/refund/{refundId} | Cancel Payment by payment Id
|
|
90
|
+
*Yapstone::RefundsApi* | [**create_payment_refund**](docs/RefundsApi.md#create_payment_refund) | **POST** /v2/refunds/payment | Create a refund
|
|
91
|
+
*Yapstone::RefundsApi* | [**create_transaction_refund**](docs/RefundsApi.md#create_transaction_refund) | **POST** /v2/refunds/transaction | Create a refund
|
|
92
|
+
*Yapstone::RefundsApi* | [**get_by_originaltransaction_id**](docs/RefundsApi.md#get_by_originaltransaction_id) | **GET** /v2/refunds/transaction/{transactionId} | Get master Transaction details including all refund details by transaction Id
|
|
93
|
+
*Yapstone::RefundsApi* | [**get_refund**](docs/RefundsApi.md#get_refund) | **GET** /v2/refunds/refund/{refundId} | Get master payment details including all refund detail by refund ID.
|
|
94
|
+
*Yapstone::RefundsApi* | [**get_refund_by_payment_id**](docs/RefundsApi.md#get_refund_by_payment_id) | **GET** /v2/refunds/payment/{paymentId} | Get master payment details including all refund details by Payment Id.
|
|
95
|
+
*Yapstone::SearchApi* | [**search_by_payment_id**](docs/SearchApi.md#search_by_payment_id) | **GET** /v2/search/payment/{paymentId} | Search with Payment Id
|
|
96
|
+
*Yapstone::SearchApi* | [**search_by_transaction_id**](docs/SearchApi.md#search_by_transaction_id) | **GET** /v2/search/transaction/{transactionId} | Search with transaction id
|
|
97
|
+
*Yapstone::TokenApi* | [**create_token**](docs/TokenApi.md#create_token) | **POST** /v2/token | Create a Token
|
|
98
|
+
*Yapstone::TokenApi* | [**lookup_token**](docs/TokenApi.md#lookup_token) | **POST** /v2/token/lookup | Lookup a Token
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
## Documentation for Models
|
|
102
|
+
|
|
103
|
+
- [Yapstone::APM](docs/APM.md)
|
|
104
|
+
- [Yapstone::APMSpecInParameters](docs/APMSpecInParameters.md)
|
|
105
|
+
- [Yapstone::Action](docs/Action.md)
|
|
106
|
+
- [Yapstone::Address](docs/Address.md)
|
|
107
|
+
- [Yapstone::Amount](docs/Amount.md)
|
|
108
|
+
- [Yapstone::AuthResponse](docs/AuthResponse.md)
|
|
109
|
+
- [Yapstone::AuthTokenRequest](docs/AuthTokenRequest.md)
|
|
110
|
+
- [Yapstone::AuthTokenResponse](docs/AuthTokenResponse.md)
|
|
111
|
+
- [Yapstone::BankAccount](docs/BankAccount.md)
|
|
112
|
+
- [Yapstone::BillingAddress](docs/BillingAddress.md)
|
|
113
|
+
- [Yapstone::BookingInfo](docs/BookingInfo.md)
|
|
114
|
+
- [Yapstone::CapturePaymentRequest](docs/CapturePaymentRequest.md)
|
|
115
|
+
- [Yapstone::Card](docs/Card.md)
|
|
116
|
+
- [Yapstone::CardResponse](docs/CardResponse.md)
|
|
117
|
+
- [Yapstone::Consent](docs/Consent.md)
|
|
118
|
+
- [Yapstone::CreditCardAuthResponse](docs/CreditCardAuthResponse.md)
|
|
119
|
+
- [Yapstone::Customer](docs/Customer.md)
|
|
120
|
+
- [Yapstone::CustomerData](docs/CustomerData.md)
|
|
121
|
+
- [Yapstone::CustomerDetails](docs/CustomerDetails.md)
|
|
122
|
+
- [Yapstone::Deposit](docs/Deposit.md)
|
|
123
|
+
- [Yapstone::DepositDetails](docs/DepositDetails.md)
|
|
124
|
+
- [Yapstone::DisburseLineItemsReq](docs/DisburseLineItemsReq.md)
|
|
125
|
+
- [Yapstone::DisburseTransaction](docs/DisburseTransaction.md)
|
|
126
|
+
- [Yapstone::DisburseTransactionReq](docs/DisburseTransactionReq.md)
|
|
127
|
+
- [Yapstone::Disbursement](docs/Disbursement.md)
|
|
128
|
+
- [Yapstone::DisbursementAllOf](docs/DisbursementAllOf.md)
|
|
129
|
+
- [Yapstone::DisbursementDetails](docs/DisbursementDetails.md)
|
|
130
|
+
- [Yapstone::DisbursementRequest](docs/DisbursementRequest.md)
|
|
131
|
+
- [Yapstone::DisbursementRequests](docs/DisbursementRequests.md)
|
|
132
|
+
- [Yapstone::DisbursementResponse](docs/DisbursementResponse.md)
|
|
133
|
+
- [Yapstone::Error](docs/Error.md)
|
|
134
|
+
- [Yapstone::ErrorResponse](docs/ErrorResponse.md)
|
|
135
|
+
- [Yapstone::Fields](docs/Fields.md)
|
|
136
|
+
- [Yapstone::GovIdentification](docs/GovIdentification.md)
|
|
137
|
+
- [Yapstone::Guest](docs/Guest.md)
|
|
138
|
+
- [Yapstone::GuestInfoResponse](docs/GuestInfoResponse.md)
|
|
139
|
+
- [Yapstone::Href](docs/Href.md)
|
|
140
|
+
- [Yapstone::InlineResponse200](docs/InlineResponse200.md)
|
|
141
|
+
- [Yapstone::InstallmentPlan](docs/InstallmentPlan.md)
|
|
142
|
+
- [Yapstone::Instrument](docs/Instrument.md)
|
|
143
|
+
- [Yapstone::InstrumentVerificationResponse](docs/InstrumentVerificationResponse.md)
|
|
144
|
+
- [Yapstone::KYC](docs/KYC.md)
|
|
145
|
+
- [Yapstone::LeaseInfo](docs/LeaseInfo.md)
|
|
146
|
+
- [Yapstone::LineItemDetails](docs/LineItemDetails.md)
|
|
147
|
+
- [Yapstone::MarketplaceData](docs/MarketplaceData.md)
|
|
148
|
+
- [Yapstone::Merketplace](docs/Merketplace.md)
|
|
149
|
+
- [Yapstone::Money](docs/Money.md)
|
|
150
|
+
- [Yapstone::Name](docs/Name.md)
|
|
151
|
+
- [Yapstone::OfferingDetails](docs/OfferingDetails.md)
|
|
152
|
+
- [Yapstone::OrderTransactions](docs/OrderTransactions.md)
|
|
153
|
+
- [Yapstone::Payment](docs/Payment.md)
|
|
154
|
+
- [Yapstone::PaymentCancelResponse](docs/PaymentCancelResponse.md)
|
|
155
|
+
- [Yapstone::PaymentCancelTransactionResponse](docs/PaymentCancelTransactionResponse.md)
|
|
156
|
+
- [Yapstone::PaymentDetails](docs/PaymentDetails.md)
|
|
157
|
+
- [Yapstone::PaymentInstrument](docs/PaymentInstrument.md)
|
|
158
|
+
- [Yapstone::PaymentInstrumentCard](docs/PaymentInstrumentCard.md)
|
|
159
|
+
- [Yapstone::PaymentInstrumentResponse](docs/PaymentInstrumentResponse.md)
|
|
160
|
+
- [Yapstone::PaymentPayment](docs/PaymentPayment.md)
|
|
161
|
+
- [Yapstone::PaymentPaymentAllOf](docs/PaymentPaymentAllOf.md)
|
|
162
|
+
- [Yapstone::PaymentResponse](docs/PaymentResponse.md)
|
|
163
|
+
- [Yapstone::Phone](docs/Phone.md)
|
|
164
|
+
- [Yapstone::ProcessPayment](docs/ProcessPayment.md)
|
|
165
|
+
- [Yapstone::PropertyInfo](docs/PropertyInfo.md)
|
|
166
|
+
- [Yapstone::PropertyInfoResponse](docs/PropertyInfoResponse.md)
|
|
167
|
+
- [Yapstone::RefundAction](docs/RefundAction.md)
|
|
168
|
+
- [Yapstone::RefundCancelResponse](docs/RefundCancelResponse.md)
|
|
169
|
+
- [Yapstone::RefundCancelTransactionResponse](docs/RefundCancelTransactionResponse.md)
|
|
170
|
+
- [Yapstone::RefundRequest](docs/RefundRequest.md)
|
|
171
|
+
- [Yapstone::RefundResponse](docs/RefundResponse.md)
|
|
172
|
+
- [Yapstone::RefundStatus](docs/RefundStatus.md)
|
|
173
|
+
- [Yapstone::RefundTransactions](docs/RefundTransactions.md)
|
|
174
|
+
- [Yapstone::RentalInfo](docs/RentalInfo.md)
|
|
175
|
+
- [Yapstone::Renter](docs/Renter.md)
|
|
176
|
+
- [Yapstone::Resolution](docs/Resolution.md)
|
|
177
|
+
- [Yapstone::Result](docs/Result.md)
|
|
178
|
+
- [Yapstone::RiskStatus](docs/RiskStatus.md)
|
|
179
|
+
- [Yapstone::SanctionedEntities](docs/SanctionedEntities.md)
|
|
180
|
+
- [Yapstone::SearchPaymentResponse](docs/SearchPaymentResponse.md)
|
|
181
|
+
- [Yapstone::StackTraceElement](docs/StackTraceElement.md)
|
|
182
|
+
- [Yapstone::Status](docs/Status.md)
|
|
183
|
+
- [Yapstone::Throwable](docs/Throwable.md)
|
|
184
|
+
- [Yapstone::ToEntityRef](docs/ToEntityRef.md)
|
|
185
|
+
- [Yapstone::Token](docs/Token.md)
|
|
186
|
+
- [Yapstone::TokenReq](docs/TokenReq.md)
|
|
187
|
+
- [Yapstone::TokenRequest](docs/TokenRequest.md)
|
|
188
|
+
- [Yapstone::TokenResponse](docs/TokenResponse.md)
|
|
189
|
+
- [Yapstone::Transaction](docs/Transaction.md)
|
|
190
|
+
- [Yapstone::TransactionResponse](docs/TransactionResponse.md)
|
|
191
|
+
- [Yapstone::Triggers](docs/Triggers.md)
|
|
192
|
+
- [Yapstone::VacationRentalInfo](docs/VacationRentalInfo.md)
|
|
193
|
+
- [Yapstone::VacationRentalInfoRequest](docs/VacationRentalInfoRequest.md)
|
|
194
|
+
- [Yapstone::VerifyInstrumentRequest](docs/VerifyInstrumentRequest.md)
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
## Documentation for Authorization
|
|
198
|
+
|
|
199
|
+
|
|
200
|
+
### Bearer
|
|
201
|
+
|
|
202
|
+
- **Type**: Bearer authentication (JWT)
|
|
203
|
+
|
data/Rakefile
ADDED
data/docs/APM.md
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# Yapstone::APM
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**merchant_redirect_url** | **String** | Alternative payment models are typically used for medical reimbursement where the model provides additional compensation as an incentive for delivery of higher quality and more cost-efficient health care by providers. | [optional]
|
|
8
|
+
**notification_url** | **String** | Used to create a listener page on a website that Yapstone payments can post event information to - typically about the outcome of transactions. | [optional]
|
|
9
|
+
**partner_redirection_url** | **String** | Partner RedirectionURL | [optional]
|
|
10
|
+
**provider** | **String** | Provider information | [optional]
|
|
11
|
+
**spec_in_parameters** | [**Array<APMSpecInParameters>**](APMSpecInParameters.md) | specIn parameter details | [optional]
|
|
12
|
+
**transaction_type** | **String** | Transaction type. SOFORT is a real-time online banking payment service available to customers with bank accounts in Germany, Austria, Belgium, or the Netherlands. GIROPAY is an internet payment system in Germany, based on online banking. Alipay is a third party mobile and online payment platform that's used in China. IDEAL is an e-commerce payment system used in the Netherlands. WECHATPAY is a Chinese multi-purpose messaging, social media, and mobile payment application. | [optional]
|
|
13
|
+
**name_on_account** | **String** | | [optional]
|
|
14
|
+
|
|
15
|
+
## Code Sample
|
|
16
|
+
|
|
17
|
+
```ruby
|
|
18
|
+
require 'Yapstone'
|
|
19
|
+
|
|
20
|
+
instance = Yapstone::APM.new(merchant_redirect_url: null,
|
|
21
|
+
notification_url: null,
|
|
22
|
+
partner_redirection_url: null,
|
|
23
|
+
provider: null,
|
|
24
|
+
spec_in_parameters: null,
|
|
25
|
+
transaction_type: null,
|
|
26
|
+
name_on_account: null)
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# Yapstone::APMSpecInParameters
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**key** | **String** | sample desc | [optional]
|
|
8
|
+
**value** | **String** | sample desc | [optional]
|
|
9
|
+
|
|
10
|
+
## Code Sample
|
|
11
|
+
|
|
12
|
+
```ruby
|
|
13
|
+
require 'Yapstone'
|
|
14
|
+
|
|
15
|
+
instance = Yapstone::APMSpecInParameters.new(key: null,
|
|
16
|
+
value: null)
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
|
data/docs/Action.md
ADDED
data/docs/Address.md
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# Yapstone::Address
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**city** | **String** | The name of the city for the address. | [optional]
|
|
8
|
+
**country_code** | **String** | The country code represented in the ISO 3166 format. | [optional]
|
|
9
|
+
**postal_code** | **String** | The postcode, post code, eircode, PIN or ZIP code is a series of letters or digits or both, sometimes including spaces or punctuation. | [optional]
|
|
10
|
+
**state_or_province** | **String** | The state or province associated with the address. | [optional]
|
|
11
|
+
**street1** | **String** | Street 1 line. | [optional]
|
|
12
|
+
**street2** | **String** | Street 2 line. | [optional]
|
|
13
|
+
**street3** | **String** | Street 3 line. | [optional]
|
|
14
|
+
|
|
15
|
+
## Code Sample
|
|
16
|
+
|
|
17
|
+
```ruby
|
|
18
|
+
require 'Yapstone'
|
|
19
|
+
|
|
20
|
+
instance = Yapstone::Address.new(city: null,
|
|
21
|
+
country_code: null,
|
|
22
|
+
postal_code: null,
|
|
23
|
+
state_or_province: null,
|
|
24
|
+
street1: null,
|
|
25
|
+
street2: null,
|
|
26
|
+
street3: null)
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
|
data/docs/Amount.md
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# Yapstone::Amount
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**currency** | **String** | ISO 4217 currency code. This currency code represents the country and currency. It must be combined with the correct exponent. | [optional]
|
|
8
|
+
**exponent** | **Integer** | The exponent associated with the three letter ISO currency code. | [optional]
|
|
9
|
+
**value** | **Integer** | ISO 4217 major units. | [optional]
|
|
10
|
+
|
|
11
|
+
## Code Sample
|
|
12
|
+
|
|
13
|
+
```ruby
|
|
14
|
+
require 'Yapstone'
|
|
15
|
+
|
|
16
|
+
instance = Yapstone::Amount.new(currency: null,
|
|
17
|
+
exponent: 2,
|
|
18
|
+
value: 1050)
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# Yapstone::AuthResponse
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**instrument_type** | **String** | |
|
|
8
|
+
**auth_result** | [**Array<Result>**](Result.md) | | [optional]
|
|
9
|
+
|
|
10
|
+
## Code Sample
|
|
11
|
+
|
|
12
|
+
```ruby
|
|
13
|
+
require 'Yapstone'
|
|
14
|
+
|
|
15
|
+
instance = Yapstone::AuthResponse.new(instrument_type: null,
|
|
16
|
+
auth_result: null)
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
|