tachain-sdk 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (82) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +9 -0
  3. data/LICENSE +21 -0
  4. data/README.md +226 -0
  5. data/Rakefile +10 -0
  6. data/git_push.sh +54 -0
  7. data/lib/tachain-sdk/api/api_declaration_api.rb +396 -0
  8. data/lib/tachain-sdk/api/api_delivery_api.rb +676 -0
  9. data/lib/tachain-sdk/api/api_enum_api.rb +94 -0
  10. data/lib/tachain-sdk/api/api_order_api.rb +846 -0
  11. data/lib/tachain-sdk/api/api_order_workflow_api.rb +170 -0
  12. data/lib/tachain-sdk/api/api_production_api.rb +466 -0
  13. data/lib/tachain-sdk/api_client.rb +397 -0
  14. data/lib/tachain-sdk/api_error.rb +58 -0
  15. data/lib/tachain-sdk/api_model_base.rb +88 -0
  16. data/lib/tachain-sdk/configuration.rb +329 -0
  17. data/lib/tachain-sdk/models/api_declaration_delete_request.rb +341 -0
  18. data/lib/tachain-sdk/models/api_declaration_document_request.rb +209 -0
  19. data/lib/tachain-sdk/models/api_declaration_list_dto.rb +251 -0
  20. data/lib/tachain-sdk/models/api_declaration_submit_request.rb +251 -0
  21. data/lib/tachain-sdk/models/api_declaration_submit_result_dto.rb +197 -0
  22. data/lib/tachain-sdk/models/api_integration_delete_request.rb +209 -0
  23. data/lib/tachain-sdk/models/api_order_confirm_receipt_request.rb +216 -0
  24. data/lib/tachain-sdk/models/api_order_submit_audit_request.rb +243 -0
  25. data/lib/tachain-sdk/models/api_response_api_declaration_list_dto.rb +199 -0
  26. data/lib/tachain-sdk/models/api_response_api_declaration_submit_result_dto.rb +199 -0
  27. data/lib/tachain-sdk/models/api_response_delivery_note_api_dto.rb +199 -0
  28. data/lib/tachain-sdk/models/api_response_order_api_dto.rb +199 -0
  29. data/lib/tachain-sdk/models/api_response_production_api_dto.rb +199 -0
  30. data/lib/tachain-sdk/models/api_response_string.rb +200 -0
  31. data/lib/tachain-sdk/models/attachment_in_api_create_dto.rb +262 -0
  32. data/lib/tachain-sdk/models/attachment_in_api_dto.rb +363 -0
  33. data/lib/tachain-sdk/models/brand_kpi_policy_result.rb +334 -0
  34. data/lib/tachain-sdk/models/brand_order_kpi_snapshot_dto.rb +880 -0
  35. data/lib/tachain-sdk/models/brand_order_supplier_order_snapshot_dto.rb +749 -0
  36. data/lib/tachain-sdk/models/brand_order_uncompleted_declare_snapshot_dto.rb +513 -0
  37. data/lib/tachain-sdk/models/company.rb +780 -0
  38. data/lib/tachain-sdk/models/company_compliance_profile.rb +547 -0
  39. data/lib/tachain-sdk/models/company_utility_declaration.rb +592 -0
  40. data/lib/tachain-sdk/models/customer.rb +569 -0
  41. data/lib/tachain-sdk/models/delivery_note_api_dto.rb +597 -0
  42. data/lib/tachain-sdk/models/delivery_note_detail_api_dto.rb +682 -0
  43. data/lib/tachain-sdk/models/document_type_api_dto.rb +480 -0
  44. data/lib/tachain-sdk/models/factory.rb +545 -0
  45. data/lib/tachain-sdk/models/get_v1_enum_get_list200_response.rb +201 -0
  46. data/lib/tachain-sdk/models/microsoft_asp_net_core_mvc_problem_details.rb +188 -0
  47. data/lib/tachain-sdk/models/model1.rb +157 -0
  48. data/lib/tachain-sdk/models/model3.rb +202 -0
  49. data/lib/tachain-sdk/models/model4.rb +202 -0
  50. data/lib/tachain-sdk/models/order.rb +974 -0
  51. data/lib/tachain-sdk/models/order_api_dto.rb +918 -0
  52. data/lib/tachain-sdk/models/order_line.rb +1184 -0
  53. data/lib/tachain-sdk/models/order_line_api_dto.rb +1277 -0
  54. data/lib/tachain-sdk/models/order_stage_form_api_dto.rb +270 -0
  55. data/lib/tachain-sdk/models/order_stage_form_datum_api_dto.rb +260 -0
  56. data/lib/tachain-sdk/models/order_stage_form_dto.rb +254 -0
  57. data/lib/tachain-sdk/models/paged_response_delivery_note_api_dto.rb +296 -0
  58. data/lib/tachain-sdk/models/paged_response_order_api_dto.rb +296 -0
  59. data/lib/tachain-sdk/models/paged_response_production_api_dto.rb +296 -0
  60. data/lib/tachain-sdk/models/product_bom_grouping_dto.rb +280 -0
  61. data/lib/tachain-sdk/models/production_api_dto.rb +639 -0
  62. data/lib/tachain-sdk/models/production_raw_material_api_dto.rb +481 -0
  63. data/lib/tachain-sdk/models/production_raw_material_dto.rb +548 -0
  64. data/lib/tachain-sdk/models/production_sales_order_api_dto.rb +436 -0
  65. data/lib/tachain-sdk/models/result_api_enum.rb +270 -0
  66. data/lib/tachain-sdk/models/result_brand_report_allocated_delivery_kpi_detail.rb +331 -0
  67. data/lib/tachain-sdk/models/result_brand_report_unlinked_order_detail.rb +229 -0
  68. data/lib/tachain-sdk/models/result_kpi_archived_data_change_detail.rb +418 -0
  69. data/lib/tachain-sdk/models/result_mapping_order_select.rb +335 -0
  70. data/lib/tachain-sdk/models/result_order_trace_report.rb +721 -0
  71. data/lib/tachain-sdk/models/stage_attachment_api_dto.rb +398 -0
  72. data/lib/tachain-sdk/models/supplier.rb +585 -0
  73. data/lib/tachain-sdk/models/supplier_onboarding_ext.rb +383 -0
  74. data/lib/tachain-sdk/models/template_dto_business_risk_warn_info_dto.rb +456 -0
  75. data/lib/tachain-sdk/models/template_dto_multi_so_line_complete_status.rb +227 -0
  76. data/lib/tachain-sdk/models/trader.rb +506 -0
  77. data/lib/tachain-sdk/signed_api_client.rb +65 -0
  78. data/lib/tachain-sdk/version.rb +15 -0
  79. data/lib/tachain-sdk.rb +108 -0
  80. data/spec/spec_helper.rb +111 -0
  81. data/tachain-sdk.gemspec +39 -0
  82. metadata +165 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 84f5b5044a23282eea9155b7f921d800bc4cb8ff2e5848c0d40bd117a3cad00c
