Skip to content
This repository has been archived by the owner on Jul 24, 2023. It is now read-only.

Commit

Permalink
Merge pull request #76 from freee/auto-generated
Browse files Browse the repository at this point in the history
2.14.0
  • Loading branch information
soga-yuichi authored Sep 15, 2022
2 parents f6aae4a + 9c775a5 commit 441064a
Show file tree
Hide file tree
Showing 24 changed files with 450 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .openapi-generator/config.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
ensureUniqueParams: false
allowUnicodeIdentifiers: true
snapshotVersion: true
artifactVersion: 2.13.0
artifactVersion: 2.14.0
groupId: "jp.co.freee"
artifactId: "freee-accounting-sdk"
apiPackage: "jp.co.freee.accounting.api"
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 2.14.0
リリース日時 2022-09-15 12:57:47
対象差分
https://github.com/freee/freee-api-schema/releases/tag/v0.0.99

## 2.13.0
リリース日時 2022-09-08 10:59:58
対象差分
Expand Down
2 changes: 1 addition & 1 deletion samples/basic-sample/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<dependency>
<groupId>jp.co.freee</groupId>
<artifactId>freee-accounting-sdk</artifactId>
<version>2.13.0</version>
<version>2.14.0</version>
</dependency>
</dependencies>
<build>
Expand Down
2 changes: 1 addition & 1 deletion samples/basic-websample-rx/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
<dependency>
<groupId>jp.co.freee</groupId>
<artifactId>freee-accounting-sdk</artifactId>
<version>2.13.0</version>
<version>2.14.0</version>
</dependency>
<dependency>
<groupId>org.webjars</groupId>
Expand Down
2 changes: 1 addition & 1 deletion samples/basic-websample/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
<dependency>
<groupId>jp.co.freee</groupId>
<artifactId>freee-accounting-sdk</artifactId>
<version>2.13.0</version>
<version>2.14.0</version>
</dependency>

