Skip to content

Commit

Permalink
Added Hook entity type to allow management of URL notifications;
Browse files Browse the repository at this point in the history
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
lukasz-drzewiecki committed Mar 20, 2014
1 parent 440e23b commit 4e81a83
Show file tree
Hide file tree
Showing 30 changed files with 3,913 additions and 2,788 deletions.
221 changes: 115 additions & 106 deletions src/com/mangopay/MangoPayApi.java
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;

}
Loading

0 comments on commit 4e81a83

Please sign in to comment.