4
+ data.tar.gz: e62b9385a02a95731a2a7268d35695e0b659607c393f8ee0bc315d3daf80431e
5
+ SHA512:
6
+ metadata.gz: 277ca3fadcd45723b97efc9444770eeb4ac073ff24a90f15b8a3b3effe057d2b2895d4d43116b04558c210b75cc4e5774469f55cdb3dbd35b1c9c90ae0b7be9d
7
+ data.tar.gz: c1d4169b2874474d8f5471b1ec4ccbd884d0ead7884fa27ad055cc40ce65242ea199200a1e74b3df4160584b83b84e2268d17a7c4c5e19d408bfb85c2d146935
data/Gemfile ADDED
@@ -0,0 +1,9 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec
4
+
5
+ group :development, :test do
6
+ gem 'rake', '~> 13.0.1'
7
+ gem 'pry-byebug'
8
+ gem 'rubocop', '~> 0.66.0'
9
+ end
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Tactic Chain contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,226 @@
1
+ # tachain-sdk
2
+
3
+ TachainSdk - the Ruby gem for the Tactic Chain Public API
4
+
5
+ Public integration endpoints. Set your own base URL and credential before calling.
6
+
7
+ This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
8
+
9
+ - API version: 1.0.0
10
+ - Package version: 0.1.0
11
+ - Generator version: 7.25.0
12
+ - Build package: org.openapitools.codegen.languages.RubyClientCodegen
13
+
14
+ ## Installation
15
+
16
+ ### Build a gem
17
+
18
+ To build the Ruby code into a gem:
19
+
20
+ ```shell
21
+ gem build tachain-sdk.gemspec
22
+ ```
23
+
24
+ Then either install the gem locally:
25
+
26
+ ```shell
27
+ gem install ./tachain-sdk-0.1.0.gem
28
+ ```
29
+
30
+ (for development, run `gem install --dev ./tachain-sdk-0.1.0.gem` to install the development dependencies)
31
+
32
+ or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
33
+
34
+ Finally add this to the Gemfile:
35
+
36
+ gem 'tachain-sdk', '~> 0.1.0'
37
+
38
+ ### Install from Git
39
+
40
+ If the Ruby gem is hosted at a git repository: https://github.com/ta-chain/tachain-sdk, then add the following in the Gemfile:
41
+
42
+ gem 'tachain-sdk', :git => 'https://github.com/ta-chain/tachain-sdk.git'
43
+
44
+ ### Include the Ruby code directly
45
+
46
+ Include the Ruby code directly using `-I` as follows:
47
+
48
+ ```shell
49
+ ruby -Ilib script.rb
50
+ ```
51
+
52
+ ## Getting Started
53
+
54
+ Please follow the [installation](#installation) procedure and then run the following code:
55
+
56
+ ```ruby
57
+ # Load the gem
58
+ require 'tachain-sdk'
59
+
60
+ # Setup authorization
61
+ TachainSdk.configure do |config|
62
+ # Configure API key authorization: ApiKey
63
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
64
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
65
+ # config.api_key_prefix['X-API-Key'] = 'Bearer'
66
+
67
+ # Configure API key authorization: Signature
68
+ config.api_key['X-Signature'] = 'YOUR API KEY'
69
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
70
+ # config.api_key_prefix['X-Signature'] = 'Bearer'
71
+
72
+ # Configure Bearer authorization: BearerToken
73
+ config.access_token = 'YOUR_BEARER_TOKEN'
74
+ # Configure a proc to get access tokens in lieu of the static access_token configuration
75
+ config.access_token_getter = -> { 'YOUR TOKEN GETTER PROC' }
76
+
77
+ # Configure API key authorization: Timestamp
78
+ config.api_key['X-Timestamp'] = 'YOUR API KEY'
79
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
80
+ # config.api_key_prefix['X-Timestamp'] = 'Bearer'
81
+ end
82
+
83
+ api_instance = TachainSdk::ApiDeclarationApi.new
84
+ x_credential_type = 'Token' # String | Use 'Token' with bearer authorization, or 'API Key' with signed API key headers. This header is mandatory in the deployed API.
85
+ opts = {
86
+ attachment_id: 'attachment_id_example', # String | query 方式传入的单个附件申报 ID。
87
+ form_data_id: 'form_data_id_example', # String | query 方式传入的单个表单申报 ID。
88
+ api_declaration_delete_request: TachainSdk::ApiDeclarationDeleteRequest.new # ApiDeclarationDeleteRequest |
89
+ }
90
+
91
+ begin
92
+ #申报信息删除接口。
93
+ result = api_instance.delete_v1_declaration_delete(x_credential_type, opts)
94
+ p result
95
+ rescue TachainSdk::ApiError => e
96
+ puts "Exception when calling ApiDeclarationApi->delete_v1_declaration_delete: #{e}"
97
+ end
98
+
99
+ ```
100
+
101
+ ## Documentation for API Endpoints
102
+
103
+ All URIs are relative to *https://api.example.com*
104
+
105
+ Class | Method | HTTP request | Description
106
+ ------------ | ------------- | ------------- | -------------
107
+ *TachainSdk::ApiDeclarationApi* | [**delete_v1_declaration_delete**](docs/ApiDeclarationApi.md#delete_v1_declaration_delete) | **DELETE** /v1/declaration/Delete | 申报信息删除接口。
108
+ *TachainSdk::ApiDeclarationApi* | [**get_v1_declaration_list_paging**](docs/ApiDeclarationApi.md#get_v1_declaration_list_paging) | **GET** /v1/declaration/ListPaging | 申报信息查询接口。
109
+ *TachainSdk::ApiDeclarationApi* | [**get_v1_declaration_required_documents**](docs/ApiDeclarationApi.md#get_v1_declaration_required_documents) | **GET** /v1/declaration/RequiredDocuments | 单据所需申报信息查询接口。
110
+ *TachainSdk::ApiDeclarationApi* | [**post_v1_declaration_submit**](docs/ApiDeclarationApi.md#post_v1_declaration_submit) | **POST** /v1/declaration/Submit | 申报文件/表单提交接口。
111
+ *TachainSdk::ApiDeliveryApi* | [**delete_v1_delivery_delete**](docs/ApiDeliveryApi.md#delete_v1_delivery_delete) | **DELETE** /v1/delivery/Delete | 删除发货单。
112
+ *TachainSdk::ApiDeliveryApi* | [**get_v1_delivery_list_paging**](docs/ApiDeliveryApi.md#get_v1_delivery_list_paging) | **GET** /v1/delivery/ListPaging | 查询发货单信息及明细信息。
113
+ *TachainSdk::ApiDeliveryApi* | [**get_v1_delivery_receipt_list_paging**](docs/ApiDeliveryApi.md#get_v1_delivery_receipt_list_paging) | **GET** /v1/delivery/ReceiptListPaging | 查询收货单集合,核对收货信息。
114
+ *TachainSdk::ApiDeliveryApi* | [**post_v1_delivery_create**](docs/ApiDeliveryApi.md#post_v1_delivery_create) | **POST** /v1/delivery/Create | 创建发货单。
115
+ *TachainSdk::ApiDeliveryApi* | [**put_v1_delivery_confirm_receipt**](docs/ApiDeliveryApi.md#put_v1_delivery_confirm_receipt) | **PUT** /v1/delivery/ConfirmReceipt | 确认收货。
116
+ *TachainSdk::ApiDeliveryApi* | [**put_v1_delivery_return_receipt**](docs/ApiDeliveryApi.md#put_v1_delivery_return_receipt) | **PUT** /v1/delivery/ReturnReceipt | 收货退回。
117
+ *TachainSdk::ApiDeliveryApi* | [**put_v1_delivery_update**](docs/ApiDeliveryApi.md#put_v1_delivery_update) | **PUT** /v1/delivery/Update | 修改发货单。
118
+ *TachainSdk::ApiEnumApi* | [**get_v1_enum_get_list**](docs/ApiEnumApi.md#get_v1_enum_get_list) | **GET** /v1/enum/GetList | 第三方-获取统一枚举列表(支持批量查询/查询所有)
119
+ *TachainSdk::ApiOrderApi* | [**delete_v1_order_delete**](docs/ApiOrderApi.md#delete_v1_order_delete) | **DELETE** /v1/order/Delete | 第三方-更新订单状态(通过匹配条件获取订单ID)
120
+ *TachainSdk::ApiOrderApi* | [**delete_v1_order_delete_line**](docs/ApiOrderApi.md#delete_v1_order_delete_line) | **DELETE** /v1/order/DeleteLine | 第三方-更新订单明细状态(通过匹配条件获取明细ID)
121
+ *TachainSdk::ApiOrderApi* | [**get_v1_order_po_list_paging**](docs/ApiOrderApi.md#get_v1_order_po_list_paging) | **GET** /v1/order/POListPaging | 第三方-获取采购订单分页列表(含明细)
122
+ *TachainSdk::ApiOrderApi* | [**get_v1_order_so_list_paging**](docs/ApiOrderApi.md#get_v1_order_so_list_paging) | **GET** /v1/order/SOListPaging | 第三方-获取销售订单分页列表(含明细)
123
+ *TachainSdk::ApiOrderApi* | [**post_v1_order_create**](docs/ApiOrderApi.md#post_v1_order_create) | **POST** /v1/order/Create | 第三方-创建订单(含明细)
124
+ *TachainSdk::ApiOrderApi* | [**post_v1_order_so_accept**](docs/ApiOrderApi.md#post_v1_order_so_accept) | **POST** /v1/order/SoAccept | 第三方-销售订单接单(支持绑定成品/自动创建成品)
125
+ *TachainSdk::ApiOrderApi* | [**put_v1_order_update**](docs/ApiOrderApi.md#put_v1_order_update) | **PUT** /v1/order/Update | 第三方-更新订单(部分字段)
126
+ *TachainSdk::ApiOrderWorkflowApi* | [**post_v1_order_submit_audit**](docs/ApiOrderWorkflowApi.md#post_v1_order_submit_audit) | **POST** /v1/order/SubmitAudit | 销售方根据已入库的订单、生产、发货及申报资料提交审核。
127
+ *TachainSdk::ApiOrderWorkflowApi* | [**put_v1_order_confirm_receipt**](docs/ApiOrderWorkflowApi.md#put_v1_order_confirm_receipt) | **PUT** /v1/order/ConfirmReceipt | 采购方按整单或单条订单明细确认收货。
128
+ *TachainSdk::ApiProductionApi* | [**delete_v1_production_delete**](docs/ApiProductionApi.md#delete_v1_production_delete) | **DELETE** /v1/production/Delete | 删除生产记录单。
129
+ *TachainSdk::ApiProductionApi* | [**get_v1_production_list_paging**](docs/ApiProductionApi.md#get_v1_production_list_paging) | **GET** /v1/production/ListPaging | 查询生产记录单及详细领料信息。
130
+ *TachainSdk::ApiProductionApi* | [**post_v1_production_create**](docs/ApiProductionApi.md#post_v1_production_create) | **POST** /v1/production/Create | 创建生产记录单。
131
+ *TachainSdk::ApiProductionApi* | [**put_v1_production_update**](docs/ApiProductionApi.md#put_v1_production_update) | **PUT** /v1/production/Update | 修改生产记录单。
132
+
133
+
134
+ ## Documentation for Models
135
+
136
+ - [TachainSdk::ApiDeclarationDeleteRequest](docs/ApiDeclarationDeleteRequest.md)
137
+ - [TachainSdk::ApiDeclarationDocumentRequest](docs/ApiDeclarationDocumentRequest.md)
138
+ - [TachainSdk::ApiDeclarationListDto](docs/ApiDeclarationListDto.md)
139
+ - [TachainSdk::ApiDeclarationSubmitRequest](docs/ApiDeclarationSubmitRequest.md)
140
+ - [TachainSdk::ApiDeclarationSubmitResultDto](docs/ApiDeclarationSubmitResultDto.md)
141
+ - [TachainSdk::ApiIntegrationDeleteRequest](docs/ApiIntegrationDeleteRequest.md)
142
+ - [TachainSdk::ApiOrderConfirmReceiptRequest](docs/ApiOrderConfirmReceiptRequest.md)
143
+ - [TachainSdk::ApiOrderSubmitAuditRequest](docs/ApiOrderSubmitAuditRequest.md)
144
+ - [TachainSdk::ApiResponseApiDeclarationListDto](docs/ApiResponseApiDeclarationListDto.md)
145
+ - [TachainSdk::ApiResponseApiDeclarationSubmitResultDto](docs/ApiResponseApiDeclarationSubmitResultDto.md)
146
+ - [TachainSdk::ApiResponseDeliveryNoteApiDto](docs/ApiResponseDeliveryNoteApiDto.md)
147
+ - [TachainSdk::ApiResponseOrderApiDto](docs/ApiResponseOrderApiDto.md)
148
+ - [TachainSdk::ApiResponseProductionApiDto](docs/ApiResponseProductionApiDto.md)
149
+ - [TachainSdk::ApiResponseString](docs/ApiResponseString.md)
150
+ - [TachainSdk::AttachmentInApiCreateDto](docs/AttachmentInApiCreateDto.md)
151
+ - [TachainSdk::AttachmentInApiDto](docs/AttachmentInApiDto.md)
152
+ - [TachainSdk::BrandKpiPolicyResult](docs/BrandKpiPolicyResult.md)
153
+ - [TachainSdk::BrandOrderKpiSnapshotDto](docs/BrandOrderKpiSnapshotDto.md)
154
+ - [TachainSdk::BrandOrderSupplierOrderSnapshotDto](docs/BrandOrderSupplierOrderSnapshotDto.md)
155
+ - [TachainSdk::BrandOrderUncompletedDeclareSnapshotDto](docs/BrandOrderUncompletedDeclareSnapshotDto.md)
156
+ - [TachainSdk::Company](docs/Company.md)
157
+ - [TachainSdk::CompanyComplianceProfile](docs/CompanyComplianceProfile.md)
158
+ - [TachainSdk::CompanyUtilityDeclaration](docs/CompanyUtilityDeclaration.md)
159
+ - [TachainSdk::Customer](docs/Customer.md)
160
+ - [TachainSdk::DeliveryNoteApiDto](docs/DeliveryNoteApiDto.md)
161
+ - [TachainSdk::DeliveryNoteDetailApiDto](docs/DeliveryNoteDetailApiDto.md)
162
+ - [TachainSdk::DocumentTypeApiDto](docs/DocumentTypeApiDto.md)
163
+ - [TachainSdk::Factory](docs/Factory.md)
164
+ - [TachainSdk::GetV1EnumGetList200Response](docs/GetV1EnumGetList200Response.md)
165
+ - [TachainSdk::MicrosoftAspNetCoreMvcProblemDetails](docs/MicrosoftAspNetCoreMvcProblemDetails.md)
166
+ - [TachainSdk::Model1](docs/Model1.md)
167
+ - [TachainSdk::Model3](docs/Model3.md)
168
+ - [TachainSdk::Model4](docs/Model4.md)
169
+ - [TachainSdk::Order](docs/Order.md)
170
+ - [TachainSdk::OrderApiDto](docs/OrderApiDto.md)
171
+ - [TachainSdk::OrderLine](docs/OrderLine.md)
172
+ - [TachainSdk::OrderLineApiDto](docs/OrderLineApiDto.md)
173
+ - [TachainSdk::OrderStageFormApiDto](docs/OrderStageFormApiDto.md)
174
+ - [TachainSdk::OrderStageFormDatumApiDto](docs/OrderStageFormDatumApiDto.md)
175
+ - [TachainSdk::OrderStageFormDto](docs/OrderStageFormDto.md)
176
+ - [TachainSdk::PagedResponseDeliveryNoteApiDto](docs/PagedResponseDeliveryNoteApiDto.md)
177
+ - [TachainSdk::PagedResponseOrderApiDto](docs/PagedResponseOrderApiDto.md)
178
+ - [TachainSdk::PagedResponseProductionApiDto](docs/PagedResponseProductionApiDto.md)
179
+ - [TachainSdk::ProductBomGroupingDto](docs/ProductBomGroupingDto.md)
180
+ - [TachainSdk::ProductionApiDto](docs/ProductionApiDto.md)
181
+ - [TachainSdk::ProductionRawMaterialApiDto](docs/ProductionRawMaterialApiDto.md)
182
+ - [TachainSdk::ProductionRawMaterialDto](docs/ProductionRawMaterialDto.md)
183
+ - [TachainSdk::ProductionSalesOrderApiDto](docs/ProductionSalesOrderApiDto.md)
184
+ - [TachainSdk::ResultApiEnum](docs/ResultApiEnum.md)
185
+ - [TachainSdk::ResultBrandReportAllocatedDeliveryKpiDetail](docs/ResultBrandReportAllocatedDeliveryKpiDetail.md)
186
+ - [TachainSdk::ResultBrandReportUnlinkedOrderDetail](docs/ResultBrandReportUnlinkedOrderDetail.md)
187
+ - [TachainSdk::ResultKpiArchivedDataChangeDetail](docs/ResultKpiArchivedDataChangeDetail.md)
188
+ - [TachainSdk::ResultMappingOrderSelect](docs/ResultMappingOrderSelect.md)
189
+ - [TachainSdk::ResultOrderTraceReport](docs/ResultOrderTraceReport.md)
190
+ - [TachainSdk::StageAttachmentApiDto](docs/StageAttachmentApiDto.md)
191
+ - [TachainSdk::Supplier](docs/Supplier.md)
192
+ - [TachainSdk::SupplierOnboardingExt](docs/SupplierOnboardingExt.md)
193
+ - [TachainSdk::TemplateDtoBusinessRiskWarnInfoDto](docs/TemplateDtoBusinessRiskWarnInfoDto.md)
194
+ - [TachainSdk::TemplateDtoMultiSoLineCompleteStatus](docs/TemplateDtoMultiSoLineCompleteStatus.md)
195
+ - [TachainSdk::Trader](docs/Trader.md)
196
+
197
+
198
+ ## Documentation for Authorization
199
+
200
+
201
+ Authentication schemes defined for the API:
202
+ ### BearerToken
203
+
204
+ - **Type**: Bearer authentication
205
+
206
+ ### ApiKey
207
+
208
+
209
+ - **Type**: API key
210
+ - **API key parameter name**: X-API-Key
211
+ - **Location**: HTTP header
212
+
213
+ ### Timestamp
214
+
215
+
216
+ - **Type**: API key
217
+ - **API key parameter name**: X-Timestamp
218
+ - **Location**: HTTP header
219
+
220
+ ### Signature
221
+
222
+
223
+ - **Type**: API key
224
+ - **API key parameter name**: X-Signature
225
+ - **Location**: HTTP header
226
+
data/Rakefile ADDED
@@ -0,0 +1,10 @@
1
+ require "bundler/gem_tasks"
2
+
3
+ begin
4
+ require 'rspec/core/rake_task'
5
+
6
+ RSpec::Core::RakeTask.new(:spec)
7
+ task default: :spec
8
+ rescue LoadError
9
+ # no rspec available
10
+ end
data/git_push.sh ADDED
@@ -0,0 +1,54 @@
1
+ #!/bin/sh
2
+ # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
3
+ #
4
+ # Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com"
5
+
6
+ git_user_id=$1
7
+ git_repo_id=$2
8
+ release_note=$3
9
+ git_host=$4
10
+
11
+ if [ -z "${git_host}" ]; then
12
+ git_host="github.com"
13
+ echo "[INFO] No command line input provided. Set \${git_host} to ${git_host}"
14
+ fi
15
+
16
+ if [ -z "${git_user_id}" ]; then
17
+ git_user_id="ta-chain"
18
+ echo "[INFO] No command line input provided. Set \${git_user_id} to ${git_user_id}"
19
+ fi
20
+
21
+ if [ -z "${git_repo_id}" ]; then
22
+ git_repo_id="tachain-sdk"
23
+ echo "[INFO] No command line input provided. Set \${git_repo_id} to ${git_repo_id}"
24
+ fi
25
+
26
+ if [ -z "${release_note}" ]; then
27
+ release_note="Minor update"
28
+ echo "[INFO] No command line input provided. Set \${release_note} to ${release_note}"
29
+ fi
30
+
31
+ # Initialize the local directory as a Git repository
32
+ git init
33
+
34
+ # Adds the files in the local repository and stages them for commit.
35
+ git add .
36
+
37
+ # Commits the tracked changes and prepares them to be pushed to a remote repository.
38
+ git commit -m "${release_note}"
39
+
40
+ # Sets the new remote
41
+ if [ -z "$(git remote)" ]; then # git remote not defined
42
+ if [ -z "${GIT_TOKEN:-}" ]; then
43
+ echo "[INFO] \${GIT_TOKEN} (environment variable) is not set. Using the git credential in your environment."
44
+ git remote add origin "https://${git_host}/${git_user_id}/${git_repo_id}.git"
45
+ else
46
+ git remote add origin "https://${git_user_id}:${GIT_TOKEN}@${git_host}/${git_user_id}/${git_repo_id}.git"
47
+ fi
48
+ fi
49
+
50
+ git pull origin master
51
+
52
+ # Pushes (Forces) the changes in the local repository up to the remote repository
53
+ echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git"
54
+ git push origin master 2>&1 | grep -v 'To https'