protected virtual RequestBuilder BuildRequest(string root) { var builder = new RequestBuilder(root); builder.AddElement("payee-id", PayeeId); builder.AddElement("payee-email", PayeeEmail); return(builder); }
protected virtual RequestBuilder BuildRequest(string root) { var builder = new RequestBuilder(root); if (Amount != 0) builder.AddElement("amount", Amount); builder.AddElement("order-id", OrderId); return builder; }
protected virtual RequestBuilder BuildRequest(string root) { var builder = new RequestBuilder(root); if (CustomerId != null) builder.AddElement("customer-id", CustomerId); if (Version != 0) builder.AddElement("version", Version); if (MerchantAccountId != null) builder.AddElement("merchant-account-id", MerchantAccountId); if (Options != null) builder.AddElement("options", Options); return builder; }
protected virtual RequestBuilder BuildRequest(string root) { var builder = new RequestBuilder(root); if (Amount != 0) builder.AddElement("amount", Amount); builder.AddElement("subscription-id", SubscriptionId); builder.AddElement("type", TransactionType.SALE.ToString().ToLower()); return builder; }
protected virtual RequestBuilder BuildRequest(string root) { var builder = new RequestBuilder(root); if (Amount != 0) { builder.AddElement("amount", Amount); } builder.AddElement("order-id", OrderId); return(builder); }
protected virtual RequestBuilder BuildRequest(string root) { var builder = new RequestBuilder(root); if (Amount != 0) { builder.AddElement("amount", Amount); } builder.AddElement("subscription-id", SubscriptionId); builder.AddElement("type", TransactionType.SALE.ToString().ToLower()); return(builder); }
protected virtual RequestBuilder BuildRequest(string root) { var builder = new RequestBuilder(root); builder.AddElement("count", Count); return(builder); }
public override string ToQueryString() { var builder = new RequestBuilder(); builder.AddTopLevelElement("merchant_id", MerchantId); builder.AddTopLevelElement("redirect_uri", RedirectUri); builder.AddTopLevelElement("scope", Scope); builder.AddTopLevelElement("state", State); builder.AddTopLevelElement("landing_page", LandingPage); builder.AddTopLevelElement("client_id", ClientId); foreach (var paymentMethod in PaymentMethods) { builder.AddTopLevelElement("payment_methods[]", paymentMethod); } builder.AddElement("user", User); builder.AddElement("business", Business); return builder.ToQueryString(); }
public override string ToQueryString() { var builder = new RequestBuilder(); builder.AddTopLevelElement("merchant_id", MerchantId); builder.AddTopLevelElement("redirect_uri", RedirectUri); builder.AddTopLevelElement("scope", Scope); builder.AddTopLevelElement("state", State); builder.AddTopLevelElement("landing_page", LandingPage); builder.AddTopLevelElement("client_id", ClientId); foreach (var paymentMethod in PaymentMethods) { builder.AddTopLevelElement("payment_methods[]", paymentMethod); } builder.AddElement("user", User); builder.AddElement("business", Business); return(builder.ToQueryString()); }
protected virtual RequestBuilder BuildRequest(string root) { var builder = new RequestBuilder(root); if (CustomerId != null) { builder.AddElement("customer-id", CustomerId); } if (Version != 0) { builder.AddElement("version", Version); } if (MerchantAccountId != null) { builder.AddElement("merchant-account-id", MerchantAccountId); } if (Options != null) { builder.AddElement("options", Options); } return(builder); }
public override string ToQueryString(string root) { var builder = new RequestBuilder("business"); builder.AddElement("name", Name); builder.AddElement("registered_as", RegisteredAs); builder.AddElement("industry", Industry); builder.AddElement("description", Description); builder.AddElement("street_address", StreetAddress); builder.AddElement("locality", Locality); builder.AddElement("region", Region); builder.AddElement("postal_code", PostalCode); builder.AddElement("country", Country); builder.AddElement("annual_volume_amount", AnnualVolumeAmount); builder.AddElement("average_transaction_amount", AverageTransactionAmount); builder.AddElement("maximum_transaction_amount", MaximumTransactionAmount); builder.AddElement("ship_physical_goods", ShipPhysicalGoods); builder.AddElement("fulfillment_completed_in", FulfillmentCompletedIn); builder.AddElement("currency", Currency); builder.AddElement("website", Website); builder.AddElement("established_on", EstablishedOn); return builder.ToQueryString(); }
public virtual RequestBuilder BuildRequest(String root) { var builder = new RequestBuilder(root); builder.AddElement("billing-day-of-month", BillingDayOfMonth); builder.AddElement("billing-frequency", BillingFrequency); builder.AddElement("currency-iso-code", CurrencyIsoCode); builder.AddElement("description", Description); builder.AddElement("id", Id); builder.AddElement("name", Name); builder.AddElement("number-of-billing-cycles", NumberOfBillingCycles); builder.AddElement("price", Price); builder.AddElement("trial-period", TrialPeriod); builder.AddElement("trial-duration", TrialDuration); builder.AddElement("trial-duration-unit", TrialDurationUnit); builder.AddElement("add-ons", AddOns); builder.AddElement("discounts", Discounts); return(builder); }
public virtual RequestBuilder BuildRequest(string root) { var builder = new RequestBuilder(root); builder.AddElement("billing-day-of-month", BillingDayOfMonth); builder.AddElement("billing-frequency", BillingFrequency); builder.AddElement("currency-iso-code", CurrencyIsoCode); builder.AddElement("description", Description); builder.AddElement("id", Id); builder.AddElement("name", Name); builder.AddElement("number-of-billing-cycles", NumberOfBillingCycles); builder.AddElement("price", Price); builder.AddElement("trial-period", TrialPeriod); builder.AddElement("trial-duration", TrialDuration); builder.AddElement("trial-duration-unit", TrialDurationUnit); builder.AddElement("add-ons", AddOns); builder.AddElement("discounts", Discounts); return builder; }
public override string ToQueryString(string root) { var builder = new RequestBuilder("user"); builder.AddElement("country", Country); builder.AddElement("email", Email); builder.AddElement("first_name", FirstName); builder.AddElement("last_name", LastName); builder.AddElement("phone", Phone); builder.AddElement("dob_year", DobYear); builder.AddElement("dob_month", DobMonth); builder.AddElement("dob_day", DobDay); builder.AddElement("street_address", StreetAddress); builder.AddElement("locality", Locality); builder.AddElement("region", Region); builder.AddElement("postal_code", PostalCode); return(builder.ToQueryString()); }
public override string ToQueryString(string root) { var builder = new RequestBuilder("user"); builder.AddElement("country", Country); builder.AddElement("email", Email); builder.AddElement("first_name", FirstName); builder.AddElement("last_name", LastName); builder.AddElement("phone", Phone); builder.AddElement("dob_year", DobYear); builder.AddElement("dob_month", DobMonth); builder.AddElement("dob_day", DobDay); builder.AddElement("street_address", StreetAddress); builder.AddElement("locality", Locality); builder.AddElement("region", Region); builder.AddElement("postal_code", PostalCode); return builder.ToQueryString(); }
public override string ToQueryString(string root) { var builder = new RequestBuilder("business"); builder.AddElement("name", Name); builder.AddElement("registered_as", RegisteredAs); builder.AddElement("industry", Industry); builder.AddElement("description", Description); builder.AddElement("street_address", StreetAddress); builder.AddElement("locality", Locality); builder.AddElement("region", Region); builder.AddElement("postal_code", PostalCode); builder.AddElement("country", Country); builder.AddElement("annual_volume_amount", AnnualVolumeAmount); builder.AddElement("average_transaction_amount", AverageTransactionAmount); builder.AddElement("maximum_transaction_amount", MaximumTransactionAmount); builder.AddElement("ship_physical_goods", ShipPhysicalGoods); builder.AddElement("fulfillment_completed_in", FulfillmentCompletedIn); builder.AddElement("currency", Currency); builder.AddElement("website", Website); builder.AddElement("established_on", EstablishedOn); return(builder.ToQueryString()); }