GoPaySDKpublic interface SDKMethods<T extends AbstractSDK>
T copy(AuthStrategy authStrategy)
authStrategy - T copy(AbstractSDKSettings settings)
settings - T copy()
AbstractAuthenticationBuilders.AbstractLoginRequestBuilder getLoginToken(String email, String password)
email - the merchant's email that is associated with the GoPay accountpassword - the merchant's passwordAbstractAuthenticationBuilders.AbstractLoginRequestBuilderAbstractAuthenticationBuilders.AbstractLoginRequestBuilder getLoginToken(UserCredentials userCredentials)
userCredentials - AbstractAuthenticationBuilders.AbstractLoginRequestBuilderAbstractAuthenticationBuilders.AbstractLogoutRequestBuilder logout()
AbstractAuthenticationBuilders.AbstractLogoutRequestBuilderAbstractStoreBuilders.AbstractListStoresRequestBuilder listStores()
PaginatorStoreBuilders.ListStoresRequestBuilder,
PaginatorAbstractStoreBuilders.AbstractGetStoreRequestBuilder getStore(StoreId storeId)
storeId.storeId - the store's IDStoreBuilders.GetStoreRequestBuilderAbstractStoreBuilders.AbstractCreateStoreRequestBuilder createStore(String name)
name - the new store's nameStoreBuilders.CreateStoreRequestBuilderAbstractStoreBuilders.AbstractUpdateStoreRequestBuilder updateStore(StoreId storeId)
storeId - the ID of the store that is going to be updatedStoreBuilders.UpdateStoreRequestBuilderAbstractStoreBuilders.AbstractDeleteStoreRequestBuilder deleteStore(StoreId storeId)
storeId - the ID of the store that is going to be deletedAbstractStoreBuilders.AbstractGetCheckoutInfoRequestBuilder getCheckoutInfo(Domain origin)
origin - a domain included in the list of domains associated with the application tokenAbstractStoreBuilders.AbstractGetCheckoutInfoRequestBuilder getCheckoutInfo()
AbstractApplicationTokenBuilders.AbstractListApplicationTokenRequestBuilder listAppTokens(StoreId storeId)
storeId.storeId - the ID of the store for which an application token is being requestedAbstractApplicationTokenBuilders.AbstractDeleteApplicationTokenRequestBuilder deleteAppToken(StoreId storeId, AppTokenId appTokenId)
appTokenId for the store with ID storeId.storeId - the ID of the store associated with the application token to be deletedappTokenId - the ID of the application token to be deleted@Deprecated AbstractApplicationTokenBuilders.AbstractCreateApplicationTokenRequestBuilder createAppToken(StoreId storeId)
storeId.storeId - the ID of the store for which a new application token will be createdCreateApplicationTokenRequestAbstractApplicationTokenBuilders.AbstractCreateApplicationTokenRequestBuilder createAppToken(StoreId storeId, List<Domain> domains)
storeId.storeId - the ID of the store for which a new application token will be createddomains - a list of domains from where requests can be made with an application tokenCreateApplicationTokenRequestAbstractApplicationTokenBuilders.AbstractUpdateApplicationTokenRequestBuilder updateAppToken(StoreId storeId, AppTokenId appTokenId, List<Domain> domains)
appTokenId and the store
with ID storeId.storeId - the ID of the store associated with the application token that will be updatedappTokenId - the ID of the application token that will be updateddomains - a list of domains from where requests can be made with an application tokenAbstractApplicationTokenBuilders.AbstractCreateMerchantApplicationJWTRequestBuilder createMerchantAppJWT()
AbstractApplicationTokenBuilders.AbstractListMerchantApplicationJWTRequestBuilder listMerchantAppJWT()
AbstractApplicationTokenBuilders.AbstractDeleteMerchantApplicationJWTRequestBuilder deleteAppJWT(AppJWTId appJWTId)
appJWTId - AbstractApplicationTokenBuilders.AbstractCreateStoreApplicationJWTRequestBuilder createStoreAppJWT(StoreId storeId)
storeId - AbstractApplicationTokenBuilders.AbstractListStoreApplicationJWTRequestBuilder listStoreAppJWT(StoreId storeId)
storeId - AbstractApplicationTokenBuilders.AbstractDeleteStoreApplicationJWTRequestBuilder deleteAppJWT(StoreId storeId, AppJWTId appJWTId)
storeId - appJWTId - AbstractTransferBuilders.AbstractListTransferRequestBuilder listTransfers()
Paginator.AbstractTransferBuilders.AbstractListTransferRequestBuilder,
PaginatorAbstractTransferBuilders.AbstractGetTransferRequestBuilder getTransfer(TransferId transferId)
transferIdtransferId - the ID of the transfer being queriedGetTransferRequestAbstractChargesBuilders.AbstractListChargesRequestBuilder listCharges(StoreId storeId)
storeId - (optional) the ID of the store for which charges are being requestedListChargesRequestBuilder implementing PaginatorPaginatorAbstractChargesBuilders.AbstractListChargesRequestBuilder listCharges()
ListChargesRequestBuilder implementing PaginatorPaginatorAbstractChargesBuilders.AbstractGetChargeRequestBuilder getCharge(StoreId storeId, ChargeId chargeId)
chargeId for the store with ID storeIdstoreId - the ID of the store associated with the charge to be queriedchargeId - the ID of the charge to be queriedResourceMonitor<? extends Charge> chargeCompletionMonitor(StoreId storeId, ChargeId chargeId)
ResourceMonitor that awaits the charge complete.
ResourceMonitor.await() will wait until the charge status is other than 'pending'.storeId - the ID of the store associated with the charge to be queriedchargeId - the ID of the charge to be queriedAbstractChargesBuilders.AbstractCreateChargeRequestBuilder createCharge(TransactionTokenId tokenId, BigInteger amount, String currency)
tokenId - the ID of the transaction token to be used for the chargeamount - the amount of the chargecurrency - the currencyAbstractChargesBuilders.AbstractCreateChargeRequestBuilder createCharge(TransactionTokenId tokenId, MoneyLike money)
tokenId - money - the amount and currency of the charge.AbstractChargesBuilders.AbstractCreateChargeRequestBuilder createCharge(TransactionTokenId tokenId, BigInteger amount, String currency, Boolean capture)
tokenId - the ID of the transaction token to be used for the chargeamount - the amount of the chargecurrency - the currencycapture - if false, authorization onlyAbstractChargesBuilders.AbstractCreateChargeRequestBuilder createCharge(TransactionTokenId tokenId, MoneyLike money, Boolean capture)
tokenId - money - the amount and currency of the charge.capture - AbstractBatchCreateCharge batchCreateCharge()
AbstractBatchCreateCharge batchCreateCharge(int createMaxRetry, int statusCheckTimeout)
createMaxRetry - Max retry number if creating a charge failed by temporary error.statusCheckTimeout - Timeout to wait until charge is processed.AbstractChargesBuilders.AbstractCreateChargeRequestBuilder authorizeCharge(TransactionTokenId tokenId, BigInteger amount, String currency)
tokenId - the ID of the transaction token to be used for the chargeamount - the amount of the chargecurrency - the currencyAbstractChargesBuilders.AbstractCreateChargeRequestBuilder authorizeCharge(TransactionTokenId tokenId, MoneyLike money)
tokenId - money - the amount and currency of the charge.AbstractChargesBuilders.AbstractCaptureAuthorizedChargeRequestBuilder captureAuthorizedCharge(StoreId storeId, ChargeId chargeId, BigInteger amount, String currency)
storeId - the ID of the store associated with the charge to be queriedchargeId - the ID of the charge to be queriedamount - the amount of the chargecurrency - the currencyAbstractChargesBuilders.AbstractCaptureAuthorizedChargeRequestBuilder captureAuthorizedCharge(StoreId storeId, ChargeId chargeId, MoneyLike money)
storeId - chargeId - money - the amount and currency of the charge.AbstractChargesBuilders.AbstractUpdateChargeRequestBuilder updateCharge(StoreId storeId, ChargeId chargeId)
chargeId for the store
with ID storeId.storeId - the ID of the store associated with the charge to be queriedchargeId - the ID of the charge to be queriedPaginatorAbstractSubscriptionBuilders.AbstractListSubscriptionsMerchantRequestBuilder listSubscriptions()
ListSubscriptionsRequest and PaginatorPaginatorAbstractSubscriptionBuilders.AbstractListSubscriptionsRequestBuilder listSubscriptions(StoreId storeId)
storeId - the ID of the store for which subscriptions will be listedListSubscriptionsRequest and PaginatorPaginatorAbstractSubscriptionBuilders.AbstractGetSubscriptionRequestBuilder getSubscription(StoreId storeId, SubscriptionId subscriptionId)
subscriptionId for the store
with ID storeId.storeId - the ID of the store associated with the subscription to be queriedsubscriptionId - the ID of the subscription to be queriedGetSubscriptionRequestAbstractSubscriptionBuilders.AbstractListScheduledPaymentsRequestBuilder listScheduledPayments(StoreId storeId, SubscriptionId subscriptionId)
subscriptionIdstoreId - subscriptionId - ListScheduledPaymentsRequestAbstractSubscriptionBuilders.AbstractGetScheduledPaymentRequestBuilder getScheduledPayment(StoreId storeId, SubscriptionId subscriptionId, ScheduledPaymentId paymentId)
storeId - subscriptionId - paymentId - GetScheduledPaymentRequestAbstractSubscriptionBuilders.AbstractUpdateScheduledPaymentRequestBuilder updateScheduledPayment(StoreId storeId, SubscriptionId subscriptionId, ScheduledPaymentId paymentId)
storeId - subscriptionId - paymentId - UpdateScheduledPaymentRequestResourceMonitor<? extends FullSubscription> subscriptionCompletionMonitor(StoreId storeId, SubscriptionId subscriptionId)
ResourceMonitor that awaits the subscription to complete.
ResourceMonitor.await() will wait until the subscription status is other than 'unverified'.storeId - the ID of the store associated with the subscription to be queriedsubscriptionId - the ID of the subscription to be queriedAbstractSubscriptionBuilders.AbstractCreateSubscriptionRequestBuilder createSubscription(TransactionTokenId transactionTokenId, BigInteger amount, String amountCurrency, SubscriptionPeriod period)
transactionTokenId - the ID of the transaction token to be used to create the subscriptionamount - the amount of the subscriptionamountCurrency - the currency in which the subscription's charges will be madeperiod - the periodicity of the subscriptionAbstractSubscriptionBuilders.AbstractCreateSubscriptionRequestBuilder createSubscription(TransactionTokenId transactionTokenId, MoneyLike money, SubscriptionPeriod period)
transactionTokenId - money - the amount and currency of the subscriptionperiod - AbstractSubscriptionBuilders.AbstractUpdateSubscriptionRequestBuilder updateSubscription(StoreId storeId, SubscriptionId subscriptionId)
subscriptionId for the store
with ID storeId.storeId - the ID of the store for which subscription charges will be listedsubscriptionId - the ID of the subscription for which charges will be listedPaginatorAbstractSubscriptionBuilders.AbstractListChargesForPaymentRequestBuilder listChargesForPayment(StoreId storeId, SubscriptionId subscriptionId, ScheduledPaymentId paymentId)
storeId - the ID of the store in which subscription is.subscriptionId - the ID of the subscription for which charges will be listedPaginatorAbstractSubscriptionBuilders.AbstractListSubscriptionChargesRequestBuilder listSubscriptionCharges(StoreId storeId, SubscriptionId subscriptionId)
storeId - the ID of the store in which subscription is.subscriptionId - the ID of the subscription for which charges will be listedPaginatorAbstractSubscriptionBuilders.AbstractDeleteSubscriptionRequestBuilder deleteSubscription(StoreId storeId, SubscriptionId subscriptionId)
subscriptionId for the store with ID storeId.storeId - the ID of the store associated with the subscription that will be deletedsubscriptionId - the ID of the subscription to be deletedAbstractSubscriptionBuilders.AbstractSimulateInstallmentsPlanRequestBuilder simulateSubscriptionPlan(MoneyLike money, PaymentTypeName paymentType, SubscriptionPeriod period)
money - amount and currency of the subscriptionpaymentType - the type of the payment (credit card, QR Scan, etc.)period - the Subscription periodAbstractSubscriptionBuilders.AbstractSimulateInstallmentsPlanRequestBuilder simulateSubscriptionPlan(StoreId storeId, MoneyLike money, PaymentTypeName paymentType, SubscriptionPeriod period)
money - amount and currency of the subscriptionpaymentType - the type of the payment (credit card, QR Scan, etc.)period - the Subscription periodAbstractRefundBuilders.AbstractListRefundsRequestBuilder listRefunds(StoreId storeId, ChargeId chargeId)
storeId - the ID of the store for which refunds will be listedchargeId - the ID of the charge for wich refunds will be listedAbstractRefundBuilders.AbstractGetRefundRequestBuilder getRefund(StoreId storeId, ChargeId chargeId, RefundId refundId)
refundID associated with the charge
with ID chargeID and the store with ID storeId.storeId - the ID of the store associated with the refund to be queriedchargeId - the ID of the charge associated with the refund to be queriedrefundId - the ID of the refund to be queriedAbstractRefundBuilders.AbstractCreateRefundRequestBuilder createRefund(StoreId storeId, ChargeId chargeId, BigInteger amount, String currency, RefundReason reason)
chargeId and the store storeId.storeId - the ID of the store associated with the charge that will be refundedchargeId - the ID of the charge to be refundedamount - the amount to be refundedcurrency - the currency in which the refund will be madereason - the reason why the refund will be madeCreateRefundRequestAbstractRefundBuilders.AbstractCreateRefundRequestBuilder createRefund(StoreId storeId, ChargeId chargeId, MoneyLike money, RefundReason reason)
chargeId and the store storeId.storeId - the ID of the store associated with the charge that will be refundedchargeId - the ID of the charge to be refundedmoney - the amount and currency of the refundreason - the reason why the refund will be madeCreateRefundRequestResourceMonitor<? extends Refund> refundCompletionMonitor(StoreId storeId, ChargeId chargeId, RefundId refundId)
ResourceMonitor that awaits the refund complete.
ResourceMonitor.await() will wait until the refund status is other than 'pending'.storeId - the ID of the store associated with the refund to be queriedchargeId - the ID of the charge associated with the refund to be queriedrefundId - the ID of the refund to be queriedAbstractCancelsBuilders.AbstractListAllCancelsRequestBuilder listCancels(StoreId storeId, ChargeId chargeId)
storeId - chargeId - AbstractCancelsBuilders.AbstractGetCancelRequestBuilder getCancel(StoreId storeId, ChargeId chargeId, CancelId cancelId)
cancelId associated with the charge
chargeId and store storeId.storeId - chargeId - cancelId - ResourceMonitor<? extends Cancel> cancelCompletionMonitor(StoreId storeId, ChargeId chargeId, CancelId cancelId)
ResourceMonitor that awaits the cancel to complete.
ResourceMonitor.await() will wait until the cancel status is other than 'pending'.storeId - the ID of the store associated with the cancel to be queriedchargeId - the ID of the chargecancelId - the ID of the cancel to be queriedAbstractCancelsBuilders.AbstractCreateCancelRequestBuilder createCancel(StoreId storeId, ChargeId chargeId)
chargeId and store storeIdstoreId - chargeId - AbstractCancelsBuilders.AbstractUpdateCancelRequestBuilder updateCancel(StoreId storeId, ChargeId chargeId, CancelId cancelId)
cancelId associated with charge chargeId
and store storeIdstoreId - chargeId - cancelId - AbstractBankAccountsBuilders.AbstractListAllBankAccountsRequestBuilder listBankAccounts()
AbstractBankAccountsBuilders.AbstractGetBankAccountRequestBuilder getBankAccount(BankAccountId bankAccountId)
bankAccountIdbankAccountId - the ID of the bank account to be queriedAbstractBankAccountsBuilders.AbstractCreateBankAccountRequestBuilder createBankAccount(JapaneseBankAccount bankAccount)
bankAccount - a bank account object. Currently only Japanese Bank Accounts are supported.JapaneseBankAccountAbstractBankAccountsBuilders.AbstractUpdateBankAccountRequestBuilder updateBankAccount(BankAccountId bankAccountId)
bankAccountIdbankAccountId - the ID of the bank account to be updatedAbstractBankAccountsBuilders.AbstractDeleteBankAccountRequestBuilder deleteBankAccount(BankAccountId bankAccountId)
bankAccountIdbankAccountId - the ID of the bank account to be deletedAbstractBankAccountsBuilders.AbstractGetPrimaryBankAccountRequestBuilder getPrimaryBankAccount()
AbstractMerchantsBuilders.AbstractGetMerchantVerificationRequestBuilder getMerchantVerification()
AbstractMerchantsBuilders.AbstractUpdateMerchantVerificationRequestBuilder updateMerchantVerification()
AbstractMerchantsBuilders.AbstractCreateMerchantVerificationRequestBuilder createMerchantVerification(URL homepageUrl, String companyDescription, MerchantCompanyContactInfo companyContactInfo, BusinessType businessType, String systemManagerName)
homepageUrl - the url of the merchant's homepagecompanyDescription - a description of the merchant's companycompanyContactInfo - an instance of MerchantCompanyContactInfobusinessType - the business type of the merchant's companysystemManagerName - the system manager's nameAbstractMerchantsBuilders.AbstractGetMeRequestBuilder getMe()
AbstractMerchantsBuilders.AbstractGetTransactionHistoryRequestBuilder getTransactionHistory(StoreId storeId)
storeId - (optional) the ID of the store for which transactions will be listedAbstractMerchantsBuilders.AbstractGetTransactionHistoryRequestBuilder getTransactionHistory()
AbstractWebhookBuilders.AbstractListWebhookMerchantRequestBuilder listWebhooks()
AbstractWebhookBuilders.AbstractGetWebhookMerchantRequestBuilder getWebhook(WebhookId webhookId)
webhookId.webhookId - the ID of the webhook to be queriedAbstractWebhookBuilders.AbstractCreateWebhookMerchantRequestBuilder createWebhook(URL url)
url - the webhook's URLAbstractWebhookBuilders.AbstractUpdateWebhookMerchantRequestBuilder updateWebhook(WebhookId webhookId)
webhookId.webhookId - the ID of the webhook that will be updatedAbstractWebhookBuilders.AbstractDeleteWebhookMerchantRequestBuilder deleteWebhook(WebhookId webhookId)
webhookId.webhookId - the ID of the webhook to be deletedVoidAbstractWebhookBuilders.AbstractListWebhookRequestBuilder listWebhooks(StoreId storeId)
storeId.storeId - the ID of the store for which webhooks will be listedAbstractWebhookBuilders.AbstractGetWebhookRequestBuilder getWebhook(StoreId storeId, WebhookId webhookId)
webhookId associated with the store
with ID storeId.storeId - the ID of the store associated with the webhook that will be queriedwebhookId - the ID of the webhook to be queriedAbstractWebhookBuilders.AbstractCreateWebhookRequestBuilder createWebhook(StoreId storeId, URL url)
storeId.storeId - the ID of the store for which a new webhook will be createdurl - the webhook's URLAbstractWebhookBuilders.AbstractUpdateWebhookRequestBuilder updateWebhook(StoreId storeId, WebhookId webhookId)
webhookId associated with a store with ID storeId.storeId - the ID of the store associated with the webhook that will be updatedwebhookId - the ID of the webhook that will be updatedAbstractWebhookBuilders.AbstractDeleteWebhookRequestBuilder deleteWebhook(StoreId storeId, WebhookId webhookId)
webhookId.storeId - the ID of the store associated with the webhook to be deletedwebhookId - the ID of the webhook to be deletedVoidAbstractTransactionTokensBuilders.AbstractCreateTransactionTokenRequestBuilder createTransactionToken(String email, PaymentData paymentData, TransactionTokenType type)
email - the email address of the person making the paymentpaymentData - instance of CreditCard, QRScanData, KonbiniPayment or ApplePayAbstractTransactionTokensBuilders.AbstractDeleteTransactionTokenRequestBuilder deleteTransactionToken(StoreId storeId, TransactionTokenId tokenId)
storeId - the ID of the store associated with the transaction token to be deletedtokenId - the ID of the transaction token to be deletedAbstractTransactionTokensBuilders.AbstractGetTransactionTokenRequestBuilder getTransactionToken(StoreId storeId, TransactionTokenId tokenId)
storeId - the ID of the store associated with the transaction token being queriedtokenId - the ID of the transaction token to be queriedAbstractTransactionTokensBuilders.AbstractUpdateTransactionTokenRequestBuilder updateTransactionToken(StoreId storeId, TransactionTokenId tokenId)
storeId - the ID of the store associated with the transaction token to be updatedtokenId - the ID of the transaction token to be updatedAbstractTransactionTokensBuilders.AbstractListTransactionTokensRequestBuilder listTransactionTokens(StoreId storeId)
storeId - the ID of the storeAbstractTransactionTokensBuilders.AbstractListTransactionTokensMerchantRequestBuilder listTransactionTokens()
AbstractTransactionTokensBuilders.AbstractCreateTemporaryTokenAliasRequestBuilder createTokenAlias(TransactionTokenId transactionTokenId)
transactionTokenId - AbstractTransactionTokensBuilders.AbstractGetTemporaryTokenAliasRequestBuilder getTokenAlias(StoreId storeId, TemporaryTokenAliasId aliasId)
storeId - the ID of the storealiasId - the ID of the temporary aliasAbstractTransactionTokensBuilders.AbstractGetTemporaryTokenAliasAsImageRequestBuilder getTokenAliasImage(StoreId storeId, TemporaryTokenAliasId aliasId)
storeId - the ID of the storealiasId - the ID of the temporary aliasAbstractTransactionTokensBuilders.AbstractDeleteTemporaryTokenAliasRequestBuilder deleteTokenAlias(StoreId storeId, TemporaryTokenAliasId aliasId)
storeId - the ID of the storealiasId - the ID of the temporary alias to be deletedAbstractLedgersBuilders.AbstractListLedgersRequestBuilder listLedgers(TransferId transferId)
transferId - the ID of the transfer for which ledgers will be listedAbstractStoreBuilders.AbstractCreateCustomerIdRequestBuilder createCustomerId(StoreId storeId, String customerId)
customerId - AbstractExchangeRateBuilders.AbstractConvertMoneyBuilder convertMoney(MoneyLike moneyToConvert, String targetCurrency)
moneyToConvert - targetCurrency - Copyright © 2018 The Apache Software Foundation. All rights reserved.