Skip to content

Commit c0cffc6

Browse files
Merge pull request #148 from paypay/fix/add-userAgent-createQRCode
userAgent is added to createQR code
2 parents 8f4dc68 + 380c7f0 commit c0cffc6

2 files changed

Lines changed: 34 additions & 4 deletions

File tree

src/main/java/jp/ne/paypay/model/QRCode.java

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,10 @@ public RedirectTypeEnum read(final JsonReader jsonReader) throws IOException {
118118

119119
@SerializedName("redirectType")
120120
private RedirectTypeEnum redirectType = null;
121-
121+
122+
@SerializedName("userAgent")
123+
private String userAgent = null;
124+
122125
public QRCode merchantPaymentId(String merchantPaymentId) {
123126
this.merchantPaymentId = merchantPaymentId;
124127
return this;
@@ -380,6 +383,18 @@ public void setRedirectType(RedirectTypeEnum redirectType) {
380383
this.redirectType = redirectType;
381384
}
382385

386+
/**
387+
* The User agent of the web browser
388+
* @return userAgent
389+
**/
390+
@ApiModelProperty(value = "User agent of the web browser")
391+
public String getUserAgent() {
392+
return userAgent;
393+
}
394+
public void setUserAgent(String userAgent) {
395+
this.userAgent = userAgent;
396+
}
397+
383398

384399
@Override
385400
public boolean equals(Object o) {
@@ -406,7 +421,7 @@ public String toString() {
406421
+ codeType + '\'' + ", storeInfo='" + storeInfo + '\'' + ", storeId='" + storeId + '\'' + ", terminalId='"
407422
+ terminalId + '\'' + ", requestedAt=" + requestedAt + ", isAuthorization=" + isAuthorization
408423
+ ", authorizationExpiry=" + authorizationExpiry + ", redirectUrl='" + redirectUrl + '\''
409-
+ ", redirectType=" + redirectType + '}';
424+
+ ", redirectType=" + redirectType + ", userAgent=" + userAgent + '}';
410425
}
411426

412427
}

src/main/java/jp/ne/paypay/model/QRCodeResponse.java

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,10 @@ public RedirectTypeEnum read(final JsonReader jsonReader) throws IOException {
119119

120120
@SerializedName("authorizationExpiry")
121121
private Integer authorizationExpiry = null;
122-
122+
123+
@SerializedName("userAgent")
124+
private String userAgent = null;
125+
123126
public QRCodeResponse codeId(String codeId) {
124127
this.codeId = codeId;
125128
return this;
@@ -452,7 +455,19 @@ public Integer getAuthorizationExpiry() {
452455
public void setAuthorizationExpiry(Integer authorizationExpiry) {
453456
this.authorizationExpiry = authorizationExpiry;
454457
}
455-
458+
459+
/**
460+
* The User agent of the web browser.
461+
* @return userAgent
462+
**/
463+
@ApiModelProperty(value = "User agent of the web browser")
464+
public String getUserAgent() {
465+
return userAgent;
466+
}
467+
public void setUserAgent(String userAgent) {
468+
this.userAgent = userAgent;
469+
}
470+
456471
@Override
457472
public boolean equals(Object o) {
458473
if (this == o) {

0 commit comments

Comments
 (0)