Example #1
0
 public SendCloudApiShippingMethodsResource(SendCloudApi client) : base(client)
 {
     Resource       = "shipping_methods";
     ListResource   = "shipping_methods";
     SingleResource = "shipping_method";
     CreateRequest  = false;
     UpdateRequest  = false;
 }
 public SendCloudApiParcelStatusResource(SendCloudApi client) : base(client)
 {
     Resource       = "parcels/statuses";
     ListResource   = "";
     SingleResource = "";
     CreateRequest  = false;
     UpdateRequest  = false;
 }
 public SendCloudApiUsersResource(SendCloudApi client) : base(client)
 {
     Resource       = "user";
     ListResource   = "user";
     SingleResource = "user";
     CreateRequest  = false;
     UpdateRequest  = false;
 }
 public SendCloudApiBrandsResource(SendCloudApi client) : base(client)
 {
     Resource       = "brands";
     ListResource   = "brands";
     SingleResource = "";
     CreateRequest  = false;
     UpdateRequest  = false;
 }
 public SendCloudApiLabelsResource(SendCloudApi client) : base(client)
 {
     Resource       = "labels";
     ListResource   = "label";
     SingleResource = "label";
     CreateResource = "label";
     CreateRequest  = true;
 }
 public SendCloudApiSenderAddressResource(SendCloudApi client) : base(client)
 {
     Resource       = "user/addresses/sender";
     ListResource   = "sender_addresses";
     SingleResource = "sender_address";
     CreateRequest  = false;
     UpdateRequest  = false;
 }
 public SendCloudApiReturnsResource(SendCloudApi client) : base(client)
 {
     Resource       = "returns";
     ListResource   = "returns";
     SingleResource = "";
     CreateRequest  = false;
     UpdateRequest  = false;
     DateTimeFormat = "yyyy-MM-ddTHH:mm:ss.ffffffzzz";
 }
Example #8
0
 public SendCloudApiParcelsResource(SendCloudApi client) : base(client)
 {
     Resource       = "parcels";
     CreateResource = "parcels";
     UpdateResource = "parcels";
     ListResource   = "parcels";
     SingleResource = "parcel";
     DateTimeFormat = "dd-MM-yyyy HH:mm:ss";
 }
 public SendCloudApiInvoicesResource(SendCloudApi client) : base(client)
 {
     Resource       = "user/invoices";
     ListResource   = "invoices";
     SingleResource = "invoice";
     CreateRequest  = false;
     UpdateRequest  = false;
     DateTimeFormat = "dd-MM-yyyy HH:mm:ss";
 }
 protected SendCloudApiAbstractResource(SendCloudApi client)
 {
     Client = client;
 }
Example #11
0
 public SendCloudApiServicePointsResource(SendCloudApi client)
 {
     _client = client;
 }
 public SendCloudApiParcelDocumentsResource(SendCloudApi client) : base(client)
 {
 }
 public SendCloudApiReturnPortalResource(SendCloudApi client)
 {
     _client = client;
 }
Example #14
0
 protected SendCloudApiAbstractResource(SendCloudApi client)
 {
     Client        = client;
     Authorization = client.GetBasicAuth();
 }