Closeable, AutoCloseable, SDKMethods<GoPaySDK>public class GoPaySDK extends AbstractSDK implements SDKMethods<GoPaySDK>, Closeable
authStrategy, retrofit, settings| Modifier and Type | Method | Description |
|---|---|---|
ChargesBuilders.CreateChargeRequestBuilder |
authorizeCharge(TransactionTokenId tokenId,
BigInteger amount,
String currency) |
Make a charge.
|
ChargesBuilders.CreateChargeRequestBuilder |
authorizeCharge(TransactionTokenId tokenId,
MoneyLike money) |
Make a charge.
|
BatchCreateCharge |
batchCreateCharge() |
Make charges by batch processing with default parameter.
|
BatchCreateCharge |
batchCreateCharge(int createMaxRetry,
int statusCheckTimeout) |
Make charges by batch processing.
|
ResourceMonitor<Cancel> |
cancelCompletionMonitor(StoreId storeId,
ChargeId chargeId,
CancelId cancelId) |
Create a
ResourceMonitor that awaits the cancel to complete. |
ChargesBuilders.CaptureAuthorizedChargeRequestBuilder |
captureAuthorizedCharge(StoreId storeId,
ChargeId chargeId,
BigInteger amount,
String currency) |
Capture authorized charge.
|
ChargesBuilders.CaptureAuthorizedChargeRequestBuilder |
captureAuthorizedCharge(StoreId storeId,
ChargeId chargeId,
MoneyLike money) |
Capture authorized charge.
|
ResourceMonitor<Charge> |
chargeCompletionMonitor(StoreId storeId,
ChargeId chargeId) |
Create a
ResourceMonitor that awaits the charge complete. |
void |
close() |
|
ExchangeRateBuilders.ConvertMoneyBuilder |
convertMoney(MoneyLike moneyToConvert,
String targetCurrency) |
Obtains an estimate of an amount converted to a target currency.
|
GoPaySDK |
copy() |
Create a new instance of the SDK with the same credentials and settings.
|
GoPaySDK |
copy(AuthStrategy authStrategy) |
Create a new instance of the client with a new authentication strategy, but keeping the same SDK settings.
|
GoPaySDK |
copy(AbstractSDKSettings settings) |
Create a new instance of the client with new settings, but keeping the same authentication strategy.
|
static GoPaySDK |
create() |
Create an unauthenticated GoPaySDK instance with default production settings.
|
static GoPaySDK |
create(AuthStrategy authStrategy) |
Create a GoPaySDK instance with default settings using an authentication strategy.
|
static GoPaySDK |
create(AuthStrategy authStrategy,
AbstractSDKSettings settings) |
Create a GoPaySDK instance using an authentication strategy.
|
static GoPaySDK |
create(UserCredentials userCredentials,
AbstractSDKSettings settings) |
Asynchronously creates a GoPaySDK instance requesting a JWT for authentication.
|
static GoPaySDK |
create(AbstractSDKSettings settings) |
Create an unauthenticated GoPaySDK instance.
|
ApplicationTokenBuilders.CreateApplicationTokenRequestBuilder |
createAppToken(StoreId storeId) |
Deprecated.
|
ApplicationTokenBuilders.CreateApplicationTokenRequestBuilder |
createAppToken(StoreId storeId,
List<Domain> domains) |
Creates a new application token for the store with ID
storeId. |
BankAccountsBuilders.CreateBankAccountRequestBuilder |
createBankAccount(JapaneseBankAccount bankAccount) |
Register a new bank account.
|
CancelsBuilders.CreateCancelRequestBuilder |
createCancel(StoreId storeId,
ChargeId chargeId) |
Create a cancel for charge
chargeId and store storeId |
ChargesBuilders.CreateChargeRequestBuilder |
createCharge(TransactionTokenId tokenId,
BigInteger amount,
String currency) |
Make a charge.
|
ChargesBuilders.CreateChargeRequestBuilder |
createCharge(TransactionTokenId tokenId,
BigInteger amount,
String currency,
Boolean capture) |
Make a charge.
|
ChargesBuilders.CreateChargeRequestBuilder |
createCharge(TransactionTokenId tokenId,
MoneyLike money) |
Make a charge.
|
ChargesBuilders.CreateChargeRequestBuilder |
createCharge(TransactionTokenId tokenId,
MoneyLike money,
Boolean capture) |
Make a charge.
|
StoreBuilders.CreateCustomerIdRequestBuilder |
createCustomerId(StoreId storeId,
String customerId) |
Associate a merchant-defined customer ID with a GoPay customer ID.
|
ApplicationTokenBuilders.CreateMerchantApplicationJWTRequestBuilder |
createMerchantAppJWT() |
Creates a new merchant-level Application Json Web Token
|
MerchantsBuilders.CreateMerchantVerificationRequestBuilder |
createMerchantVerification(URL homepageUrl,
String companyDescription,
MerchantCompanyContactInfo companyContactInfo,
BusinessType businessType,
String systemManagerName) |
Submits the merchant's information requesting for verification.
|
RefundBuilders.CreateRefundRequestBuilder |
createRefund(StoreId storeId,
ChargeId chargeId,
BigInteger amount,
String currency,
RefundReason reason) |
Make a refund associated with the charge with ID
chargeId and the store storeId. |
RefundBuilders.CreateRefundRequestBuilder |
createRefund(StoreId storeId,
ChargeId chargeId,
MoneyLike money,
RefundReason reason) |
Make a refund associated with the charge with ID
chargeId and the store storeId. |
StoreBuilders.CreateStoreRequestBuilder |
createStore(String name) |
Register a new store.
|
ApplicationTokenBuilders.CreateStoreApplicationJWTRequestBuilder |
createStoreAppJWT(StoreId storeId) |
Creates a new store-level Application Json Web Token
|
SubscriptionBuilders.CreateSubscriptionRequestBuilder |
createSubscription(TransactionTokenId transactionTokenId,
BigInteger amount,
String amountCurrency,
SubscriptionPeriod period) |
Create a new subscription.
|
SubscriptionBuilders.CreateSubscriptionRequestBuilder |
createSubscription(TransactionTokenId transactionTokenId,
MoneyLike money,
SubscriptionPeriod period) |
Create a new subscription
|
TransactionTokensBuilders.CreateTemporaryTokenAliasRequestBuilder |
createTokenAlias(TransactionTokenId transactionTokenId) |
Create an alias for an existing transaction token
|
TransactionTokensBuilders.CreateTransactionTokenRequestBuilder |
createTransactionToken(String email,
PaymentData paymentData,
TransactionTokenType type) |
Create a new transaction token.
|
WebhookBuilders.CreateWebhookMerchantRequestBuilder |
createWebhook(URL url) |
Create a new webhook.
|
WebhookBuilders.CreateWebhookRequestBuilder |
createWebhook(StoreId storeId,
URL url) |
Create a new webhook associated with a store with ID
storeId. |
ApplicationTokenBuilders.DeleteMerchantApplicationJWTRequestBuilder |
deleteAppJWT(AppJWTId appJWTId) |
Deletes a merchant-level Json Web Token
|
ApplicationTokenBuilders.DeleteStoreApplicationJWTRequestBuilder |
deleteAppJWT(StoreId storeId,
AppJWTId appJWTId) |
Deletes a store-level Json Web Token
|
ApplicationTokenBuilders.DeleteApplicationTokenRequestBuilder |
deleteAppToken(StoreId storeId,
AppTokenId appTokenId) |
Deletes the application token with ID
appTokenId for the store with ID storeId. |
BankAccountsBuilders.DeleteBankAccountRequestBuilder |
deleteBankAccount(BankAccountId bankAccountId) |
Delete the bank account with ID
bankAccountId |
AuthenticationBuilders.LogoutRequestBuilder |
deleteLoginToken() |
Deprecated.
|
StoreBuilders.DeleteStoreRequestBuilder |
deleteStore(StoreId storeId) |
Delete a previously register
|
SubscriptionBuilders.DeleteSubscriptionRequestBuilder |
deleteSubscription(StoreId storeId,
SubscriptionId subscriptionId) |
Delete an existing subscription with ID
subscriptionId for the store with ID storeId. |
TransactionTokensBuilders.DeleteTemporaryTokenAliasRequestBuilder |
deleteTokenAlias(StoreId storeId,
TemporaryTokenAliasId aliasId) |
Delete a temporary transaction token alias
|
TransactionTokensBuilders.DeleteTransactionTokenRequestBuilder |
deleteTransactionToken(StoreId storeId,
TransactionTokenId tokenId) |
Delete a transaction token.
|
WebhookBuilders.DeleteWebhookRequestBuilder |
deleteWebhook(StoreId storeId,
WebhookId webhookId) |
Delete the webhook with ID
webhookId. |
WebhookBuilders.DeleteWebhookMerchantRequestBuilder |
deleteWebhook(WebhookId webhookId) |
Delete the webhook with ID
webhookId. |
BankAccountsBuilders.GetBankAccountRequestBuilder |
getBankAccount(BankAccountId bankAccountId) |
Get detailed information about a bank account with ID
bankAccountId |
CancelsBuilders.GetCancelRequestBuilder |
getCancel(StoreId storeId,
ChargeId chargeId,
CancelId cancelId) |
Obtain detailed information about a cancel with ID
cancelId associated with the charge
chargeId and store storeId. |
ChargesBuilders.GetChargeRequestBuilder |
getCharge(StoreId storeId,
ChargeId chargeId) |
Obtain detailed information for a charge with ID
chargeId for the store with ID storeId |
StoreBuilders.GetCheckoutInfoRequestBuilder |
getCheckoutInfo() |
Get the checkout information for the merchant.
|
StoreBuilders.GetCheckoutInfoRequestBuilder |
getCheckoutInfo(Domain origin) |
Get the checkout information for the merchant.
|
AuthenticationBuilders.LoginRequestBuilder |
getLoginToken(String email,
String password) |
Obtain a new set of login credentials (login token and JWT) for a merchant account.
|
AuthenticationBuilders.LoginRequestBuilder |
getLoginToken(UserCredentials userCredentials) |
Obtain a new set of login credentials (login token and JWT) for a merchant account.
|
MerchantsBuilders.GetMeRequestBuilder |
getMe() |
Gets the merchant's information
|
MerchantsBuilders.GetMerchantVerificationRequestBuilder |
getMerchantVerification() |
Obtain the information submitted by the merchant for verification.
|
BankAccountsBuilders.GetPrimaryBankAccountRequestBuilder |
getPrimaryBankAccount() |
Obtain detailed information on the primary bank account of the merchant.
|
RefundBuilders.GetRefundRequestBuilder |
getRefund(StoreId storeId,
ChargeId chargeId,
RefundId refundId) |
Obtain detailed information about a refund with ID
refundID associated with the charge
with ID chargeID and the store with ID storeId. |
SubscriptionBuilders.GetScheduledPaymentRequestBuilder |
getScheduledPayment(StoreId storeId,
SubscriptionId subscriptionId,
ScheduledPaymentId paymentId) |
Request the detail for a scheduled payment by its ID
|
StoreBuilders.GetStoreRequestBuilder |
getStore(StoreId storeId) |
Obtained detailed information for a store with ID
storeId. |
SubscriptionBuilders.GetSubscriptionRequestBuilder |
getSubscription(StoreId storeId,
SubscriptionId subscriptionId) |
Get detailed information about the subscription with ID
subscriptionId for the store
with ID storeId. |
TransactionTokensBuilders.GetTemporaryTokenAliasRequestBuilder |
getTokenAlias(StoreId storeId,
TemporaryTokenAliasId aliasId) |
Get an existing temporary transaction token alias
|
TransactionTokensBuilders.GetTemporaryTokenAliasAsImageRequestBuilder |
getTokenAliasImage(StoreId storeId,
TemporaryTokenAliasId aliasId) |
Get the token alias image as binary data
|
MerchantsBuilders.GetTransactionHistoryRequestBuilder |
getTransactionHistory() |
Obtain a list of all transactions of the merchant.
|
MerchantsBuilders.GetTransactionHistoryRequestBuilder |
getTransactionHistory(StoreId storeId) |
Obtain a list of transactions of the store.
|
TransactionTokensBuilders.GetTransactionTokenRequestBuilder |
getTransactionToken(StoreId storeId,
TransactionTokenId tokenId) |
Get an existing transaction token.
|
TransferBuilders.GetTransferRequestBuilder |
getTransfer(TransferId transferId) |
Get detailed information about the transfer with ID
transferId |
WebhookBuilders.GetWebhookRequestBuilder |
getWebhook(StoreId storeId,
WebhookId webhookId) |
Obtain detailed information on a webhook with ID
webhookId associated with the store
with ID storeId. |
WebhookBuilders.GetWebhookMerchantRequestBuilder |
getWebhook(WebhookId webhookId) |
Obtain detailed information on a webhook with ID
webhookId. |
ApplicationTokenBuilders.ListApplicationTokenRequestBuilder |
listAppTokens(StoreId storeId) |
List the application tokens available for the store with ID
storeId. |
BankAccountsBuilders.ListAllBankAccountsRequestBuilder |
listBankAccounts() |
Obtain a list of the bank accounts registered by the merchant.
|
CancelsBuilders.ListAllCancelsRequestBuilder |
listCancels(StoreId storeId,
ChargeId chargeId) |
List all the cancels associated with a charge
|
ChargesBuilders.ListChargesRequestBuilder |
listCharges() |
Obtain a list of charges made by the merchant.
|
ChargesBuilders.ListChargesRequestBuilder |
listCharges(StoreId storeId) |
Obtain a list of charges made by the merchant.
|
SubscriptionBuilders.ListChargesForPaymentRequestBuilder |
listChargesForPayment(StoreId storeId,
SubscriptionId subscriptionId,
ScheduledPaymentId paymentId) |
Obtain a list of the charges by the store and the subscription.
|
LedgersBuilders.ListLedgersRequestBuilder |
listLedgers(TransferId transferId) |
List ledgers associated with a transfer.
|
ApplicationTokenBuilders.ListMerchantApplicationJWTRequestBuilder |
listMerchantAppJWT() |
Lists all merchant-level Application Json Web Tokens
|
RefundBuilders.ListRefundsRequestBuilder |
listRefunds(StoreId storeId,
ChargeId chargeId) |
Obtain a list of the refunds made by the merchant.
|
SubscriptionBuilders.ListScheduledPaymentsRequestBuilder |
listScheduledPayments(StoreId storeId,
SubscriptionId subscriptionId) |
Request a list of the payments scheduled for a subscription with ID
subscriptionId |
ApplicationTokenBuilders.ListStoreApplicationJWTRequestBuilder |
listStoreAppJWT(StoreId storeId) |
Lists all store-level Application Json Web Tokens
|
StoreBuilders.ListStoresRequestBuilder |
listStores() |
Obtain a list of all the stores registered by the merchant
|
SubscriptionBuilders.ListSubscriptionChargesRequestBuilder |
listSubscriptionCharges(StoreId storeId,
SubscriptionId subscriptionId) |
Obtain a list of the charges by the store and the subscription.
|
SubscriptionBuilders.ListSubscriptionsMerchantRequestBuilder |
listSubscriptions() |
Obtain a list of all the subscriptions.
|
SubscriptionBuilders.ListSubscriptionsRequestBuilder |
listSubscriptions(StoreId storeId) |
Obtain a list of all the subscriptions.
|
TransactionTokensBuilders.ListTransactionTokensMerchantRequestBuilder |
listTransactionTokens() |
List recurring transaction tokens.
|
TransactionTokensBuilders.ListTransactionTokensRequestBuilder |
listTransactionTokens(StoreId storeId) |
List recurring transaction tokens.
|
TransferBuilders.ListTransferRequestBuilder |
listTransfers() |
Obtain a list of transfers made to the merchant.
|
WebhookBuilders.ListWebhookMerchantRequestBuilder |
listWebhooks() |
Obtain a list of the webhooks.
|
WebhookBuilders.ListWebhookRequestBuilder |
listWebhooks(StoreId storeId) |
Obtain a list of the webhooks associated with a store with ID
storeId. |
AuthenticationBuilders.LogoutRequestBuilder |
logout() |
Invalidate the token used for authentication (login token or JWT) currently set as authentication strategy for this SDK instance.
|
ResourceMonitor<Refund> |
refundCompletionMonitor(StoreId storeId,
ChargeId chargeId,
RefundId refundId) |
Create a
ResourceMonitor that awaits the refund complete. |
SubscriptionBuilders.SimulateInstallmentsPlanRequestBuilder |
simulateSubscriptionPlan(MoneyLike money,
PaymentTypeName paymentType,
SubscriptionPeriod period) |
Simulate the payments plan for a subscription.
|
SubscriptionBuilders.SimulateInstallmentsPlanRequestBuilder |
simulateSubscriptionPlan(StoreId storeId,
MoneyLike money,
PaymentTypeName paymentType,
SubscriptionPeriod period) |
Simulate the payments plan for a subscription.
|
ResourceMonitor<FullSubscription> |
subscriptionCompletionMonitor(StoreId storeId,
SubscriptionId subscriptionId) |
Create a
ResourceMonitor that awaits the subscription to complete. |
ApplicationTokenBuilders.UpdateApplicationTokenRequestBuilder |
updateAppToken(StoreId storeId,
AppTokenId appTokenId,
List<Domain> domains) |
Updates the information for the application token with ID
appTokenId and the store
with ID storeId. |
BankAccountsBuilders.UpdateBankAccountRequestBuilder |
updateBankAccount(BankAccountId bankAccountId) |
Update the information associated with the bank account with ID
bankAccountId |
CancelsBuilders.UpdateCancelRequestBuilder |
updateCancel(StoreId storeId,
ChargeId chargeId,
CancelId cancelId) |
Update an existing cancel with Id
cancelId associated with charge chargeId
and store storeId |
ChargesBuilders.UpdateChargeRequestBuilder |
updateCharge(StoreId storeId,
ChargeId chargeId) |
Update the settings of an existing charge with ID
chargeId for the store
with ID storeId. |
MerchantsBuilders.UpdateMerchantVerificationRequestBuilder |
updateMerchantVerification() |
Update the information submitted by the merchant for verification.
|
SubscriptionBuilders.UpdateScheduledPaymentRequestBuilder |
updateScheduledPayment(StoreId storeId,
SubscriptionId subscriptionId,
ScheduledPaymentId paymentId) |
Update the properties of a scheduled payment such as due date and payment status
|
StoreBuilders.UpdateStoreRequestBuilder |
updateStore(StoreId storeId) |
Updates the information of a previously registered store.
|
SubscriptionBuilders.UpdateSubscriptionRequestBuilder |
updateSubscription(StoreId storeId,
SubscriptionId subscriptionId) |
Update the settings of an existing subscription with ID
subscriptionId for the store
with ID storeId. |
TransactionTokensBuilders.UpdateTransactionTokenRequestBuilder |
updateTransactionToken(StoreId storeId,
TransactionTokenId tokenId) |
Update a recurring transaction token.
|
WebhookBuilders.UpdateWebhookRequestBuilder |
updateWebhook(StoreId storeId,
WebhookId webhookId) |
Update a webhook with ID
webhookId associated with a store with ID storeId. |
WebhookBuilders.UpdateWebhookMerchantRequestBuilder |
updateWebhook(WebhookId webhookId) |
Update a webhook with ID
webhookId. |
public GoPaySDK copy(AuthStrategy authStrategy)
SDKMethodscopy in interface SDKMethods<GoPaySDK>public GoPaySDK copy(AbstractSDKSettings settings)
SDKMethodscopy in interface SDKMethods<GoPaySDK>public GoPaySDK copy()
SDKMethodscopy in interface SDKMethods<GoPaySDK>public static GoPaySDK create(AuthStrategy authStrategy, AbstractSDKSettings settings)
authStrategy - The merchant's credentials.settings - The SDK settings.AbstractSDKSettings,
AuthStrategy,
LoginTokenStrategy,
AppTokenStrategy,
LoginJWTStrategy,
AppJWTStrategy,
UnauthenticatedStrategypublic static GoPaySDK create(AbstractSDKSettings settings)
settings - The SDK settings.AbstractSDKSettingspublic static GoPaySDK create()
AbstractSDKSettingspublic static GoPaySDK create(AuthStrategy authStrategy)
authStrategy - The merchant's credentials.AbstractSDKSettings,
AuthStrategy,
LoginTokenStrategy,
AppTokenStrategy,
LoginJWTStrategy,
AppJWTStrategy,
UnauthenticatedStrategy,
AbstractSDKSettingspublic static GoPaySDK create(UserCredentials userCredentials, AbstractSDKSettings settings) throws IOException, GoPayException
userCredentials - The merchant's email and passwordTooManyRequestsExceptionIOExceptionGoPayExceptionUserCredentialspublic AuthenticationBuilders.LoginRequestBuilder getLoginToken(String email, String password)
SDKMethodsgetLoginToken in interface SDKMethods<GoPaySDK>email - the merchant's email that is associated with the GoPay accountpassword - the merchant's passwordAbstractAuthenticationBuilders.AbstractLoginRequestBuilderpublic AuthenticationBuilders.LoginRequestBuilder getLoginToken(UserCredentials userCredentials)
SDKMethodsgetLoginToken in interface SDKMethods<GoPaySDK>AbstractAuthenticationBuilders.AbstractLoginRequestBuilder@Deprecated public AuthenticationBuilders.LogoutRequestBuilder deleteLoginToken()
public AuthenticationBuilders.LogoutRequestBuilder logout()
SDKMethodslogout in interface SDKMethods<GoPaySDK>AbstractAuthenticationBuilders.AbstractLogoutRequestBuilderpublic StoreBuilders.ListStoresRequestBuilder listStores()
SDKMethodslistStores in interface SDKMethods<GoPaySDK>PaginatorStoreBuilders.ListStoresRequestBuilder,
Paginatorpublic StoreBuilders.GetStoreRequestBuilder getStore(StoreId storeId)
SDKMethodsstoreId.getStore in interface SDKMethods<GoPaySDK>storeId - the store's IDStoreBuilders.GetStoreRequestBuilderpublic StoreBuilders.CreateStoreRequestBuilder createStore(String name)
SDKMethodscreateStore in interface SDKMethods<GoPaySDK>name - the new store's nameStoreBuilders.CreateStoreRequestBuilderpublic StoreBuilders.UpdateStoreRequestBuilder updateStore(StoreId storeId)
SDKMethodsupdateStore in interface SDKMethods<GoPaySDK>storeId - the ID of the store that is going to be updatedStoreBuilders.UpdateStoreRequestBuilderpublic StoreBuilders.DeleteStoreRequestBuilder deleteStore(StoreId storeId)
SDKMethodsdeleteStore in interface SDKMethods<GoPaySDK>storeId - the ID of the store that is going to be deletedpublic StoreBuilders.GetCheckoutInfoRequestBuilder getCheckoutInfo(Domain origin)
SDKMethodsgetCheckoutInfo in interface SDKMethods<GoPaySDK>origin - a domain included in the list of domains associated with the application tokenpublic StoreBuilders.GetCheckoutInfoRequestBuilder getCheckoutInfo()
SDKMethodsgetCheckoutInfo in interface SDKMethods<GoPaySDK>public StoreBuilders.CreateCustomerIdRequestBuilder createCustomerId(StoreId storeId, String customerId)
SDKMethodscreateCustomerId in interface SDKMethods<GoPaySDK>public ApplicationTokenBuilders.ListApplicationTokenRequestBuilder listAppTokens(StoreId storeId)
SDKMethodsstoreId.listAppTokens in interface SDKMethods<GoPaySDK>storeId - the ID of the store for which an application token is being requestedpublic ApplicationTokenBuilders.DeleteApplicationTokenRequestBuilder deleteAppToken(StoreId storeId, AppTokenId appTokenId)
SDKMethodsappTokenId for the store with ID storeId.deleteAppToken in interface SDKMethods<GoPaySDK>storeId - the ID of the store associated with the application token to be deletedappTokenId - the ID of the application token to be deleted@Deprecated public ApplicationTokenBuilders.CreateApplicationTokenRequestBuilder createAppToken(StoreId storeId)
SDKMethodsstoreId.createAppToken in interface SDKMethods<GoPaySDK>storeId - the ID of the store for which a new application token will be createdCreateApplicationTokenRequestpublic ApplicationTokenBuilders.CreateApplicationTokenRequestBuilder createAppToken(StoreId storeId, List<Domain> domains)
SDKMethodsstoreId.createAppToken in interface SDKMethods<GoPaySDK>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 tokenCreateApplicationTokenRequestpublic ApplicationTokenBuilders.UpdateApplicationTokenRequestBuilder updateAppToken(StoreId storeId, AppTokenId appTokenId, List<Domain> domains)
SDKMethodsappTokenId and the store
with ID storeId.updateAppToken in interface SDKMethods<GoPaySDK>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 tokenpublic ApplicationTokenBuilders.CreateMerchantApplicationJWTRequestBuilder createMerchantAppJWT()
SDKMethodscreateMerchantAppJWT in interface SDKMethods<GoPaySDK>public ApplicationTokenBuilders.ListMerchantApplicationJWTRequestBuilder listMerchantAppJWT()
SDKMethodslistMerchantAppJWT in interface SDKMethods<GoPaySDK>public ApplicationTokenBuilders.DeleteMerchantApplicationJWTRequestBuilder deleteAppJWT(AppJWTId appJWTId)
SDKMethodsdeleteAppJWT in interface SDKMethods<GoPaySDK>public ApplicationTokenBuilders.CreateStoreApplicationJWTRequestBuilder createStoreAppJWT(StoreId storeId)
SDKMethodscreateStoreAppJWT in interface SDKMethods<GoPaySDK>public ApplicationTokenBuilders.ListStoreApplicationJWTRequestBuilder listStoreAppJWT(StoreId storeId)
SDKMethodslistStoreAppJWT in interface SDKMethods<GoPaySDK>public ApplicationTokenBuilders.DeleteStoreApplicationJWTRequestBuilder deleteAppJWT(StoreId storeId, AppJWTId appJWTId)
SDKMethodsdeleteAppJWT in interface SDKMethods<GoPaySDK>public TransferBuilders.ListTransferRequestBuilder listTransfers()
SDKMethodslistTransfers in interface SDKMethods<GoPaySDK>Paginator.AbstractTransferBuilders.AbstractListTransferRequestBuilder,
Paginatorpublic TransferBuilders.GetTransferRequestBuilder getTransfer(TransferId transferId)
SDKMethodstransferIdgetTransfer in interface SDKMethods<GoPaySDK>transferId - the ID of the transfer being queriedGetTransferRequestpublic ChargesBuilders.ListChargesRequestBuilder listCharges(StoreId storeId)
SDKMethodslistCharges in interface SDKMethods<GoPaySDK>storeId - (optional) the ID of the store for which charges are being requestedListChargesRequestBuilder implementing PaginatorPaginatorpublic ChargesBuilders.ListChargesRequestBuilder listCharges()
SDKMethodslistCharges in interface SDKMethods<GoPaySDK>ListChargesRequestBuilder implementing PaginatorPaginatorpublic ChargesBuilders.GetChargeRequestBuilder getCharge(StoreId storeId, ChargeId chargeId)
SDKMethodschargeId for the store with ID storeIdgetCharge in interface SDKMethods<GoPaySDK>storeId - the ID of the store associated with the charge to be queriedchargeId - the ID of the charge to be queriedpublic ResourceMonitor<Charge> chargeCompletionMonitor(StoreId storeId, ChargeId chargeId)
SDKMethodsResourceMonitor that awaits the charge complete.
ResourceMonitor.await() will wait until the charge status is other than 'pending'.chargeCompletionMonitor in interface SDKMethods<GoPaySDK>storeId - the ID of the store associated with the charge to be queriedchargeId - the ID of the charge to be queriedpublic ChargesBuilders.CreateChargeRequestBuilder createCharge(TransactionTokenId tokenId, BigInteger amount, String currency)
SDKMethodscreateCharge in interface SDKMethods<GoPaySDK>tokenId - the ID of the transaction token to be used for the chargeamount - the amount of the chargecurrency - the currencypublic ChargesBuilders.CreateChargeRequestBuilder createCharge(TransactionTokenId tokenId, BigInteger amount, String currency, Boolean capture)
SDKMethodscreateCharge in interface SDKMethods<GoPaySDK>tokenId - the ID of the transaction token to be used for the chargeamount - the amount of the chargecurrency - the currencycapture - if false, authorization onlypublic ChargesBuilders.CreateChargeRequestBuilder createCharge(TransactionTokenId tokenId, MoneyLike money)
SDKMethodscreateCharge in interface SDKMethods<GoPaySDK>money - the amount and currency of the charge.public ChargesBuilders.CreateChargeRequestBuilder createCharge(TransactionTokenId tokenId, MoneyLike money, Boolean capture)
SDKMethodscreateCharge in interface SDKMethods<GoPaySDK>money - the amount and currency of the charge.public BatchCreateCharge batchCreateCharge()
SDKMethodsbatchCreateCharge in interface SDKMethods<GoPaySDK>public BatchCreateCharge batchCreateCharge(int createMaxRetry, int statusCheckTimeout)
SDKMethodsbatchCreateCharge in interface SDKMethods<GoPaySDK>createMaxRetry - Max retry number if creating a charge failed by temporary error.statusCheckTimeout - Timeout to wait until charge is processed.public ChargesBuilders.CreateChargeRequestBuilder authorizeCharge(TransactionTokenId tokenId, BigInteger amount, String currency)
SDKMethodsauthorizeCharge in interface SDKMethods<GoPaySDK>tokenId - the ID of the transaction token to be used for the chargeamount - the amount of the chargecurrency - the currencypublic ChargesBuilders.CreateChargeRequestBuilder authorizeCharge(TransactionTokenId tokenId, MoneyLike money)
SDKMethodsauthorizeCharge in interface SDKMethods<GoPaySDK>money - the amount and currency of the charge.public ChargesBuilders.CaptureAuthorizedChargeRequestBuilder captureAuthorizedCharge(StoreId storeId, ChargeId chargeId, BigInteger amount, String currency)
SDKMethodscaptureAuthorizedCharge in interface SDKMethods<GoPaySDK>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 currencypublic ChargesBuilders.CaptureAuthorizedChargeRequestBuilder captureAuthorizedCharge(StoreId storeId, ChargeId chargeId, MoneyLike money)
SDKMethodscaptureAuthorizedCharge in interface SDKMethods<GoPaySDK>money - the amount and currency of the charge.public ChargesBuilders.UpdateChargeRequestBuilder updateCharge(StoreId storeId, ChargeId chargeId)
SDKMethodschargeId for the store
with ID storeId.updateCharge in interface SDKMethods<GoPaySDK>storeId - the ID of the store associated with the charge to be queriedchargeId - the ID of the charge to be queriedPaginatorpublic SubscriptionBuilders.ListSubscriptionsMerchantRequestBuilder listSubscriptions()
SDKMethodslistSubscriptions in interface SDKMethods<GoPaySDK>ListSubscriptionsRequest and PaginatorPaginatorpublic SubscriptionBuilders.ListSubscriptionsRequestBuilder listSubscriptions(StoreId storeId)
SDKMethodslistSubscriptions in interface SDKMethods<GoPaySDK>storeId - the ID of the store for which subscriptions will be listedListSubscriptionsRequest and PaginatorPaginatorpublic SubscriptionBuilders.GetSubscriptionRequestBuilder getSubscription(StoreId storeId, SubscriptionId subscriptionId)
SDKMethodssubscriptionId for the store
with ID storeId.getSubscription in interface SDKMethods<GoPaySDK>storeId - the ID of the store associated with the subscription to be queriedsubscriptionId - the ID of the subscription to be queriedGetSubscriptionRequestpublic ResourceMonitor<FullSubscription> subscriptionCompletionMonitor(StoreId storeId, SubscriptionId subscriptionId)
SDKMethodsResourceMonitor that awaits the subscription to complete.
ResourceMonitor.await() will wait until the subscription status is other than 'unverified'.subscriptionCompletionMonitor in interface SDKMethods<GoPaySDK>storeId - the ID of the store associated with the subscription to be queriedsubscriptionId - the ID of the subscription to be queriedpublic SubscriptionBuilders.CreateSubscriptionRequestBuilder createSubscription(TransactionTokenId transactionTokenId, BigInteger amount, String amountCurrency, SubscriptionPeriod period)
SDKMethodscreateSubscription in interface SDKMethods<GoPaySDK>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 subscriptionpublic SubscriptionBuilders.CreateSubscriptionRequestBuilder createSubscription(TransactionTokenId transactionTokenId, MoneyLike money, SubscriptionPeriod period)
SDKMethodscreateSubscription in interface SDKMethods<GoPaySDK>money - the amount and currency of the subscriptionpublic SubscriptionBuilders.UpdateSubscriptionRequestBuilder updateSubscription(StoreId storeId, SubscriptionId subscriptionId)
SDKMethodssubscriptionId for the store
with ID storeId.updateSubscription in interface SDKMethods<GoPaySDK>storeId - the ID of the store for which subscription charges will be listedsubscriptionId - the ID of the subscription for which charges will be listedPaginatorpublic SubscriptionBuilders.ListChargesForPaymentRequestBuilder listChargesForPayment(StoreId storeId, SubscriptionId subscriptionId, ScheduledPaymentId paymentId)
SDKMethodslistChargesForPayment in interface SDKMethods<GoPaySDK>storeId - the ID of the store in which subscription is.subscriptionId - the ID of the subscription for which charges will be listedPaginatorpublic SubscriptionBuilders.ListSubscriptionChargesRequestBuilder listSubscriptionCharges(StoreId storeId, SubscriptionId subscriptionId)
SDKMethodslistSubscriptionCharges in interface SDKMethods<GoPaySDK>storeId - the ID of the store in which subscription is.subscriptionId - the ID of the subscription for which charges will be listedPaginatorpublic SubscriptionBuilders.DeleteSubscriptionRequestBuilder deleteSubscription(StoreId storeId, SubscriptionId subscriptionId)
SDKMethodssubscriptionId for the store with ID storeId.deleteSubscription in interface SDKMethods<GoPaySDK>storeId - the ID of the store associated with the subscription that will be deletedsubscriptionId - the ID of the subscription to be deletedpublic SubscriptionBuilders.ListScheduledPaymentsRequestBuilder listScheduledPayments(StoreId storeId, SubscriptionId subscriptionId)
SDKMethodssubscriptionIdlistScheduledPayments in interface SDKMethods<GoPaySDK>ListScheduledPaymentsRequestpublic SubscriptionBuilders.GetScheduledPaymentRequestBuilder getScheduledPayment(StoreId storeId, SubscriptionId subscriptionId, ScheduledPaymentId paymentId)
SDKMethodsgetScheduledPayment in interface SDKMethods<GoPaySDK>GetScheduledPaymentRequestpublic SubscriptionBuilders.UpdateScheduledPaymentRequestBuilder updateScheduledPayment(StoreId storeId, SubscriptionId subscriptionId, ScheduledPaymentId paymentId)
SDKMethodsupdateScheduledPayment in interface SDKMethods<GoPaySDK>UpdateScheduledPaymentRequestpublic SubscriptionBuilders.SimulateInstallmentsPlanRequestBuilder simulateSubscriptionPlan(MoneyLike money, PaymentTypeName paymentType, SubscriptionPeriod period)
SDKMethodssimulateSubscriptionPlan in interface SDKMethods<GoPaySDK>money - amount and currency of the subscriptionpaymentType - the type of the payment (credit card, QR Scan, etc.)period - the Subscription periodpublic SubscriptionBuilders.SimulateInstallmentsPlanRequestBuilder simulateSubscriptionPlan(StoreId storeId, MoneyLike money, PaymentTypeName paymentType, SubscriptionPeriod period)
SDKMethodssimulateSubscriptionPlan in interface SDKMethods<GoPaySDK>money - amount and currency of the subscriptionpaymentType - the type of the payment (credit card, QR Scan, etc.)period - the Subscription periodpublic RefundBuilders.ListRefundsRequestBuilder listRefunds(StoreId storeId, ChargeId chargeId)
SDKMethodslistRefunds in interface SDKMethods<GoPaySDK>storeId - the ID of the store for which refunds will be listedchargeId - the ID of the charge for wich refunds will be listedpublic RefundBuilders.GetRefundRequestBuilder getRefund(StoreId storeId, ChargeId chargeId, RefundId refundId)
SDKMethodsrefundID associated with the charge
with ID chargeID and the store with ID storeId.getRefund in interface SDKMethods<GoPaySDK>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 queriedpublic RefundBuilders.CreateRefundRequestBuilder createRefund(StoreId storeId, ChargeId chargeId, BigInteger amount, String currency, RefundReason reason)
SDKMethodschargeId and the store storeId.createRefund in interface SDKMethods<GoPaySDK>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 madeCreateRefundRequestpublic RefundBuilders.CreateRefundRequestBuilder createRefund(StoreId storeId, ChargeId chargeId, MoneyLike money, RefundReason reason)
SDKMethodschargeId and the store storeId.createRefund in interface SDKMethods<GoPaySDK>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 madeCreateRefundRequestpublic ResourceMonitor<Refund> refundCompletionMonitor(StoreId storeId, ChargeId chargeId, RefundId refundId)
SDKMethodsResourceMonitor that awaits the refund complete.
ResourceMonitor.await() will wait until the refund status is other than 'pending'.refundCompletionMonitor in interface SDKMethods<GoPaySDK>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 queriedpublic CancelsBuilders.ListAllCancelsRequestBuilder listCancels(StoreId storeId, ChargeId chargeId)
SDKMethodslistCancels in interface SDKMethods<GoPaySDK>public CancelsBuilders.GetCancelRequestBuilder getCancel(StoreId storeId, ChargeId chargeId, CancelId cancelId)
SDKMethodscancelId associated with the charge
chargeId and store storeId.getCancel in interface SDKMethods<GoPaySDK>public ResourceMonitor<Cancel> cancelCompletionMonitor(StoreId storeId, ChargeId chargeId, CancelId cancelId)
SDKMethodsResourceMonitor that awaits the cancel to complete.
ResourceMonitor.await() will wait until the cancel status is other than 'pending'.cancelCompletionMonitor in interface SDKMethods<GoPaySDK>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 queriedpublic CancelsBuilders.CreateCancelRequestBuilder createCancel(StoreId storeId, ChargeId chargeId)
SDKMethodschargeId and store storeIdcreateCancel in interface SDKMethods<GoPaySDK>public CancelsBuilders.UpdateCancelRequestBuilder updateCancel(StoreId storeId, ChargeId chargeId, CancelId cancelId)
SDKMethodscancelId associated with charge chargeId
and store storeIdupdateCancel in interface SDKMethods<GoPaySDK>public BankAccountsBuilders.ListAllBankAccountsRequestBuilder listBankAccounts()
SDKMethodslistBankAccounts in interface SDKMethods<GoPaySDK>public BankAccountsBuilders.GetBankAccountRequestBuilder getBankAccount(BankAccountId bankAccountId)
SDKMethodsbankAccountIdgetBankAccount in interface SDKMethods<GoPaySDK>bankAccountId - the ID of the bank account to be queriedpublic BankAccountsBuilders.CreateBankAccountRequestBuilder createBankAccount(JapaneseBankAccount bankAccount)
SDKMethodscreateBankAccount in interface SDKMethods<GoPaySDK>bankAccount - a bank account object. Currently only Japanese Bank Accounts are supported.JapaneseBankAccountpublic BankAccountsBuilders.UpdateBankAccountRequestBuilder updateBankAccount(BankAccountId bankAccountId)
SDKMethodsbankAccountIdupdateBankAccount in interface SDKMethods<GoPaySDK>bankAccountId - the ID of the bank account to be updatedpublic BankAccountsBuilders.DeleteBankAccountRequestBuilder deleteBankAccount(BankAccountId bankAccountId)
SDKMethodsbankAccountIddeleteBankAccount in interface SDKMethods<GoPaySDK>bankAccountId - the ID of the bank account to be deletedpublic BankAccountsBuilders.GetPrimaryBankAccountRequestBuilder getPrimaryBankAccount()
SDKMethodsgetPrimaryBankAccount in interface SDKMethods<GoPaySDK>public MerchantsBuilders.GetMerchantVerificationRequestBuilder getMerchantVerification()
SDKMethodsgetMerchantVerification in interface SDKMethods<GoPaySDK>public MerchantsBuilders.UpdateMerchantVerificationRequestBuilder updateMerchantVerification()
SDKMethodsupdateMerchantVerification in interface SDKMethods<GoPaySDK>public MerchantsBuilders.CreateMerchantVerificationRequestBuilder createMerchantVerification(URL homepageUrl, String companyDescription, MerchantCompanyContactInfo companyContactInfo, BusinessType businessType, String systemManagerName)
SDKMethodscreateMerchantVerification in interface SDKMethods<GoPaySDK>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 namepublic MerchantsBuilders.GetMeRequestBuilder getMe()
SDKMethodsgetMe in interface SDKMethods<GoPaySDK>public MerchantsBuilders.GetTransactionHistoryRequestBuilder getTransactionHistory(StoreId storeId)
SDKMethodsgetTransactionHistory in interface SDKMethods<GoPaySDK>storeId - (optional) the ID of the store for which transactions will be listedpublic MerchantsBuilders.GetTransactionHistoryRequestBuilder getTransactionHistory()
SDKMethodsgetTransactionHistory in interface SDKMethods<GoPaySDK>public WebhookBuilders.ListWebhookMerchantRequestBuilder listWebhooks()
SDKMethodslistWebhooks in interface SDKMethods<GoPaySDK>public WebhookBuilders.GetWebhookMerchantRequestBuilder getWebhook(WebhookId webhookId)
SDKMethodswebhookId.getWebhook in interface SDKMethods<GoPaySDK>webhookId - the ID of the webhook to be queriedpublic WebhookBuilders.CreateWebhookMerchantRequestBuilder createWebhook(URL url)
SDKMethodscreateWebhook in interface SDKMethods<GoPaySDK>url - the webhook's URLpublic WebhookBuilders.UpdateWebhookMerchantRequestBuilder updateWebhook(WebhookId webhookId)
SDKMethodswebhookId.updateWebhook in interface SDKMethods<GoPaySDK>webhookId - the ID of the webhook that will be updatedpublic WebhookBuilders.DeleteWebhookMerchantRequestBuilder deleteWebhook(WebhookId webhookId)
SDKMethodswebhookId.deleteWebhook in interface SDKMethods<GoPaySDK>webhookId - the ID of the webhook to be deletedVoidpublic WebhookBuilders.ListWebhookRequestBuilder listWebhooks(StoreId storeId)
SDKMethodsstoreId.listWebhooks in interface SDKMethods<GoPaySDK>storeId - the ID of the store for which webhooks will be listedpublic WebhookBuilders.GetWebhookRequestBuilder getWebhook(StoreId storeId, WebhookId webhookId)
SDKMethodswebhookId associated with the store
with ID storeId.getWebhook in interface SDKMethods<GoPaySDK>storeId - the ID of the store associated with the webhook that will be queriedwebhookId - the ID of the webhook to be queriedpublic WebhookBuilders.CreateWebhookRequestBuilder createWebhook(StoreId storeId, URL url)
SDKMethodsstoreId.createWebhook in interface SDKMethods<GoPaySDK>storeId - the ID of the store for which a new webhook will be createdurl - the webhook's URLpublic WebhookBuilders.UpdateWebhookRequestBuilder updateWebhook(StoreId storeId, WebhookId webhookId)
SDKMethodswebhookId associated with a store with ID storeId.updateWebhook in interface SDKMethods<GoPaySDK>storeId - the ID of the store associated with the webhook that will be updatedwebhookId - the ID of the webhook that will be updatedpublic WebhookBuilders.DeleteWebhookRequestBuilder deleteWebhook(StoreId storeId, WebhookId webhookId)
SDKMethodswebhookId.deleteWebhook in interface SDKMethods<GoPaySDK>storeId - the ID of the store associated with the webhook to be deletedwebhookId - the ID of the webhook to be deletedVoidpublic TransactionTokensBuilders.CreateTransactionTokenRequestBuilder createTransactionToken(String email, PaymentData paymentData, TransactionTokenType type)
SDKMethodscreateTransactionToken in interface SDKMethods<GoPaySDK>email - the email address of the person making the paymentpaymentData - instance of CreditCard, QRScanData, KonbiniPayment or ApplePaypublic TransactionTokensBuilders.DeleteTransactionTokenRequestBuilder deleteTransactionToken(StoreId storeId, TransactionTokenId tokenId)
SDKMethodsdeleteTransactionToken in interface SDKMethods<GoPaySDK>storeId - the ID of the store associated with the transaction token to be deletedtokenId - the ID of the transaction token to be deletedpublic TransactionTokensBuilders.GetTransactionTokenRequestBuilder getTransactionToken(StoreId storeId, TransactionTokenId tokenId)
SDKMethodsgetTransactionToken in interface SDKMethods<GoPaySDK>storeId - the ID of the store associated with the transaction token being queriedtokenId - the ID of the transaction token to be queriedpublic TransactionTokensBuilders.UpdateTransactionTokenRequestBuilder updateTransactionToken(StoreId storeId, TransactionTokenId tokenId)
SDKMethodsupdateTransactionToken in interface SDKMethods<GoPaySDK>storeId - the ID of the store associated with the transaction token to be updatedtokenId - the ID of the transaction token to be updatedpublic TransactionTokensBuilders.ListTransactionTokensRequestBuilder listTransactionTokens(StoreId storeId)
SDKMethodslistTransactionTokens in interface SDKMethods<GoPaySDK>storeId - the ID of the storepublic TransactionTokensBuilders.ListTransactionTokensMerchantRequestBuilder listTransactionTokens()
SDKMethodslistTransactionTokens in interface SDKMethods<GoPaySDK>public TransactionTokensBuilders.CreateTemporaryTokenAliasRequestBuilder createTokenAlias(TransactionTokenId transactionTokenId)
SDKMethodscreateTokenAlias in interface SDKMethods<GoPaySDK>public TransactionTokensBuilders.GetTemporaryTokenAliasRequestBuilder getTokenAlias(StoreId storeId, TemporaryTokenAliasId aliasId)
SDKMethodsgetTokenAlias in interface SDKMethods<GoPaySDK>storeId - the ID of the storealiasId - the ID of the temporary aliaspublic TransactionTokensBuilders.GetTemporaryTokenAliasAsImageRequestBuilder getTokenAliasImage(StoreId storeId, TemporaryTokenAliasId aliasId)
SDKMethodsgetTokenAliasImage in interface SDKMethods<GoPaySDK>storeId - the ID of the storealiasId - the ID of the temporary aliaspublic TransactionTokensBuilders.DeleteTemporaryTokenAliasRequestBuilder deleteTokenAlias(StoreId storeId, TemporaryTokenAliasId aliasId)
SDKMethodsdeleteTokenAlias in interface SDKMethods<GoPaySDK>storeId - the ID of the storealiasId - the ID of the temporary alias to be deletedpublic LedgersBuilders.ListLedgersRequestBuilder listLedgers(TransferId transferId)
SDKMethodslistLedgers in interface SDKMethods<GoPaySDK>transferId - the ID of the transfer for which ledgers will be listedpublic ExchangeRateBuilders.ConvertMoneyBuilder convertMoney(MoneyLike moneyToConvert, String targetCurrency)
SDKMethodsconvertMoney in interface SDKMethods<GoPaySDK>public void close()
throws IOException
close in interface AutoCloseableclose in interface CloseableIOExceptionCopyright © 2018 The Apache Software Foundation. All rights reserved.