Exemplo n.º 1
0
        public CardHash(PagarMeService service)
        {
            if (service == null)
                service = PagarMeService.GetDefaultService();

            _service = service;
        }
Exemplo n.º 2
0
        public static PagarMeService GetDefaultService()
        {
            if (_defaultService == null)
                _defaultService = new PagarMeService(DefaultApiKey, DefaultEncryptionKey, DefaultApiEndpoint);

            return _defaultService;
        }
Exemplo n.º 3
0
        public static PagarMeService GetDefaultService()
        {
            if (_defaultService == null)
            {
                _defaultService = new PagarMeService(DefaultApiKey, DefaultEncryptionKey, DefaultApiEndpoint);
            }

            return(_defaultService);
        }
Exemplo n.º 4
0
        public CardHash(PagarMeService service)
        {
            if (service == null)
            {
                service = PagarMeService.GetDefaultService();
            }

            _service = service;
        }
Exemplo n.º 5
0
 static JsonSerializerSettings GetSettings(PagarMeService service)
 {
     return(new JsonSerializerSettings
     {
         ConstructorHandling = ConstructorHandling.AllowNonPublicDefaultConstructor,
         Formatting = Formatting.None,
         ObjectCreationHandling = ObjectCreationHandling.Replace
     });
 }
Exemplo n.º 6
0
        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 = "{}";
        }
Exemplo n.º 7
0
        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  = "{}";
        }
Exemplo n.º 8
0
 public Payable(PagarMeService service)
     : base(service)
 {
 }
Exemplo n.º 9
0
 public Address(PagarMeService service)
     : base(service)
 {
 }
Exemplo n.º 10
0
 public CompanyTemporary(PagarMeService service, string endpointPrefix = "") : base(service, endpointPrefix)
 {
 }
Exemplo n.º 11
0
 public Address(PagarMeService service)
     : base(service)
 {
 }
Exemplo n.º 12
0
 public Event(PagarMeService service, string endpointPrefix = "") : base(service, endpointPrefix)
 {
 }
Exemplo n.º 13
0
 public Document(PagarMeService service)
     : base(service)
 {
 }
Exemplo n.º 14
0
 public SplitRule(PagarMeService service)
     : base(service)
 {
 }
Exemplo n.º 15
0
 public Payable(PagarMeService service, string endpointPrefix = "")
     : base(service, endpointPrefix)
 {
 }
Exemplo n.º 16
0
 public Plan(PagarMeService service)
     : base(service)
 {
 }
Exemplo n.º 17
0
 public Card(PagarMeService service)
     : base(service)
 {
 }
Exemplo n.º 18
0
 public Billing(PagarMeService service)
     : base(service)
 {
 }
Exemplo n.º 19
0
 public Plan(PagarMeService service)
     : base(service)
 {
 }
Exemplo n.º 20
0
 public Shipping(PagarMeService service)
     : base(service)
 {
 }
Exemplo n.º 21
0
 public Item(PagarMeService service)
     : base(service)
 {
 }
Exemplo n.º 22
0
 public Payable(PagarMeService service) : base(service)
 {
 }
Exemplo n.º 23
0
 public static T Deserialize <T>(PagarMeService service, string body)
 {
     return(JsonConvert.DeserializeObject <T>(body, GetSettings(service)));
 }
Exemplo n.º 24
0
 public Payable(PagarMeService service, string endpointPrefix = "") : base(service, endpointPrefix)
 {
 }
Exemplo n.º 25
0
 public static string Serialize <T>(PagarMeService service, T instance)
 {
     return(JsonConvert.SerializeObject(instance, typeof(T), GetSettings(service)));
 }
Exemplo n.º 26
0
 public Transfer(PagarMeService service) : base(service)
 {
 }
Exemplo n.º 27
0
 public Recipient(PagarMeService service)
     : base(service)
 {
 }
Exemplo n.º 28
0
 public Phone(PagarMeService service)
     : base(service)
 {
 }
Exemplo n.º 29
0
 public Customer(PagarMeService service)
     : base(service)
 {
 }
Exemplo n.º 30
0
 public static void DeserializeTo <T>(PagarMeService service, T obj, string body)
 {
     JsonConvert.PopulateObject(body, obj, GetSettings(service));
 }
Exemplo n.º 31
0
 public PixAditionalField(PagarMeService service)
     : base(service)
 {
 }
Exemplo n.º 32
0
 public Transaction(PagarMeService service)
     : base(service)
 {
     Metadata = new Base.AbstractModel(Service);
 }
Exemplo n.º 33
0
 public Customer(PagarMeService service)
     : base(service)
 {
 }
Exemplo n.º 34
0
 public BankAccount(PagarMeService service)
     : base(service)
 {
 }
Exemplo n.º 35
0
 public Subscription(PagarMeService service)
     : base(service)
 {
     Metadata = new Base.AbstractModel(Service);
 }
Exemplo n.º 36
0
 public Phone(PagarMeService service)
     : base(service)
 {
 }
Exemplo n.º 37
0
 public Event(PagarMeService service, string endpointPrefix = "")
     : base(service, endpointPrefix)
 {
 }
Exemplo n.º 38
0
 public SplitRule(PagarMeService service)
     : base(service)
 {
 }
Exemplo n.º 39
0
 public Card(PagarMeService service)
     : base(service)
 {
 }
Exemplo n.º 40
0
 public Subscription(PagarMeService service)
     : base(service)
 {
     Metadata = new Base.AbstractModel(Service);
 }
Exemplo n.º 41
0
		public BankAccount(PagarMeService service)
			: base(service)
		{
		}
Exemplo n.º 42
0
 public CompanyTemporary(PagarMeService service) : base(service)
 {
     ApiVersion = new Base.AbstractModel(Service);
 }
Exemplo n.º 43
0
 public Recipient(PagarMeService service)
     : base(service)
 {
 }
Exemplo n.º 44
0
 public Transaction(PagarMeService service)
     : base(service)
 {
     Metadata = new Base.AbstractModel(Service);
 }
Exemplo n.º 45
0
 public Transfer(PagarMeService service)
     : base(service)
 {
 }