Example #1
0
 public Api(Client client)
 {
    this._client = client;
    this._user = new User(this);
    this._merchants = new Merchant(this);
    this._invoices = new Invoices(this);
    this._accounts = new Accounts(this);
 }
Example #2
0
 public Api(Client client)
 {
    this._client = client;
    this._user = new User(this);
    this._merchants = new Merchant(this);
    this._invoices = new Invoices(this);
    this._accounts = new Accounts(this);
    this.Baseapiurl = client.request_client(client.secure) + "://" + client.host.Trim('/') + "/" + client.path.Trim('/') + "/" + client.api_version.Trim('/') + "/";
     this.BaseapiSecureUrl = this.Baseapiurl.Replace("http://", "https://");
 }
Example #3
0
 // Todo: Searialize type T to Json
 private string SerializeJson(Accounts obj)
 {
     return(JsonConvert.SerializeObject(obj));
 }
Example #4
0
 // Todo: Searialize type T to Json
 private string SerializeJson(Accounts obj)
 {
     return JsonConvert.SerializeObject(obj);
 }