public CardHash(PagarMeService service) { if (service == null) service = PagarMeService.GetDefaultService(); _service = service; }
public static PagarMeService GetDefaultService() { if (_defaultService == null) _defaultService = new PagarMeService(DefaultApiKey, DefaultEncryptionKey, DefaultApiEndpoint); return _defaultService; }
public static PagarMeService GetDefaultService() { if (_defaultService == null) { _defaultService = new PagarMeService(DefaultApiKey, DefaultEncryptionKey, DefaultApiEndpoint); } return(_defaultService); }
public CardHash(PagarMeService service) { if (service == null) { service = PagarMeService.GetDefaultService(); } _service = service; }
static JsonSerializerSettings GetSettings(PagarMeService service) { return(new JsonSerializerSettings { ConstructorHandling = ConstructorHandling.AllowNonPublicDefaultConstructor, Formatting = Formatting.None, ObjectCreationHandling = ObjectCreationHandling.Replace }); }
internal PagarMeRequest(PagarMeService service, string method, string path) { if (service == null) service = PagarMeService.GetDefaultService(); _service = service; Method = method; Path = path; Query = new List<Tuple<string, string>>(); Body = "{}"; }
internal PagarMeRequest(PagarMeService service, string method, string path) { if (service == null) { service = PagarMeService.GetDefaultService(); } _service = service; Method = method; Path = path; Query = new List <Tuple <string, string> >(); Body = "{}"; }
public Payable(PagarMeService service) : base(service) { }
public Address(PagarMeService service) : base(service) { }
public CompanyTemporary(PagarMeService service, string endpointPrefix = "") : base(service, endpointPrefix) { }
public Event(PagarMeService service, string endpointPrefix = "") : base(service, endpointPrefix) { }
public Document(PagarMeService service) : base(service) { }
public SplitRule(PagarMeService service) : base(service) { }
public Payable(PagarMeService service, string endpointPrefix = "") : base(service, endpointPrefix) { }
public Plan(PagarMeService service) : base(service) { }
public Card(PagarMeService service) : base(service) { }
public Billing(PagarMeService service) : base(service) { }
public Shipping(PagarMeService service) : base(service) { }
public Item(PagarMeService service) : base(service) { }
public static T Deserialize <T>(PagarMeService service, string body) { return(JsonConvert.DeserializeObject <T>(body, GetSettings(service))); }
public static string Serialize <T>(PagarMeService service, T instance) { return(JsonConvert.SerializeObject(instance, typeof(T), GetSettings(service))); }
public Transfer(PagarMeService service) : base(service) { }
public Recipient(PagarMeService service) : base(service) { }
public Phone(PagarMeService service) : base(service) { }
public Customer(PagarMeService service) : base(service) { }
public static void DeserializeTo <T>(PagarMeService service, T obj, string body) { JsonConvert.PopulateObject(body, obj, GetSettings(service)); }
public PixAditionalField(PagarMeService service) : base(service) { }
public Transaction(PagarMeService service) : base(service) { Metadata = new Base.AbstractModel(Service); }
public BankAccount(PagarMeService service) : base(service) { }
public Subscription(PagarMeService service) : base(service) { Metadata = new Base.AbstractModel(Service); }
public CompanyTemporary(PagarMeService service) : base(service) { ApiVersion = new Base.AbstractModel(Service); }