-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added Hook entity type to allow management of URL notifications;
Modified BankAccount handling and added five new types of bank accounts (IBAN, GB, US, CA and OTHER); Minor changes related to code cleanup.
- Loading branch information
1 parent
440e23b
commit 4e81a83
Showing
30 changed files
with
3,913 additions
and
2,788 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,106 +1,115 @@ | ||
package com.mangopay; | ||
|
||
import com.mangopay.core.Configuration; | ||
import com.mangopay.core.*; | ||
|
||
/** | ||
* MangoPay API main entry point. | ||
* Provides managers to connect, send and read data from MangoPay API | ||
* as well as holds configuration/authorization data. | ||
*/ | ||
public class MangoPayApi { | ||
|
||
public MangoPayApi() { | ||
|
||
// default config setup | ||
Config = new Configuration(); | ||
OAuthTokenManager = new AuthorizationTokenManager(this); | ||
|
||
// API managers | ||
AuthenticationManager = new ApiOAuth(this); | ||
Clients = new ApiClients(this); | ||
Users = new ApiUsers(this); | ||
Wallets = new ApiWallets(this); | ||
PayIns = new ApiPayIns(this); | ||
PayOuts = new ApiPayOuts(this); | ||
Refunds = new ApiRefunds(this); | ||
Transfers = new ApiTransfers(this); | ||
CardRegistrations = new ApiCardRegistrations(this); | ||
Cards = new ApiCards(this); | ||
Events = new ApiEvents(this); | ||
} | ||
|
||
//////////////////////////////////////// | ||
// Config/authorization related fields | ||
//////////////////////////////////////// | ||
|
||
/** | ||
* Authorization token methods. | ||
*/ | ||
public AuthorizationTokenManager OAuthTokenManager; | ||
|
||
/** | ||
* Configuration instance with default settings (to be reset if required). | ||
*/ | ||
public Configuration Config; | ||
|
||
//////////////////////////////////////// | ||
// API managers fields | ||
//////////////////////////////////////// | ||
|
||
/** | ||
* OAuth methods. | ||
*/ | ||
public ApiOAuth AuthenticationManager; | ||
|
||
/** | ||
* Clients methods. | ||
*/ | ||
public ApiClients Clients; | ||
|
||
/** | ||
* Users methods. | ||
*/ | ||
public ApiUsers Users; | ||
|
||
/** | ||
* Wallets methods. | ||
*/ | ||
public ApiWallets Wallets; | ||
|
||
/** | ||
* PayIns methods. | ||
*/ | ||
public ApiPayIns PayIns; | ||
|
||
/** | ||
* PayOuts methods. | ||
*/ | ||
public ApiPayOuts PayOuts; | ||
|
||
/** | ||
* Transfer methods. | ||
*/ | ||
public ApiTransfers Transfers; | ||
|
||
/** | ||
* CardRegistrations methods. | ||
*/ | ||
public ApiCardRegistrations CardRegistrations; | ||
|
||
/** | ||
* Cards methods. | ||
*/ | ||
public ApiCards Cards; | ||
|
||
/** | ||
* Refunds methods. | ||
*/ | ||
public ApiRefunds Refunds; | ||
|
||
/** | ||
* Events methods. | ||
*/ | ||
public ApiEvents Events; | ||
|
||
} | ||
package com.mangopay; | ||
|
||
import com.mangopay.core.Configuration; | ||
import com.mangopay.core.*; | ||
|
||
/** | ||
* MangoPay API main entry point. | ||
* Provides managers to connect, send and read data from MangoPay API | ||
* as well as holds configuration/authorization data. | ||
*/ | ||
public class MangoPayApi { | ||
|
||
public MangoPayApi() { | ||
|
||
// default config setup | ||
Config = new Configuration(); | ||
OAuthTokenManager = new AuthorizationTokenManager(this); | ||
|
||
// API managers | ||
AuthenticationManager = new ApiOAuth(this); | ||
Clients = new ApiClients(this); | ||
Users = new ApiUsers(this); | ||
Wallets = new ApiWallets(this); | ||
PayIns = new ApiPayIns(this); | ||
PayOuts = new ApiPayOuts(this); | ||
Refunds = new ApiRefunds(this); | ||
Transfers = new ApiTransfers(this); | ||
CardRegistrations = new ApiCardRegistrations(this); | ||
Cards = new ApiCards(this); | ||
Events = new ApiEvents(this); | ||
CardPreAuthorizations = new ApiCardPreAuthorizations(this); | ||
Hooks = new ApiHooks(this); | ||
} | ||
|
||
//////////////////////////////////////// | ||
// Config/authorization related fields | ||
//////////////////////////////////////// | ||
|
||
/** | ||
* Authorization token methods. | ||
*/ | ||
public AuthorizationTokenManager OAuthTokenManager; | ||
|
||
/** | ||
* Configuration instance with default settings (to be reset if required). | ||
*/ | ||
public Configuration Config; | ||
|
||
//////////////////////////////////////// | ||
// API managers fields | ||
//////////////////////////////////////// | ||
|
||
/** | ||
* OAuth methods. | ||
*/ | ||
public ApiOAuth AuthenticationManager; | ||
|
||
/** | ||
* Clients methods. | ||
*/ | ||
public ApiClients Clients; | ||
|
||
/** | ||
* Users methods. | ||
*/ | ||
public ApiUsers Users; | ||
|
||
/** | ||
* Wallets methods. | ||
*/ | ||
public ApiWallets Wallets; | ||
|
||
/** | ||
* PayIns methods. | ||
*/ | ||
public ApiPayIns PayIns; | ||
|
||
/** | ||
* PayOuts methods. | ||
*/ | ||
public ApiPayOuts PayOuts; | ||
|
||
/** | ||
* Transfer methods. | ||
*/ | ||
public ApiTransfers Transfers; | ||
|
||
/** | ||
* CardRegistrations methods. | ||
*/ | ||
public ApiCardRegistrations CardRegistrations; | ||
|
||
public ApiCardPreAuthorizations CardPreAuthorizations; | ||
|
||
/** | ||
* Cards methods. | ||
*/ | ||
public ApiCards Cards; | ||
|
||
/** | ||
* Refunds methods. | ||
*/ | ||
public ApiRefunds Refunds; | ||
|
||
/** | ||
* Events methods. | ||
*/ | ||
public ApiEvents Events; | ||
|
||
/** | ||
* Hooks methods. | ||
*/ | ||
public ApiHooks Hooks; | ||
|
||
} |
Oops, something went wrong.