Examples of ProfileInfo


Examples of org.jclouds.cloudsigma.domain.ProfileInfo

      }
   }

   @Test
   public void testGetProfileInfo() throws Exception {
      ProfileInfo profile = client.getProfileInfo();
      assertNotNull(profile);
   }
View Full Code Here

Examples of org.jclouds.cloudsigma.domain.ProfileInfo

      }
   }

   @Test
   public void testGetProfileInfo() throws Exception {
      ProfileInfo profile = client.getProfileInfo();
      assertNotNull(profile);
   }
View Full Code Here

Examples of org.jclouds.cloudsigma2.domain.ProfileInfo

   }

   @Override
   public <R extends HttpRequest> R bindToRequest(R request, Object input) {
      checkArgument(input instanceof ProfileInfo, "this binder is only valid for ProfileInfo!");
      ProfileInfo create = ProfileInfo.class.cast(input);
      JsonObject profileInfoJsonObject = createProfileRequestToJson.apply(create);
      request.setPayload(profileInfoJsonObject.toString());
      request.getPayload().getContentMetadata().setContentType(MediaType.APPLICATION_JSON);
      return request;
   }
View Full Code Here

Examples of org.jclouds.cloudsigma2.domain.ProfileInfo

      assertNotNull(api.getProfileInfo());
   }

   @Test
   public void testEditProfileInfo() throws Exception {
      ProfileInfo profileInfo = new ProfileInfo.Builder()
            .address("edited address")
            .bankReference("sigma111")
            .company("Awesome company")
            .country("ES")
            .email("user@example.com")
View Full Code Here

Examples of org.jclouds.cloudsigma2.domain.ProfileInfo

                  .build(),
            responseBuilder()
                  .payload(payloadFromResourceWithContentType("/profile.json", MediaType.APPLICATION_JSON))
                  .build());

      ProfileInfo result = api.getProfileInfo();
      assertNotNull(result);
   }
View Full Code Here

Examples of org.jclouds.cloudsigma2.domain.ProfileInfo

                  .build());

      Map<String, String> meta = Maps.newHashMap();
      meta.put("description", "profile info");

      ProfileInfo result = api.editProfileInfo(new ProfileInfo.Builder()
            .address("test_address")
            .isApiHttpsOnly(false)
            .autotopupAmount("0E-16")
            .autotopupThreshold("0E-16")
            .bankReference("jdoe123")
View Full Code Here

Examples of org.jclouds.cloudsigma2.domain.ProfileInfo

      assertNotNull(api.getProfileInfo());
   }

   @Test
   public void testEditProfileInfo() throws Exception {
      ProfileInfo profileInfo = new ProfileInfo.Builder()
            .address("edited address")
            .bankReference("sigma111")
            .company("Awesome company")
            .country("ES")
            .email("user@example.com")
View Full Code Here

Examples of org.jclouds.cloudsigma2.domain.ProfileInfo

                  .build(),
            responseBuilder()
                  .payload(payloadFromResourceWithContentType("/profile.json", MediaType.APPLICATION_JSON))
                  .build());

      ProfileInfo result = api.getProfileInfo();
      assertNotNull(result);
   }
View Full Code Here

Examples of org.jclouds.cloudsigma2.domain.ProfileInfo

                  .build());

      Map<String, String> meta = Maps.newHashMap();
      meta.put("description", "profile info");

      ProfileInfo result = api.editProfileInfo(new ProfileInfo.Builder()
            .address("test_address")
            .isApiHttpsOnly(false)
            .autotopupAmount("0E-16")
            .autotopupThreshold("0E-16")
            .bankReference("jdoe123")
View Full Code Here

Examples of org.jclouds.cloudsigma2.domain.ProfileInfo

   }

   @Override
   public <R extends HttpRequest> R bindToRequest(R request, Object input) {
      checkArgument(input instanceof ProfileInfo, "this binder is only valid for ProfileInfo!");
      ProfileInfo create = ProfileInfo.class.cast(input);
      JsonObject profileInfoJsonObject = createProfileRequestToJson.apply(create);
      request.setPayload(profileInfoJsonObject.toString());
      request.getPayload().getContentMetadata().setContentType(MediaType.APPLICATION_JSON);
      return request;
   }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.