Пример #1
0
        public CardHash(PagarMeService service)
        {
            if (service == null)
                service = PagarMeService.GetDefaultService();

            _service = service;
        }
Пример #2
0
        public static PagarMeService GetDefaultService()
        {
            if (_defaultService == null)
                _defaultService = new PagarMeService(DefaultApiKey, DefaultEncryptionKey, DefaultApiEndpoint);

            return _defaultService;
        }
Пример #3
0
        public static PagarMeService GetDefaultService()
        {
            if (_defaultService == null)
            {
                _defaultService = new PagarMeService(DefaultApiKey, DefaultEncryptionKey, DefaultApiEndpoint);
            }

            return(_defaultService);
        }
Пример #4
0
        public CardHash(PagarMeService service)
        {
            if (service == null)
            {
                service = PagarMeService.GetDefaultService();
            }

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