lib/tsubaiso_sdk.rb in tsubaiso-sdk-1.2.12 vs lib/tsubaiso_sdk.rb in tsubaiso-sdk-1.2.13
- old
+ new
@@ -679,10 +679,12 @@
'memo' => options[:memo],
'tax_code' => options[:tax_code],
'port_type' => options[:port_type],
'tag_list' => options[:tag_list],
'data_partner' => options[:data_partner],
+ 'scheduled_pay_method' => options[:scheduled_pay_method],
+ 'scheduled_pay_interface_id' => options[:scheduled_pay_interface_id],
'format' => 'json'
}
uri = URI.parse(@base_url + '/ap_payments/create')
api_request(uri, 'POST', params)
end
@@ -699,10 +701,12 @@
'tax_code' => options[:tax_code],
'port_type' => options[:port_type],
'tag_list' => options[:tag_list],
'data_partner' => options[:data_partner],
'key' => options[:key],
+ 'scheduled_pay_method' => options[:scheduled_pay_method],
+ 'scheduled_pay_interface_id' => options[:scheduled_pay_interface_id],
'format' => 'json'
}
uri = URI.parse(@base_url + '/ap_payments/find_or_create')
api_request(uri, 'POST', params)
end
@@ -1603,12 +1607,13 @@
params = { 'format' => 'json' }
uri = URI.parse(@base_url + "/ar_reports/list_cashflow_schedule/#{year}/#{month}")
api_request(uri, 'GET', params)
end
- def list_ap_cashflow_schedule(year, month)
+ def list_ap_cashflow_schedule(year, month, options = {})
params = { 'format' => 'json' }
+ params['pay_method'] = options[:pay_method] if options
uri = URI.parse(@base_url + "/ap_reports/list_cashflow_schedule/#{year}/#{month}")
api_request(uri, 'GET', params)
end
def standardize_payroll_column_masters(year, month)
@@ -1852,9 +1857,34 @@
end
def destroy_paid_holiday(holiday_id)
params = { 'format' => 'json' }
uri = URI.parse(@base_url + "/paid_holidays/destroy/#{holiday_id}")
+ api_request(uri, 'POST', params)
+ end
+
+ def list_corporate_data(options)
+ candidate_keys = [
+ :code
+ ]
+ params = create_parameters(candidate_keys, options)
+ uri = URI.parse(@base_url + "/corporate_data/list")
+ api_request(uri, 'GET', params)
+ end
+
+ # options: id: 会社基本情報Id, data: Base64エンコードデータ, filename: ファイル名, contenttype: Content-Type
+ # id で指定した corporate_datum が存在している必要があります。
+ # その corporate_datum の corporate_datum_master の input_type が 'image' である必要があります。
+ # 既存の添付ファイルは削除されて差し替えられます。
+ def update_attachment_to_corporate_data(options)
+ candidate_keys = [
+ :id,
+ :data,
+ :filename,
+ :contenttype
+ ]
+ params = create_parameters(candidate_keys, options)
+ uri = URI.parse(@base_url + '/corporate_data/update_attachment')
api_request(uri, 'POST', params)
end
private