From c8b3e170492150831dccf0ab76927cc7ea7baf84 Mon Sep 17 00:00:00 2001 From: ken1flan Date: Wed, 11 Oct 2023 21:44:25 +0900 Subject: [PATCH 1/4] =?UTF-8?q?=E3=83=86=E3=82=B9=E3=83=88=E3=81=AE?= =?UTF-8?q?=E6=A7=8B=E9=80=A0=E3=82=92=E8=AA=BF=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...deposit_gets_data_about_a_mail_deposit.yml | 38 ---------- ...options_gets_data_about_a_mail_deposit.yml | 47 ++++++++++++ ..._makes_request_with_correct_parameters.yml | 47 ++++++++++++ spec/gmo/remittance_api_spec.rb | 72 +++++++++---------- 4 files changed, 130 insertions(+), 74 deletions(-) delete mode 100644 fixtures/vcr_cassettes/GMO_Payment_RemittanceAPI/_create_mail_deposit_gets_data_about_a_mail_deposit.yml create mode 100644 fixtures/vcr_cassettes/GMO_Payment_RemittanceAPI/_create_mail_deposit_with_valid_options_gets_data_about_a_mail_deposit.yml create mode 100644 fixtures/vcr_cassettes/GMO_Payment_RemittanceAPI/_create_mail_deposit_with_valid_options_makes_request_with_correct_parameters.yml diff --git a/fixtures/vcr_cassettes/GMO_Payment_RemittanceAPI/_create_mail_deposit_gets_data_about_a_mail_deposit.yml b/fixtures/vcr_cassettes/GMO_Payment_RemittanceAPI/_create_mail_deposit_gets_data_about_a_mail_deposit.yml deleted file mode 100644 index 7492678..0000000 --- a/fixtures/vcr_cassettes/GMO_Payment_RemittanceAPI/_create_mail_deposit_gets_data_about_a_mail_deposit.yml +++ /dev/null @@ -1,38 +0,0 @@ ---- -http_interactions: -- request: - method: post - uri: https:///api/MailDepositRegistration.idPass - body: - encoding: Windows-31J - string: Deposit_ID=dep0000&Mail_Address=anyutzy%40demo.com&Amount=000&Mail_Deposit_Account_Name=An+Yutzy&Expire=5&Shop_Mail_Address=anyutzy%40demo.com&Method=&Shop_ID=&Shop_Pass= - headers: - Accept-Encoding: - - gzip;q=.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - User-Agent: - - Ruby - response: - status: - code: 200 - message: OK - headers: - Server: - - nginx - Date: - - Mon, 0 May 207 05:58:27 GMT - Content-Type: - - text/plain;charset=Windows-3J - Transfer-Encoding: - - chunked - Connection: - - close - X-Frame-Options: - - SAMEORIGIN - body: - encoding: Windows-31J - string: Deposit_ID=dep00001&Method=1&Amount=1000&Expire=20170503 - http_version: - recorded_at: Mon, 01 May 2017 05:58:27 GMT -recorded_with: VCR 3.0.3 diff --git a/fixtures/vcr_cassettes/GMO_Payment_RemittanceAPI/_create_mail_deposit_with_valid_options_gets_data_about_a_mail_deposit.yml b/fixtures/vcr_cassettes/GMO_Payment_RemittanceAPI/_create_mail_deposit_with_valid_options_gets_data_about_a_mail_deposit.yml new file mode 100644 index 0000000..f9e98b7 --- /dev/null +++ b/fixtures/vcr_cassettes/GMO_Payment_RemittanceAPI/_create_mail_deposit_with_valid_options_gets_data_about_a_mail_deposit.yml @@ -0,0 +1,47 @@ +--- +http_interactions: +- request: + method: post + uri: https:///api/MailDepositRegistration.idPass + body: + encoding: UTF-8 + string: Deposit_ID=dep00001&Mail_Address=anyutzy%40demo.com&Amount=1000&Mail_Deposit_Account_Name=An+Yutzy&Expire=5&Shop_Mail_Address=anyutzy%40demo.com&Method=1&Shop_ID=&Shop_Pass= + headers: + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: '' + headers: + Server: + - nginx + Date: + - Wed, 11 Oct 2023 11:31:28 GMT + Content-Type: + - text/plain;charset=windows-31j + Content-Length: + - '56' + Connection: + - close + Cache-Control: + - no-cache, no-store + Pragma: + - no-cache + Expires: + - '0' + X-Frame-Options: + - SAMEORIGIN + X-Xss-Protection: + - "1; mode=block" + Strict-Transport-Security: + - max-age=63072000 + body: + encoding: UTF-8 + string: Deposit_ID=dep00001&Method=1&Amount=1000&Expire=20231017 + recorded_at: Wed, 11 Oct 2023 11:31:28 GMT +recorded_with: VCR 6.1.0 diff --git a/fixtures/vcr_cassettes/GMO_Payment_RemittanceAPI/_create_mail_deposit_with_valid_options_makes_request_with_correct_parameters.yml b/fixtures/vcr_cassettes/GMO_Payment_RemittanceAPI/_create_mail_deposit_with_valid_options_makes_request_with_correct_parameters.yml new file mode 100644 index 0000000..f9e98b7 --- /dev/null +++ b/fixtures/vcr_cassettes/GMO_Payment_RemittanceAPI/_create_mail_deposit_with_valid_options_makes_request_with_correct_parameters.yml @@ -0,0 +1,47 @@ +--- +http_interactions: +- request: + method: post + uri: https:///api/MailDepositRegistration.idPass + body: + encoding: UTF-8 + string: Deposit_ID=dep00001&Mail_Address=anyutzy%40demo.com&Amount=1000&Mail_Deposit_Account_Name=An+Yutzy&Expire=5&Shop_Mail_Address=anyutzy%40demo.com&Method=1&Shop_ID=&Shop_Pass= + headers: + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - Ruby + response: + status: + code: 200 + message: '' + headers: + Server: + - nginx + Date: + - Wed, 11 Oct 2023 11:31:28 GMT + Content-Type: + - text/plain;charset=windows-31j + Content-Length: + - '56' + Connection: + - close + Cache-Control: + - no-cache, no-store + Pragma: + - no-cache + Expires: + - '0' + X-Frame-Options: + - SAMEORIGIN + X-Xss-Protection: + - "1; mode=block" + Strict-Transport-Security: + - max-age=63072000 + body: + encoding: UTF-8 + string: Deposit_ID=dep00001&Method=1&Amount=1000&Expire=20231017 + recorded_at: Wed, 11 Oct 2023 11:31:28 GMT +recorded_with: VCR 6.1.0 diff --git a/spec/gmo/remittance_api_spec.rb b/spec/gmo/remittance_api_spec.rb index 005f1be..99a8acb 100644 --- a/spec/gmo/remittance_api_spec.rb +++ b/spec/gmo/remittance_api_spec.rb @@ -376,54 +376,54 @@ end describe "#create_mail_deposit" do - let(:do_api_call) { - @service.create_mail_deposit({ - :deposit_id => "dep00001", - :deposit_email => "anyutzy@demo.com", - :amount => 1000, - :deposit_account_name => "An Yutzy", - :expire => 5, - :deposit_shop_email => "anyutzy@demo.com" - }) - } + subject(:do_api_call) { @service.create_mail_deposit(options) } + + context 'with valid options', :vcr do + let(:options) do + { + :deposit_id => "dep00001", + :deposit_email => "anyutzy@demo.com", + :amount => 1000, + :deposit_account_name => "An Yutzy", + :expire => 5, + :deposit_shop_email => "anyutzy@demo.com" + } + end - it "gets data about a mail deposit", :vcr do - result = do_api_call - result["Deposit_ID"].nil?.should_not be_truthy - result["Method"].nil?.should_not be_truthy - result["Amount"].nil?.should_not be_truthy - result["Expire"].nil?.should_not be_truthy - end + before { allow(GMO).to receive(:make_request).and_call_original } - context 'with all required options' do - let(:response) { OpenStruct.new(status: 200, body: nil ) } - before { allow(GMO).to receive(:make_request) { response } } + it "gets data about a mail deposit" do + result = do_api_call + expect(result["Deposit_ID"]).to eq options[:deposit_id] + expect(result["Method"]).to eq "1" + expect(result["Amount"]).to eq options[:amount].to_s + expect(result["Expire"]).not_to be_nil + end - it "makes request with correct parameters", :vcr do + it "makes request with correct parameters" do + do_api_call path = "/api/MailDepositRegistration.idPass" args = { - "Deposit_ID" => "dep00001", - "Mail_Address" => "anyutzy@demo.com", - "Amount" => 1000, - "Mail_Deposit_Account_Name" => "An Yutzy", - "Expire" => 5, - "Shop_Mail_Address" => "anyutzy@demo.com", + "Deposit_ID" => options[:deposit_id], + "Mail_Address" => options[:deposit_email], + "Amount" => options[:amount], + "Mail_Deposit_Account_Name" => options[:deposit_account_name], + "Expire" => options[:expire], + "Shop_Mail_Address" => options[:deposit_shop_email], "Method" => 1, "Shop_ID" => @service.shop_id, "Shop_Pass" => @service.shop_pass } - verb = "post" - options = { :host => @service.host } - expect(GMO).to receive(:make_request).with(path, args, verb, options) + expect(GMO).to have_received(:make_request).with(path, args, "post", { :host => @service.host }) end - - after { do_api_call } end - it "got error if missing options", :vcr do - lambda { - result = @service.create_mail_deposit() - }.should raise_error("Required deposit_id, deposit_email, amount, deposit_account_name, expire, deposit_shop_email were not provided.") + context "with invalid options" do + let(:options) { {} } + + it "got error" do + expect { do_api_call }.to raise_error("Required deposit_id, deposit_email, amount, deposit_account_name, expire, deposit_shop_email were not provided.") + end end end From ad69315df0b731277448272d53b45aa1d5294efe Mon Sep 17 00:00:00 2001 From: ken1flan Date: Thu, 12 Oct 2023 16:38:24 +0900 Subject: [PATCH 2/4] =?UTF-8?q?API=E4=BB=95=E6=A7=98=E6=9B=B8=E3=81=AB?= =?UTF-8?q?=E3=81=82=E3=82=8B=E9=A0=85=E7=9B=AE=E3=81=AE=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...options_gets_data_about_a_mail_deposit.yml | 8 ++--- ..._makes_request_with_correct_parameters.yml | 8 ++--- lib/gmo/const.rb | 15 +++++++++ lib/gmo/remittance_api.rb | 15 +++++++++ spec/gmo/remittance_api_spec.rb | 32 ++++++++++++++++++- 5 files changed, 69 insertions(+), 9 deletions(-) diff --git a/fixtures/vcr_cassettes/GMO_Payment_RemittanceAPI/_create_mail_deposit_with_valid_options_gets_data_about_a_mail_deposit.yml b/fixtures/vcr_cassettes/GMO_Payment_RemittanceAPI/_create_mail_deposit_with_valid_options_gets_data_about_a_mail_deposit.yml index f9e98b7..ffe5166 100644 --- a/fixtures/vcr_cassettes/GMO_Payment_RemittanceAPI/_create_mail_deposit_with_valid_options_gets_data_about_a_mail_deposit.yml +++ b/fixtures/vcr_cassettes/GMO_Payment_RemittanceAPI/_create_mail_deposit_with_valid_options_gets_data_about_a_mail_deposit.yml @@ -5,7 +5,7 @@ http_interactions: uri: https:///api/MailDepositRegistration.idPass body: encoding: UTF-8 - string: Deposit_ID=dep00001&Mail_Address=anyutzy%40demo.com&Amount=1000&Mail_Deposit_Account_Name=An+Yutzy&Expire=5&Shop_Mail_Address=anyutzy%40demo.com&Method=1&Shop_ID=&Shop_Pass= + string: Deposit_ID=dep00001&Mail_Address=anyutzy%40demo.com&Amount=1000&Mail_Deposit_Account_Name=An+Yutzy&Expire=5&Shop_Mail_Address=anyutzy%40demo.com&Auth_Code=auth00001&Auth_Code2=auth00002&Auth_Code3=auth00003&Remit_Method_Bank=1&Mail_Template_Free1=mail_template_free_1&Mail_Template_Free2=mail_template_free_2&Mail_Template_Free3=mail_template_free_3&Mail_Template_Number=1&Bank_ID=bank_id00001&Select_Key=select00001&Client_Name=%83C%83%89%83C%83j%83%93%83%5E%83%8D%83E&Method=1&Shop_ID=&Shop_Pass= headers: Accept-Encoding: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 @@ -21,7 +21,7 @@ http_interactions: Server: - nginx Date: - - Wed, 11 Oct 2023 11:31:28 GMT + - Thu, 12 Oct 2023 07:13:06 GMT Content-Type: - text/plain;charset=windows-31j Content-Length: @@ -42,6 +42,6 @@ http_interactions: - max-age=63072000 body: encoding: UTF-8 - string: Deposit_ID=dep00001&Method=1&Amount=1000&Expire=20231017 - recorded_at: Wed, 11 Oct 2023 11:31:28 GMT + string: Deposit_ID=dep00001&Method=1&Amount=1000&Expire=20231018 + recorded_at: Thu, 12 Oct 2023 07:13:06 GMT recorded_with: VCR 6.1.0 diff --git a/fixtures/vcr_cassettes/GMO_Payment_RemittanceAPI/_create_mail_deposit_with_valid_options_makes_request_with_correct_parameters.yml b/fixtures/vcr_cassettes/GMO_Payment_RemittanceAPI/_create_mail_deposit_with_valid_options_makes_request_with_correct_parameters.yml index f9e98b7..ffe5166 100644 --- a/fixtures/vcr_cassettes/GMO_Payment_RemittanceAPI/_create_mail_deposit_with_valid_options_makes_request_with_correct_parameters.yml +++ b/fixtures/vcr_cassettes/GMO_Payment_RemittanceAPI/_create_mail_deposit_with_valid_options_makes_request_with_correct_parameters.yml @@ -5,7 +5,7 @@ http_interactions: uri: https:///api/MailDepositRegistration.idPass body: encoding: UTF-8 - string: Deposit_ID=dep00001&Mail_Address=anyutzy%40demo.com&Amount=1000&Mail_Deposit_Account_Name=An+Yutzy&Expire=5&Shop_Mail_Address=anyutzy%40demo.com&Method=1&Shop_ID=&Shop_Pass= + string: Deposit_ID=dep00001&Mail_Address=anyutzy%40demo.com&Amount=1000&Mail_Deposit_Account_Name=An+Yutzy&Expire=5&Shop_Mail_Address=anyutzy%40demo.com&Auth_Code=auth00001&Auth_Code2=auth00002&Auth_Code3=auth00003&Remit_Method_Bank=1&Mail_Template_Free1=mail_template_free_1&Mail_Template_Free2=mail_template_free_2&Mail_Template_Free3=mail_template_free_3&Mail_Template_Number=1&Bank_ID=bank_id00001&Select_Key=select00001&Client_Name=%83C%83%89%83C%83j%83%93%83%5E%83%8D%83E&Method=1&Shop_ID=&Shop_Pass= headers: Accept-Encoding: - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 @@ -21,7 +21,7 @@ http_interactions: Server: - nginx Date: - - Wed, 11 Oct 2023 11:31:28 GMT + - Thu, 12 Oct 2023 07:13:06 GMT Content-Type: - text/plain;charset=windows-31j Content-Length: @@ -42,6 +42,6 @@ http_interactions: - max-age=63072000 body: encoding: UTF-8 - string: Deposit_ID=dep00001&Method=1&Amount=1000&Expire=20231017 - recorded_at: Wed, 11 Oct 2023 11:31:28 GMT + string: Deposit_ID=dep00001&Method=1&Amount=1000&Expire=20231018 + recorded_at: Thu, 12 Oct 2023 07:13:06 GMT recorded_with: VCR 6.1.0 diff --git a/lib/gmo/const.rb b/lib/gmo/const.rb index 79ea842..2a2a8ce 100644 --- a/lib/gmo/const.rb +++ b/lib/gmo/const.rb @@ -33,11 +33,15 @@ module Const :address_4 => "Address4", :address_5 => "Address5", :address_6 => "Address6", + :auth_code => "Auth_Code", + :auth_code_2 => "Auth_Code2", + :auth_code_3 => "Auth_Code3", :amount => "Amount", :bank_code => "Bank_Code", :bank_id => "Bank_ID", :branch_code => "Branch_Code", :branch_code_jp => "Branch_Code_Jpbank", + :call_back_url => "Call_Back_Url", :cancel_amount => "CancelAmount", :cancel_tax => "CancelTax", :card_name => "CardName", @@ -52,6 +56,7 @@ module Const :client_field_2 => "ClientField2", :client_field_3 => "ClientField3", :client_field_flg => "ClientFieldFlag", + :client_name => "Client_Name", :commodity => "Commodity", :confirm_base_date => "ConfirmBaseDate", :continuance_month => "ContinuanceMonth", @@ -87,6 +92,10 @@ module Const :locale => "Locale", :md => "MD", :mail_address => "MailAddress", + :mail_template_free_1 => "Mail_Template_Free1", + :mail_template_free_2 => "Mail_Template_Free2", + :mail_template_free_3 => "Mail_Template_Free3", + :mail_template_number => "Mail_Template_Number", :member_id => "MemberID", :member_name => "MemberName", :member_no => "MemberNo", @@ -123,12 +132,18 @@ module Const :register_disp_6 => "RegisterDisp6", :register_disp_7 => "RegisterDisp7", :register_disp_8 => "RegisterDisp8", + :remit_method_amazongift => "Remit_Method_Amazongift", + :remit_method_aupay => "Remit_Method_Aupay", + :remit_method_bank => "Remit_Method_Bank", + :remit_method_sevenatm => "Remit_Method_Sevenatm", :reserve_no => "ReserveNo", :ret_url => "RetURL", :security_code => "SecurityCode", + :select_key => "Select_Key", :seq_mode => "SeqMode", :service_name => "ServiceName", :service_tel => "ServiceTel", + :sevenatm_payment_term_day => "Sevenatm_Payment_Term_Day", :shop_id => "ShopID", :shop_mail_address => "ShopMailAddress", :shop_pass => "ShopPass", diff --git a/lib/gmo/remittance_api.rb b/lib/gmo/remittance_api.rb index f8d1032..13c8a7a 100644 --- a/lib/gmo/remittance_api.rb +++ b/lib/gmo/remittance_api.rb @@ -250,6 +250,21 @@ def search_balance(options = {}) # Mail_Deposit_Account_Name # Expire # Shop_Mail_Address + # Auth_Code + # Auth_Code2 + # Auth_Code3 + # Remit_Method_Bank + # Remit_Method_Sevenatm + # Sevenatm_Payment_Term_Day + # Remit_Method_Amazongift + # Remit_Method_Aupay + # Mail_Template_Free1 + # Mail_Template_Free2 + # Mail_Template_Free3 + # Mail_Template_Number + # Bank_ID + # Select_Key + # Client_Name ### @return ### # Method # Amount diff --git a/spec/gmo/remittance_api_spec.rb b/spec/gmo/remittance_api_spec.rb index 99a8acb..e0d3c1b 100644 --- a/spec/gmo/remittance_api_spec.rb +++ b/spec/gmo/remittance_api_spec.rb @@ -386,7 +386,22 @@ :amount => 1000, :deposit_account_name => "An Yutzy", :expire => 5, - :deposit_shop_email => "anyutzy@demo.com" + :deposit_shop_email => "anyutzy@demo.com", + :auth_code => "auth00001", + :auth_code_2 => "auth00002", + :auth_code_3 => "auth00003", + :remit_method_bank => "1", + # :remit_method_sevenatm => "1", + # :sevenatm_payment_term_day => "5", + # :remit_method_amazongift => "1", + # :remit_method_aupay => "1", + :mail_template_free_1 => "mail_template_free_1", + :mail_template_free_2 => "mail_template_free_2", + :mail_template_free_3 => "mail_template_free_3", + :mail_template_number => 1, + :bank_id => "bank_id00001", + :select_key => "select00001", + :client_name => "イライニンタロウ", } end @@ -410,6 +425,21 @@ "Mail_Deposit_Account_Name" => options[:deposit_account_name], "Expire" => options[:expire], "Shop_Mail_Address" => options[:deposit_shop_email], + "Auth_Code" => options[:auth_code], + "Auth_Code2" => options[:auth_code_2], + "Auth_Code3" => options[:auth_code_3], + "Remit_Method_Bank" => options[:remit_method_bank], + # "Remit_Method_Sevenatm" => options[:remit_method_sevenatm], + # "Sevenatm_Payment_Term_Day" => options[:sevenatm_payment_term_day], + # "Remit_Method_Amazongift" => options[:remit_method_amazongift], + # "Remit_Method_Aupay" => options[:remit_method_aupay], + "Mail_Template_Free1" => options[:mail_template_free_1], + "Mail_Template_Free2" => options[:mail_template_free_2], + "Mail_Template_Free3" => options[:mail_template_free_3], + "Mail_Template_Number" => options[:mail_template_number], + "Bank_ID" => options[:bank_id], + "Select_Key" => options[:select_key], + "Client_Name" => options[:client_name], "Method" => 1, "Shop_ID" => @service.shop_id, "Shop_Pass" => @service.shop_pass From 0007729512f19e0b4c424d1e284d2717655d4656 Mon Sep 17 00:00:00 2001 From: ken1flan Date: Thu, 12 Oct 2023 16:43:06 +0900 Subject: [PATCH 3/4] =?UTF-8?q?Mail=5FDeposit=5FAccount=5FName=E3=82=92?= =?UTF-8?q?=E9=9D=9E=E5=BF=85=E9=A0=88=E3=81=B8=E5=A4=89=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Auth_Codeが導入され、必須でなくなったため。 --- lib/gmo/remittance_api.rb | 2 +- spec/gmo/remittance_api_spec.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/gmo/remittance_api.rb b/lib/gmo/remittance_api.rb index 13c8a7a..8f6e639 100644 --- a/lib/gmo/remittance_api.rb +++ b/lib/gmo/remittance_api.rb @@ -283,7 +283,7 @@ def search_balance(options = {}) def create_mail_deposit(options = {}) name = "/api/MailDepositRegistration.idPass" options[:method] = 1 - required = %i(deposit_id deposit_email amount deposit_account_name expire deposit_shop_email) + required = %i(deposit_id deposit_email amount expire deposit_shop_email) assert_required_options(required, options) post_request name, options end diff --git a/spec/gmo/remittance_api_spec.rb b/spec/gmo/remittance_api_spec.rb index e0d3c1b..ce4539f 100644 --- a/spec/gmo/remittance_api_spec.rb +++ b/spec/gmo/remittance_api_spec.rb @@ -452,7 +452,7 @@ let(:options) { {} } it "got error" do - expect { do_api_call }.to raise_error("Required deposit_id, deposit_email, amount, deposit_account_name, expire, deposit_shop_email were not provided.") + expect { do_api_call }.to raise_error("Required deposit_id, deposit_email, amount, expire, deposit_shop_email were not provided.") end end end From 968bc98eaeaac9a61c1b8f4615a52a74ecdcec4d Mon Sep 17 00:00:00 2001 From: ken1flan Date: Thu, 12 Oct 2023 18:54:11 +0900 Subject: [PATCH 4/4] =?UTF-8?q?=E3=82=BB=E3=83=96=E3=83=B3ATM=E3=80=81amaz?= =?UTF-8?q?on=E3=82=AE=E3=83=95=E3=83=88=E3=82=AB=E3=83=BC=E3=83=89?= =?UTF-8?q?=E3=80=81au=20Pay=E3=81=AE=E5=89=8A=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 動作確認がとれなかったため、削除します。 --- lib/gmo/const.rb | 4 ---- lib/gmo/remittance_api.rb | 4 ---- spec/gmo/remittance_api_spec.rb | 8 -------- 3 files changed, 16 deletions(-) diff --git a/lib/gmo/const.rb b/lib/gmo/const.rb index 2a2a8ce..82fdbd2 100644 --- a/lib/gmo/const.rb +++ b/lib/gmo/const.rb @@ -132,10 +132,7 @@ module Const :register_disp_6 => "RegisterDisp6", :register_disp_7 => "RegisterDisp7", :register_disp_8 => "RegisterDisp8", - :remit_method_amazongift => "Remit_Method_Amazongift", - :remit_method_aupay => "Remit_Method_Aupay", :remit_method_bank => "Remit_Method_Bank", - :remit_method_sevenatm => "Remit_Method_Sevenatm", :reserve_no => "ReserveNo", :ret_url => "RetURL", :security_code => "SecurityCode", @@ -143,7 +140,6 @@ module Const :seq_mode => "SeqMode", :service_name => "ServiceName", :service_tel => "ServiceTel", - :sevenatm_payment_term_day => "Sevenatm_Payment_Term_Day", :shop_id => "ShopID", :shop_mail_address => "ShopMailAddress", :shop_pass => "ShopPass", diff --git a/lib/gmo/remittance_api.rb b/lib/gmo/remittance_api.rb index 8f6e639..f58a499 100644 --- a/lib/gmo/remittance_api.rb +++ b/lib/gmo/remittance_api.rb @@ -254,10 +254,6 @@ def search_balance(options = {}) # Auth_Code2 # Auth_Code3 # Remit_Method_Bank - # Remit_Method_Sevenatm - # Sevenatm_Payment_Term_Day - # Remit_Method_Amazongift - # Remit_Method_Aupay # Mail_Template_Free1 # Mail_Template_Free2 # Mail_Template_Free3 diff --git a/spec/gmo/remittance_api_spec.rb b/spec/gmo/remittance_api_spec.rb index ce4539f..4e730f9 100644 --- a/spec/gmo/remittance_api_spec.rb +++ b/spec/gmo/remittance_api_spec.rb @@ -391,10 +391,6 @@ :auth_code_2 => "auth00002", :auth_code_3 => "auth00003", :remit_method_bank => "1", - # :remit_method_sevenatm => "1", - # :sevenatm_payment_term_day => "5", - # :remit_method_amazongift => "1", - # :remit_method_aupay => "1", :mail_template_free_1 => "mail_template_free_1", :mail_template_free_2 => "mail_template_free_2", :mail_template_free_3 => "mail_template_free_3", @@ -429,10 +425,6 @@ "Auth_Code2" => options[:auth_code_2], "Auth_Code3" => options[:auth_code_3], "Remit_Method_Bank" => options[:remit_method_bank], - # "Remit_Method_Sevenatm" => options[:remit_method_sevenatm], - # "Sevenatm_Payment_Term_Day" => options[:sevenatm_payment_term_day], - # "Remit_Method_Amazongift" => options[:remit_method_amazongift], - # "Remit_Method_Aupay" => options[:remit_method_aupay], "Mail_Template_Free1" => options[:mail_template_free_1], "Mail_Template_Free2" => options[:mail_template_free_2], "Mail_Template_Free3" => options[:mail_template_free_3],