<dependency>
Expand Down
1 change: 1 addition & 0 deletions sdk/docs/DealCreateResponseDealReceipts.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ Name | Type | Description | Notes
**issueDate** | **String** | 発生日 | [optional]
**mimeType** | **String** | MIMEタイプ |
**origin** | [**OriginEnum**](#OriginEnum) | アップロード元種別 |
**receiptMetadatum** | [**DealReceiptMetadatum**](DealReceiptMetadatum.md) | | [optional]
**status** | [**StatusEnum**](#StatusEnum) | ステータス(confirmed:確認済み、deleted:削除済み、ignored:無視) |
**user** | [**DealUser**](DealUser.md) | |

Expand Down
15 changes: 15 additions & 0 deletions sdk/docs/DealReceiptMetadatum.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@


# DealReceiptMetadatum


## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**amount** | **Long** | 金額 | [optional]
**issueDate** | **String** | 発行日 (yyyy-mm-dd) | [optional]
**partnerName** | **String** | 発行元 | [optional]



1 change: 1 addition & 0 deletions sdk/docs/DealReceipts.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ Name | Type | Description | Notes
**issueDate** | **String** | 発生日 | [optional]
**mimeType** | **String** | MIMEタイプ |
**origin** | [**OriginEnum**](#OriginEnum) | アップロード元種別 |
**receiptMetadatum** | [**DealReceiptMetadatum**](DealReceiptMetadatum.md) | | [optional]
**status** | [**StatusEnum**](#StatusEnum) | ステータス(confirmed:確認済み、deleted:削除済み、ignored:無視) |
**user** | [**DealUser**](DealUser.md) | |

Expand Down
1 change: 1 addition & 0 deletions sdk/docs/Receipt.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ Name | Type | Description | Notes
**issueDate** | **String** | 発生日 | [optional]
**mimeType** | **String** | MIMEタイプ |
**origin** | [**OriginEnum**](#OriginEnum) | アップロード元種別 |
**receiptMetadatum** | [**DealReceiptMetadatum**](DealReceiptMetadatum.md) | | [optional]
**status** | [**StatusEnum**](#StatusEnum) | ステータス(confirmed:確認済み、deleted:削除済み、ignored:無視) |
**user** | [**DealUser**](DealUser.md) | |

Expand Down
1 change: 1 addition & 0 deletions sdk/docs/ReceiptUpdateParams.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Name | Type | Description | Notes
**companyId** | **Integer** | 事業所ID |
**description** | **String** | メモ (255文字以内) | [optional]
**issueDate** | **String** | 取引日 (yyyy-mm-dd) |
**receiptMetadatum** | [**DealReceiptMetadatum**](DealReceiptMetadatum.md) | | [optional]



14 changes: 10 additions & 4 deletions sdk/docs/ReceiptsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Method | HTTP request | Description

## createReceipt

> ReceiptResponse createReceipt(companyId, receipt, description, issueDate)
> ReceiptResponse createReceipt(companyId, receipt, description, issueDate, receiptMetadatumAmount, receiptMetadatumIssueDate, receiptMetadatumPartnerName)
ファイルボックス 証憑ファイルアップロード

Expand Down Expand Up @@ -44,8 +44,11 @@ public class Example {
File receipt = new File("/path/to/file"); // File | 証憑ファイル
String description = "description_example"; // String | メモ (255文字以内)
String issueDate = "issueDate_example"; // String | 取引日 (yyyy-mm-dd)
Long receiptMetadatumAmount = 56L; // Long | 金額
String receiptMetadatumIssueDate = "receiptMetadatumIssueDate_example"; // String | 発行日 (yyyy-mm-dd)
String receiptMetadatumPartnerName = "receiptMetadatumPartnerName_example"; // String | 発行元
try {
ReceiptResponse result = apiInstance.createReceipt(companyId, receipt, description, issueDate);
ReceiptResponse result = apiInstance.createReceipt(companyId, receipt, description, issueDate, receiptMetadatumAmount, receiptMetadatumIssueDate, receiptMetadatumPartnerName);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ReceiptsApi#createReceipt");
Expand All @@ -67,6 +70,9 @@ Name | Type | Description | Notes
**receipt** | **File**| 証憑ファイル |
**description** | **String**| メモ (255文字以内) | [optional]
**issueDate** | **String**| 取引日 (yyyy-mm-dd) | [optional]
**receiptMetadatumAmount** | **Long**| 金額 | [optional]
**receiptMetadatumIssueDate** | **String**| 発行日 (yyyy-mm-dd) | [optional]
**receiptMetadatumPartnerName** | **String**| 発行元 | [optional]

### Return type

Expand Down Expand Up @@ -438,7 +444,7 @@ public class Example {

ReceiptsApi apiInstance = new ReceiptsApi(defaultClient);
Integer id = 56; // Integer | 証憑ファイルID
ReceiptUpdateParams receiptUpdateParams = new ReceiptUpdateParams(); // ReceiptUpdateParams | 経費申請の更新
ReceiptUpdateParams receiptUpdateParams = new ReceiptUpdateParams(); // ReceiptUpdateParams |
try {
ReceiptResponse result = apiInstance.updateReceipt(id, receiptUpdateParams);
System.out.println(result);
Expand All @@ -459,7 +465,7 @@ public class Example {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**id** | **Integer**| 証憑ファイルID |
**receiptUpdateParams** | [**ReceiptUpdateParams**](ReceiptUpdateParams.md)| 経費申請の更新 |
**receiptUpdateParams** | [**ReceiptUpdateParams**](ReceiptUpdateParams.md)| |

### Return type

Expand Down
4 changes: 2 additions & 2 deletions sdk/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@
</dependency>
</dependencies>
<properties>
<revision>2.13.0</revision>
<revision>2.14.0</revision>
<changelist>-SNAPSHOT</changelist>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<java.version>1.8</java.version>
Expand All @@ -305,4 +305,4 @@
<oltu-version>1.0.1</oltu-version>
<junit-version>4.13.1</junit-version>
</properties>
</project>
</project>
7 changes: 5 additions & 2 deletions sdk/src/main/java/jp/co/freee/accounting/api/ReceiptsApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,15 @@ public interface ReceiptsApi {
* @param receipt 証憑ファイル (required)
* @param description メモ (255文字以内) (optional)
* @param issueDate 取引日 (yyyy-mm-dd) (optional)
* @param receiptMetadatumAmount 金額 (optional)
* @param receiptMetadatumIssueDate 発行日 (yyyy-mm-dd) (optional)
* @param receiptMetadatumPartnerName 発行元 (optional)
* @return Observable&lt;ReceiptResponse&gt;
*/
@retrofit2.http.Multipart
@POST("api/1/receipts")
Observable<ReceiptResponse> createReceipt(
@retrofit2.http.Part("company_id") Integer companyId, @retrofit2.http.Part MultipartBody.Part receipt, @retrofit2.http.Part("description") String description, @retrofit2.http.Part("issue_date") String issueDate
@retrofit2.http.Part("company_id") Integer companyId, @retrofit2.http.Part MultipartBody.Part receipt, @retrofit2.http.Part("description") String description, @retrofit2.http.Part("issue_date") String issueDate, @retrofit2.http.Part("receipt_metadatum_amount") Long receiptMetadatumAmount, @retrofit2.http.Part("receipt_metadatum_issue_date") String receiptMetadatumIssueDate, @retrofit2.http.Part("receipt_metadatum_partner_name") String receiptMetadatumPartnerName
);

/**
Expand Down Expand Up @@ -101,7 +104,7 @@ Observable<InlineResponse2005> getReceipts(
* ファイルボックス 証憑ファイル情報更新
*
* @param id 証憑ファイルID (required)
* @param receiptUpdateParams 経費申請の更新 (required)
* @param receiptUpdateParams (required)
* @return Observable&lt;ReceiptResponse&gt;
*/
@Headers({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;
import jp.co.freee.accounting.models.DealReceiptMetadatum;
import jp.co.freee.accounting.models.DealUser;

/**
Expand Down Expand Up @@ -117,6 +118,10 @@ public OriginEnum read(final JsonReader jsonReader) throws IOException {
@SerializedName(SERIALIZED_NAME_ORIGIN)
private OriginEnum origin;

public static final String SERIALIZED_NAME_RECEIPT_METADATUM = "receipt_metadatum";
@SerializedName(SERIALIZED_NAME_RECEIPT_METADATUM)
private DealReceiptMetadatum receiptMetadatum;

/**
* ステータス(confirmed:確認済み、deleted:削除済み、ignored:無視)
*/
Expand Down Expand Up @@ -317,6 +322,29 @@ public void setOrigin(OriginEnum origin) {
}


public DealCreateResponseDealReceipts receiptMetadatum(DealReceiptMetadatum receiptMetadatum) {

this.receiptMetadatum = receiptMetadatum;
return this;
}

/**
* Get receiptMetadatum
* @return receiptMetadatum
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")

public DealReceiptMetadatum getReceiptMetadatum() {
return receiptMetadatum;
}


public void setReceiptMetadatum(DealReceiptMetadatum receiptMetadatum) {
this.receiptMetadatum = receiptMetadatum;
}


public DealCreateResponseDealReceipts status(StatusEnum status) {

this.status = status;
Expand Down Expand Up @@ -378,13 +406,14 @@ public boolean equals(Object o) {
Objects.equals(this.issueDate, dealCreateResponseDealReceipts.issueDate) &&
Objects.equals(this.mimeType, dealCreateResponseDealReceipts.mimeType) &&
Objects.equals(this.origin, dealCreateResponseDealReceipts.origin) &&
Objects.equals(this.receiptMetadatum, dealCreateResponseDealReceipts.receiptMetadatum) &&
Objects.equals(this.status, dealCreateResponseDealReceipts.status) &&
Objects.equals(this.user, dealCreateResponseDealReceipts.user);
}

@Override
public int hashCode() {
return Objects.hash(createdAt, description, id, issueDate, mimeType, origin, status, user);
return Objects.hash(createdAt, description, id, issueDate, mimeType, origin, receiptMetadatum, status, user);
}

@Override
Expand All @@ -397,6 +426,7 @@ public String toString() {
sb.append(" issueDate: ").append(toIndentedString(issueDate)).append("\n");
sb.append(" mimeType: ").append(toIndentedString(mimeType)).append("\n");
sb.append(" origin: ").append(toIndentedString(origin)).append("\n");
sb.append(" receiptMetadatum: ").append(toIndentedString(receiptMetadatum)).append("\n");
sb.append(" status: ").append(toIndentedString(status)).append("\n");
sb.append(" user: ").append(toIndentedString(user)).append("\n");
sb.append("}");
Expand Down
Loading

0 comments on commit 441064a

Please sign in to comment.