Beispiel #1
0
 /// <summary>
 /// The deserialize.
 /// </summary>
 /// <param name="data">The data.</param>
 public override void Deserialize(IDictionary <string, object> data)
 {
     base.Deserialize(data);
     Debits       = new Debit.Collection(debits_uri);
     Credits      = new Credit.Collection(credits_uri);
     Holds        = new Hold.Collection(holds_uri);
     Cards        = new Card.Collection(cards_uri);
     BankAccounts = new BankAccount.Collection(bank_accounts_uri);
 }
Beispiel #2
0
        /// ReSharper disable CommentTypo
        /// <summary>
        /// Deserializes the data.
        /// </summary>
        /// ReSharper restore CommentTypo
        /// <param name="data">
        /// The data.
        /// </param>
        /// ReSharper disable IdentifierTypo
        public override void Deserialize(IDictionary <string, object> data)
        {
            // ReSharper restore IdentifierTypo
            base.Deserialize(data);

            this.id   = (string)data["id"];
            this.Name = (string)data["name"];
            this.SupportEmailAddresses = (string)data["support_email_address"];
            this.SupportPhoneNumber    = (string)data["support_phone_number"];
            this.DomainUrl             = (string)data["domain_url"];
            this.InEscrow     = (long)data["in_escrow"];
            this.bankAccounts = new BankAccount.Collection((string)data["bank_accounts_uri"]);
            this.cards        = new Card.Collection((string)data["cards_uri"]);
        }