Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

+ Changes to bat file to handle files with long names #29

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions generator/cybersource_ruby_sdk_gen.bat
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,32 @@ powershell -Command " rename-item -Path ..\docs\TmsV1InstrumentIdentifiersPost20

powershell -Command " rename-item -Path ..\spec\models\ptsv2payments_processing_information_authorization_options_initiator_merchant_initiated_transaction_spec.rb -newname ptsv2payments_merchant_initiated_transaction_spec.rb"

powershell -Command " rename-item -Path ..\docs\TmsV1InstrumentIdentifiersPaymentInstrumentsGet200ResponseEmbeddedBuyerInformationPersonalIdentification.md -newname TmsV1InstrumentIdentifiersGet200ResponseEmbeddedBuyerInformationPersonalIdentification.md"

powershell -Command " rename-item -Path ..\docs\TmsV1InstrumentIdentifiersPaymentInstrumentsGet200ResponseEmbeddedMerchantInformationMerchantDescriptor.md -newname TmsV1InstrumentIdentifiersGet200ResponseEmbeddedMerchantInformationMerchantDescriptor.md"

powershell -Command " rename-item -Path ..\docs\TmsV1InstrumentIdentifiersPaymentInstrumentsGet200ResponseEmbeddedProcessingInformationBankTransferOptions.md -newname TmsV1InstrumentIdentifiersGet200ResponseEmbeddedProcessingInformationBankTransferOptions.md"

powershell -Command " rename-item -Path ..\spec\models\tms_v1_instrument_identifiers_payment_instruments_get200_response__embedded_buyer_information_issued_by_spec.rb -newname tms_v1_instrument_identifiers_embedded_buyer_information.rb"

powershell -Command " rename-item -Path ..\spec\models\tms_v1_instrument_identifiers_payment_instruments_get200_response__embedded_buyer_information_personal_identification_spec.rb -newname tms_v1_instrument_identifiers_get200_response_embedded_buyer_information_personal_identification.rb"

powershell -Command " rename-item -Path ..\spec\models\tms_v1_instrument_identifiers_payment_instruments_get200_response__embedded_buyer_information_spec.rb -newname tms_v1_instrument_identifiers_get200_response_embedded_buyer_information.rb"

powershell -Command " rename-item -Path ..\spec\models\tms_v1_instrument_identifiers_payment_instruments_get200_response__embedded_instrument_identifier_spec.rb -newname tms_v1_instrument_identifiers_get200_response_embedded_instrument_identifier.rb"

powershell -Command " rename-item -Path ..\spec\models\tms_v1_instrument_identifiers_payment_instruments_get200_response__embedded_merchant_information_merchant_descriptor_spec.rb -newname tms_v1_instrument_identifiers_get200_response_merchant_descriptor.rb"

powershell -Command " rename-item -Path ..\spec\models\tms_v1_instrument_identifiers_payment_instruments_get200_response__embedded_merchant_information_spec.rb -newname tms_v1_instrument_identifiers_get200_response_embedded_merchant_information.rb"

powershell -Command " rename-item -Path ..\spec\models\tms_v1_instrument_identifiers_payment_instruments_get200_response__embedded_payment_instruments_spec.rb -newname tms_v1_instrument_identifiers_get200_response_embedded_payment_instruments_spec.rb"

powershell -Command " rename-item -Path ..\spec\models\tms_v1_instrument_identifiers_payment_instruments_get200_response__embedded_processing_information_bank_transfer_options_spec.rb -newname tms_v1_instrument_identifiers_embedded_processing_information_bank_transfer_options.rb"

powershell -Command " rename-item -Path ..\spec\models\tms_v1_instrument_identifiers_payment_instruments_get200_response__embedded_processing_information_spec.rb -newname tms_v1_instrument_identifiers_get200_response_embedded_processing_information.rb"

powershell -Command " rename-item -Path ..\spec\models\tms_v1_instrument_identifiers_post200_response_processing_information_authorization_options_initiator_spec.rb -newname tms_v1_instrument_identifiers_post200_response_authorization_options_initiator.rb"

powershell -Command " rename-item -Path ..\spec\models\tms_v1_instrument_identifiers_post200_response_processing_information_authorization_options_initiator_merchant_initiated_transaction_spec.rb -newname tmsv1instrumentidentifiers_merchant_initiated_transaction_spec.rb"

powershell -Command "(Get-Content ..\lib\cybersource_rest_client.rb) | ForEach-Object { $_ -replace 'cybersource_rest_client/models/ptsv2payments_processing_information_authorization_options_initiator_merchant_initiated_transaction', 'cybersource_rest_client/models/ptsv2payments_merchant_initiated_transaction' } | Set-Content ..\lib\cybersource_rest_client.rb"
Expand Down