• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Adyen / adyen-java-api-library / #2661

22 Sep 2023 11:24AM UTC coverage: 12.611%. First build
#2661

push

web-flow
Merge 251f6ff51 into 9e36e9c01

9262 of 9262 new or added lines in 142 files covered. (100.0%)

11033 of 87486 relevant lines covered (12.61%)

0.13 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/main/java/com/adyen/model/marketpayhop/GetPciUrlRequest.java
1
/*
2
 * Hosted onboarding API
3
 * This API is used for the classic integration. If you are just starting your implementation, refer to our [new integration guide](https://docs.adyen.com/marketplaces-and-platforms) instead.  The Hosted onboarding API provides endpoints that you can use to generate links to Adyen-hosted pages, such as an [onboarding page](https://docs.adyen.com/marketplaces-and-platforms/classic/hosted-onboarding-page) or a [PCI compliance questionnaire](https://docs.adyen.com/marketplaces-and-platforms/classic/platforms-for-partners). You can provide these links to your account holders so that they can complete their onboarding.  ## Authentication Your Adyen contact will provide your API credential and an API key. To connect to the API, add an `X-API-Key` header with the API key as the value, for example:   ``` curl -H \"Content-Type: application/json\" \\ -H \"X-API-Key: YOUR_API_KEY\" \\ ... ```  Alternatively, you can use the username and password to connect to the API using basic authentication. For example:  ``` curl -U \"ws@MarketPlace.YOUR_PLATFORM_ACCOUNT\":\"YOUR_WS_PASSWORD\" \\ -H \"Content-Type: application/json\" \\ ... ``` When going live, you need to generate new web service user credentials to access the [live endpoints](https://docs.adyen.com/development-resources/live-endpoints).  ## Versioning The Hosted onboarding API supports [versioning](https://docs.adyen.com/development-resources/versioning) using a version suffix in the endpoint URL. This suffix has the following format: \"vXX\", where XX is the version number.  For example: ``` https://cal-test.adyen.com/cal/services/Hop/v6/getOnboardingUrl ```
4
 *
5
 * The version of the OpenAPI document: 6
6
 * 
7
 *
8
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
 * https://openapi-generator.tech
10
 * Do not edit the class manually.
11
 */
12

13

14
package com.adyen.model.marketpayhop;
15

16
import java.util.Objects;
17
import java.util.Arrays;
18
import java.util.Map;
19
import java.util.HashMap;
20
import com.fasterxml.jackson.annotation.JsonInclude;
21
import com.fasterxml.jackson.annotation.JsonProperty;
22
import com.fasterxml.jackson.annotation.JsonCreator;
23
import com.fasterxml.jackson.annotation.JsonTypeName;
24
import com.fasterxml.jackson.annotation.JsonValue;
25
import io.swagger.annotations.ApiModel;
26
import io.swagger.annotations.ApiModelProperty;
27
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
28
import com.fasterxml.jackson.core.JsonProcessingException;
29

30

31
/**
32
 * GetPciUrlRequest
33
 */
34
@JsonPropertyOrder({
35
  GetPciUrlRequest.JSON_PROPERTY_ACCOUNT_HOLDER_CODE,
36
  GetPciUrlRequest.JSON_PROPERTY_RETURN_URL
37
})
38

39
public class GetPciUrlRequest {
40
  public static final String JSON_PROPERTY_ACCOUNT_HOLDER_CODE = "accountHolderCode";
41
  private String accountHolderCode;
42

43
  public static final String JSON_PROPERTY_RETURN_URL = "returnUrl";
44
  private String returnUrl;
45

46
  public GetPciUrlRequest() { 
×
47
  }
×
48

49
  public GetPciUrlRequest accountHolderCode(String accountHolderCode) {
50
    this.accountHolderCode = accountHolderCode;
×
51
    return this;
×
52
  }
53

54
   /**
55
   * The account holder code you provided when you created the account holder.
56
   * @return accountHolderCode
57
  **/
58
  @ApiModelProperty(required = true, value = "The account holder code you provided when you created the account holder.")
59
  @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER_CODE)
60
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
61

62
  public String getAccountHolderCode() {
63
    return accountHolderCode;
×
64
  }
65

66

67
  @JsonProperty(JSON_PROPERTY_ACCOUNT_HOLDER_CODE)
68
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
69
  public void setAccountHolderCode(String accountHolderCode) {
70
    this.accountHolderCode = accountHolderCode;
×
71
  }
×
72

73

74
  public GetPciUrlRequest returnUrl(String returnUrl) {
75
    this.returnUrl = returnUrl;
×
76
    return this;
×
77
  }
78

79
   /**
80
   * The URL where the account holder will be redirected back to after they fill out the questionnaire, or if their session times out. Maximum length of 500 characters.
81
   * @return returnUrl
82
  **/
83
  @ApiModelProperty(value = "The URL where the account holder will be redirected back to after they fill out the questionnaire, or if their session times out. Maximum length of 500 characters.")
84
  @JsonProperty(JSON_PROPERTY_RETURN_URL)
85
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
86

87
  public String getReturnUrl() {
88
    return returnUrl;
×
89
  }
90

91

92
  @JsonProperty(JSON_PROPERTY_RETURN_URL)
93
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
94
  public void setReturnUrl(String returnUrl) {
95
    this.returnUrl = returnUrl;
×
96
  }
×
97

98

99
  /**
100
   * Return true if this GetPciUrlRequest object is equal to o.
101
   */
102
  @Override
103
  public boolean equals(Object o) {
104
    if (this == o) {
×
105
      return true;
×
106
    }
107
    if (o == null || getClass() != o.getClass()) {
×
108
      return false;
×
109
    }
110
    GetPciUrlRequest getPciUrlRequest = (GetPciUrlRequest) o;
×
111
    return Objects.equals(this.accountHolderCode, getPciUrlRequest.accountHolderCode) &&
×
112
        Objects.equals(this.returnUrl, getPciUrlRequest.returnUrl);
×
113
  }
114

115
  @Override
116
  public int hashCode() {
117
    return Objects.hash(accountHolderCode, returnUrl);
×
118
  }
119

120
  @Override
121
  public String toString() {
122
    StringBuilder sb = new StringBuilder();
×
123
    sb.append("class GetPciUrlRequest {\n");
×
124
    sb.append("    accountHolderCode: ").append(toIndentedString(accountHolderCode)).append("\n");
×
125
    sb.append("    returnUrl: ").append(toIndentedString(returnUrl)).append("\n");
×
126
    sb.append("}");
×
127
    return sb.toString();
×
128
  }
129

130
  /**
131
   * Convert the given object to string with each line indented by 4 spaces
132
   * (except the first line).
133
   */
134
  private String toIndentedString(Object o) {
135
    if (o == null) {
×
136
      return "null";
×
137
    }
138
    return o.toString().replace("\n", "\n    ");
×
139
  }
140

141
/**
142
   * Create an instance of GetPciUrlRequest given an JSON string
143
   *
144
   * @param jsonString JSON string
145
   * @return An instance of GetPciUrlRequest
146
   * @throws JsonProcessingException if the JSON string is invalid with respect to GetPciUrlRequest
147
   */
148
  public static GetPciUrlRequest fromJson(String jsonString) throws JsonProcessingException {
149
    return JSON.getMapper().readValue(jsonString, GetPciUrlRequest.class);
×
150
  }
151
/**
152
  * Convert an instance of GetPciUrlRequest to an JSON string
153
  *
154
  * @return JSON string
155
  */
156
  public String toJson() throws JsonProcessingException {
157
    return JSON.getMapper().writeValueAsString(this);
×
158
  }
159
}
160

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc