Example #1
0
        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);
        }
Example #4
0
        public CardHash(PagarMeService service)
        {
            if (service == null)
            {
                service = PagarMeService.GetDefaultService();
            }

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