komoju-sdk 1.0.0.beta.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.
- checksums.yaml +7 -0
- data/CHANGELOG.md +78 -0
- data/Gemfile +9 -0
- data/README.md +448 -0
- data/Rakefile +10 -0
- data/docs/APIError.md +18 -0
- data/docs/APIErrorBody.md +24 -0
- data/docs/Address.md +30 -0
- data/docs/Auto.md +15 -0
- data/docs/AvailablePaymentMethod.md +30 -0
- data/docs/Balance.md +20 -0
- data/docs/BalanceSettings.md +22 -0
- data/docs/BalanceShow.md +34 -0
- data/docs/BalanceTransactionList.md +32 -0
- data/docs/BalanceTransferRequest.md +20 -0
- data/docs/BalanceTransferServiceRecord.md +28 -0
- data/docs/BarcodePendingResponse.md +20 -0
- data/docs/BarcodeReadyResponse.md +22 -0
- data/docs/BarcodesApi.md +80 -0
- data/docs/CancelDisbursementRequest.md +18 -0
- data/docs/CapturePaymentRequest.md +22 -0
- data/docs/CapturePaymentRequestTax.md +56 -0
- data/docs/CountryCode.md +15 -0
- data/docs/CreateCustomerRequest.md +24 -0
- data/docs/CreateDisbursementRequest.md +32 -0
- data/docs/CreateFileRequest.md +18 -0
- data/docs/CreateMerchantBalanceTransferRequest.md +24 -0
- data/docs/CreateMerchantRequest.md +20 -0
- data/docs/CreatePaymentRequest.md +56 -0
- data/docs/CreatePaymentRequestWithCustomer.md +46 -0
- data/docs/CreatePaymentRequestWithPaymentDetails.md +46 -0
- data/docs/CreatePaymentRequestWithPaymentDetailsTax.md +56 -0
- data/docs/CreateRefundRequestRequest.md +38 -0
- data/docs/CreateSecureTokenRequest.md +56 -0
- data/docs/CreateSecureTokenRequestWithCustomer.md +26 -0
- data/docs/CreateSecureTokenRequestWithPaymentDetails.md +26 -0
- data/docs/CreateSessionRequest.md +90 -0
- data/docs/CreateSessionRequestWithCustomerMode.md +40 -0
- data/docs/CreateSessionRequestWithCustomerPaymentMode.md +42 -0
- data/docs/CreateSessionRequestWithPaymentMode.md +40 -0
- data/docs/CreateSubscriptionRequest.md +26 -0
- data/docs/CreateTokenRequest.md +22 -0
- data/docs/Currency.md +15 -0
- data/docs/Customer.md +28 -0
- data/docs/CustomerList.md +32 -0
- data/docs/CustomerMetadata.md +18 -0
- data/docs/CustomerSource.md +26 -0
- data/docs/DeleteExternalCustomerResponse.md +18 -0
- data/docs/Disbursement.md +46 -0
- data/docs/DisbursementList.md +32 -0
- data/docs/DisbursementStatus.md +15 -0
- data/docs/DisbursementsApi.md +379 -0
- data/docs/EditMerchantBalanceSettingsRequest.md +24 -0
- data/docs/ErroredField.md +32 -0
- data/docs/Event.md +28 -0
- data/docs/EventList.md +32 -0
- data/docs/EventsApi.md +158 -0
- data/docs/Field.md +28 -0
- data/docs/FieldFieldProperties.md +20 -0
- data/docs/FinalizePaymentRequest.md +26 -0
- data/docs/FraudDetails.md +30 -0
- data/docs/IndustryType.md +15 -0
- data/docs/Installments.md +15 -0
- data/docs/Intent.md +15 -0
- data/docs/LineItem.md +26 -0
- data/docs/LiveApplication.md +30 -0
- data/docs/LiveApplicationRequest.md +208 -0
- data/docs/LiveApplicationStatus.md +15 -0
- data/docs/LiveApplicationWithSubmittedFields.md +32 -0
- data/docs/Locale.md +15 -0
- data/docs/MerchantBalance.md +22 -0
- data/docs/MerchantData.md +18 -0
- data/docs/MerchantFile.md +30 -0
- data/docs/MerchantRole.md +15 -0
- data/docs/MerchantSubmissionStatus.md +20 -0
- data/docs/OneClickApi.md +80 -0
- data/docs/PaySessionRequest.md +22 -0
- data/docs/PaySessionResponse.md +26 -0
- data/docs/Payment.md +68 -0
- data/docs/PaymentData.md +26 -0
- data/docs/PaymentDataRequest.md +40 -0
- data/docs/PaymentDetailsAU.md +46 -0
- data/docs/PaymentDetailsAlipay.md +46 -0
- data/docs/PaymentDetailsAlipayHK.md +46 -0
- data/docs/PaymentDetailsAll.md +322 -0
- data/docs/PaymentDetailsAupay.md +48 -0
- data/docs/PaymentDetailsBancontact.md +46 -0
- data/docs/PaymentDetailsBankTransfer.md +62 -0
- data/docs/PaymentDetailsBitCash.md +50 -0
- data/docs/PaymentDetailsBlik.md +46 -0
- data/docs/PaymentDetailsCVS.md +48 -0
- data/docs/PaymentDetailsCreditCard.md +74 -0
- data/docs/PaymentDetailsCreditCardBrazil.md +62 -0
- data/docs/PaymentDetailsCreditCardKorea.md +60 -0
- data/docs/PaymentDetailsCreditCardKoreaSocialId.md +53 -0
- data/docs/PaymentDetailsCreditCardTerminal.md +62 -0
- data/docs/PaymentDetailsCultureVoucher.md +50 -0
- data/docs/PaymentDetailsDana.md +46 -0
- data/docs/PaymentDetailsDocomo.md +46 -0
- data/docs/PaymentDetailsDokuWallet.md +48 -0
- data/docs/PaymentDetailsDospara.md +50 -0
- data/docs/PaymentDetailsDragonpay.md +50 -0
- data/docs/PaymentDetailsEnets.md +50 -0
- data/docs/PaymentDetailsEpospay.md +46 -0
- data/docs/PaymentDetailsEps.md +46 -0
- data/docs/PaymentDetailsFpx.md +50 -0
- data/docs/PaymentDetailsGCash.md +46 -0
- data/docs/PaymentDetailsGiropay.md +46 -0
- data/docs/PaymentDetailsHappyMoney.md +50 -0
- data/docs/PaymentDetailsIdeal.md +46 -0
- data/docs/PaymentDetailsKakaopay.md +46 -0
- data/docs/PaymentDetailsKonbini.md +58 -0
- data/docs/PaymentDetailsMerpay.md +46 -0
- data/docs/PaymentDetailsMobile.md +48 -0
- data/docs/PaymentDetailsMobileJapan.md +48 -0
- data/docs/PaymentDetailsMultibanco.md +46 -0
- data/docs/PaymentDetailsMybank.md +46 -0
- data/docs/PaymentDetailsNarvesen.md +46 -0
- data/docs/PaymentDetailsNaverpay.md +46 -0
- data/docs/PaymentDetailsNetCash.md +50 -0
- data/docs/PaymentDetailsOnlyCreditCards.md +94 -0
- data/docs/PaymentDetailsOvo.md +48 -0
- data/docs/PaymentDetailsPaidy.md +70 -0
- data/docs/PaymentDetailsPayEasy.md +60 -0
- data/docs/PaymentDetailsPayPay.md +50 -0
- data/docs/PaymentDetailsPayco.md +46 -0
- data/docs/PaymentDetailsPaypost.md +46 -0
- data/docs/PaymentDetailsPaysafeCard.md +48 -0
- data/docs/PaymentDetailsPaysafeCash.md +48 -0
- data/docs/PaymentDetailsPaysera.md +46 -0
- data/docs/PaymentDetailsPayu.md +46 -0
- data/docs/PaymentDetailsPerlas.md +46 -0
- data/docs/PaymentDetailsPix.md +54 -0
- data/docs/PaymentDetailsPoli.md +46 -0
- data/docs/PaymentDetailsPrzelewy24.md +46 -0
- data/docs/PaymentDetailsRakutenpay.md +46 -0
- data/docs/PaymentDetailsSepaTransfer.md +46 -0
- data/docs/PaymentDetailsSofortbanking.md +46 -0
- data/docs/PaymentDetailsSoftbank.md +46 -0
- data/docs/PaymentDetailsTNG.md +46 -0
- data/docs/PaymentDetailsToss.md +50 -0
- data/docs/PaymentDetailsTruemoney.md +46 -0
- data/docs/PaymentDetailsUnionpay.md +46 -0
- data/docs/PaymentDetailsWebMoney.md +50 -0
- data/docs/PaymentDetailsWechatpay.md +46 -0
- data/docs/PaymentList.md +32 -0
- data/docs/PaymentMethod.md +38 -0
- data/docs/PaymentMethodBrands.md +56 -0
- data/docs/PaymentMethodInstallmentsInner.md +20 -0
- data/docs/PaymentMethodStatus.md +20 -0
- data/docs/PaymentMethodsList.md +20 -0
- data/docs/PaymentStatus.md +15 -0
- data/docs/PaymentType.md +15 -0
- data/docs/PaymentsApi.md +738 -0
- data/docs/PlatformDetails.md +20 -0
- data/docs/PlatformMerchantPaymentList.md +28 -0
- data/docs/PlatformModelApi.md +1943 -0
- data/docs/PlatformPayment.md +68 -0
- data/docs/PrepaidCards.md +20 -0
- data/docs/ProcessingMerchant.md +18 -0
- data/docs/Refund.md +36 -0
- data/docs/RefundPaymentRequest.md +22 -0
- data/docs/RefundRequest.md +40 -0
- data/docs/RefundRequestStatus.md +15 -0
- data/docs/ResponsePaymentDetailsAU.md +54 -0
- data/docs/ResponsePaymentDetailsAlipay.md +52 -0
- data/docs/ResponsePaymentDetailsAlipayHK.md +50 -0
- data/docs/ResponsePaymentDetailsAll.md +322 -0
- data/docs/ResponsePaymentDetailsAupay.md +52 -0
- data/docs/ResponsePaymentDetailsBancontact.md +52 -0
- data/docs/ResponsePaymentDetailsBankTransfer.md +64 -0
- data/docs/ResponsePaymentDetailsBitCash.md +48 -0
- data/docs/ResponsePaymentDetailsBlik.md +52 -0
- data/docs/ResponsePaymentDetailsCVS.md +52 -0
- data/docs/ResponsePaymentDetailsCreditCard.md +76 -0
- data/docs/ResponsePaymentDetailsCreditCardBrazil.md +22 -0
- data/docs/ResponsePaymentDetailsCreditCardKorea.md +56 -0
- data/docs/ResponsePaymentDetailsCreditCardTerminal.md +60 -0
- data/docs/ResponsePaymentDetailsCultureVoucher.md +50 -0
- data/docs/ResponsePaymentDetailsDana.md +50 -0
- data/docs/ResponsePaymentDetailsDocomo.md +52 -0
- data/docs/ResponsePaymentDetailsDokuWallet.md +52 -0
- data/docs/ResponsePaymentDetailsDospara.md +50 -0
- data/docs/ResponsePaymentDetailsDragonpay.md +52 -0
- data/docs/ResponsePaymentDetailsEnets.md +52 -0
- data/docs/ResponsePaymentDetailsEpospay.md +68 -0
- data/docs/ResponsePaymentDetailsEps.md +52 -0
- data/docs/ResponsePaymentDetailsFpx.md +52 -0
- data/docs/ResponsePaymentDetailsGCash.md +50 -0
- data/docs/ResponsePaymentDetailsGiropay.md +52 -0
- data/docs/ResponsePaymentDetailsHappyMoney.md +50 -0
- data/docs/ResponsePaymentDetailsIdeal.md +52 -0
- data/docs/ResponsePaymentDetailsKakaopay.md +50 -0
- data/docs/ResponsePaymentDetailsKonbini.md +56 -0
- data/docs/ResponsePaymentDetailsMerpay.md +52 -0
- data/docs/ResponsePaymentDetailsMobile.md +52 -0
- data/docs/ResponsePaymentDetailsMobileJapan.md +52 -0
- data/docs/ResponsePaymentDetailsMultibanco.md +52 -0
- data/docs/ResponsePaymentDetailsMybank.md +52 -0
- data/docs/ResponsePaymentDetailsNarvesen.md +52 -0
- data/docs/ResponsePaymentDetailsNaverpay.md +60 -0
- data/docs/ResponsePaymentDetailsNetCash.md +52 -0
- data/docs/ResponsePaymentDetailsOvo.md +52 -0
- data/docs/ResponsePaymentDetailsPaidy.md +50 -0
- data/docs/ResponsePaymentDetailsPayEasy.md +60 -0
- data/docs/ResponsePaymentDetailsPayPay.md +52 -0
- data/docs/ResponsePaymentDetailsPayco.md +52 -0
- data/docs/ResponsePaymentDetailsPaypost.md +52 -0
- data/docs/ResponsePaymentDetailsPaysafeCard.md +50 -0
- data/docs/ResponsePaymentDetailsPaysafeCash.md +50 -0
- data/docs/ResponsePaymentDetailsPaysera.md +52 -0
- data/docs/ResponsePaymentDetailsPayu.md +52 -0
- data/docs/ResponsePaymentDetailsPerlas.md +52 -0
- data/docs/ResponsePaymentDetailsPix.md +56 -0
- data/docs/ResponsePaymentDetailsPoli.md +52 -0
- data/docs/ResponsePaymentDetailsPrzelewy24.md +52 -0
- data/docs/ResponsePaymentDetailsRakutenpay.md +52 -0
- data/docs/ResponsePaymentDetailsSepaTransfer.md +52 -0
- data/docs/ResponsePaymentDetailsSofortbanking.md +52 -0
- data/docs/ResponsePaymentDetailsSoftbank.md +50 -0
- data/docs/ResponsePaymentDetailsTNG.md +50 -0
- data/docs/ResponsePaymentDetailsToss.md +52 -0
- data/docs/ResponsePaymentDetailsTruemoney.md +50 -0
- data/docs/ResponsePaymentDetailsUnionpay.md +52 -0
- data/docs/ResponsePaymentDetailsWebMoney.md +52 -0
- data/docs/ResponsePaymentDetailsWechatpay.md +56 -0
- data/docs/SecureToken.md +26 -0
- data/docs/SecureTokensApi.md +151 -0
- data/docs/SerializedSubmerchant.md +50 -0
- data/docs/SerializedSubmerchantActivePaymentMethodsInner.md +28 -0
- data/docs/SerializedSubmerchantExpirySettingsInner.md +26 -0
- data/docs/Session.md +62 -0
- data/docs/SessionMode.md +15 -0
- data/docs/SessionStatus.md +15 -0
- data/docs/SessionsApi.md +294 -0
- data/docs/Settlement.md +56 -0
- data/docs/SettlementDownload.md +20 -0
- data/docs/SettlementFrequency.md +15 -0
- data/docs/SettlementList.md +32 -0
- data/docs/SettlementShow.md +70 -0
- data/docs/SettlementsApi.md +437 -0
- data/docs/SharedDetails.md +30 -0
- data/docs/SharedDetailsCorrections.md +18 -0
- data/docs/SharedDetailsDisbursements.md +22 -0
- data/docs/SharedDetailsMisc.md +26 -0
- data/docs/SharedDetailsPayments.md +22 -0
- data/docs/SharedDetailsPlatformModel.md +30 -0
- data/docs/SharedDetailsRefunds.md +24 -0
- data/docs/ShowBarcodeResponse.md +86 -0
- data/docs/SimulateLiveApplicationPaymentMethodStatusRequest.md +18 -0
- data/docs/StatementDescriptor.md +26 -0
- data/docs/Status.md +15 -0
- data/docs/Submerchant.md +22 -0
- data/docs/SubmerchantListItem.md +36 -0
- data/docs/SubmerchantsList.md +28 -0
- data/docs/SubmittedField.md +30 -0
- data/docs/SubmittedFieldAllOfValue.md +59 -0
- data/docs/Subscription.md +48 -0
- data/docs/SubscriptionCustomer.md +30 -0
- data/docs/SubscriptionList.md +32 -0
- data/docs/SubscriptionPaymentDetails.md +24 -0
- data/docs/SubscriptionPeriod.md +15 -0
- data/docs/SubscriptionsApi.md +663 -0
- data/docs/TerminalError.md +18 -0
- data/docs/TerminalErrorBody.md +26 -0
- data/docs/ThreeDsAuthResult.md +38 -0
- data/docs/Token.md +24 -0
- data/docs/TokenPaymentDetails.md +32 -0
- data/docs/TokensApi.md +81 -0
- data/docs/Transaction.md +24 -0
- data/docs/Transfer.md +28 -0
- data/docs/UpdateCustomerRequest.md +24 -0
- data/docs/UpdateMerchantRequest.md +32 -0
- data/docs/UpdateMerchantRequestExpirySettingsInner.md +22 -0
- data/docs/UpdatePaymentMethodRequest.md +134 -0
- data/docs/UpdatePaymentRequest.md +22 -0
- data/komoju-sdk.gemspec +41 -0
- data/lib/komoju-sdk/api/barcodes_api.rb +93 -0
- data/lib/komoju-sdk/api/disbursements_api.rb +400 -0
- data/lib/komoju-sdk/api/events_api.rb +162 -0
- data/lib/komoju-sdk/api/one_click_api.rb +93 -0
- data/lib/komoju-sdk/api/payments_api.rb +793 -0
- data/lib/komoju-sdk/api/platform_model_api.rb +2106 -0
- data/lib/komoju-sdk/api/secure_tokens_api.rb +161 -0
- data/lib/komoju-sdk/api/sessions_api.rb +290 -0
- data/lib/komoju-sdk/api/settlements_api.rb +446 -0
- data/lib/komoju-sdk/api/subscriptions_api.rb +665 -0
- data/lib/komoju-sdk/api/tokens_api.rb +90 -0
- data/lib/komoju-sdk/api_client.rb +441 -0
- data/lib/komoju-sdk/api_error.rb +58 -0
- data/lib/komoju-sdk/configuration.rb +409 -0
- data/lib/komoju-sdk/models/address.rb +281 -0
- data/lib/komoju-sdk/models/api_error.rb +227 -0
- data/lib/komoju-sdk/models/api_error_body.rb +279 -0
- data/lib/komoju-sdk/models/auto.rb +38 -0
- data/lib/komoju-sdk/models/available_payment_method.rb +320 -0
- data/lib/komoju-sdk/models/balance.rb +266 -0
- data/lib/komoju-sdk/models/balance_settings.rb +301 -0
- data/lib/komoju-sdk/models/balance_show.rb +379 -0
- data/lib/komoju-sdk/models/balance_transaction_list.rb +349 -0
- data/lib/komoju-sdk/models/balance_transfer_request.rb +263 -0
- data/lib/komoju-sdk/models/balance_transfer_service_record.rb +353 -0
- data/lib/komoju-sdk/models/barcode_pending_response.rb +279 -0
- data/lib/komoju-sdk/models/barcode_ready_response.rb +296 -0
- data/lib/komoju-sdk/models/cancel_disbursement_request.rb +227 -0
- data/lib/komoju-sdk/models/capture_payment_request.rb +258 -0
- data/lib/komoju-sdk/models/capture_payment_request_tax.rb +105 -0
- data/lib/komoju-sdk/models/country_code.rb +117 -0
- data/lib/komoju-sdk/models/create_customer_request.rb +271 -0
- data/lib/komoju-sdk/models/create_disbursement_request.rb +392 -0
- data/lib/komoju-sdk/models/create_file_request.rb +228 -0
- data/lib/komoju-sdk/models/create_merchant_balance_transfer_request.rb +339 -0
- data/lib/komoju-sdk/models/create_merchant_request.rb +266 -0
- data/lib/komoju-sdk/models/create_payment_request.rb +105 -0
- data/lib/komoju-sdk/models/create_payment_request_with_customer.rb +474 -0
- data/lib/komoju-sdk/models/create_payment_request_with_payment_details.rb +445 -0
- data/lib/komoju-sdk/models/create_payment_request_with_payment_details_tax.rb +106 -0
- data/lib/komoju-sdk/models/create_refund_request_request.rb +422 -0
- data/lib/komoju-sdk/models/create_secure_token_request.rb +105 -0
- data/lib/komoju-sdk/models/create_secure_token_request_with_customer.rb +356 -0
- data/lib/komoju-sdk/models/create_secure_token_request_with_payment_details.rb +327 -0
- data/lib/komoju-sdk/models/create_session_request.rb +57 -0
- data/lib/komoju-sdk/models/create_session_request_with_customer_mode.rb +417 -0
- data/lib/komoju-sdk/models/create_session_request_with_customer_payment_mode.rb +426 -0
- data/lib/komoju-sdk/models/create_session_request_with_payment_mode.rb +388 -0
- data/lib/komoju-sdk/models/create_subscription_request.rb +356 -0
- data/lib/komoju-sdk/models/create_token_request.rb +267 -0
- data/lib/komoju-sdk/models/currency.rb +57 -0
- data/lib/komoju-sdk/models/customer.rb +339 -0
- data/lib/komoju-sdk/models/customer_list.rb +349 -0
- data/lib/komoju-sdk/models/customer_metadata.rb +228 -0
- data/lib/komoju-sdk/models/customer_source.rb +296 -0
- data/lib/komoju-sdk/models/delete_external_customer_response.rb +256 -0
- data/lib/komoju-sdk/models/disbursement.rb +571 -0
- data/lib/komoju-sdk/models/disbursement_list.rb +349 -0
- data/lib/komoju-sdk/models/disbursement_status.rb +41 -0
- data/lib/komoju-sdk/models/edit_merchant_balance_settings_request.rb +339 -0
- data/lib/komoju-sdk/models/errored_field.rb +353 -0
- data/lib/komoju-sdk/models/event.rb +340 -0
- data/lib/komoju-sdk/models/event_list.rb +382 -0
- data/lib/komoju-sdk/models/field.rb +312 -0
- data/lib/komoju-sdk/models/field_field_properties.rb +247 -0
- data/lib/komoju-sdk/models/finalize_payment_request.rb +314 -0
- data/lib/komoju-sdk/models/fraud_details.rb +296 -0
- data/lib/komoju-sdk/models/industry_type.rb +204 -0
- data/lib/komoju-sdk/models/installments.rb +47 -0
- data/lib/komoju-sdk/models/intent.rb +41 -0
- data/lib/komoju-sdk/models/line_item.rb +280 -0
- data/lib/komoju-sdk/models/live_application.rb +385 -0
- data/lib/komoju-sdk/models/live_application_request.rb +1334 -0
- data/lib/komoju-sdk/models/live_application_status.rb +42 -0
- data/lib/komoju-sdk/models/live_application_with_submitted_fields.rb +410 -0
- data/lib/komoju-sdk/models/locale.rb +40 -0
- data/lib/komoju-sdk/models/merchant_balance.rb +301 -0
- data/lib/komoju-sdk/models/merchant_data.rb +228 -0
- data/lib/komoju-sdk/models/merchant_file.rb +330 -0
- data/lib/komoju-sdk/models/merchant_role.rb +39 -0
- data/lib/komoju-sdk/models/merchant_submission_status.rb +245 -0
- data/lib/komoju-sdk/models/pay_session_request.rb +280 -0
- data/lib/komoju-sdk/models/pay_session_response.rb +290 -0
- data/lib/komoju-sdk/models/payment.rb +797 -0
- data/lib/komoju-sdk/models/payment_data.rb +301 -0
- data/lib/komoju-sdk/models/payment_data_request.rb +378 -0
- data/lib/komoju-sdk/models/payment_details_alipay.rb +403 -0
- data/lib/komoju-sdk/models/payment_details_alipay_hk.rb +403 -0
- data/lib/komoju-sdk/models/payment_details_all.rb +174 -0
- data/lib/komoju-sdk/models/payment_details_au.rb +403 -0
- data/lib/komoju-sdk/models/payment_details_aupay.rb +441 -0
- data/lib/komoju-sdk/models/payment_details_bancontact.rb +403 -0
- data/lib/komoju-sdk/models/payment_details_bank_transfer.rb +627 -0
- data/lib/komoju-sdk/models/payment_details_bit_cash.rb +458 -0
- data/lib/komoju-sdk/models/payment_details_blik.rb +403 -0
- data/lib/komoju-sdk/models/payment_details_credit_card.rb +727 -0
- data/lib/komoju-sdk/models/payment_details_credit_card_brazil.rb +642 -0
- data/lib/komoju-sdk/models/payment_details_credit_card_korea.rb +612 -0
- data/lib/komoju-sdk/models/payment_details_credit_card_korea_social_id.rb +105 -0
- data/lib/komoju-sdk/models/payment_details_credit_card_terminal.rb +574 -0
- data/lib/komoju-sdk/models/payment_details_culture_voucher.rb +493 -0
- data/lib/komoju-sdk/models/payment_details_cvs.rb +420 -0
- data/lib/komoju-sdk/models/payment_details_dana.rb +403 -0
- data/lib/komoju-sdk/models/payment_details_docomo.rb +403 -0
- data/lib/komoju-sdk/models/payment_details_doku_wallet.rb +420 -0
- data/lib/komoju-sdk/models/payment_details_dospara.rb +475 -0
- data/lib/komoju-sdk/models/payment_details_dragonpay.rb +458 -0
- data/lib/komoju-sdk/models/payment_details_enets.rb +458 -0
- data/lib/komoju-sdk/models/payment_details_epospay.rb +403 -0
- data/lib/komoju-sdk/models/payment_details_eps.rb +403 -0
- data/lib/komoju-sdk/models/payment_details_fpx.rb +458 -0
- data/lib/komoju-sdk/models/payment_details_g_cash.rb +403 -0
- data/lib/komoju-sdk/models/payment_details_giropay.rb +403 -0
- data/lib/komoju-sdk/models/payment_details_happy_money.rb +493 -0
- data/lib/komoju-sdk/models/payment_details_ideal.rb +403 -0
- data/lib/komoju-sdk/models/payment_details_kakaopay.rb +403 -0
- data/lib/komoju-sdk/models/payment_details_konbini.rb +548 -0
- data/lib/komoju-sdk/models/payment_details_merpay.rb +403 -0
- data/lib/komoju-sdk/models/payment_details_mobile.rb +420 -0
- data/lib/komoju-sdk/models/payment_details_mobile_japan.rb +432 -0
- data/lib/komoju-sdk/models/payment_details_multibanco.rb +403 -0
- data/lib/komoju-sdk/models/payment_details_mybank.rb +403 -0
- data/lib/komoju-sdk/models/payment_details_narvesen.rb +403 -0
- data/lib/komoju-sdk/models/payment_details_naverpay.rb +403 -0
- data/lib/komoju-sdk/models/payment_details_net_cash.rb +458 -0
- data/lib/komoju-sdk/models/payment_details_only_credit_cards.rb +59 -0
- data/lib/komoju-sdk/models/payment_details_ovo.rb +420 -0
- data/lib/komoju-sdk/models/payment_details_paidy.rb +562 -0
- data/lib/komoju-sdk/models/payment_details_pay_easy.rb +612 -0
- data/lib/komoju-sdk/models/payment_details_pay_pay.rb +421 -0
- data/lib/komoju-sdk/models/payment_details_payco.rb +403 -0
- data/lib/komoju-sdk/models/payment_details_paypost.rb +403 -0
- data/lib/komoju-sdk/models/payment_details_paysafe_card.rb +420 -0
- data/lib/komoju-sdk/models/payment_details_paysafe_cash.rb +420 -0
- data/lib/komoju-sdk/models/payment_details_paysera.rb +403 -0
- data/lib/komoju-sdk/models/payment_details_payu.rb +403 -0
- data/lib/komoju-sdk/models/payment_details_perlas.rb +403 -0
- data/lib/komoju-sdk/models/payment_details_pix.rb +511 -0
- data/lib/komoju-sdk/models/payment_details_poli.rb +403 -0
- data/lib/komoju-sdk/models/payment_details_przelewy24.rb +403 -0
- data/lib/komoju-sdk/models/payment_details_rakutenpay.rb +403 -0
- data/lib/komoju-sdk/models/payment_details_sepa_transfer.rb +403 -0
- data/lib/komoju-sdk/models/payment_details_sofortbanking.rb +403 -0
- data/lib/komoju-sdk/models/payment_details_softbank.rb +403 -0
- data/lib/komoju-sdk/models/payment_details_tng.rb +403 -0
- data/lib/komoju-sdk/models/payment_details_toss.rb +486 -0
- data/lib/komoju-sdk/models/payment_details_truemoney.rb +403 -0
- data/lib/komoju-sdk/models/payment_details_unionpay.rb +403 -0
- data/lib/komoju-sdk/models/payment_details_web_money.rb +458 -0
- data/lib/komoju-sdk/models/payment_details_wechatpay.rb +403 -0
- data/lib/komoju-sdk/models/payment_list.rb +349 -0
- data/lib/komoju-sdk/models/payment_method.rb +372 -0
- data/lib/komoju-sdk/models/payment_method_brands.rb +106 -0
- data/lib/komoju-sdk/models/payment_method_installments_inner.rb +245 -0
- data/lib/komoju-sdk/models/payment_method_status.rb +266 -0
- data/lib/komoju-sdk/models/payment_methods_list.rb +249 -0
- data/lib/komoju-sdk/models/payment_status.rb +44 -0
- data/lib/komoju-sdk/models/payment_type.rb +99 -0
- data/lib/komoju-sdk/models/platform_details.rb +268 -0
- data/lib/komoju-sdk/models/platform_merchant_payment_list.rb +391 -0
- data/lib/komoju-sdk/models/platform_payment.rb +826 -0
- data/lib/komoju-sdk/models/prepaid_cards.rb +231 -0
- data/lib/komoju-sdk/models/processing_merchant.rb +249 -0
- data/lib/komoju-sdk/models/refund.rb +472 -0
- data/lib/komoju-sdk/models/refund_payment_request.rb +258 -0
- data/lib/komoju-sdk/models/refund_request.rb +561 -0
- data/lib/komoju-sdk/models/refund_request_status.rb +40 -0
- data/lib/komoju-sdk/models/response_payment_details_alipay.rb +440 -0
- data/lib/komoju-sdk/models/response_payment_details_alipay_hk.rb +430 -0
- data/lib/komoju-sdk/models/response_payment_details_all.rb +174 -0
- data/lib/komoju-sdk/models/response_payment_details_au.rb +450 -0
- data/lib/komoju-sdk/models/response_payment_details_aupay.rb +441 -0
- data/lib/komoju-sdk/models/response_payment_details_bancontact.rb +440 -0
- data/lib/komoju-sdk/models/response_payment_details_bank_transfer.rb +500 -0
- data/lib/komoju-sdk/models/response_payment_details_bit_cash.rb +413 -0
- data/lib/komoju-sdk/models/response_payment_details_blik.rb +440 -0
- data/lib/komoju-sdk/models/response_payment_details_credit_card.rb +742 -0
- data/lib/komoju-sdk/models/response_payment_details_credit_card_brazil.rb +297 -0
- data/lib/komoju-sdk/models/response_payment_details_credit_card_korea.rb +548 -0
- data/lib/komoju-sdk/models/response_payment_details_credit_card_terminal.rb +529 -0
- data/lib/komoju-sdk/models/response_payment_details_culture_voucher.rb +437 -0
- data/lib/komoju-sdk/models/response_payment_details_cvs.rb +440 -0
- data/lib/komoju-sdk/models/response_payment_details_dana.rb +430 -0
- data/lib/komoju-sdk/models/response_payment_details_docomo.rb +459 -0
- data/lib/komoju-sdk/models/response_payment_details_doku_wallet.rb +440 -0
- data/lib/komoju-sdk/models/response_payment_details_dospara.rb +437 -0
- data/lib/komoju-sdk/models/response_payment_details_dragonpay.rb +440 -0
- data/lib/komoju-sdk/models/response_payment_details_enets.rb +440 -0
- data/lib/komoju-sdk/models/response_payment_details_epospay.rb +520 -0
- data/lib/komoju-sdk/models/response_payment_details_eps.rb +440 -0
- data/lib/komoju-sdk/models/response_payment_details_fpx.rb +440 -0
- data/lib/komoju-sdk/models/response_payment_details_g_cash.rb +430 -0
- data/lib/komoju-sdk/models/response_payment_details_giropay.rb +440 -0
- data/lib/komoju-sdk/models/response_payment_details_happy_money.rb +437 -0
- data/lib/komoju-sdk/models/response_payment_details_ideal.rb +440 -0
- data/lib/komoju-sdk/models/response_payment_details_kakaopay.rb +430 -0
- data/lib/komoju-sdk/models/response_payment_details_konbini.rb +480 -0
- data/lib/komoju-sdk/models/response_payment_details_merpay.rb +440 -0
- data/lib/komoju-sdk/models/response_payment_details_mobile.rb +440 -0
- data/lib/komoju-sdk/models/response_payment_details_mobile_japan.rb +458 -0
- data/lib/komoju-sdk/models/response_payment_details_multibanco.rb +440 -0
- data/lib/komoju-sdk/models/response_payment_details_mybank.rb +440 -0
- data/lib/komoju-sdk/models/response_payment_details_narvesen.rb +440 -0
- data/lib/komoju-sdk/models/response_payment_details_naverpay.rb +492 -0
- data/lib/komoju-sdk/models/response_payment_details_net_cash.rb +435 -0
- data/lib/komoju-sdk/models/response_payment_details_ovo.rb +440 -0
- data/lib/komoju-sdk/models/response_payment_details_paidy.rb +451 -0
- data/lib/komoju-sdk/models/response_payment_details_pay_easy.rb +481 -0
- data/lib/komoju-sdk/models/response_payment_details_pay_pay.rb +441 -0
- data/lib/komoju-sdk/models/response_payment_details_payco.rb +440 -0
- data/lib/komoju-sdk/models/response_payment_details_paypost.rb +440 -0
- data/lib/komoju-sdk/models/response_payment_details_paysafe_card.rb +430 -0
- data/lib/komoju-sdk/models/response_payment_details_paysafe_cash.rb +430 -0
- data/lib/komoju-sdk/models/response_payment_details_paysera.rb +440 -0
- data/lib/komoju-sdk/models/response_payment_details_payu.rb +440 -0
- data/lib/komoju-sdk/models/response_payment_details_perlas.rb +440 -0
- data/lib/komoju-sdk/models/response_payment_details_pix.rb +460 -0
- data/lib/komoju-sdk/models/response_payment_details_poli.rb +440 -0
- data/lib/komoju-sdk/models/response_payment_details_przelewy24.rb +440 -0
- data/lib/komoju-sdk/models/response_payment_details_rakutenpay.rb +440 -0
- data/lib/komoju-sdk/models/response_payment_details_sepa_transfer.rb +440 -0
- data/lib/komoju-sdk/models/response_payment_details_sofortbanking.rb +440 -0
- data/lib/komoju-sdk/models/response_payment_details_softbank.rb +430 -0
- data/lib/komoju-sdk/models/response_payment_details_tng.rb +430 -0
- data/lib/komoju-sdk/models/response_payment_details_toss.rb +440 -0
- data/lib/komoju-sdk/models/response_payment_details_truemoney.rb +430 -0
- data/lib/komoju-sdk/models/response_payment_details_unionpay.rb +440 -0
- data/lib/komoju-sdk/models/response_payment_details_web_money.rb +435 -0
- data/lib/komoju-sdk/models/response_payment_details_wechatpay.rb +472 -0
- data/lib/komoju-sdk/models/secure_token.rb +316 -0
- data/lib/komoju-sdk/models/serialized_submerchant.rb +523 -0
- data/lib/komoju-sdk/models/serialized_submerchant_active_payment_methods_inner.rb +391 -0
- data/lib/komoju-sdk/models/serialized_submerchant_expiry_settings_inner.rb +355 -0
- data/lib/komoju-sdk/models/session.rb +618 -0
- data/lib/komoju-sdk/models/session_mode.rb +40 -0
- data/lib/komoju-sdk/models/session_status.rb +40 -0
- data/lib/komoju-sdk/models/settlement.rb +597 -0
- data/lib/komoju-sdk/models/settlement_download.rb +237 -0
- data/lib/komoju-sdk/models/settlement_frequency.rb +39 -0
- data/lib/komoju-sdk/models/settlement_list.rb +349 -0
- data/lib/komoju-sdk/models/settlement_show.rb +710 -0
- data/lib/komoju-sdk/models/shared_details.rb +316 -0
- data/lib/komoju-sdk/models/shared_details_corrections.rb +228 -0
- data/lib/komoju-sdk/models/shared_details_disbursements.rb +262 -0
- data/lib/komoju-sdk/models/shared_details_misc.rb +296 -0
- data/lib/komoju-sdk/models/shared_details_payments.rb +262 -0
- data/lib/komoju-sdk/models/shared_details_platform_model.rb +281 -0
- data/lib/komoju-sdk/models/shared_details_refunds.rb +279 -0
- data/lib/komoju-sdk/models/show_barcode_response.rb +55 -0
- data/lib/komoju-sdk/models/simulate_live_application_payment_method_status_request.rb +254 -0
- data/lib/komoju-sdk/models/statement_descriptor.rb +262 -0
- data/lib/komoju-sdk/models/status.rb +42 -0
- data/lib/komoju-sdk/models/submerchant.rb +328 -0
- data/lib/komoju-sdk/models/submerchant_list_item.rb +414 -0
- data/lib/komoju-sdk/models/submerchants_list.rb +391 -0
- data/lib/komoju-sdk/models/submitted_field.rb +335 -0
- data/lib/komoju-sdk/models/submitted_field_all_of_value.rb +106 -0
- data/lib/komoju-sdk/models/subscription.rb +550 -0
- data/lib/komoju-sdk/models/subscription_customer.rb +379 -0
- data/lib/komoju-sdk/models/subscription_list.rb +349 -0
- data/lib/komoju-sdk/models/subscription_payment_details.rb +279 -0
- data/lib/komoju-sdk/models/subscription_period.rb +40 -0
- data/lib/komoju-sdk/models/terminal_error.rb +227 -0
- data/lib/komoju-sdk/models/terminal_error_body.rb +296 -0
- data/lib/komoju-sdk/models/three_ds_auth_result.rb +398 -0
- data/lib/komoju-sdk/models/token.rb +306 -0
- data/lib/komoju-sdk/models/token_payment_details.rb +347 -0
- data/lib/komoju-sdk/models/transaction.rb +326 -0
- data/lib/komoju-sdk/models/transfer.rb +353 -0
- data/lib/komoju-sdk/models/update_customer_request.rb +271 -0
- data/lib/komoju-sdk/models/update_merchant_request.rb +285 -0
- data/lib/komoju-sdk/models/update_merchant_request_expiry_settings_inner.rb +279 -0
- data/lib/komoju-sdk/models/update_payment_method_request.rb +826 -0
- data/lib/komoju-sdk/models/update_payment_request.rb +238 -0
- data/lib/komoju-sdk/version.rb +15 -0
- data/lib/komoju-sdk.rb +310 -0
- data/spec/api/barcodes_api_spec.rb +47 -0
- data/spec/api/disbursements_api_spec.rb +103 -0
- data/spec/api/events_api_spec.rb +62 -0
- data/spec/api/one_click_api_spec.rb +47 -0
- data/spec/api/payments_api_spec.rb +166 -0
- data/spec/api/platform_model_api_spec.rb +394 -0
- data/spec/api/secure_tokens_api_spec.rb +59 -0
- data/spec/api/sessions_api_spec.rb +84 -0
- data/spec/api/settlements_api_spec.rb +111 -0
- data/spec/api/subscriptions_api_spec.rb +151 -0
- data/spec/api/tokens_api_spec.rb +47 -0
- data/spec/models/address_spec.rb +72 -0
- data/spec/models/api_error_body_spec.rb +54 -0
- data/spec/models/api_error_spec.rb +36 -0
- data/spec/models/auto_spec.rb +30 -0
- data/spec/models/available_payment_method_spec.rb +72 -0
- data/spec/models/balance_settings_spec.rb +48 -0
- data/spec/models/balance_show_spec.rb +84 -0
- data/spec/models/balance_spec.rb +42 -0
- data/spec/models/balance_transaction_list_spec.rb +78 -0
- data/spec/models/balance_transfer_request_spec.rb +42 -0
- data/spec/models/balance_transfer_service_record_spec.rb +66 -0
- data/spec/models/barcode_pending_response_spec.rb +46 -0
- data/spec/models/barcode_ready_response_spec.rb +52 -0
- data/spec/models/cancel_disbursement_request_spec.rb +36 -0
- data/spec/models/capture_payment_request_spec.rb +48 -0
- data/spec/models/capture_payment_request_tax_spec.rb +32 -0
- data/spec/models/country_code_spec.rb +30 -0
- data/spec/models/create_customer_request_spec.rb +54 -0
- data/spec/models/create_disbursement_request_spec.rb +82 -0
- data/spec/models/create_file_request_spec.rb +36 -0
- data/spec/models/create_merchant_balance_transfer_request_spec.rb +54 -0
- data/spec/models/create_merchant_request_spec.rb +42 -0
- data/spec/models/create_payment_request_spec.rb +32 -0
- data/spec/models/create_payment_request_with_customer_spec.rb +120 -0
- data/spec/models/create_payment_request_with_payment_details_spec.rb +120 -0
- data/spec/models/create_payment_request_with_payment_details_tax_spec.rb +32 -0
- data/spec/models/create_refund_request_request_spec.rb +100 -0
- data/spec/models/create_secure_token_request_spec.rb +32 -0
- data/spec/models/create_secure_token_request_with_customer_spec.rb +60 -0
- data/spec/models/create_secure_token_request_with_payment_details_spec.rb +60 -0
- data/spec/models/create_session_request_spec.rb +44 -0
- data/spec/models/create_session_request_with_customer_mode_spec.rb +106 -0
- data/spec/models/create_session_request_with_customer_payment_mode_spec.rb +112 -0
- data/spec/models/create_session_request_with_payment_mode_spec.rb +106 -0
- data/spec/models/create_subscription_request_spec.rb +60 -0
- data/spec/models/create_token_request_spec.rb +48 -0
- data/spec/models/currency_spec.rb +30 -0
- data/spec/models/customer_list_spec.rb +78 -0
- data/spec/models/customer_metadata_spec.rb +36 -0
- data/spec/models/customer_source_spec.rb +60 -0
- data/spec/models/customer_spec.rb +66 -0
- data/spec/models/delete_external_customer_response_spec.rb +36 -0
- data/spec/models/disbursement_list_spec.rb +78 -0
- data/spec/models/disbursement_spec.rb +120 -0
- data/spec/models/disbursement_status_spec.rb +30 -0
- data/spec/models/edit_merchant_balance_settings_request_spec.rb +54 -0
- data/spec/models/errored_field_spec.rb +78 -0
- data/spec/models/event_list_spec.rb +82 -0
- data/spec/models/event_spec.rb +66 -0
- data/spec/models/field_field_properties_spec.rb +42 -0
- data/spec/models/field_spec.rb +66 -0
- data/spec/models/finalize_payment_request_spec.rb +64 -0
- data/spec/models/fraud_details_spec.rb +72 -0
- data/spec/models/industry_type_spec.rb +30 -0
- data/spec/models/installments_spec.rb +30 -0
- data/spec/models/intent_spec.rb +30 -0
- data/spec/models/line_item_spec.rb +60 -0
- data/spec/models/live_application_request_spec.rb +630 -0
- data/spec/models/live_application_spec.rb +72 -0
- data/spec/models/live_application_status_spec.rb +30 -0
- data/spec/models/live_application_with_submitted_fields_spec.rb +78 -0
- data/spec/models/locale_spec.rb +30 -0
- data/spec/models/merchant_balance_spec.rb +48 -0
- data/spec/models/merchant_data_spec.rb +36 -0
- data/spec/models/merchant_file_spec.rb +72 -0
- data/spec/models/merchant_role_spec.rb +30 -0
- data/spec/models/merchant_submission_status_spec.rb +42 -0
- data/spec/models/pay_session_request_spec.rb +52 -0
- data/spec/models/pay_session_response_spec.rb +60 -0
- data/spec/models/payment_data_request_spec.rb +106 -0
- data/spec/models/payment_data_spec.rb +64 -0
- data/spec/models/payment_details_alipay_hk_spec.rb +124 -0
- data/spec/models/payment_details_alipay_spec.rb +124 -0
- data/spec/models/payment_details_all_spec.rb +44 -0
- data/spec/models/payment_details_au_spec.rb +124 -0
- data/spec/models/payment_details_aupay_spec.rb +130 -0
- data/spec/models/payment_details_bancontact_spec.rb +124 -0
- data/spec/models/payment_details_bank_transfer_spec.rb +172 -0
- data/spec/models/payment_details_bit_cash_spec.rb +136 -0
- data/spec/models/payment_details_blik_spec.rb +124 -0
- data/spec/models/payment_details_credit_card_brazil_spec.rb +172 -0
- data/spec/models/payment_details_credit_card_korea_social_id_spec.rb +32 -0
- data/spec/models/payment_details_credit_card_korea_spec.rb +166 -0
- data/spec/models/payment_details_credit_card_spec.rb +216 -0
- data/spec/models/payment_details_credit_card_terminal_spec.rb +172 -0
- data/spec/models/payment_details_culture_voucher_spec.rb +136 -0
- data/spec/models/payment_details_cvs_spec.rb +130 -0
- data/spec/models/payment_details_dana_spec.rb +124 -0
- data/spec/models/payment_details_docomo_spec.rb +124 -0
- data/spec/models/payment_details_doku_wallet_spec.rb +130 -0
- data/spec/models/payment_details_dospara_spec.rb +136 -0
- data/spec/models/payment_details_dragonpay_spec.rb +136 -0
- data/spec/models/payment_details_enets_spec.rb +136 -0
- data/spec/models/payment_details_epospay_spec.rb +124 -0
- data/spec/models/payment_details_eps_spec.rb +124 -0
- data/spec/models/payment_details_fpx_spec.rb +136 -0
- data/spec/models/payment_details_g_cash_spec.rb +124 -0
- data/spec/models/payment_details_giropay_spec.rb +124 -0
- data/spec/models/payment_details_happy_money_spec.rb +136 -0
- data/spec/models/payment_details_ideal_spec.rb +124 -0
- data/spec/models/payment_details_kakaopay_spec.rb +124 -0
- data/spec/models/payment_details_konbini_spec.rb +164 -0
- data/spec/models/payment_details_merpay_spec.rb +124 -0
- data/spec/models/payment_details_mobile_japan_spec.rb +134 -0
- data/spec/models/payment_details_mobile_spec.rb +130 -0
- data/spec/models/payment_details_multibanco_spec.rb +124 -0
- data/spec/models/payment_details_mybank_spec.rb +124 -0
- data/spec/models/payment_details_narvesen_spec.rb +124 -0
- data/spec/models/payment_details_naverpay_spec.rb +124 -0
- data/spec/models/payment_details_net_cash_spec.rb +136 -0
- data/spec/models/payment_details_only_credit_cards_spec.rb +44 -0
- data/spec/models/payment_details_ovo_spec.rb +130 -0
- data/spec/models/payment_details_paidy_spec.rb +196 -0
- data/spec/models/payment_details_pay_easy_spec.rb +166 -0
- data/spec/models/payment_details_pay_pay_spec.rb +136 -0
- data/spec/models/payment_details_payco_spec.rb +124 -0
- data/spec/models/payment_details_paypost_spec.rb +124 -0
- data/spec/models/payment_details_paysafe_card_spec.rb +130 -0
- data/spec/models/payment_details_paysafe_cash_spec.rb +130 -0
- data/spec/models/payment_details_paysera_spec.rb +124 -0
- data/spec/models/payment_details_payu_spec.rb +124 -0
- data/spec/models/payment_details_perlas_spec.rb +124 -0
- data/spec/models/payment_details_pix_spec.rb +148 -0
- data/spec/models/payment_details_poli_spec.rb +124 -0
- data/spec/models/payment_details_przelewy24_spec.rb +124 -0
- data/spec/models/payment_details_rakutenpay_spec.rb +124 -0
- data/spec/models/payment_details_sepa_transfer_spec.rb +124 -0
- data/spec/models/payment_details_sofortbanking_spec.rb +124 -0
- data/spec/models/payment_details_softbank_spec.rb +124 -0
- data/spec/models/payment_details_tng_spec.rb +124 -0
- data/spec/models/payment_details_toss_spec.rb +136 -0
- data/spec/models/payment_details_truemoney_spec.rb +124 -0
- data/spec/models/payment_details_unionpay_spec.rb +124 -0
- data/spec/models/payment_details_web_money_spec.rb +136 -0
- data/spec/models/payment_details_wechatpay_spec.rb +124 -0
- data/spec/models/payment_list_spec.rb +78 -0
- data/spec/models/payment_method_brands_spec.rb +32 -0
- data/spec/models/payment_method_installments_inner_spec.rb +42 -0
- data/spec/models/payment_method_spec.rb +96 -0
- data/spec/models/payment_method_status_spec.rb +42 -0
- data/spec/models/payment_methods_list_spec.rb +42 -0
- data/spec/models/payment_spec.rb +190 -0
- data/spec/models/payment_status_spec.rb +30 -0
- data/spec/models/payment_type_spec.rb +30 -0
- data/spec/models/platform_details_spec.rb +42 -0
- data/spec/models/platform_merchant_payment_list_spec.rb +66 -0
- data/spec/models/platform_payment_spec.rb +186 -0
- data/spec/models/prepaid_cards_spec.rb +42 -0
- data/spec/models/processing_merchant_spec.rb +36 -0
- data/spec/models/refund_payment_request_spec.rb +48 -0
- data/spec/models/refund_request_spec.rb +102 -0
- data/spec/models/refund_request_status_spec.rb +30 -0
- data/spec/models/refund_spec.rb +94 -0
- data/spec/models/response_payment_details_alipay_hk_spec.rb +136 -0
- data/spec/models/response_payment_details_alipay_spec.rb +142 -0
- data/spec/models/response_payment_details_all_spec.rb +44 -0
- data/spec/models/response_payment_details_au_spec.rb +148 -0
- data/spec/models/response_payment_details_aupay_spec.rb +142 -0
- data/spec/models/response_payment_details_bancontact_spec.rb +142 -0
- data/spec/models/response_payment_details_bank_transfer_spec.rb +178 -0
- data/spec/models/response_payment_details_bit_cash_spec.rb +130 -0
- data/spec/models/response_payment_details_blik_spec.rb +142 -0
- data/spec/models/response_payment_details_credit_card_brazil_spec.rb +52 -0
- data/spec/models/response_payment_details_credit_card_korea_spec.rb +158 -0
- data/spec/models/response_payment_details_credit_card_spec.rb +230 -0
- data/spec/models/response_payment_details_credit_card_terminal_spec.rb +166 -0
- data/spec/models/response_payment_details_culture_voucher_spec.rb +136 -0
- data/spec/models/response_payment_details_cvs_spec.rb +142 -0
- data/spec/models/response_payment_details_dana_spec.rb +136 -0
- data/spec/models/response_payment_details_docomo_spec.rb +142 -0
- data/spec/models/response_payment_details_doku_wallet_spec.rb +142 -0
- data/spec/models/response_payment_details_dospara_spec.rb +136 -0
- data/spec/models/response_payment_details_dragonpay_spec.rb +142 -0
- data/spec/models/response_payment_details_enets_spec.rb +142 -0
- data/spec/models/response_payment_details_epospay_spec.rb +190 -0
- data/spec/models/response_payment_details_eps_spec.rb +142 -0
- data/spec/models/response_payment_details_fpx_spec.rb +142 -0
- data/spec/models/response_payment_details_g_cash_spec.rb +136 -0
- data/spec/models/response_payment_details_giropay_spec.rb +142 -0
- data/spec/models/response_payment_details_happy_money_spec.rb +136 -0
- data/spec/models/response_payment_details_ideal_spec.rb +142 -0
- data/spec/models/response_payment_details_kakaopay_spec.rb +136 -0
- data/spec/models/response_payment_details_konbini_spec.rb +158 -0
- data/spec/models/response_payment_details_merpay_spec.rb +142 -0
- data/spec/models/response_payment_details_mobile_japan_spec.rb +146 -0
- data/spec/models/response_payment_details_mobile_spec.rb +142 -0
- data/spec/models/response_payment_details_multibanco_spec.rb +142 -0
- data/spec/models/response_payment_details_mybank_spec.rb +142 -0
- data/spec/models/response_payment_details_narvesen_spec.rb +142 -0
- data/spec/models/response_payment_details_naverpay_spec.rb +170 -0
- data/spec/models/response_payment_details_net_cash_spec.rb +142 -0
- data/spec/models/response_payment_details_ovo_spec.rb +142 -0
- data/spec/models/response_payment_details_paidy_spec.rb +136 -0
- data/spec/models/response_payment_details_pay_easy_spec.rb +166 -0
- data/spec/models/response_payment_details_pay_pay_spec.rb +142 -0
- data/spec/models/response_payment_details_payco_spec.rb +142 -0
- data/spec/models/response_payment_details_paypost_spec.rb +142 -0
- data/spec/models/response_payment_details_paysafe_card_spec.rb +136 -0
- data/spec/models/response_payment_details_paysafe_cash_spec.rb +136 -0
- data/spec/models/response_payment_details_paysera_spec.rb +142 -0
- data/spec/models/response_payment_details_payu_spec.rb +142 -0
- data/spec/models/response_payment_details_perlas_spec.rb +142 -0
- data/spec/models/response_payment_details_pix_spec.rb +154 -0
- data/spec/models/response_payment_details_poli_spec.rb +142 -0
- data/spec/models/response_payment_details_przelewy24_spec.rb +142 -0
- data/spec/models/response_payment_details_rakutenpay_spec.rb +142 -0
- data/spec/models/response_payment_details_sepa_transfer_spec.rb +142 -0
- data/spec/models/response_payment_details_sofortbanking_spec.rb +142 -0
- data/spec/models/response_payment_details_softbank_spec.rb +136 -0
- data/spec/models/response_payment_details_tng_spec.rb +136 -0
- data/spec/models/response_payment_details_toss_spec.rb +142 -0
- data/spec/models/response_payment_details_truemoney_spec.rb +136 -0
- data/spec/models/response_payment_details_unionpay_spec.rb +142 -0
- data/spec/models/response_payment_details_web_money_spec.rb +142 -0
- data/spec/models/response_payment_details_wechatpay_spec.rb +158 -0
- data/spec/models/secure_token_spec.rb +60 -0
- data/spec/models/serialized_submerchant_active_payment_methods_inner_spec.rb +66 -0
- data/spec/models/serialized_submerchant_expiry_settings_inner_spec.rb +60 -0
- data/spec/models/serialized_submerchant_spec.rb +132 -0
- data/spec/models/session_mode_spec.rb +30 -0
- data/spec/models/session_spec.rb +172 -0
- data/spec/models/session_status_spec.rb +30 -0
- data/spec/models/settlement_download_spec.rb +42 -0
- data/spec/models/settlement_frequency_spec.rb +30 -0
- data/spec/models/settlement_list_spec.rb +78 -0
- data/spec/models/settlement_show_spec.rb +192 -0
- data/spec/models/settlement_spec.rb +150 -0
- data/spec/models/shared_details_corrections_spec.rb +36 -0
- data/spec/models/shared_details_disbursements_spec.rb +48 -0
- data/spec/models/shared_details_misc_spec.rb +60 -0
- data/spec/models/shared_details_payments_spec.rb +48 -0
- data/spec/models/shared_details_platform_model_spec.rb +72 -0
- data/spec/models/shared_details_refunds_spec.rb +54 -0
- data/spec/models/shared_details_spec.rb +72 -0
- data/spec/models/show_barcode_response_spec.rb +44 -0
- data/spec/models/simulate_live_application_payment_method_status_request_spec.rb +40 -0
- data/spec/models/statement_descriptor_spec.rb +60 -0
- data/spec/models/status_spec.rb +30 -0
- data/spec/models/submerchant_list_item_spec.rb +94 -0
- data/spec/models/submerchant_spec.rb +48 -0
- data/spec/models/submerchants_list_spec.rb +66 -0
- data/spec/models/submitted_field_all_of_value_spec.rb +32 -0
- data/spec/models/submitted_field_spec.rb +72 -0
- data/spec/models/subscription_customer_spec.rb +72 -0
- data/spec/models/subscription_list_spec.rb +78 -0
- data/spec/models/subscription_payment_details_spec.rb +54 -0
- data/spec/models/subscription_period_spec.rb +30 -0
- data/spec/models/subscription_spec.rb +126 -0
- data/spec/models/terminal_error_body_spec.rb +60 -0
- data/spec/models/terminal_error_spec.rb +36 -0
- data/spec/models/three_ds_auth_result_spec.rb +96 -0
- data/spec/models/token_payment_details_spec.rb +78 -0
- data/spec/models/token_spec.rb +54 -0
- data/spec/models/transaction_spec.rb +54 -0
- data/spec/models/transfer_spec.rb +66 -0
- data/spec/models/update_customer_request_spec.rb +54 -0
- data/spec/models/update_merchant_request_expiry_settings_inner_spec.rb +52 -0
- data/spec/models/update_merchant_request_spec.rb +78 -0
- data/spec/models/update_payment_method_request_spec.rb +384 -0
- data/spec/models/update_payment_request_spec.rb +48 -0
- data/spec/spec_helper.rb +111 -0
- metadata +1207 -0
|
@@ -0,0 +1,1943 @@
|
|
|
1
|
+
# Komoju::PlatformModelApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://komoju.com/api/v1*
|
|
4
|
+
|
|
5
|
+
| Method | HTTP request | Description |
|
|
6
|
+
| ------ | ------------ | ----------- |
|
|
7
|
+
| [**balance_transfer**](PlatformModelApi.md#balance_transfer) | **POST** /balances/{currency}/transfer | Balance: Transfer |
|
|
8
|
+
| [**create_file**](PlatformModelApi.md#create_file) | **POST** /merchants/{merchant_id}/files | File: Create |
|
|
9
|
+
| [**create_merchant**](PlatformModelApi.md#create_merchant) | **POST** /merchants | Merchant: Create |
|
|
10
|
+
| [**create_merchant_balance_transfer**](PlatformModelApi.md#create_merchant_balance_transfer) | **POST** /merchants/{merchant_id}/balances/{currency}/transfer | Balance: Transfer |
|
|
11
|
+
| [**edit_merchant_balance_settings**](PlatformModelApi.md#edit_merchant_balance_settings) | **PATCH** /merchants/{merchant_id}/balances/{currency}/settings | Balances: Edit Settings |
|
|
12
|
+
| [**list_live_application_payment_methods**](PlatformModelApi.md#list_live_application_payment_methods) | **GET** /live_application/{merchant_id}/payment_methods | Live Application: Payment Methods |
|
|
13
|
+
| [**list_merchants**](PlatformModelApi.md#list_merchants) | **GET** /merchants | Merchant: List |
|
|
14
|
+
| [**list_submerchant_payments**](PlatformModelApi.md#list_submerchant_payments) | **GET** /merchants/{merchant_id}/payments | Payment: List for Merchant |
|
|
15
|
+
| [**list_submerchant_settlements**](PlatformModelApi.md#list_submerchant_settlements) | **GET** /merchants/{merchant_id}/settlements | Settlement: List |
|
|
16
|
+
| [**merchant_balance_transactions**](PlatformModelApi.md#merchant_balance_transactions) | **GET** /merchants/{merchant_id}/balances/{currency}/transactions | Balance: Transactions |
|
|
17
|
+
| [**show_file**](PlatformModelApi.md#show_file) | **GET** /merchants/{merchant_id}/files/{id} | File: Show |
|
|
18
|
+
| [**show_live_application**](PlatformModelApi.md#show_live_application) | **GET** /live_application/{merchant_id} | Live Application: Show |
|
|
19
|
+
| [**show_live_application_payment_method**](PlatformModelApi.md#show_live_application_payment_method) | **GET** /live_application/{merchant_id}/payment_methods/{payment_method} | Live Application: Show Payment Method |
|
|
20
|
+
| [**show_merchant**](PlatformModelApi.md#show_merchant) | **GET** /merchants/{id} | Merchant: Show |
|
|
21
|
+
| [**show_merchant_balance**](PlatformModelApi.md#show_merchant_balance) | **GET** /merchants/{merchant_id}/balances/{currency} | Balance: Show |
|
|
22
|
+
| [**show_merchant_balance_settings**](PlatformModelApi.md#show_merchant_balance_settings) | **GET** /merchants/{merchant_id}/balances/{currency}/settings | Balance: Show Settings |
|
|
23
|
+
| [**show_merchant_balance_transaction**](PlatformModelApi.md#show_merchant_balance_transaction) | **GET** /merchants/{merchant_id}/balances/{currency}/transactions/{transaction_uuid} | Balance: Transaction |
|
|
24
|
+
| [**show_submerchant_settlement**](PlatformModelApi.md#show_submerchant_settlement) | **GET** /merchants/{merchant_id}/settlements/{id} | Settlement: Show |
|
|
25
|
+
| [**simulate_live_application_payment_method_status**](PlatformModelApi.md#simulate_live_application_payment_method_status) | **PATCH** /live_application/{merchant_id}/payment_methods/{payment_method}/simulate_status | Live Application: Simulate Payment Method Status |
|
|
26
|
+
| [**simulate_live_application_status**](PlatformModelApi.md#simulate_live_application_status) | **PATCH** /live_application/{merchant_id}/simulate_status | Live Application: Simulate Status |
|
|
27
|
+
| [**submerchant_settlement_csv**](PlatformModelApi.md#submerchant_settlement_csv) | **GET** /merchants/{merchant_id}/settlements/{id}/csv | Settlement: CSV |
|
|
28
|
+
| [**submerchant_settlement_pdf**](PlatformModelApi.md#submerchant_settlement_pdf) | **GET** /merchants/{merchant_id}/settlements/{id}/pdf | Settlement: PDF |
|
|
29
|
+
| [**submerchant_settlement_xls**](PlatformModelApi.md#submerchant_settlement_xls) | **GET** /merchants/{merchant_id}/settlements/{id}/xls | Settlement: XLS |
|
|
30
|
+
| [**update_live_application**](PlatformModelApi.md#update_live_application) | **PATCH** /live_application/{merchant_id} | Live Application: Update |
|
|
31
|
+
| [**update_live_application_payment_method**](PlatformModelApi.md#update_live_application_payment_method) | **PATCH** /live_application/{merchant_id}/payment_methods/{payment_method} | Live Application: Update Payment Method |
|
|
32
|
+
| [**update_merchant**](PlatformModelApi.md#update_merchant) | **PATCH** /merchants/{id} | Merchant: Update |
|
|
33
|
+
|
|
34
|
+
## Request Models
|
|
35
|
+
|
|
36
|
+
- [**BalanceTransferRequest**](BalanceTransferRequest.md) — used by `balance_transfer`
|
|
37
|
+
- [**CreateFileRequest**](CreateFileRequest.md) — used by `create_file`
|
|
38
|
+
- [**CreateMerchantRequest**](CreateMerchantRequest.md) — used by `create_merchant`
|
|
39
|
+
- [**CreateMerchantBalanceTransferRequest**](CreateMerchantBalanceTransferRequest.md) — used by `create_merchant_balance_transfer`
|
|
40
|
+
- [**EditMerchantBalanceSettingsRequest**](EditMerchantBalanceSettingsRequest.md) — used by `edit_merchant_balance_settings`
|
|
41
|
+
- [**SimulateLiveApplicationPaymentMethodStatusRequest**](SimulateLiveApplicationPaymentMethodStatusRequest.md) — used by `simulate_live_application_payment_method_status`
|
|
42
|
+
- [**SimulateLiveApplicationPaymentMethodStatusRequest**](SimulateLiveApplicationPaymentMethodStatusRequest.md) — used by `simulate_live_application_status`
|
|
43
|
+
- [**LiveApplicationRequest**](LiveApplicationRequest.md) — used by `update_live_application`
|
|
44
|
+
- [**UpdatePaymentMethodRequest**](UpdatePaymentMethodRequest.md) — used by `update_live_application_payment_method`
|
|
45
|
+
- [**UpdateMerchantRequest**](UpdateMerchantRequest.md) — used by `update_merchant`
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
## balance_transfer
|
|
49
|
+
|
|
50
|
+
> <Transfer> balance_transfer(currency, balance_transfer_request)
|
|
51
|
+
|
|
52
|
+
Balance: Transfer
|
|
53
|
+
|
|
54
|
+
Transfers funds from the currently authenticated merchant's balance to another associated merchant for the given `currency`.
|
|
55
|
+
|
|
56
|
+
### Examples
|
|
57
|
+
|
|
58
|
+
```ruby
|
|
59
|
+
require 'time'
|
|
60
|
+
require 'komoju-sdk'
|
|
61
|
+
# setup authorization
|
|
62
|
+
Komoju.configure do |config|
|
|
63
|
+
# Configure your KOMOJU API key
|
|
64
|
+
config.api_key = 'YOUR_API_KEY'
|
|
65
|
+
end
|
|
66
|
+
|
|
67
|
+
api_instance = Komoju::PlatformModelApi.new
|
|
68
|
+
currency = Komoju::Currency::JPY # Currency |
|
|
69
|
+
balance_transfer_request = Komoju::BalanceTransferRequest.new({amount: 37, to: 'to_example'}) # BalanceTransferRequest |
|
|
70
|
+
|
|
71
|
+
begin
|
|
72
|
+
# Balance: Transfer
|
|
73
|
+
result = api_instance.balance_transfer(currency, balance_transfer_request)
|
|
74
|
+
p result
|
|
75
|
+
rescue Komoju::ApiError => e
|
|
76
|
+
puts "Error when calling PlatformModelApi->balance_transfer: #{e}"
|
|
77
|
+
end
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
#### Using the balance_transfer_with_http_info variant
|
|
81
|
+
|
|
82
|
+
This returns an Array which contains the response data, status code and headers.
|
|
83
|
+
|
|
84
|
+
> <Array(<Transfer>, Integer, Hash)> balance_transfer_with_http_info(currency, balance_transfer_request)
|
|
85
|
+
|
|
86
|
+
```ruby
|
|
87
|
+
begin
|
|
88
|
+
# Balance: Transfer
|
|
89
|
+
data, status_code, headers = api_instance.balance_transfer_with_http_info(currency, balance_transfer_request)
|
|
90
|
+
p status_code # => 2xx
|
|
91
|
+
p headers # => { ... }
|
|
92
|
+
p data # => <Transfer>
|
|
93
|
+
rescue Komoju::ApiError => e
|
|
94
|
+
puts "Error when calling PlatformModelApi->balance_transfer_with_http_info: #{e}"
|
|
95
|
+
end
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
### Parameters
|
|
99
|
+
|
|
100
|
+
| Name | Type | Description | Notes |
|
|
101
|
+
| ---- | ---- | ----------- | ----- |
|
|
102
|
+
| **currency** | [**Currency**](.md) | | |
|
|
103
|
+
| **balance_transfer_request** | [**BalanceTransferRequest**](BalanceTransferRequest.md) | | |
|
|
104
|
+
|
|
105
|
+
### Return type
|
|
106
|
+
|
|
107
|
+
[**Transfer**](Transfer.md)
|
|
108
|
+
|
|
109
|
+
### Authorization
|
|
110
|
+
|
|
111
|
+
[api_key](../README.md#api_key)
|
|
112
|
+
|
|
113
|
+
### HTTP request headers
|
|
114
|
+
|
|
115
|
+
- **Content-Type**: application/json
|
|
116
|
+
- **Accept**: application/json
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
## create_file
|
|
120
|
+
|
|
121
|
+
> <MerchantFile> create_file(merchant_id, create_file_request)
|
|
122
|
+
|
|
123
|
+
File: Create
|
|
124
|
+
|
|
125
|
+
Creates a new file for the current merchant.
|
|
126
|
+
|
|
127
|
+
### Examples
|
|
128
|
+
|
|
129
|
+
```ruby
|
|
130
|
+
require 'time'
|
|
131
|
+
require 'komoju-sdk'
|
|
132
|
+
# setup authorization
|
|
133
|
+
Komoju.configure do |config|
|
|
134
|
+
# Configure your KOMOJU API key
|
|
135
|
+
config.api_key = 'YOUR_API_KEY'
|
|
136
|
+
end
|
|
137
|
+
|
|
138
|
+
api_instance = Komoju::PlatformModelApi.new
|
|
139
|
+
merchant_id = 'merchant_id_example' # String |
|
|
140
|
+
create_file_request = Komoju::CreateFileRequest.new({paper: 'paper_example'}) # CreateFileRequest |
|
|
141
|
+
|
|
142
|
+
begin
|
|
143
|
+
# File: Create
|
|
144
|
+
result = api_instance.create_file(merchant_id, create_file_request)
|
|
145
|
+
p result
|
|
146
|
+
rescue Komoju::ApiError => e
|
|
147
|
+
puts "Error when calling PlatformModelApi->create_file: #{e}"
|
|
148
|
+
end
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
#### Using the create_file_with_http_info variant
|
|
152
|
+
|
|
153
|
+
This returns an Array which contains the response data, status code and headers.
|
|
154
|
+
|
|
155
|
+
> <Array(<MerchantFile>, Integer, Hash)> create_file_with_http_info(merchant_id, create_file_request)
|
|
156
|
+
|
|
157
|
+
```ruby
|
|
158
|
+
begin
|
|
159
|
+
# File: Create
|
|
160
|
+
data, status_code, headers = api_instance.create_file_with_http_info(merchant_id, create_file_request)
|
|
161
|
+
p status_code # => 2xx
|
|
162
|
+
p headers # => { ... }
|
|
163
|
+
p data # => <MerchantFile>
|
|
164
|
+
rescue Komoju::ApiError => e
|
|
165
|
+
puts "Error when calling PlatformModelApi->create_file_with_http_info: #{e}"
|
|
166
|
+
end
|
|
167
|
+
```
|
|
168
|
+
|
|
169
|
+
### Parameters
|
|
170
|
+
|
|
171
|
+
| Name | Type | Description | Notes |
|
|
172
|
+
| ---- | ---- | ----------- | ----- |
|
|
173
|
+
| **merchant_id** | **String** | | |
|
|
174
|
+
| **create_file_request** | [**CreateFileRequest**](CreateFileRequest.md) | | |
|
|
175
|
+
|
|
176
|
+
### Return type
|
|
177
|
+
|
|
178
|
+
[**MerchantFile**](MerchantFile.md)
|
|
179
|
+
|
|
180
|
+
### Authorization
|
|
181
|
+
|
|
182
|
+
[api_key](../README.md#api_key)
|
|
183
|
+
|
|
184
|
+
### HTTP request headers
|
|
185
|
+
|
|
186
|
+
- **Content-Type**: application/json
|
|
187
|
+
- **Accept**: application/json
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
## create_merchant
|
|
191
|
+
|
|
192
|
+
> <SerializedSubmerchant> create_merchant(create_merchant_request)
|
|
193
|
+
|
|
194
|
+
Merchant: Create
|
|
195
|
+
|
|
196
|
+
Creates a new merchant.
|
|
197
|
+
|
|
198
|
+
### Examples
|
|
199
|
+
|
|
200
|
+
```ruby
|
|
201
|
+
require 'time'
|
|
202
|
+
require 'komoju-sdk'
|
|
203
|
+
# setup authorization
|
|
204
|
+
Komoju.configure do |config|
|
|
205
|
+
# Configure your KOMOJU API key
|
|
206
|
+
config.api_key = 'YOUR_API_KEY'
|
|
207
|
+
end
|
|
208
|
+
|
|
209
|
+
api_instance = Komoju::PlatformModelApi.new
|
|
210
|
+
create_merchant_request = Komoju::CreateMerchantRequest.new({name: 'name_example', platform_role: Komoju::MerchantRole::SELLER}) # CreateMerchantRequest |
|
|
211
|
+
|
|
212
|
+
begin
|
|
213
|
+
# Merchant: Create
|
|
214
|
+
result = api_instance.create_merchant(create_merchant_request)
|
|
215
|
+
p result
|
|
216
|
+
rescue Komoju::ApiError => e
|
|
217
|
+
puts "Error when calling PlatformModelApi->create_merchant: #{e}"
|
|
218
|
+
end
|
|
219
|
+
```
|
|
220
|
+
|
|
221
|
+
#### Using the create_merchant_with_http_info variant
|
|
222
|
+
|
|
223
|
+
This returns an Array which contains the response data, status code and headers.
|
|
224
|
+
|
|
225
|
+
> <Array(<SerializedSubmerchant>, Integer, Hash)> create_merchant_with_http_info(create_merchant_request)
|
|
226
|
+
|
|
227
|
+
```ruby
|
|
228
|
+
begin
|
|
229
|
+
# Merchant: Create
|
|
230
|
+
data, status_code, headers = api_instance.create_merchant_with_http_info(create_merchant_request)
|
|
231
|
+
p status_code # => 2xx
|
|
232
|
+
p headers # => { ... }
|
|
233
|
+
p data # => <SerializedSubmerchant>
|
|
234
|
+
rescue Komoju::ApiError => e
|
|
235
|
+
puts "Error when calling PlatformModelApi->create_merchant_with_http_info: #{e}"
|
|
236
|
+
end
|
|
237
|
+
```
|
|
238
|
+
|
|
239
|
+
### Parameters
|
|
240
|
+
|
|
241
|
+
| Name | Type | Description | Notes |
|
|
242
|
+
| ---- | ---- | ----------- | ----- |
|
|
243
|
+
| **create_merchant_request** | [**CreateMerchantRequest**](CreateMerchantRequest.md) | | |
|
|
244
|
+
|
|
245
|
+
### Return type
|
|
246
|
+
|
|
247
|
+
[**SerializedSubmerchant**](SerializedSubmerchant.md)
|
|
248
|
+
|
|
249
|
+
### Authorization
|
|
250
|
+
|
|
251
|
+
[api_key](../README.md#api_key)
|
|
252
|
+
|
|
253
|
+
### HTTP request headers
|
|
254
|
+
|
|
255
|
+
- **Content-Type**: application/json
|
|
256
|
+
- **Accept**: application/json
|
|
257
|
+
|
|
258
|
+
|
|
259
|
+
## create_merchant_balance_transfer
|
|
260
|
+
|
|
261
|
+
> <BalanceTransferServiceRecord> create_merchant_balance_transfer(merchant_id, currency, create_merchant_balance_transfer_request)
|
|
262
|
+
|
|
263
|
+
Balance: Transfer
|
|
264
|
+
|
|
265
|
+
Creates a balance transfer between associated merchants for a given `amount` and `currency`.
|
|
266
|
+
|
|
267
|
+
### Examples
|
|
268
|
+
|
|
269
|
+
```ruby
|
|
270
|
+
require 'time'
|
|
271
|
+
require 'komoju-sdk'
|
|
272
|
+
# setup authorization
|
|
273
|
+
Komoju.configure do |config|
|
|
274
|
+
# Configure your KOMOJU API key
|
|
275
|
+
config.api_key = 'YOUR_API_KEY'
|
|
276
|
+
end
|
|
277
|
+
|
|
278
|
+
api_instance = Komoju::PlatformModelApi.new
|
|
279
|
+
merchant_id = 'merchant_id_example' # String |
|
|
280
|
+
currency = Komoju::Currency::JPY # Currency |
|
|
281
|
+
create_merchant_balance_transfer_request = Komoju::CreateMerchantBalanceTransferRequest.new({currency: Komoju::Currency::JPY, to: 'to_example', amount: 37}) # CreateMerchantBalanceTransferRequest |
|
|
282
|
+
|
|
283
|
+
begin
|
|
284
|
+
# Balance: Transfer
|
|
285
|
+
result = api_instance.create_merchant_balance_transfer(merchant_id, currency, create_merchant_balance_transfer_request)
|
|
286
|
+
p result
|
|
287
|
+
rescue Komoju::ApiError => e
|
|
288
|
+
puts "Error when calling PlatformModelApi->create_merchant_balance_transfer: #{e}"
|
|
289
|
+
end
|
|
290
|
+
```
|
|
291
|
+
|
|
292
|
+
#### Using the create_merchant_balance_transfer_with_http_info variant
|
|
293
|
+
|
|
294
|
+
This returns an Array which contains the response data, status code and headers.
|
|
295
|
+
|
|
296
|
+
> <Array(<BalanceTransferServiceRecord>, Integer, Hash)> create_merchant_balance_transfer_with_http_info(merchant_id, currency, create_merchant_balance_transfer_request)
|
|
297
|
+
|
|
298
|
+
```ruby
|
|
299
|
+
begin
|
|
300
|
+
# Balance: Transfer
|
|
301
|
+
data, status_code, headers = api_instance.create_merchant_balance_transfer_with_http_info(merchant_id, currency, create_merchant_balance_transfer_request)
|
|
302
|
+
p status_code # => 2xx
|
|
303
|
+
p headers # => { ... }
|
|
304
|
+
p data # => <BalanceTransferServiceRecord>
|
|
305
|
+
rescue Komoju::ApiError => e
|
|
306
|
+
puts "Error when calling PlatformModelApi->create_merchant_balance_transfer_with_http_info: #{e}"
|
|
307
|
+
end
|
|
308
|
+
```
|
|
309
|
+
|
|
310
|
+
### Parameters
|
|
311
|
+
|
|
312
|
+
| Name | Type | Description | Notes |
|
|
313
|
+
| ---- | ---- | ----------- | ----- |
|
|
314
|
+
| **merchant_id** | **String** | | |
|
|
315
|
+
| **currency** | [**Currency**](.md) | | |
|
|
316
|
+
| **create_merchant_balance_transfer_request** | [**CreateMerchantBalanceTransferRequest**](CreateMerchantBalanceTransferRequest.md) | | |
|
|
317
|
+
|
|
318
|
+
### Return type
|
|
319
|
+
|
|
320
|
+
[**BalanceTransferServiceRecord**](BalanceTransferServiceRecord.md)
|
|
321
|
+
|
|
322
|
+
### Authorization
|
|
323
|
+
|
|
324
|
+
[api_key](../README.md#api_key)
|
|
325
|
+
|
|
326
|
+
### HTTP request headers
|
|
327
|
+
|
|
328
|
+
- **Content-Type**: application/json
|
|
329
|
+
- **Accept**: application/json
|
|
330
|
+
|
|
331
|
+
|
|
332
|
+
## edit_merchant_balance_settings
|
|
333
|
+
|
|
334
|
+
> <MerchantBalance> edit_merchant_balance_settings(merchant_id, currency, edit_merchant_balance_settings_request)
|
|
335
|
+
|
|
336
|
+
Balances: Edit Settings
|
|
337
|
+
|
|
338
|
+
Given a currency, edit the payout settings of the currently authenticated merchant or one of its sub-merchants.
|
|
339
|
+
|
|
340
|
+
### Examples
|
|
341
|
+
|
|
342
|
+
```ruby
|
|
343
|
+
require 'time'
|
|
344
|
+
require 'komoju-sdk'
|
|
345
|
+
# setup authorization
|
|
346
|
+
Komoju.configure do |config|
|
|
347
|
+
# Configure your KOMOJU API key
|
|
348
|
+
config.api_key = 'YOUR_API_KEY'
|
|
349
|
+
end
|
|
350
|
+
|
|
351
|
+
api_instance = Komoju::PlatformModelApi.new
|
|
352
|
+
merchant_id = 'merchant_id_example' # String |
|
|
353
|
+
currency = Komoju::Currency::JPY # Currency |
|
|
354
|
+
edit_merchant_balance_settings_request = Komoju::EditMerchantBalanceSettingsRequest.new({currency: Komoju::Currency::JPY, frequency: Komoju::SettlementFrequency::WEEKLY, settlement_minimum_amount: 37}) # EditMerchantBalanceSettingsRequest |
|
|
355
|
+
|
|
356
|
+
begin
|
|
357
|
+
# Balances: Edit Settings
|
|
358
|
+
result = api_instance.edit_merchant_balance_settings(merchant_id, currency, edit_merchant_balance_settings_request)
|
|
359
|
+
p result
|
|
360
|
+
rescue Komoju::ApiError => e
|
|
361
|
+
puts "Error when calling PlatformModelApi->edit_merchant_balance_settings: #{e}"
|
|
362
|
+
end
|
|
363
|
+
```
|
|
364
|
+
|
|
365
|
+
#### Using the edit_merchant_balance_settings_with_http_info variant
|
|
366
|
+
|
|
367
|
+
This returns an Array which contains the response data, status code and headers.
|
|
368
|
+
|
|
369
|
+
> <Array(<MerchantBalance>, Integer, Hash)> edit_merchant_balance_settings_with_http_info(merchant_id, currency, edit_merchant_balance_settings_request)
|
|
370
|
+
|
|
371
|
+
```ruby
|
|
372
|
+
begin
|
|
373
|
+
# Balances: Edit Settings
|
|
374
|
+
data, status_code, headers = api_instance.edit_merchant_balance_settings_with_http_info(merchant_id, currency, edit_merchant_balance_settings_request)
|
|
375
|
+
p status_code # => 2xx
|
|
376
|
+
p headers # => { ... }
|
|
377
|
+
p data # => <MerchantBalance>
|
|
378
|
+
rescue Komoju::ApiError => e
|
|
379
|
+
puts "Error when calling PlatformModelApi->edit_merchant_balance_settings_with_http_info: #{e}"
|
|
380
|
+
end
|
|
381
|
+
```
|
|
382
|
+
|
|
383
|
+
### Parameters
|
|
384
|
+
|
|
385
|
+
| Name | Type | Description | Notes |
|
|
386
|
+
| ---- | ---- | ----------- | ----- |
|
|
387
|
+
| **merchant_id** | **String** | | |
|
|
388
|
+
| **currency** | [**Currency**](.md) | | |
|
|
389
|
+
| **edit_merchant_balance_settings_request** | [**EditMerchantBalanceSettingsRequest**](EditMerchantBalanceSettingsRequest.md) | | |
|
|
390
|
+
|
|
391
|
+
### Return type
|
|
392
|
+
|
|
393
|
+
[**MerchantBalance**](MerchantBalance.md)
|
|
394
|
+
|
|
395
|
+
### Authorization
|
|
396
|
+
|
|
397
|
+
[api_key](../README.md#api_key)
|
|
398
|
+
|
|
399
|
+
### HTTP request headers
|
|
400
|
+
|
|
401
|
+
- **Content-Type**: application/json
|
|
402
|
+
- **Accept**: application/json
|
|
403
|
+
|
|
404
|
+
|
|
405
|
+
## list_live_application_payment_methods
|
|
406
|
+
|
|
407
|
+
> <PaymentMethodsList> list_live_application_payment_methods(merchant_id, opts)
|
|
408
|
+
|
|
409
|
+
Live Application: Payment Methods
|
|
410
|
+
|
|
411
|
+
List submitted/unsubmitted payment methods
|
|
412
|
+
|
|
413
|
+
### Examples
|
|
414
|
+
|
|
415
|
+
```ruby
|
|
416
|
+
require 'time'
|
|
417
|
+
require 'komoju-sdk'
|
|
418
|
+
# setup authorization
|
|
419
|
+
Komoju.configure do |config|
|
|
420
|
+
# Configure your KOMOJU API key
|
|
421
|
+
config.api_key = 'YOUR_API_KEY'
|
|
422
|
+
end
|
|
423
|
+
|
|
424
|
+
api_instance = Komoju::PlatformModelApi.new
|
|
425
|
+
merchant_id = 'merchant_id_example' # String |
|
|
426
|
+
opts = {
|
|
427
|
+
locale: Komoju::Locale::JA # Locale |
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
begin
|
|
431
|
+
# Live Application: Payment Methods
|
|
432
|
+
result = api_instance.list_live_application_payment_methods(merchant_id, opts)
|
|
433
|
+
p result
|
|
434
|
+
rescue Komoju::ApiError => e
|
|
435
|
+
puts "Error when calling PlatformModelApi->list_live_application_payment_methods: #{e}"
|
|
436
|
+
end
|
|
437
|
+
```
|
|
438
|
+
|
|
439
|
+
#### Using the list_live_application_payment_methods_with_http_info variant
|
|
440
|
+
|
|
441
|
+
This returns an Array which contains the response data, status code and headers.
|
|
442
|
+
|
|
443
|
+
> <Array(<PaymentMethodsList>, Integer, Hash)> list_live_application_payment_methods_with_http_info(merchant_id, opts)
|
|
444
|
+
|
|
445
|
+
```ruby
|
|
446
|
+
begin
|
|
447
|
+
# Live Application: Payment Methods
|
|
448
|
+
data, status_code, headers = api_instance.list_live_application_payment_methods_with_http_info(merchant_id, opts)
|
|
449
|
+
p status_code # => 2xx
|
|
450
|
+
p headers # => { ... }
|
|
451
|
+
p data # => <PaymentMethodsList>
|
|
452
|
+
rescue Komoju::ApiError => e
|
|
453
|
+
puts "Error when calling PlatformModelApi->list_live_application_payment_methods_with_http_info: #{e}"
|
|
454
|
+
end
|
|
455
|
+
```
|
|
456
|
+
|
|
457
|
+
### Parameters
|
|
458
|
+
|
|
459
|
+
| Name | Type | Description | Notes |
|
|
460
|
+
| ---- | ---- | ----------- | ----- |
|
|
461
|
+
| **merchant_id** | **String** | | |
|
|
462
|
+
| **locale** | [**Locale**](.md) | | [optional] |
|
|
463
|
+
|
|
464
|
+
### Return type
|
|
465
|
+
|
|
466
|
+
[**PaymentMethodsList**](PaymentMethodsList.md)
|
|
467
|
+
|
|
468
|
+
### Authorization
|
|
469
|
+
|
|
470
|
+
[api_key](../README.md#api_key)
|
|
471
|
+
|
|
472
|
+
### HTTP request headers
|
|
473
|
+
|
|
474
|
+
- **Content-Type**: Not defined
|
|
475
|
+
- **Accept**: application/json
|
|
476
|
+
|
|
477
|
+
|
|
478
|
+
## list_merchants
|
|
479
|
+
|
|
480
|
+
> <SubmerchantsList> list_merchants(opts)
|
|
481
|
+
|
|
482
|
+
Merchant: List
|
|
483
|
+
|
|
484
|
+
Retrieves a paginated list of sub-merchants. Results can be filtered by `live` status, `platform_role`, account `status`, and whether payments or payouts are enabled.
|
|
485
|
+
|
|
486
|
+
### Examples
|
|
487
|
+
|
|
488
|
+
```ruby
|
|
489
|
+
require 'time'
|
|
490
|
+
require 'komoju-sdk'
|
|
491
|
+
# setup authorization
|
|
492
|
+
Komoju.configure do |config|
|
|
493
|
+
# Configure your KOMOJU API key
|
|
494
|
+
config.api_key = 'YOUR_API_KEY'
|
|
495
|
+
end
|
|
496
|
+
|
|
497
|
+
api_instance = Komoju::PlatformModelApi.new
|
|
498
|
+
opts = {
|
|
499
|
+
start_time: Time.parse('2013-10-20T19:20:30+01:00'), # Time | Query for records created after this time.
|
|
500
|
+
end_time: Time.parse('2013-10-20T19:20:30+01:00'), # Time | Query for records created before this time.
|
|
501
|
+
per_page: 56, # Integer | How many objects per page.
|
|
502
|
+
page: 56, # Integer | Page number to query for.
|
|
503
|
+
live: true, # Boolean |
|
|
504
|
+
platform_role: Komoju::MerchantRole::SELLER, # MerchantRole |
|
|
505
|
+
status: 'status_example', # String |
|
|
506
|
+
payments_enabled: true, # Boolean |
|
|
507
|
+
payouts_enabled: true # Boolean |
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
begin
|
|
511
|
+
# Merchant: List
|
|
512
|
+
result = api_instance.list_merchants(opts)
|
|
513
|
+
p result
|
|
514
|
+
rescue Komoju::ApiError => e
|
|
515
|
+
puts "Error when calling PlatformModelApi->list_merchants: #{e}"
|
|
516
|
+
end
|
|
517
|
+
```
|
|
518
|
+
|
|
519
|
+
#### Using the list_merchants_with_http_info variant
|
|
520
|
+
|
|
521
|
+
This returns an Array which contains the response data, status code and headers.
|
|
522
|
+
|
|
523
|
+
> <Array(<SubmerchantsList>, Integer, Hash)> list_merchants_with_http_info(opts)
|
|
524
|
+
|
|
525
|
+
```ruby
|
|
526
|
+
begin
|
|
527
|
+
# Merchant: List
|
|
528
|
+
data, status_code, headers = api_instance.list_merchants_with_http_info(opts)
|
|
529
|
+
p status_code # => 2xx
|
|
530
|
+
p headers # => { ... }
|
|
531
|
+
p data # => <SubmerchantsList>
|
|
532
|
+
rescue Komoju::ApiError => e
|
|
533
|
+
puts "Error when calling PlatformModelApi->list_merchants_with_http_info: #{e}"
|
|
534
|
+
end
|
|
535
|
+
```
|
|
536
|
+
|
|
537
|
+
### Parameters
|
|
538
|
+
|
|
539
|
+
| Name | Type | Description | Notes |
|
|
540
|
+
| ---- | ---- | ----------- | ----- |
|
|
541
|
+
| **start_time** | **Time** | Query for records created after this time. | [optional] |
|
|
542
|
+
| **end_time** | **Time** | Query for records created before this time. | [optional] |
|
|
543
|
+
| **per_page** | **Integer** | How many objects per page. | [optional] |
|
|
544
|
+
| **page** | **Integer** | Page number to query for. | [optional] |
|
|
545
|
+
| **live** | **Boolean** | | [optional] |
|
|
546
|
+
| **platform_role** | [**MerchantRole**](.md) | | [optional] |
|
|
547
|
+
| **status** | **String** | | [optional] |
|
|
548
|
+
| **payments_enabled** | **Boolean** | | [optional] |
|
|
549
|
+
| **payouts_enabled** | **Boolean** | | [optional] |
|
|
550
|
+
|
|
551
|
+
### Return type
|
|
552
|
+
|
|
553
|
+
[**SubmerchantsList**](SubmerchantsList.md)
|
|
554
|
+
|
|
555
|
+
### Authorization
|
|
556
|
+
|
|
557
|
+
[api_key](../README.md#api_key)
|
|
558
|
+
|
|
559
|
+
### HTTP request headers
|
|
560
|
+
|
|
561
|
+
- **Content-Type**: Not defined
|
|
562
|
+
- **Accept**: application/json
|
|
563
|
+
|
|
564
|
+
|
|
565
|
+
## list_submerchant_payments
|
|
566
|
+
|
|
567
|
+
> <PlatformMerchantPaymentList> list_submerchant_payments(merchant_id, opts)
|
|
568
|
+
|
|
569
|
+
Payment: List for Merchant
|
|
570
|
+
|
|
571
|
+
Retrieves a paginated list of payments. Pagination can be configured with `page` and `per_page` parameters. Payments can be filtered by `currency`, `external_order_num`, and `status`. A time range can be specified with `start_time`, and `end_time`.
|
|
572
|
+
|
|
573
|
+
### Examples
|
|
574
|
+
|
|
575
|
+
```ruby
|
|
576
|
+
require 'time'
|
|
577
|
+
require 'komoju-sdk'
|
|
578
|
+
# setup authorization
|
|
579
|
+
Komoju.configure do |config|
|
|
580
|
+
# Configure your KOMOJU API key
|
|
581
|
+
config.api_key = 'YOUR_API_KEY'
|
|
582
|
+
end
|
|
583
|
+
|
|
584
|
+
api_instance = Komoju::PlatformModelApi.new
|
|
585
|
+
merchant_id = 'merchant_id_example' # String |
|
|
586
|
+
opts = {
|
|
587
|
+
start_time: Time.parse('2013-10-20T19:20:30+01:00'), # Time | Query for records created after this time.
|
|
588
|
+
end_time: Time.parse('2013-10-20T19:20:30+01:00'), # Time | Query for records created before this time.
|
|
589
|
+
per_page: 56, # Integer | How many objects per page.
|
|
590
|
+
page: 56, # Integer | Page number to query for.
|
|
591
|
+
currency: Komoju::Currency::JPY, # Currency |
|
|
592
|
+
external_order_num: 'external_order_num_example', # String |
|
|
593
|
+
status: Komoju::PaymentStatus::PENDING # PaymentStatus |
|
|
594
|
+
}
|
|
595
|
+
|
|
596
|
+
begin
|
|
597
|
+
# Payment: List for Merchant
|
|
598
|
+
result = api_instance.list_submerchant_payments(merchant_id, opts)
|
|
599
|
+
p result
|
|
600
|
+
rescue Komoju::ApiError => e
|
|
601
|
+
puts "Error when calling PlatformModelApi->list_submerchant_payments: #{e}"
|
|
602
|
+
end
|
|
603
|
+
```
|
|
604
|
+
|
|
605
|
+
#### Using the list_submerchant_payments_with_http_info variant
|
|
606
|
+
|
|
607
|
+
This returns an Array which contains the response data, status code and headers.
|
|
608
|
+
|
|
609
|
+
> <Array(<PlatformMerchantPaymentList>, Integer, Hash)> list_submerchant_payments_with_http_info(merchant_id, opts)
|
|
610
|
+
|
|
611
|
+
```ruby
|
|
612
|
+
begin
|
|
613
|
+
# Payment: List for Merchant
|
|
614
|
+
data, status_code, headers = api_instance.list_submerchant_payments_with_http_info(merchant_id, opts)
|
|
615
|
+
p status_code # => 2xx
|
|
616
|
+
p headers # => { ... }
|
|
617
|
+
p data # => <PlatformMerchantPaymentList>
|
|
618
|
+
rescue Komoju::ApiError => e
|
|
619
|
+
puts "Error when calling PlatformModelApi->list_submerchant_payments_with_http_info: #{e}"
|
|
620
|
+
end
|
|
621
|
+
```
|
|
622
|
+
|
|
623
|
+
### Parameters
|
|
624
|
+
|
|
625
|
+
| Name | Type | Description | Notes |
|
|
626
|
+
| ---- | ---- | ----------- | ----- |
|
|
627
|
+
| **merchant_id** | **String** | | |
|
|
628
|
+
| **start_time** | **Time** | Query for records created after this time. | [optional] |
|
|
629
|
+
| **end_time** | **Time** | Query for records created before this time. | [optional] |
|
|
630
|
+
| **per_page** | **Integer** | How many objects per page. | [optional] |
|
|
631
|
+
| **page** | **Integer** | Page number to query for. | [optional] |
|
|
632
|
+
| **currency** | [**Currency**](.md) | | [optional] |
|
|
633
|
+
| **external_order_num** | **String** | | [optional] |
|
|
634
|
+
| **status** | [**PaymentStatus**](.md) | | [optional] |
|
|
635
|
+
|
|
636
|
+
### Return type
|
|
637
|
+
|
|
638
|
+
[**PlatformMerchantPaymentList**](PlatformMerchantPaymentList.md)
|
|
639
|
+
|
|
640
|
+
### Authorization
|
|
641
|
+
|
|
642
|
+
[api_key](../README.md#api_key)
|
|
643
|
+
|
|
644
|
+
### HTTP request headers
|
|
645
|
+
|
|
646
|
+
- **Content-Type**: Not defined
|
|
647
|
+
- **Accept**: application/json
|
|
648
|
+
|
|
649
|
+
|
|
650
|
+
## list_submerchant_settlements
|
|
651
|
+
|
|
652
|
+
> <SettlementList> list_submerchant_settlements(merchant_id)
|
|
653
|
+
|
|
654
|
+
Settlement: List
|
|
655
|
+
|
|
656
|
+
Lists out past settlements from most-recent to least-recent.
|
|
657
|
+
|
|
658
|
+
### Examples
|
|
659
|
+
|
|
660
|
+
```ruby
|
|
661
|
+
require 'time'
|
|
662
|
+
require 'komoju-sdk'
|
|
663
|
+
# setup authorization
|
|
664
|
+
Komoju.configure do |config|
|
|
665
|
+
# Configure your KOMOJU API key
|
|
666
|
+
config.api_key = 'YOUR_API_KEY'
|
|
667
|
+
end
|
|
668
|
+
|
|
669
|
+
api_instance = Komoju::PlatformModelApi.new
|
|
670
|
+
merchant_id = 'merchant_id_example' # String |
|
|
671
|
+
|
|
672
|
+
begin
|
|
673
|
+
# Settlement: List
|
|
674
|
+
result = api_instance.list_submerchant_settlements(merchant_id)
|
|
675
|
+
p result
|
|
676
|
+
rescue Komoju::ApiError => e
|
|
677
|
+
puts "Error when calling PlatformModelApi->list_submerchant_settlements: #{e}"
|
|
678
|
+
end
|
|
679
|
+
```
|
|
680
|
+
|
|
681
|
+
#### Using the list_submerchant_settlements_with_http_info variant
|
|
682
|
+
|
|
683
|
+
This returns an Array which contains the response data, status code and headers.
|
|
684
|
+
|
|
685
|
+
> <Array(<SettlementList>, Integer, Hash)> list_submerchant_settlements_with_http_info(merchant_id)
|
|
686
|
+
|
|
687
|
+
```ruby
|
|
688
|
+
begin
|
|
689
|
+
# Settlement: List
|
|
690
|
+
data, status_code, headers = api_instance.list_submerchant_settlements_with_http_info(merchant_id)
|
|
691
|
+
p status_code # => 2xx
|
|
692
|
+
p headers # => { ... }
|
|
693
|
+
p data # => <SettlementList>
|
|
694
|
+
rescue Komoju::ApiError => e
|
|
695
|
+
puts "Error when calling PlatformModelApi->list_submerchant_settlements_with_http_info: #{e}"
|
|
696
|
+
end
|
|
697
|
+
```
|
|
698
|
+
|
|
699
|
+
### Parameters
|
|
700
|
+
|
|
701
|
+
| Name | Type | Description | Notes |
|
|
702
|
+
| ---- | ---- | ----------- | ----- |
|
|
703
|
+
| **merchant_id** | **String** | | |
|
|
704
|
+
|
|
705
|
+
### Return type
|
|
706
|
+
|
|
707
|
+
[**SettlementList**](SettlementList.md)
|
|
708
|
+
|
|
709
|
+
### Authorization
|
|
710
|
+
|
|
711
|
+
[api_key](../README.md#api_key)
|
|
712
|
+
|
|
713
|
+
### HTTP request headers
|
|
714
|
+
|
|
715
|
+
- **Content-Type**: Not defined
|
|
716
|
+
- **Accept**: application/json
|
|
717
|
+
|
|
718
|
+
|
|
719
|
+
## merchant_balance_transactions
|
|
720
|
+
|
|
721
|
+
> <BalanceTransactionList> merchant_balance_transactions(merchant_id, currency, opts)
|
|
722
|
+
|
|
723
|
+
Balance: Transactions
|
|
724
|
+
|
|
725
|
+
Given a currency, view the ledger transactions of the currently authenticated merchant or one of its sub-merchants. Will split ledger transactions into line items when appropriate.
|
|
726
|
+
|
|
727
|
+
### Examples
|
|
728
|
+
|
|
729
|
+
```ruby
|
|
730
|
+
require 'time'
|
|
731
|
+
require 'komoju-sdk'
|
|
732
|
+
# setup authorization
|
|
733
|
+
Komoju.configure do |config|
|
|
734
|
+
# Configure your KOMOJU API key
|
|
735
|
+
config.api_key = 'YOUR_API_KEY'
|
|
736
|
+
end
|
|
737
|
+
|
|
738
|
+
api_instance = Komoju::PlatformModelApi.new
|
|
739
|
+
merchant_id = 'merchant_id_example' # String |
|
|
740
|
+
currency = Komoju::Currency::JPY # Currency |
|
|
741
|
+
opts = {
|
|
742
|
+
start_time: Time.parse('2013-10-20T19:20:30+01:00'), # Time | Query for records created after this time.
|
|
743
|
+
end_time: Time.parse('2013-10-20T19:20:30+01:00'), # Time | Query for records created before this time.
|
|
744
|
+
per_page: 56, # Integer | How many objects per page.
|
|
745
|
+
page: 56, # Integer | Page number to query for.
|
|
746
|
+
type: 'type_example' # String |
|
|
747
|
+
}
|
|
748
|
+
|
|
749
|
+
begin
|
|
750
|
+
# Balance: Transactions
|
|
751
|
+
result = api_instance.merchant_balance_transactions(merchant_id, currency, opts)
|
|
752
|
+
p result
|
|
753
|
+
rescue Komoju::ApiError => e
|
|
754
|
+
puts "Error when calling PlatformModelApi->merchant_balance_transactions: #{e}"
|
|
755
|
+
end
|
|
756
|
+
```
|
|
757
|
+
|
|
758
|
+
#### Using the merchant_balance_transactions_with_http_info variant
|
|
759
|
+
|
|
760
|
+
This returns an Array which contains the response data, status code and headers.
|
|
761
|
+
|
|
762
|
+
> <Array(<BalanceTransactionList>, Integer, Hash)> merchant_balance_transactions_with_http_info(merchant_id, currency, opts)
|
|
763
|
+
|
|
764
|
+
```ruby
|
|
765
|
+
begin
|
|
766
|
+
# Balance: Transactions
|
|
767
|
+
data, status_code, headers = api_instance.merchant_balance_transactions_with_http_info(merchant_id, currency, opts)
|
|
768
|
+
p status_code # => 2xx
|
|
769
|
+
p headers # => { ... }
|
|
770
|
+
p data # => <BalanceTransactionList>
|
|
771
|
+
rescue Komoju::ApiError => e
|
|
772
|
+
puts "Error when calling PlatformModelApi->merchant_balance_transactions_with_http_info: #{e}"
|
|
773
|
+
end
|
|
774
|
+
```
|
|
775
|
+
|
|
776
|
+
### Parameters
|
|
777
|
+
|
|
778
|
+
| Name | Type | Description | Notes |
|
|
779
|
+
| ---- | ---- | ----------- | ----- |
|
|
780
|
+
| **merchant_id** | **String** | | |
|
|
781
|
+
| **currency** | [**Currency**](.md) | | |
|
|
782
|
+
| **start_time** | **Time** | Query for records created after this time. | [optional] |
|
|
783
|
+
| **end_time** | **Time** | Query for records created before this time. | [optional] |
|
|
784
|
+
| **per_page** | **Integer** | How many objects per page. | [optional] |
|
|
785
|
+
| **page** | **Integer** | Page number to query for. | [optional] |
|
|
786
|
+
| **type** | **String** | | [optional] |
|
|
787
|
+
|
|
788
|
+
### Return type
|
|
789
|
+
|
|
790
|
+
[**BalanceTransactionList**](BalanceTransactionList.md)
|
|
791
|
+
|
|
792
|
+
### Authorization
|
|
793
|
+
|
|
794
|
+
[api_key](../README.md#api_key)
|
|
795
|
+
|
|
796
|
+
### HTTP request headers
|
|
797
|
+
|
|
798
|
+
- **Content-Type**: Not defined
|
|
799
|
+
- **Accept**: application/json
|
|
800
|
+
|
|
801
|
+
|
|
802
|
+
## show_file
|
|
803
|
+
|
|
804
|
+
> <MerchantFile> show_file(merchant_id, id)
|
|
805
|
+
|
|
806
|
+
File: Show
|
|
807
|
+
|
|
808
|
+
Retrieves an existing file of the current merchant.
|
|
809
|
+
|
|
810
|
+
### Examples
|
|
811
|
+
|
|
812
|
+
```ruby
|
|
813
|
+
require 'time'
|
|
814
|
+
require 'komoju-sdk'
|
|
815
|
+
# setup authorization
|
|
816
|
+
Komoju.configure do |config|
|
|
817
|
+
# Configure your KOMOJU API key
|
|
818
|
+
config.api_key = 'YOUR_API_KEY'
|
|
819
|
+
end
|
|
820
|
+
|
|
821
|
+
api_instance = Komoju::PlatformModelApi.new
|
|
822
|
+
merchant_id = 'merchant_id_example' # String |
|
|
823
|
+
id = 'id_example' # String |
|
|
824
|
+
|
|
825
|
+
begin
|
|
826
|
+
# File: Show
|
|
827
|
+
result = api_instance.show_file(merchant_id, id)
|
|
828
|
+
p result
|
|
829
|
+
rescue Komoju::ApiError => e
|
|
830
|
+
puts "Error when calling PlatformModelApi->show_file: #{e}"
|
|
831
|
+
end
|
|
832
|
+
```
|
|
833
|
+
|
|
834
|
+
#### Using the show_file_with_http_info variant
|
|
835
|
+
|
|
836
|
+
This returns an Array which contains the response data, status code and headers.
|
|
837
|
+
|
|
838
|
+
> <Array(<MerchantFile>, Integer, Hash)> show_file_with_http_info(merchant_id, id)
|
|
839
|
+
|
|
840
|
+
```ruby
|
|
841
|
+
begin
|
|
842
|
+
# File: Show
|
|
843
|
+
data, status_code, headers = api_instance.show_file_with_http_info(merchant_id, id)
|
|
844
|
+
p status_code # => 2xx
|
|
845
|
+
p headers # => { ... }
|
|
846
|
+
p data # => <MerchantFile>
|
|
847
|
+
rescue Komoju::ApiError => e
|
|
848
|
+
puts "Error when calling PlatformModelApi->show_file_with_http_info: #{e}"
|
|
849
|
+
end
|
|
850
|
+
```
|
|
851
|
+
|
|
852
|
+
### Parameters
|
|
853
|
+
|
|
854
|
+
| Name | Type | Description | Notes |
|
|
855
|
+
| ---- | ---- | ----------- | ----- |
|
|
856
|
+
| **merchant_id** | **String** | | |
|
|
857
|
+
| **id** | **String** | | |
|
|
858
|
+
|
|
859
|
+
### Return type
|
|
860
|
+
|
|
861
|
+
[**MerchantFile**](MerchantFile.md)
|
|
862
|
+
|
|
863
|
+
### Authorization
|
|
864
|
+
|
|
865
|
+
[api_key](../README.md#api_key)
|
|
866
|
+
|
|
867
|
+
### HTTP request headers
|
|
868
|
+
|
|
869
|
+
- **Content-Type**: Not defined
|
|
870
|
+
- **Accept**: application/json
|
|
871
|
+
|
|
872
|
+
|
|
873
|
+
## show_live_application
|
|
874
|
+
|
|
875
|
+
> <LiveApplicationWithSubmittedFields> show_live_application(merchant_id, opts)
|
|
876
|
+
|
|
877
|
+
Live Application: Show
|
|
878
|
+
|
|
879
|
+
Shows the live application status of the applicant merchant
|
|
880
|
+
|
|
881
|
+
### Examples
|
|
882
|
+
|
|
883
|
+
```ruby
|
|
884
|
+
require 'time'
|
|
885
|
+
require 'komoju-sdk'
|
|
886
|
+
# setup authorization
|
|
887
|
+
Komoju.configure do |config|
|
|
888
|
+
# Configure your KOMOJU API key
|
|
889
|
+
config.api_key = 'YOUR_API_KEY'
|
|
890
|
+
end
|
|
891
|
+
|
|
892
|
+
api_instance = Komoju::PlatformModelApi.new
|
|
893
|
+
merchant_id = 'merchant_id_example' # String |
|
|
894
|
+
opts = {
|
|
895
|
+
locale: Komoju::Locale::JA # Locale |
|
|
896
|
+
}
|
|
897
|
+
|
|
898
|
+
begin
|
|
899
|
+
# Live Application: Show
|
|
900
|
+
result = api_instance.show_live_application(merchant_id, opts)
|
|
901
|
+
p result
|
|
902
|
+
rescue Komoju::ApiError => e
|
|
903
|
+
puts "Error when calling PlatformModelApi->show_live_application: #{e}"
|
|
904
|
+
end
|
|
905
|
+
```
|
|
906
|
+
|
|
907
|
+
#### Using the show_live_application_with_http_info variant
|
|
908
|
+
|
|
909
|
+
This returns an Array which contains the response data, status code and headers.
|
|
910
|
+
|
|
911
|
+
> <Array(<LiveApplicationWithSubmittedFields>, Integer, Hash)> show_live_application_with_http_info(merchant_id, opts)
|
|
912
|
+
|
|
913
|
+
```ruby
|
|
914
|
+
begin
|
|
915
|
+
# Live Application: Show
|
|
916
|
+
data, status_code, headers = api_instance.show_live_application_with_http_info(merchant_id, opts)
|
|
917
|
+
p status_code # => 2xx
|
|
918
|
+
p headers # => { ... }
|
|
919
|
+
p data # => <LiveApplicationWithSubmittedFields>
|
|
920
|
+
rescue Komoju::ApiError => e
|
|
921
|
+
puts "Error when calling PlatformModelApi->show_live_application_with_http_info: #{e}"
|
|
922
|
+
end
|
|
923
|
+
```
|
|
924
|
+
|
|
925
|
+
### Parameters
|
|
926
|
+
|
|
927
|
+
| Name | Type | Description | Notes |
|
|
928
|
+
| ---- | ---- | ----------- | ----- |
|
|
929
|
+
| **merchant_id** | **String** | | |
|
|
930
|
+
| **locale** | [**Locale**](.md) | | [optional] |
|
|
931
|
+
|
|
932
|
+
### Return type
|
|
933
|
+
|
|
934
|
+
[**LiveApplicationWithSubmittedFields**](LiveApplicationWithSubmittedFields.md)
|
|
935
|
+
|
|
936
|
+
### Authorization
|
|
937
|
+
|
|
938
|
+
[api_key](../README.md#api_key)
|
|
939
|
+
|
|
940
|
+
### HTTP request headers
|
|
941
|
+
|
|
942
|
+
- **Content-Type**: Not defined
|
|
943
|
+
- **Accept**: application/json
|
|
944
|
+
|
|
945
|
+
|
|
946
|
+
## show_live_application_payment_method
|
|
947
|
+
|
|
948
|
+
> <LiveApplicationWithSubmittedFields> show_live_application_payment_method(merchant_id, payment_method, opts)
|
|
949
|
+
|
|
950
|
+
Live Application: Show Payment Method
|
|
951
|
+
|
|
952
|
+
Shows the payment method status of the applicant merchant
|
|
953
|
+
|
|
954
|
+
### Examples
|
|
955
|
+
|
|
956
|
+
```ruby
|
|
957
|
+
require 'time'
|
|
958
|
+
require 'komoju-sdk'
|
|
959
|
+
# setup authorization
|
|
960
|
+
Komoju.configure do |config|
|
|
961
|
+
# Configure your KOMOJU API key
|
|
962
|
+
config.api_key = 'YOUR_API_KEY'
|
|
963
|
+
end
|
|
964
|
+
|
|
965
|
+
api_instance = Komoju::PlatformModelApi.new
|
|
966
|
+
merchant_id = 'merchant_id_example' # String |
|
|
967
|
+
payment_method = 'payment_method_example' # String |
|
|
968
|
+
opts = {
|
|
969
|
+
locale: Komoju::Locale::JA # Locale |
|
|
970
|
+
}
|
|
971
|
+
|
|
972
|
+
begin
|
|
973
|
+
# Live Application: Show Payment Method
|
|
974
|
+
result = api_instance.show_live_application_payment_method(merchant_id, payment_method, opts)
|
|
975
|
+
p result
|
|
976
|
+
rescue Komoju::ApiError => e
|
|
977
|
+
puts "Error when calling PlatformModelApi->show_live_application_payment_method: #{e}"
|
|
978
|
+
end
|
|
979
|
+
```
|
|
980
|
+
|
|
981
|
+
#### Using the show_live_application_payment_method_with_http_info variant
|
|
982
|
+
|
|
983
|
+
This returns an Array which contains the response data, status code and headers.
|
|
984
|
+
|
|
985
|
+
> <Array(<LiveApplicationWithSubmittedFields>, Integer, Hash)> show_live_application_payment_method_with_http_info(merchant_id, payment_method, opts)
|
|
986
|
+
|
|
987
|
+
```ruby
|
|
988
|
+
begin
|
|
989
|
+
# Live Application: Show Payment Method
|
|
990
|
+
data, status_code, headers = api_instance.show_live_application_payment_method_with_http_info(merchant_id, payment_method, opts)
|
|
991
|
+
p status_code # => 2xx
|
|
992
|
+
p headers # => { ... }
|
|
993
|
+
p data # => <LiveApplicationWithSubmittedFields>
|
|
994
|
+
rescue Komoju::ApiError => e
|
|
995
|
+
puts "Error when calling PlatformModelApi->show_live_application_payment_method_with_http_info: #{e}"
|
|
996
|
+
end
|
|
997
|
+
```
|
|
998
|
+
|
|
999
|
+
### Parameters
|
|
1000
|
+
|
|
1001
|
+
| Name | Type | Description | Notes |
|
|
1002
|
+
| ---- | ---- | ----------- | ----- |
|
|
1003
|
+
| **merchant_id** | **String** | | |
|
|
1004
|
+
| **payment_method** | **String** | | |
|
|
1005
|
+
| **locale** | [**Locale**](.md) | | [optional] |
|
|
1006
|
+
|
|
1007
|
+
### Return type
|
|
1008
|
+
|
|
1009
|
+
[**LiveApplicationWithSubmittedFields**](LiveApplicationWithSubmittedFields.md)
|
|
1010
|
+
|
|
1011
|
+
### Authorization
|
|
1012
|
+
|
|
1013
|
+
[api_key](../README.md#api_key)
|
|
1014
|
+
|
|
1015
|
+
### HTTP request headers
|
|
1016
|
+
|
|
1017
|
+
- **Content-Type**: Not defined
|
|
1018
|
+
- **Accept**: application/json
|
|
1019
|
+
|
|
1020
|
+
|
|
1021
|
+
## show_merchant
|
|
1022
|
+
|
|
1023
|
+
> <SerializedSubmerchant> show_merchant(id)
|
|
1024
|
+
|
|
1025
|
+
Merchant: Show
|
|
1026
|
+
|
|
1027
|
+
Retrieves the details of a sub-merchant by its `id`, including account settings, payout configuration, and live status.
|
|
1028
|
+
|
|
1029
|
+
### Examples
|
|
1030
|
+
|
|
1031
|
+
```ruby
|
|
1032
|
+
require 'time'
|
|
1033
|
+
require 'komoju-sdk'
|
|
1034
|
+
# setup authorization
|
|
1035
|
+
Komoju.configure do |config|
|
|
1036
|
+
# Configure your KOMOJU API key
|
|
1037
|
+
config.api_key = 'YOUR_API_KEY'
|
|
1038
|
+
end
|
|
1039
|
+
|
|
1040
|
+
api_instance = Komoju::PlatformModelApi.new
|
|
1041
|
+
id = 'id_example' # String |
|
|
1042
|
+
|
|
1043
|
+
begin
|
|
1044
|
+
# Merchant: Show
|
|
1045
|
+
result = api_instance.show_merchant(id)
|
|
1046
|
+
p result
|
|
1047
|
+
rescue Komoju::ApiError => e
|
|
1048
|
+
puts "Error when calling PlatformModelApi->show_merchant: #{e}"
|
|
1049
|
+
end
|
|
1050
|
+
```
|
|
1051
|
+
|
|
1052
|
+
#### Using the show_merchant_with_http_info variant
|
|
1053
|
+
|
|
1054
|
+
This returns an Array which contains the response data, status code and headers.
|
|
1055
|
+
|
|
1056
|
+
> <Array(<SerializedSubmerchant>, Integer, Hash)> show_merchant_with_http_info(id)
|
|
1057
|
+
|
|
1058
|
+
```ruby
|
|
1059
|
+
begin
|
|
1060
|
+
# Merchant: Show
|
|
1061
|
+
data, status_code, headers = api_instance.show_merchant_with_http_info(id)
|
|
1062
|
+
p status_code # => 2xx
|
|
1063
|
+
p headers # => { ... }
|
|
1064
|
+
p data # => <SerializedSubmerchant>
|
|
1065
|
+
rescue Komoju::ApiError => e
|
|
1066
|
+
puts "Error when calling PlatformModelApi->show_merchant_with_http_info: #{e}"
|
|
1067
|
+
end
|
|
1068
|
+
```
|
|
1069
|
+
|
|
1070
|
+
### Parameters
|
|
1071
|
+
|
|
1072
|
+
| Name | Type | Description | Notes |
|
|
1073
|
+
| ---- | ---- | ----------- | ----- |
|
|
1074
|
+
| **id** | **String** | | |
|
|
1075
|
+
|
|
1076
|
+
### Return type
|
|
1077
|
+
|
|
1078
|
+
[**SerializedSubmerchant**](SerializedSubmerchant.md)
|
|
1079
|
+
|
|
1080
|
+
### Authorization
|
|
1081
|
+
|
|
1082
|
+
[api_key](../README.md#api_key)
|
|
1083
|
+
|
|
1084
|
+
### HTTP request headers
|
|
1085
|
+
|
|
1086
|
+
- **Content-Type**: Not defined
|
|
1087
|
+
- **Accept**: application/json
|
|
1088
|
+
|
|
1089
|
+
|
|
1090
|
+
## show_merchant_balance
|
|
1091
|
+
|
|
1092
|
+
> <BalanceShow> show_merchant_balance(merchant_id, currency)
|
|
1093
|
+
|
|
1094
|
+
Balance: Show
|
|
1095
|
+
|
|
1096
|
+
Given a currency, view the unsettled balance of the currently authenticated merchant or one of its sub-merchants.
|
|
1097
|
+
|
|
1098
|
+
### Examples
|
|
1099
|
+
|
|
1100
|
+
```ruby
|
|
1101
|
+
require 'time'
|
|
1102
|
+
require 'komoju-sdk'
|
|
1103
|
+
# setup authorization
|
|
1104
|
+
Komoju.configure do |config|
|
|
1105
|
+
# Configure your KOMOJU API key
|
|
1106
|
+
config.api_key = 'YOUR_API_KEY'
|
|
1107
|
+
end
|
|
1108
|
+
|
|
1109
|
+
api_instance = Komoju::PlatformModelApi.new
|
|
1110
|
+
merchant_id = 'merchant_id_example' # String |
|
|
1111
|
+
currency = Komoju::Currency::JPY # Currency |
|
|
1112
|
+
|
|
1113
|
+
begin
|
|
1114
|
+
# Balance: Show
|
|
1115
|
+
result = api_instance.show_merchant_balance(merchant_id, currency)
|
|
1116
|
+
p result
|
|
1117
|
+
rescue Komoju::ApiError => e
|
|
1118
|
+
puts "Error when calling PlatformModelApi->show_merchant_balance: #{e}"
|
|
1119
|
+
end
|
|
1120
|
+
```
|
|
1121
|
+
|
|
1122
|
+
#### Using the show_merchant_balance_with_http_info variant
|
|
1123
|
+
|
|
1124
|
+
This returns an Array which contains the response data, status code and headers.
|
|
1125
|
+
|
|
1126
|
+
> <Array(<BalanceShow>, Integer, Hash)> show_merchant_balance_with_http_info(merchant_id, currency)
|
|
1127
|
+
|
|
1128
|
+
```ruby
|
|
1129
|
+
begin
|
|
1130
|
+
# Balance: Show
|
|
1131
|
+
data, status_code, headers = api_instance.show_merchant_balance_with_http_info(merchant_id, currency)
|
|
1132
|
+
p status_code # => 2xx
|
|
1133
|
+
p headers # => { ... }
|
|
1134
|
+
p data # => <BalanceShow>
|
|
1135
|
+
rescue Komoju::ApiError => e
|
|
1136
|
+
puts "Error when calling PlatformModelApi->show_merchant_balance_with_http_info: #{e}"
|
|
1137
|
+
end
|
|
1138
|
+
```
|
|
1139
|
+
|
|
1140
|
+
### Parameters
|
|
1141
|
+
|
|
1142
|
+
| Name | Type | Description | Notes |
|
|
1143
|
+
| ---- | ---- | ----------- | ----- |
|
|
1144
|
+
| **merchant_id** | **String** | | |
|
|
1145
|
+
| **currency** | [**Currency**](.md) | | |
|
|
1146
|
+
|
|
1147
|
+
### Return type
|
|
1148
|
+
|
|
1149
|
+
[**BalanceShow**](BalanceShow.md)
|
|
1150
|
+
|
|
1151
|
+
### Authorization
|
|
1152
|
+
|
|
1153
|
+
[api_key](../README.md#api_key)
|
|
1154
|
+
|
|
1155
|
+
### HTTP request headers
|
|
1156
|
+
|
|
1157
|
+
- **Content-Type**: Not defined
|
|
1158
|
+
- **Accept**: application/json
|
|
1159
|
+
|
|
1160
|
+
|
|
1161
|
+
## show_merchant_balance_settings
|
|
1162
|
+
|
|
1163
|
+
> <BalanceSettings> show_merchant_balance_settings(merchant_id, currency)
|
|
1164
|
+
|
|
1165
|
+
Balance: Show Settings
|
|
1166
|
+
|
|
1167
|
+
Given a currency, view the payout settings of the currently authenticated merchant or one of its sub-merchants.
|
|
1168
|
+
|
|
1169
|
+
### Examples
|
|
1170
|
+
|
|
1171
|
+
```ruby
|
|
1172
|
+
require 'time'
|
|
1173
|
+
require 'komoju-sdk'
|
|
1174
|
+
# setup authorization
|
|
1175
|
+
Komoju.configure do |config|
|
|
1176
|
+
# Configure your KOMOJU API key
|
|
1177
|
+
config.api_key = 'YOUR_API_KEY'
|
|
1178
|
+
end
|
|
1179
|
+
|
|
1180
|
+
api_instance = Komoju::PlatformModelApi.new
|
|
1181
|
+
merchant_id = 'merchant_id_example' # String |
|
|
1182
|
+
currency = Komoju::Currency::JPY # Currency |
|
|
1183
|
+
|
|
1184
|
+
begin
|
|
1185
|
+
# Balance: Show Settings
|
|
1186
|
+
result = api_instance.show_merchant_balance_settings(merchant_id, currency)
|
|
1187
|
+
p result
|
|
1188
|
+
rescue Komoju::ApiError => e
|
|
1189
|
+
puts "Error when calling PlatformModelApi->show_merchant_balance_settings: #{e}"
|
|
1190
|
+
end
|
|
1191
|
+
```
|
|
1192
|
+
|
|
1193
|
+
#### Using the show_merchant_balance_settings_with_http_info variant
|
|
1194
|
+
|
|
1195
|
+
This returns an Array which contains the response data, status code and headers.
|
|
1196
|
+
|
|
1197
|
+
> <Array(<BalanceSettings>, Integer, Hash)> show_merchant_balance_settings_with_http_info(merchant_id, currency)
|
|
1198
|
+
|
|
1199
|
+
```ruby
|
|
1200
|
+
begin
|
|
1201
|
+
# Balance: Show Settings
|
|
1202
|
+
data, status_code, headers = api_instance.show_merchant_balance_settings_with_http_info(merchant_id, currency)
|
|
1203
|
+
p status_code # => 2xx
|
|
1204
|
+
p headers # => { ... }
|
|
1205
|
+
p data # => <BalanceSettings>
|
|
1206
|
+
rescue Komoju::ApiError => e
|
|
1207
|
+
puts "Error when calling PlatformModelApi->show_merchant_balance_settings_with_http_info: #{e}"
|
|
1208
|
+
end
|
|
1209
|
+
```
|
|
1210
|
+
|
|
1211
|
+
### Parameters
|
|
1212
|
+
|
|
1213
|
+
| Name | Type | Description | Notes |
|
|
1214
|
+
| ---- | ---- | ----------- | ----- |
|
|
1215
|
+
| **merchant_id** | **String** | | |
|
|
1216
|
+
| **currency** | [**Currency**](.md) | | |
|
|
1217
|
+
|
|
1218
|
+
### Return type
|
|
1219
|
+
|
|
1220
|
+
[**BalanceSettings**](BalanceSettings.md)
|
|
1221
|
+
|
|
1222
|
+
### Authorization
|
|
1223
|
+
|
|
1224
|
+
[api_key](../README.md#api_key)
|
|
1225
|
+
|
|
1226
|
+
### HTTP request headers
|
|
1227
|
+
|
|
1228
|
+
- **Content-Type**: Not defined
|
|
1229
|
+
- **Accept**: application/json
|
|
1230
|
+
|
|
1231
|
+
|
|
1232
|
+
## show_merchant_balance_transaction
|
|
1233
|
+
|
|
1234
|
+
> <Array<Transaction>> show_merchant_balance_transaction(merchant_id, currency, transaction_uuid)
|
|
1235
|
+
|
|
1236
|
+
Balance: Transaction
|
|
1237
|
+
|
|
1238
|
+
Given a currency and a transaction UUID, view the corresponding ledger transaction of the currently authenticated merchant or one of its sub-merchants. Will return one entry per line item of the transaction.
|
|
1239
|
+
|
|
1240
|
+
### Examples
|
|
1241
|
+
|
|
1242
|
+
```ruby
|
|
1243
|
+
require 'time'
|
|
1244
|
+
require 'komoju-sdk'
|
|
1245
|
+
# setup authorization
|
|
1246
|
+
Komoju.configure do |config|
|
|
1247
|
+
# Configure your KOMOJU API key
|
|
1248
|
+
config.api_key = 'YOUR_API_KEY'
|
|
1249
|
+
end
|
|
1250
|
+
|
|
1251
|
+
api_instance = Komoju::PlatformModelApi.new
|
|
1252
|
+
merchant_id = 'merchant_id_example' # String |
|
|
1253
|
+
currency = Komoju::Currency::JPY # Currency |
|
|
1254
|
+
transaction_uuid = 'transaction_uuid_example' # String |
|
|
1255
|
+
|
|
1256
|
+
begin
|
|
1257
|
+
# Balance: Transaction
|
|
1258
|
+
result = api_instance.show_merchant_balance_transaction(merchant_id, currency, transaction_uuid)
|
|
1259
|
+
p result
|
|
1260
|
+
rescue Komoju::ApiError => e
|
|
1261
|
+
puts "Error when calling PlatformModelApi->show_merchant_balance_transaction: #{e}"
|
|
1262
|
+
end
|
|
1263
|
+
```
|
|
1264
|
+
|
|
1265
|
+
#### Using the show_merchant_balance_transaction_with_http_info variant
|
|
1266
|
+
|
|
1267
|
+
This returns an Array which contains the response data, status code and headers.
|
|
1268
|
+
|
|
1269
|
+
> <Array(<Array<Transaction>>, Integer, Hash)> show_merchant_balance_transaction_with_http_info(merchant_id, currency, transaction_uuid)
|
|
1270
|
+
|
|
1271
|
+
```ruby
|
|
1272
|
+
begin
|
|
1273
|
+
# Balance: Transaction
|
|
1274
|
+
data, status_code, headers = api_instance.show_merchant_balance_transaction_with_http_info(merchant_id, currency, transaction_uuid)
|
|
1275
|
+
p status_code # => 2xx
|
|
1276
|
+
p headers # => { ... }
|
|
1277
|
+
p data # => <Array<Transaction>>
|
|
1278
|
+
rescue Komoju::ApiError => e
|
|
1279
|
+
puts "Error when calling PlatformModelApi->show_merchant_balance_transaction_with_http_info: #{e}"
|
|
1280
|
+
end
|
|
1281
|
+
```
|
|
1282
|
+
|
|
1283
|
+
### Parameters
|
|
1284
|
+
|
|
1285
|
+
| Name | Type | Description | Notes |
|
|
1286
|
+
| ---- | ---- | ----------- | ----- |
|
|
1287
|
+
| **merchant_id** | **String** | | |
|
|
1288
|
+
| **currency** | [**Currency**](.md) | | |
|
|
1289
|
+
| **transaction_uuid** | **String** | | |
|
|
1290
|
+
|
|
1291
|
+
### Return type
|
|
1292
|
+
|
|
1293
|
+
[**Array<Transaction>**](Transaction.md)
|
|
1294
|
+
|
|
1295
|
+
### Authorization
|
|
1296
|
+
|
|
1297
|
+
[api_key](../README.md#api_key)
|
|
1298
|
+
|
|
1299
|
+
### HTTP request headers
|
|
1300
|
+
|
|
1301
|
+
- **Content-Type**: Not defined
|
|
1302
|
+
- **Accept**: application/json
|
|
1303
|
+
|
|
1304
|
+
|
|
1305
|
+
## show_submerchant_settlement
|
|
1306
|
+
|
|
1307
|
+
> <SettlementShow> show_submerchant_settlement(merchant_id, id)
|
|
1308
|
+
|
|
1309
|
+
Settlement: Show
|
|
1310
|
+
|
|
1311
|
+
View a settlement given an `id`.
|
|
1312
|
+
|
|
1313
|
+
### Examples
|
|
1314
|
+
|
|
1315
|
+
```ruby
|
|
1316
|
+
require 'time'
|
|
1317
|
+
require 'komoju-sdk'
|
|
1318
|
+
# setup authorization
|
|
1319
|
+
Komoju.configure do |config|
|
|
1320
|
+
# Configure your KOMOJU API key
|
|
1321
|
+
config.api_key = 'YOUR_API_KEY'
|
|
1322
|
+
end
|
|
1323
|
+
|
|
1324
|
+
api_instance = Komoju::PlatformModelApi.new
|
|
1325
|
+
merchant_id = 'merchant_id_example' # String |
|
|
1326
|
+
id = 'id_example' # String |
|
|
1327
|
+
|
|
1328
|
+
begin
|
|
1329
|
+
# Settlement: Show
|
|
1330
|
+
result = api_instance.show_submerchant_settlement(merchant_id, id)
|
|
1331
|
+
p result
|
|
1332
|
+
rescue Komoju::ApiError => e
|
|
1333
|
+
puts "Error when calling PlatformModelApi->show_submerchant_settlement: #{e}"
|
|
1334
|
+
end
|
|
1335
|
+
```
|
|
1336
|
+
|
|
1337
|
+
#### Using the show_submerchant_settlement_with_http_info variant
|
|
1338
|
+
|
|
1339
|
+
This returns an Array which contains the response data, status code and headers.
|
|
1340
|
+
|
|
1341
|
+
> <Array(<SettlementShow>, Integer, Hash)> show_submerchant_settlement_with_http_info(merchant_id, id)
|
|
1342
|
+
|
|
1343
|
+
```ruby
|
|
1344
|
+
begin
|
|
1345
|
+
# Settlement: Show
|
|
1346
|
+
data, status_code, headers = api_instance.show_submerchant_settlement_with_http_info(merchant_id, id)
|
|
1347
|
+
p status_code # => 2xx
|
|
1348
|
+
p headers # => { ... }
|
|
1349
|
+
p data # => <SettlementShow>
|
|
1350
|
+
rescue Komoju::ApiError => e
|
|
1351
|
+
puts "Error when calling PlatformModelApi->show_submerchant_settlement_with_http_info: #{e}"
|
|
1352
|
+
end
|
|
1353
|
+
```
|
|
1354
|
+
|
|
1355
|
+
### Parameters
|
|
1356
|
+
|
|
1357
|
+
| Name | Type | Description | Notes |
|
|
1358
|
+
| ---- | ---- | ----------- | ----- |
|
|
1359
|
+
| **merchant_id** | **String** | | |
|
|
1360
|
+
| **id** | **String** | | |
|
|
1361
|
+
|
|
1362
|
+
### Return type
|
|
1363
|
+
|
|
1364
|
+
[**SettlementShow**](SettlementShow.md)
|
|
1365
|
+
|
|
1366
|
+
### Authorization
|
|
1367
|
+
|
|
1368
|
+
[api_key](../README.md#api_key)
|
|
1369
|
+
|
|
1370
|
+
### HTTP request headers
|
|
1371
|
+
|
|
1372
|
+
- **Content-Type**: Not defined
|
|
1373
|
+
- **Accept**: application/json
|
|
1374
|
+
|
|
1375
|
+
|
|
1376
|
+
## simulate_live_application_payment_method_status
|
|
1377
|
+
|
|
1378
|
+
> <PaymentMethodStatus> simulate_live_application_payment_method_status(merchant_id, payment_method, simulate_live_application_payment_method_status_request)
|
|
1379
|
+
|
|
1380
|
+
Live Application: Simulate Payment Method Status
|
|
1381
|
+
|
|
1382
|
+
Simulate status change on payment method for test merchants
|
|
1383
|
+
|
|
1384
|
+
### Examples
|
|
1385
|
+
|
|
1386
|
+
```ruby
|
|
1387
|
+
require 'time'
|
|
1388
|
+
require 'komoju-sdk'
|
|
1389
|
+
# setup authorization
|
|
1390
|
+
Komoju.configure do |config|
|
|
1391
|
+
# Configure your KOMOJU API key
|
|
1392
|
+
config.api_key = 'YOUR_API_KEY'
|
|
1393
|
+
end
|
|
1394
|
+
|
|
1395
|
+
api_instance = Komoju::PlatformModelApi.new
|
|
1396
|
+
merchant_id = 'merchant_id_example' # String |
|
|
1397
|
+
payment_method = 'payment_method_example' # String |
|
|
1398
|
+
simulate_live_application_payment_method_status_request = Komoju::SimulateLiveApplicationPaymentMethodStatusRequest.new # SimulateLiveApplicationPaymentMethodStatusRequest |
|
|
1399
|
+
|
|
1400
|
+
begin
|
|
1401
|
+
# Live Application: Simulate Payment Method Status
|
|
1402
|
+
result = api_instance.simulate_live_application_payment_method_status(merchant_id, payment_method, simulate_live_application_payment_method_status_request)
|
|
1403
|
+
p result
|
|
1404
|
+
rescue Komoju::ApiError => e
|
|
1405
|
+
puts "Error when calling PlatformModelApi->simulate_live_application_payment_method_status: #{e}"
|
|
1406
|
+
end
|
|
1407
|
+
```
|
|
1408
|
+
|
|
1409
|
+
#### Using the simulate_live_application_payment_method_status_with_http_info variant
|
|
1410
|
+
|
|
1411
|
+
This returns an Array which contains the response data, status code and headers.
|
|
1412
|
+
|
|
1413
|
+
> <Array(<PaymentMethodStatus>, Integer, Hash)> simulate_live_application_payment_method_status_with_http_info(merchant_id, payment_method, simulate_live_application_payment_method_status_request)
|
|
1414
|
+
|
|
1415
|
+
```ruby
|
|
1416
|
+
begin
|
|
1417
|
+
# Live Application: Simulate Payment Method Status
|
|
1418
|
+
data, status_code, headers = api_instance.simulate_live_application_payment_method_status_with_http_info(merchant_id, payment_method, simulate_live_application_payment_method_status_request)
|
|
1419
|
+
p status_code # => 2xx
|
|
1420
|
+
p headers # => { ... }
|
|
1421
|
+
p data # => <PaymentMethodStatus>
|
|
1422
|
+
rescue Komoju::ApiError => e
|
|
1423
|
+
puts "Error when calling PlatformModelApi->simulate_live_application_payment_method_status_with_http_info: #{e}"
|
|
1424
|
+
end
|
|
1425
|
+
```
|
|
1426
|
+
|
|
1427
|
+
### Parameters
|
|
1428
|
+
|
|
1429
|
+
| Name | Type | Description | Notes |
|
|
1430
|
+
| ---- | ---- | ----------- | ----- |
|
|
1431
|
+
| **merchant_id** | **String** | | |
|
|
1432
|
+
| **payment_method** | **String** | | |
|
|
1433
|
+
| **simulate_live_application_payment_method_status_request** | [**SimulateLiveApplicationPaymentMethodStatusRequest**](SimulateLiveApplicationPaymentMethodStatusRequest.md) | | |
|
|
1434
|
+
|
|
1435
|
+
### Return type
|
|
1436
|
+
|
|
1437
|
+
[**PaymentMethodStatus**](PaymentMethodStatus.md)
|
|
1438
|
+
|
|
1439
|
+
### Authorization
|
|
1440
|
+
|
|
1441
|
+
[api_key](../README.md#api_key)
|
|
1442
|
+
|
|
1443
|
+
### HTTP request headers
|
|
1444
|
+
|
|
1445
|
+
- **Content-Type**: application/json
|
|
1446
|
+
- **Accept**: application/json
|
|
1447
|
+
|
|
1448
|
+
|
|
1449
|
+
## simulate_live_application_status
|
|
1450
|
+
|
|
1451
|
+
> <MerchantSubmissionStatus> simulate_live_application_status(merchant_id, simulate_live_application_payment_method_status_request)
|
|
1452
|
+
|
|
1453
|
+
Live Application: Simulate Status
|
|
1454
|
+
|
|
1455
|
+
Simulate status change on applications for test merchants. In order for status to be changed to \"accepted,\" at least one payment method must be approved.
|
|
1456
|
+
|
|
1457
|
+
### Examples
|
|
1458
|
+
|
|
1459
|
+
```ruby
|
|
1460
|
+
require 'time'
|
|
1461
|
+
require 'komoju-sdk'
|
|
1462
|
+
# setup authorization
|
|
1463
|
+
Komoju.configure do |config|
|
|
1464
|
+
# Configure your KOMOJU API key
|
|
1465
|
+
config.api_key = 'YOUR_API_KEY'
|
|
1466
|
+
end
|
|
1467
|
+
|
|
1468
|
+
api_instance = Komoju::PlatformModelApi.new
|
|
1469
|
+
merchant_id = 'merchant_id_example' # String |
|
|
1470
|
+
simulate_live_application_payment_method_status_request = Komoju::SimulateLiveApplicationPaymentMethodStatusRequest.new # SimulateLiveApplicationPaymentMethodStatusRequest |
|
|
1471
|
+
|
|
1472
|
+
begin
|
|
1473
|
+
# Live Application: Simulate Status
|
|
1474
|
+
result = api_instance.simulate_live_application_status(merchant_id, simulate_live_application_payment_method_status_request)
|
|
1475
|
+
p result
|
|
1476
|
+
rescue Komoju::ApiError => e
|
|
1477
|
+
puts "Error when calling PlatformModelApi->simulate_live_application_status: #{e}"
|
|
1478
|
+
end
|
|
1479
|
+
```
|
|
1480
|
+
|
|
1481
|
+
#### Using the simulate_live_application_status_with_http_info variant
|
|
1482
|
+
|
|
1483
|
+
This returns an Array which contains the response data, status code and headers.
|
|
1484
|
+
|
|
1485
|
+
> <Array(<MerchantSubmissionStatus>, Integer, Hash)> simulate_live_application_status_with_http_info(merchant_id, simulate_live_application_payment_method_status_request)
|
|
1486
|
+
|
|
1487
|
+
```ruby
|
|
1488
|
+
begin
|
|
1489
|
+
# Live Application: Simulate Status
|
|
1490
|
+
data, status_code, headers = api_instance.simulate_live_application_status_with_http_info(merchant_id, simulate_live_application_payment_method_status_request)
|
|
1491
|
+
p status_code # => 2xx
|
|
1492
|
+
p headers # => { ... }
|
|
1493
|
+
p data # => <MerchantSubmissionStatus>
|
|
1494
|
+
rescue Komoju::ApiError => e
|
|
1495
|
+
puts "Error when calling PlatformModelApi->simulate_live_application_status_with_http_info: #{e}"
|
|
1496
|
+
end
|
|
1497
|
+
```
|
|
1498
|
+
|
|
1499
|
+
### Parameters
|
|
1500
|
+
|
|
1501
|
+
| Name | Type | Description | Notes |
|
|
1502
|
+
| ---- | ---- | ----------- | ----- |
|
|
1503
|
+
| **merchant_id** | **String** | | |
|
|
1504
|
+
| **simulate_live_application_payment_method_status_request** | [**SimulateLiveApplicationPaymentMethodStatusRequest**](SimulateLiveApplicationPaymentMethodStatusRequest.md) | | |
|
|
1505
|
+
|
|
1506
|
+
### Return type
|
|
1507
|
+
|
|
1508
|
+
[**MerchantSubmissionStatus**](MerchantSubmissionStatus.md)
|
|
1509
|
+
|
|
1510
|
+
### Authorization
|
|
1511
|
+
|
|
1512
|
+
[api_key](../README.md#api_key)
|
|
1513
|
+
|
|
1514
|
+
### HTTP request headers
|
|
1515
|
+
|
|
1516
|
+
- **Content-Type**: application/json
|
|
1517
|
+
- **Accept**: application/json
|
|
1518
|
+
|
|
1519
|
+
|
|
1520
|
+
## submerchant_settlement_csv
|
|
1521
|
+
|
|
1522
|
+
> submerchant_settlement_csv(merchant_id, id)
|
|
1523
|
+
|
|
1524
|
+
Settlement: CSV
|
|
1525
|
+
|
|
1526
|
+
View a settlement in CSV format given an `id`.
|
|
1527
|
+
|
|
1528
|
+
### Examples
|
|
1529
|
+
|
|
1530
|
+
```ruby
|
|
1531
|
+
require 'time'
|
|
1532
|
+
require 'komoju-sdk'
|
|
1533
|
+
# setup authorization
|
|
1534
|
+
Komoju.configure do |config|
|
|
1535
|
+
# Configure your KOMOJU API key
|
|
1536
|
+
config.api_key = 'YOUR_API_KEY'
|
|
1537
|
+
end
|
|
1538
|
+
|
|
1539
|
+
api_instance = Komoju::PlatformModelApi.new
|
|
1540
|
+
merchant_id = 'merchant_id_example' # String |
|
|
1541
|
+
id = 'id_example' # String |
|
|
1542
|
+
|
|
1543
|
+
begin
|
|
1544
|
+
# Settlement: CSV
|
|
1545
|
+
api_instance.submerchant_settlement_csv(merchant_id, id)
|
|
1546
|
+
rescue Komoju::ApiError => e
|
|
1547
|
+
puts "Error when calling PlatformModelApi->submerchant_settlement_csv: #{e}"
|
|
1548
|
+
end
|
|
1549
|
+
```
|
|
1550
|
+
|
|
1551
|
+
#### Using the submerchant_settlement_csv_with_http_info variant
|
|
1552
|
+
|
|
1553
|
+
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
|
1554
|
+
|
|
1555
|
+
> <Array(nil, Integer, Hash)> submerchant_settlement_csv_with_http_info(merchant_id, id)
|
|
1556
|
+
|
|
1557
|
+
```ruby
|
|
1558
|
+
begin
|
|
1559
|
+
# Settlement: CSV
|
|
1560
|
+
data, status_code, headers = api_instance.submerchant_settlement_csv_with_http_info(merchant_id, id)
|
|
1561
|
+
p status_code # => 2xx
|
|
1562
|
+
p headers # => { ... }
|
|
1563
|
+
p data # => nil
|
|
1564
|
+
rescue Komoju::ApiError => e
|
|
1565
|
+
puts "Error when calling PlatformModelApi->submerchant_settlement_csv_with_http_info: #{e}"
|
|
1566
|
+
end
|
|
1567
|
+
```
|
|
1568
|
+
|
|
1569
|
+
### Parameters
|
|
1570
|
+
|
|
1571
|
+
| Name | Type | Description | Notes |
|
|
1572
|
+
| ---- | ---- | ----------- | ----- |
|
|
1573
|
+
| **merchant_id** | **String** | | |
|
|
1574
|
+
| **id** | **String** | | |
|
|
1575
|
+
|
|
1576
|
+
### Return type
|
|
1577
|
+
|
|
1578
|
+
nil (empty response body)
|
|
1579
|
+
|
|
1580
|
+
### Authorization
|
|
1581
|
+
|
|
1582
|
+
[api_key](../README.md#api_key)
|
|
1583
|
+
|
|
1584
|
+
### HTTP request headers
|
|
1585
|
+
|
|
1586
|
+
- **Content-Type**: Not defined
|
|
1587
|
+
- **Accept**: Not defined
|
|
1588
|
+
|
|
1589
|
+
|
|
1590
|
+
## submerchant_settlement_pdf
|
|
1591
|
+
|
|
1592
|
+
> submerchant_settlement_pdf(merchant_id, id)
|
|
1593
|
+
|
|
1594
|
+
Settlement: PDF
|
|
1595
|
+
|
|
1596
|
+
View a settlement in PDF format given an `id`.
|
|
1597
|
+
|
|
1598
|
+
### Examples
|
|
1599
|
+
|
|
1600
|
+
```ruby
|
|
1601
|
+
require 'time'
|
|
1602
|
+
require 'komoju-sdk'
|
|
1603
|
+
# setup authorization
|
|
1604
|
+
Komoju.configure do |config|
|
|
1605
|
+
# Configure your KOMOJU API key
|
|
1606
|
+
config.api_key = 'YOUR_API_KEY'
|
|
1607
|
+
end
|
|
1608
|
+
|
|
1609
|
+
api_instance = Komoju::PlatformModelApi.new
|
|
1610
|
+
merchant_id = 'merchant_id_example' # String |
|
|
1611
|
+
id = 'id_example' # String |
|
|
1612
|
+
|
|
1613
|
+
begin
|
|
1614
|
+
# Settlement: PDF
|
|
1615
|
+
api_instance.submerchant_settlement_pdf(merchant_id, id)
|
|
1616
|
+
rescue Komoju::ApiError => e
|
|
1617
|
+
puts "Error when calling PlatformModelApi->submerchant_settlement_pdf: #{e}"
|
|
1618
|
+
end
|
|
1619
|
+
```
|
|
1620
|
+
|
|
1621
|
+
#### Using the submerchant_settlement_pdf_with_http_info variant
|
|
1622
|
+
|
|
1623
|
+
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
|
1624
|
+
|
|
1625
|
+
> <Array(nil, Integer, Hash)> submerchant_settlement_pdf_with_http_info(merchant_id, id)
|
|
1626
|
+
|
|
1627
|
+
```ruby
|
|
1628
|
+
begin
|
|
1629
|
+
# Settlement: PDF
|
|
1630
|
+
data, status_code, headers = api_instance.submerchant_settlement_pdf_with_http_info(merchant_id, id)
|
|
1631
|
+
p status_code # => 2xx
|
|
1632
|
+
p headers # => { ... }
|
|
1633
|
+
p data # => nil
|
|
1634
|
+
rescue Komoju::ApiError => e
|
|
1635
|
+
puts "Error when calling PlatformModelApi->submerchant_settlement_pdf_with_http_info: #{e}"
|
|
1636
|
+
end
|
|
1637
|
+
```
|
|
1638
|
+
|
|
1639
|
+
### Parameters
|
|
1640
|
+
|
|
1641
|
+
| Name | Type | Description | Notes |
|
|
1642
|
+
| ---- | ---- | ----------- | ----- |
|
|
1643
|
+
| **merchant_id** | **String** | | |
|
|
1644
|
+
| **id** | **String** | | |
|
|
1645
|
+
|
|
1646
|
+
### Return type
|
|
1647
|
+
|
|
1648
|
+
nil (empty response body)
|
|
1649
|
+
|
|
1650
|
+
### Authorization
|
|
1651
|
+
|
|
1652
|
+
[api_key](../README.md#api_key)
|
|
1653
|
+
|
|
1654
|
+
### HTTP request headers
|
|
1655
|
+
|
|
1656
|
+
- **Content-Type**: Not defined
|
|
1657
|
+
- **Accept**: Not defined
|
|
1658
|
+
|
|
1659
|
+
|
|
1660
|
+
## submerchant_settlement_xls
|
|
1661
|
+
|
|
1662
|
+
> submerchant_settlement_xls(merchant_id, id)
|
|
1663
|
+
|
|
1664
|
+
Settlement: XLS
|
|
1665
|
+
|
|
1666
|
+
View a settlement in XLS format given an `id`.
|
|
1667
|
+
|
|
1668
|
+
### Examples
|
|
1669
|
+
|
|
1670
|
+
```ruby
|
|
1671
|
+
require 'time'
|
|
1672
|
+
require 'komoju-sdk'
|
|
1673
|
+
# setup authorization
|
|
1674
|
+
Komoju.configure do |config|
|
|
1675
|
+
# Configure your KOMOJU API key
|
|
1676
|
+
config.api_key = 'YOUR_API_KEY'
|
|
1677
|
+
end
|
|
1678
|
+
|
|
1679
|
+
api_instance = Komoju::PlatformModelApi.new
|
|
1680
|
+
merchant_id = 'merchant_id_example' # String |
|
|
1681
|
+
id = 'id_example' # String |
|
|
1682
|
+
|
|
1683
|
+
begin
|
|
1684
|
+
# Settlement: XLS
|
|
1685
|
+
api_instance.submerchant_settlement_xls(merchant_id, id)
|
|
1686
|
+
rescue Komoju::ApiError => e
|
|
1687
|
+
puts "Error when calling PlatformModelApi->submerchant_settlement_xls: #{e}"
|
|
1688
|
+
end
|
|
1689
|
+
```
|
|
1690
|
+
|
|
1691
|
+
#### Using the submerchant_settlement_xls_with_http_info variant
|
|
1692
|
+
|
|
1693
|
+
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
|
1694
|
+
|
|
1695
|
+
> <Array(nil, Integer, Hash)> submerchant_settlement_xls_with_http_info(merchant_id, id)
|
|
1696
|
+
|
|
1697
|
+
```ruby
|
|
1698
|
+
begin
|
|
1699
|
+
# Settlement: XLS
|
|
1700
|
+
data, status_code, headers = api_instance.submerchant_settlement_xls_with_http_info(merchant_id, id)
|
|
1701
|
+
p status_code # => 2xx
|
|
1702
|
+
p headers # => { ... }
|
|
1703
|
+
p data # => nil
|
|
1704
|
+
rescue Komoju::ApiError => e
|
|
1705
|
+
puts "Error when calling PlatformModelApi->submerchant_settlement_xls_with_http_info: #{e}"
|
|
1706
|
+
end
|
|
1707
|
+
```
|
|
1708
|
+
|
|
1709
|
+
### Parameters
|
|
1710
|
+
|
|
1711
|
+
| Name | Type | Description | Notes |
|
|
1712
|
+
| ---- | ---- | ----------- | ----- |
|
|
1713
|
+
| **merchant_id** | **String** | | |
|
|
1714
|
+
| **id** | **String** | | |
|
|
1715
|
+
|
|
1716
|
+
### Return type
|
|
1717
|
+
|
|
1718
|
+
nil (empty response body)
|
|
1719
|
+
|
|
1720
|
+
### Authorization
|
|
1721
|
+
|
|
1722
|
+
[api_key](../README.md#api_key)
|
|
1723
|
+
|
|
1724
|
+
### HTTP request headers
|
|
1725
|
+
|
|
1726
|
+
- **Content-Type**: Not defined
|
|
1727
|
+
- **Accept**: Not defined
|
|
1728
|
+
|
|
1729
|
+
|
|
1730
|
+
## update_live_application
|
|
1731
|
+
|
|
1732
|
+
> <LiveApplication> update_live_application(merchant_id, live_application_request)
|
|
1733
|
+
|
|
1734
|
+
Live Application: Update
|
|
1735
|
+
|
|
1736
|
+
Updates the live application for the applicant merchant
|
|
1737
|
+
|
|
1738
|
+
### Examples
|
|
1739
|
+
|
|
1740
|
+
```ruby
|
|
1741
|
+
require 'time'
|
|
1742
|
+
require 'komoju-sdk'
|
|
1743
|
+
# setup authorization
|
|
1744
|
+
Komoju.configure do |config|
|
|
1745
|
+
# Configure your KOMOJU API key
|
|
1746
|
+
config.api_key = 'YOUR_API_KEY'
|
|
1747
|
+
end
|
|
1748
|
+
|
|
1749
|
+
api_instance = Komoju::PlatformModelApi.new
|
|
1750
|
+
merchant_id = 'merchant_id_example' # String |
|
|
1751
|
+
live_application_request = Komoju::LiveApplicationRequest.new # LiveApplicationRequest |
|
|
1752
|
+
|
|
1753
|
+
begin
|
|
1754
|
+
# Live Application: Update
|
|
1755
|
+
result = api_instance.update_live_application(merchant_id, live_application_request)
|
|
1756
|
+
p result
|
|
1757
|
+
rescue Komoju::ApiError => e
|
|
1758
|
+
puts "Error when calling PlatformModelApi->update_live_application: #{e}"
|
|
1759
|
+
end
|
|
1760
|
+
```
|
|
1761
|
+
|
|
1762
|
+
#### Using the update_live_application_with_http_info variant
|
|
1763
|
+
|
|
1764
|
+
This returns an Array which contains the response data, status code and headers.
|
|
1765
|
+
|
|
1766
|
+
> <Array(<LiveApplication>, Integer, Hash)> update_live_application_with_http_info(merchant_id, live_application_request)
|
|
1767
|
+
|
|
1768
|
+
```ruby
|
|
1769
|
+
begin
|
|
1770
|
+
# Live Application: Update
|
|
1771
|
+
data, status_code, headers = api_instance.update_live_application_with_http_info(merchant_id, live_application_request)
|
|
1772
|
+
p status_code # => 2xx
|
|
1773
|
+
p headers # => { ... }
|
|
1774
|
+
p data # => <LiveApplication>
|
|
1775
|
+
rescue Komoju::ApiError => e
|
|
1776
|
+
puts "Error when calling PlatformModelApi->update_live_application_with_http_info: #{e}"
|
|
1777
|
+
end
|
|
1778
|
+
```
|
|
1779
|
+
|
|
1780
|
+
### Parameters
|
|
1781
|
+
|
|
1782
|
+
| Name | Type | Description | Notes |
|
|
1783
|
+
| ---- | ---- | ----------- | ----- |
|
|
1784
|
+
| **merchant_id** | **String** | | |
|
|
1785
|
+
| **live_application_request** | [**LiveApplicationRequest**](LiveApplicationRequest.md) | | |
|
|
1786
|
+
|
|
1787
|
+
### Return type
|
|
1788
|
+
|
|
1789
|
+
[**LiveApplication**](LiveApplication.md)
|
|
1790
|
+
|
|
1791
|
+
### Authorization
|
|
1792
|
+
|
|
1793
|
+
[api_key](../README.md#api_key)
|
|
1794
|
+
|
|
1795
|
+
### HTTP request headers
|
|
1796
|
+
|
|
1797
|
+
- **Content-Type**: application/json
|
|
1798
|
+
- **Accept**: application/json
|
|
1799
|
+
|
|
1800
|
+
|
|
1801
|
+
## update_live_application_payment_method
|
|
1802
|
+
|
|
1803
|
+
> <LiveApplication> update_live_application_payment_method(merchant_id, payment_method, update_payment_method_request)
|
|
1804
|
+
|
|
1805
|
+
Live Application: Update Payment Method
|
|
1806
|
+
|
|
1807
|
+
Update the payment method application of the applicant merchant
|
|
1808
|
+
|
|
1809
|
+
### Examples
|
|
1810
|
+
|
|
1811
|
+
```ruby
|
|
1812
|
+
require 'time'
|
|
1813
|
+
require 'komoju-sdk'
|
|
1814
|
+
# setup authorization
|
|
1815
|
+
Komoju.configure do |config|
|
|
1816
|
+
# Configure your KOMOJU API key
|
|
1817
|
+
config.api_key = 'YOUR_API_KEY'
|
|
1818
|
+
end
|
|
1819
|
+
|
|
1820
|
+
api_instance = Komoju::PlatformModelApi.new
|
|
1821
|
+
merchant_id = 'merchant_id_example' # String |
|
|
1822
|
+
payment_method = 'payment_method_example' # String |
|
|
1823
|
+
update_payment_method_request = Komoju::UpdatePaymentMethodRequest.new # UpdatePaymentMethodRequest |
|
|
1824
|
+
|
|
1825
|
+
begin
|
|
1826
|
+
# Live Application: Update Payment Method
|
|
1827
|
+
result = api_instance.update_live_application_payment_method(merchant_id, payment_method, update_payment_method_request)
|
|
1828
|
+
p result
|
|
1829
|
+
rescue Komoju::ApiError => e
|
|
1830
|
+
puts "Error when calling PlatformModelApi->update_live_application_payment_method: #{e}"
|
|
1831
|
+
end
|
|
1832
|
+
```
|
|
1833
|
+
|
|
1834
|
+
#### Using the update_live_application_payment_method_with_http_info variant
|
|
1835
|
+
|
|
1836
|
+
This returns an Array which contains the response data, status code and headers.
|
|
1837
|
+
|
|
1838
|
+
> <Array(<LiveApplication>, Integer, Hash)> update_live_application_payment_method_with_http_info(merchant_id, payment_method, update_payment_method_request)
|
|
1839
|
+
|
|
1840
|
+
```ruby
|
|
1841
|
+
begin
|
|
1842
|
+
# Live Application: Update Payment Method
|
|
1843
|
+
data, status_code, headers = api_instance.update_live_application_payment_method_with_http_info(merchant_id, payment_method, update_payment_method_request)
|
|
1844
|
+
p status_code # => 2xx
|
|
1845
|
+
p headers # => { ... }
|
|
1846
|
+
p data # => <LiveApplication>
|
|
1847
|
+
rescue Komoju::ApiError => e
|
|
1848
|
+
puts "Error when calling PlatformModelApi->update_live_application_payment_method_with_http_info: #{e}"
|
|
1849
|
+
end
|
|
1850
|
+
```
|
|
1851
|
+
|
|
1852
|
+
### Parameters
|
|
1853
|
+
|
|
1854
|
+
| Name | Type | Description | Notes |
|
|
1855
|
+
| ---- | ---- | ----------- | ----- |
|
|
1856
|
+
| **merchant_id** | **String** | | |
|
|
1857
|
+
| **payment_method** | **String** | | |
|
|
1858
|
+
| **update_payment_method_request** | [**UpdatePaymentMethodRequest**](UpdatePaymentMethodRequest.md) | | |
|
|
1859
|
+
|
|
1860
|
+
### Return type
|
|
1861
|
+
|
|
1862
|
+
[**LiveApplication**](LiveApplication.md)
|
|
1863
|
+
|
|
1864
|
+
### Authorization
|
|
1865
|
+
|
|
1866
|
+
[api_key](../README.md#api_key)
|
|
1867
|
+
|
|
1868
|
+
### HTTP request headers
|
|
1869
|
+
|
|
1870
|
+
- **Content-Type**: application/json
|
|
1871
|
+
- **Accept**: application/json
|
|
1872
|
+
|
|
1873
|
+
|
|
1874
|
+
## update_merchant
|
|
1875
|
+
|
|
1876
|
+
> <SerializedSubmerchant> update_merchant(id, update_merchant_request)
|
|
1877
|
+
|
|
1878
|
+
Merchant: Update
|
|
1879
|
+
|
|
1880
|
+
Updates a sub-merchant's settings, including payment and payout toggles, email notification preferences, and payment method expiry settings.
|
|
1881
|
+
|
|
1882
|
+
### Examples
|
|
1883
|
+
|
|
1884
|
+
```ruby
|
|
1885
|
+
require 'time'
|
|
1886
|
+
require 'komoju-sdk'
|
|
1887
|
+
# setup authorization
|
|
1888
|
+
Komoju.configure do |config|
|
|
1889
|
+
# Configure your KOMOJU API key
|
|
1890
|
+
config.api_key = 'YOUR_API_KEY'
|
|
1891
|
+
end
|
|
1892
|
+
|
|
1893
|
+
api_instance = Komoju::PlatformModelApi.new
|
|
1894
|
+
id = 'id_example' # String |
|
|
1895
|
+
update_merchant_request = Komoju::UpdateMerchantRequest.new # UpdateMerchantRequest |
|
|
1896
|
+
|
|
1897
|
+
begin
|
|
1898
|
+
# Merchant: Update
|
|
1899
|
+
result = api_instance.update_merchant(id, update_merchant_request)
|
|
1900
|
+
p result
|
|
1901
|
+
rescue Komoju::ApiError => e
|
|
1902
|
+
puts "Error when calling PlatformModelApi->update_merchant: #{e}"
|
|
1903
|
+
end
|
|
1904
|
+
```
|
|
1905
|
+
|
|
1906
|
+
#### Using the update_merchant_with_http_info variant
|
|
1907
|
+
|
|
1908
|
+
This returns an Array which contains the response data, status code and headers.
|
|
1909
|
+
|
|
1910
|
+
> <Array(<SerializedSubmerchant>, Integer, Hash)> update_merchant_with_http_info(id, update_merchant_request)
|
|
1911
|
+
|
|
1912
|
+
```ruby
|
|
1913
|
+
begin
|
|
1914
|
+
# Merchant: Update
|
|
1915
|
+
data, status_code, headers = api_instance.update_merchant_with_http_info(id, update_merchant_request)
|
|
1916
|
+
p status_code # => 2xx
|
|
1917
|
+
p headers # => { ... }
|
|
1918
|
+
p data # => <SerializedSubmerchant>
|
|
1919
|
+
rescue Komoju::ApiError => e
|
|
1920
|
+
puts "Error when calling PlatformModelApi->update_merchant_with_http_info: #{e}"
|
|
1921
|
+
end
|
|
1922
|
+
```
|
|
1923
|
+
|
|
1924
|
+
### Parameters
|
|
1925
|
+
|
|
1926
|
+
| Name | Type | Description | Notes |
|
|
1927
|
+
| ---- | ---- | ----------- | ----- |
|
|
1928
|
+
| **id** | **String** | | |
|
|
1929
|
+
| **update_merchant_request** | [**UpdateMerchantRequest**](UpdateMerchantRequest.md) | | |
|
|
1930
|
+
|
|
1931
|
+
### Return type
|
|
1932
|
+
|
|
1933
|
+
[**SerializedSubmerchant**](SerializedSubmerchant.md)
|
|
1934
|
+
|
|
1935
|
+
### Authorization
|
|
1936
|
+
|
|
1937
|
+
[api_key](../README.md#api_key)
|
|
1938
|
+
|
|
1939
|
+
### HTTP request headers
|
|
1940
|
+
|
|
1941
|
+
- **Content-Type**: application/json
|
|
1942
|
+
- **Accept**: application/json
|
|
1943
|
+
|