Skip to content

Commit a55f9fa

Browse files
committed
token keyword removed from path param in TMS apis
1 parent 73118ff commit a55f9fa

6 files changed

Lines changed: 30 additions & 30 deletions

CyberSource/apis/customer_api.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ def delete_customer_with_http_info(self, customer_id, **kwargs):
164164
# Authentication setting
165165
auth_settings = []
166166

167-
return self.api_client.call_api(f'/tms/v2/customers/{customerId}', 'DELETE',
167+
return self.api_client.call_api(f'/tms/v2/customers/{customer_id}', 'DELETE',
168168
path_params,
169169
query_params,
170170
header_params,
@@ -298,7 +298,7 @@ def get_customer_with_http_info(self, customer_id, **kwargs):
298298
# Authentication setting
299299
auth_settings = []
300300

301-
return self.api_client.call_api(f'/tms/v2/customers/{customerId}', 'GET',
301+
return self.api_client.call_api(f'/tms/v2/customers/{customer_id}', 'GET',
302302
path_params,
303303
query_params,
304304
header_params,
@@ -451,7 +451,7 @@ def patch_customer_with_http_info(self, customer_id, patch_customer_request, **k
451451
# Authentication setting
452452
auth_settings = []
453453

454-
return self.api_client.call_api(f'/tms/v2/customers/{customerId}', 'PATCH',
454+
return self.api_client.call_api(f'/tms/v2/customers/{customer_id}', 'PATCH',
455455
path_params,
456456
query_params,
457457
header_params,

CyberSource/apis/customer_payment_instrument_api.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ def delete_customer_payment_instrument_with_http_info(self, customer_id, payment
181181
# Authentication setting
182182
auth_settings = []
183183

184-
return self.api_client.call_api(f'/tms/v2/customers/{customerId}/payment-instruments/{paymentInstrumentId}', 'DELETE',
184+
return self.api_client.call_api(f'/tms/v2/customers/{customer_id}/payment-instruments/{payment_instrument_id}', 'DELETE',
185185
path_params,
186186
query_params,
187187
header_params,
@@ -332,7 +332,7 @@ def get_customer_payment_instrument_with_http_info(self, customer_id, payment_in
332332
# Authentication setting
333333
auth_settings = []
334334

335-
return self.api_client.call_api(f'/tms/v2/customers/{customerId}/payment-instruments/{paymentInstrumentId}', 'GET',
335+
return self.api_client.call_api(f'/tms/v2/customers/{customer_id}/payment-instruments/{payment_instrument_id}', 'GET',
336336
path_params,
337337
query_params,
338338
header_params,
@@ -486,7 +486,7 @@ def get_customer_payment_instruments_list_with_http_info(self, customer_id, **kw
486486
# Authentication setting
487487
auth_settings = []
488488

489-
return self.api_client.call_api(f'/tms/v2/customers/{customerId}/payment-instruments', 'GET',
489+
return self.api_client.call_api(f'/tms/v2/customers/{customer_id}/payment-instruments', 'GET',
490490
path_params,
491491
query_params,
492492
header_params,
@@ -656,7 +656,7 @@ def patch_customers_payment_instrument_with_http_info(self, customer_id, payment
656656
# Authentication setting
657657
auth_settings = []
658658

659-
return self.api_client.call_api(f'/tms/v2/customers/{customerId}/payment-instruments/{paymentInstrumentId}', 'PATCH',
659+
return self.api_client.call_api(f'/tms/v2/customers/{customer_id}/payment-instruments/{payment_instrument_id}', 'PATCH',
660660
path_params,
661661
query_params,
662662
header_params,
@@ -797,7 +797,7 @@ def post_customer_payment_instrument_with_http_info(self, customer_id, post_cust
797797
# Authentication setting
798798
auth_settings = []
799799

800-
return self.api_client.call_api(f'/tms/v2/customers/{customerId}/payment-instruments', 'POST',
800+
return self.api_client.call_api(f'/tms/v2/customers/{customer_id}/payment-instruments', 'POST',
801801
path_params,
802802
query_params,
803803
header_params,

CyberSource/apis/customer_shipping_address_api.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ def delete_customer_shipping_address_with_http_info(self, customer_id, shipping_
181181
# Authentication setting
182182
auth_settings = []
183183

184-
return self.api_client.call_api(f'/tms/v2/customers/{customerId}/shipping-addresses/{shippingAddressId}', 'DELETE',
184+
return self.api_client.call_api(f'/tms/v2/customers/{customer_id}/shipping-addresses/{shipping_address_id}', 'DELETE',
185185
path_params,
186186
query_params,
187187
header_params,
@@ -332,7 +332,7 @@ def get_customer_shipping_address_with_http_info(self, customer_id, shipping_add
332332
# Authentication setting
333333
auth_settings = []
334334

335-
return self.api_client.call_api(f'/tms/v2/customers/{customerId}/shipping-addresses/{shippingAddressId}', 'GET',
335+
return self.api_client.call_api(f'/tms/v2/customers/{customer_id}/shipping-addresses/{shipping_address_id}', 'GET',
336336
path_params,
337337
query_params,
338338
header_params,
@@ -486,7 +486,7 @@ def get_customer_shipping_addresses_list_with_http_info(self, customer_id, **kwa
486486
# Authentication setting
487487
auth_settings = []
488488

489-
return self.api_client.call_api(f'/tms/v2/customers/{customerId}/shipping-addresses', 'GET',
489+
return self.api_client.call_api(f'/tms/v2/customers/{customer_id}/shipping-addresses', 'GET',
490490
path_params,
491491
query_params,
492492
header_params,
@@ -656,7 +656,7 @@ def patch_customers_shipping_address_with_http_info(self, customer_id, shipping_
656656
# Authentication setting
657657
auth_settings = []
658658

659-
return self.api_client.call_api(f'/tms/v2/customers/{customerId}/shipping-addresses/{shippingAddressId}', 'PATCH',
659+
return self.api_client.call_api(f'/tms/v2/customers/{customer_id}/shipping-addresses/{shipping_address_id}', 'PATCH',
660660
path_params,
661661
query_params,
662662
header_params,
@@ -797,7 +797,7 @@ def post_customer_shipping_address_with_http_info(self, customer_id, post_custom
797797
# Authentication setting
798798
auth_settings = []
799799

800-
return self.api_client.call_api(f'/tms/v2/customers/{customerId}/shipping-addresses', 'POST',
800+
return self.api_client.call_api(f'/tms/v2/customers/{customer_id}/shipping-addresses', 'POST',
801801
path_params,
802802
query_params,
803803
header_params,

CyberSource/apis/instrument_identifier_api.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ def delete_instrument_identifier_with_http_info(self, instrument_identifier_id,
164164
# Authentication setting
165165
auth_settings = []
166166

167-
return self.api_client.call_api(f'/tms/v1/instrumentidentifiers/{instrumentIdentifierId}', 'DELETE',
167+
return self.api_client.call_api(f'/tms/v1/instrumentidentifiers/{instrument_identifier_id}', 'DELETE',
168168
path_params,
169169
query_params,
170170
header_params,
@@ -298,7 +298,7 @@ def get_instrument_identifier_with_http_info(self, instrument_identifier_id, **k
298298
# Authentication setting
299299
auth_settings = []
300300

301-
return self.api_client.call_api(f'/tms/v1/instrumentidentifiers/{instrumentIdentifierId}', 'GET',
301+
return self.api_client.call_api(f'/tms/v1/instrumentidentifiers/{instrument_identifier_id}', 'GET',
302302
path_params,
303303
query_params,
304304
header_params,
@@ -452,7 +452,7 @@ def get_instrument_identifier_payment_instruments_list_with_http_info(self, inst
452452
# Authentication setting
453453
auth_settings = []
454454

455-
return self.api_client.call_api(f'/tms/v1/instrumentidentifiers/{instrumentIdentifierId}/paymentinstruments', 'GET',
455+
return self.api_client.call_api(f'/tms/v1/instrumentidentifiers/{instrument_identifier_id}/paymentinstruments', 'GET',
456456
path_params,
457457
query_params,
458458
header_params,
@@ -605,7 +605,7 @@ def patch_instrument_identifier_with_http_info(self, instrument_identifier_id, p
605605
# Authentication setting
606606
auth_settings = []
607607

608-
return self.api_client.call_api(f'/tms/v1/instrumentidentifiers/{instrumentIdentifierId}', 'PATCH',
608+
return self.api_client.call_api(f'/tms/v1/instrumentidentifiers/{instrument_identifier_id}', 'PATCH',
609609
path_params,
610610
query_params,
611611
header_params,
@@ -870,7 +870,7 @@ def post_instrument_identifier_enrollment_with_http_info(self, instrument_identi
870870
# Authentication setting
871871
auth_settings = []
872872

873-
return self.api_client.call_api(f'/tms/v1/instrumentidentifiers/{instrumentIdentifierId}/enrollment', 'POST',
873+
return self.api_client.call_api(f'/tms/v1/instrumentidentifiers/{instrument_identifier_id}/enrollment', 'POST',
874874
path_params,
875875
query_params,
876876
header_params,

CyberSource/apis/payment_instrument_api.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ def delete_payment_instrument_with_http_info(self, payment_instrument_id, **kwar
164164
# Authentication setting
165165
auth_settings = []
166166

167-
return self.api_client.call_api(f'/tms/v1/paymentinstruments/{paymentInstrumentId}', 'DELETE',
167+
return self.api_client.call_api(f'/tms/v1/paymentinstruments/{payment_instrument_id}', 'DELETE',
168168
path_params,
169169
query_params,
170170
header_params,
@@ -298,7 +298,7 @@ def get_payment_instrument_with_http_info(self, payment_instrument_id, **kwargs)
298298
# Authentication setting
299299
auth_settings = []
300300

301-
return self.api_client.call_api(f'/tms/v1/paymentinstruments/{paymentInstrumentId}', 'GET',
301+
return self.api_client.call_api(f'/tms/v1/paymentinstruments/{payment_instrument_id}', 'GET',
302302
path_params,
303303
query_params,
304304
header_params,
@@ -451,7 +451,7 @@ def patch_payment_instrument_with_http_info(self, payment_instrument_id, patch_p
451451
# Authentication setting
452452
auth_settings = []
453453

454-
return self.api_client.call_api(f'/tms/v1/paymentinstruments/{paymentInstrumentId}', 'PATCH',
454+
return self.api_client.call_api(f'/tms/v1/paymentinstruments/{payment_instrument_id}', 'PATCH',
455455
path_params,
456456
query_params,
457457
header_params,

generator/cybersource_python_sdk_gen.bat

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ powershell -Command "(Get-Content ..\CyberSource\models\__init__.py) | ForEach-O
2020

2121
powershell -Command "(Get-Content ..\CyberSource\apis\report_subscriptions_api.py) | ForEach-Object { $_ -replace '''/reporting/v3/report-subscriptions/{reportName}''', '''/reporting/v3/report-subscriptions/{report_name}'''} | Set-Content ..\CyberSource\apis\report_subscriptions_api.py"
2222

23-
powershell -Command "(Get-Content ..\CyberSource\apis\instrument_identifier_api.py) | ForEach-Object { $_ -replace '''/tms/v1/instrumentidentifiers/{instrumentIdentifierTokenId}''', '''/tms/v1/instrumentidentifiers/{instrument_identifier_token_id}'''} | Set-Content ..\CyberSource\apis\instrument_identifier_api.py"
23+
powershell -Command "(Get-Content ..\CyberSource\apis\instrument_identifier_api.py) | ForEach-Object { $_ -replace '''/tms/v1/instrumentidentifiers/{instrumentIdentifierId}''', '''/tms/v1/instrumentidentifiers/{instrument_identifier_id}'''} | Set-Content ..\CyberSource\apis\instrument_identifier_api.py"
2424

25-
powershell -Command "(Get-Content ..\CyberSource\apis\instrument_identifier_api.py) | ForEach-Object { $_ -replace '''/tms/v1/instrumentidentifiers/{instrumentIdentifierTokenId}/paymentinstruments''', '''/tms/v1/instrumentidentifiers/{instrument_identifier_token_id}/paymentinstruments'''} | Set-Content ..\CyberSource\apis\instrument_identifier_api.py"
25+
powershell -Command "(Get-Content ..\CyberSource\apis\instrument_identifier_api.py) | ForEach-Object { $_ -replace '''/tms/v1/instrumentidentifiers/{instrumentIdentifierId}/paymentinstruments''', '''/tms/v1/instrumentidentifiers/{instrument_identifier_id}/paymentinstruments'''} | Set-Content ..\CyberSource\apis\instrument_identifier_api.py"
2626

27-
powershell -Command "(Get-Content ..\CyberSource\apis\payment_instrument_api.py) | ForEach-Object { $_ -replace '''/tms/v1/paymentinstruments/{paymentInstrumentTokenId}''', '''/tms/v1/paymentinstruments/{payment_instrument_token_id}'''} | Set-Content ..\CyberSource\apis\payment_instrument_api.py"
27+
powershell -Command "(Get-Content ..\CyberSource\apis\payment_instrument_api.py) | ForEach-Object { $_ -replace '''/tms/v1/paymentinstruments/{paymentInstrumentId}''', '''/tms/v1/paymentinstruments/{payment_instrument_id}'''} | Set-Content ..\CyberSource\apis\payment_instrument_api.py"
2828

2929
powershell -Command "(Get-Content ..\CyberSource\apis\reports_api.py) | ForEach-Object { $_ -replace '''/reporting/v3/reports/{reportId}''', '''/reporting/v3/reports/{report_id}'''} | Set-Content ..\CyberSource\apis\reports_api.py"
3030

@@ -34,21 +34,21 @@ powershell -Command "(Get-Content ..\CyberSource\apis\secure_file_share_api.py)
3434

3535
powershell -Command "(Get-Content ..\CyberSource\apis\search_transactions_api.py) | ForEach-Object { $_ -replace '''/tss/v2/searches/{searchId}''', '''/tss/v2/searches/{search_id}'''} | Set-Content ..\CyberSource\apis\search_transactions_api.py"
3636

37-
powershell -Command "(Get-Content ..\CyberSource\apis\customer_api.py) | ForEach-Object { $_ -replace '''/tms/v2/customers/{customerTokenId}''', '''/tms/v2/customers/{customer_token_id}'''} | Set-Content ..\CyberSource\apis\customer_api.py"
37+
powershell -Command "(Get-Content ..\CyberSource\apis\customer_api.py) | ForEach-Object { $_ -replace '''/tms/v2/customers/{customerId}''', '''/tms/v2/customers/{customer_id}'''} | Set-Content ..\CyberSource\apis\customer_api.py"
3838

39-
powershell -Command "(Get-Content ..\CyberSource\apis\customer_shipping_address_api.py) | ForEach-Object { $_ -replace '''/tms/v2/customers/{customerTokenId}/shipping-addresses''', '''/tms/v2/customers/{customer_token_id}/shipping-addresses'''} | Set-Content ..\CyberSource\apis\customer_shipping_address_api.py"
39+
powershell -Command "(Get-Content ..\CyberSource\apis\customer_shipping_address_api.py) | ForEach-Object { $_ -replace '''/tms/v2/customers/{customerId}/shipping-addresses''', '''/tms/v2/customers/{customer_id}/shipping-addresses'''} | Set-Content ..\CyberSource\apis\customer_shipping_address_api.py"
4040

41-
powershell -Command "(Get-Content ..\CyberSource\apis\customer_shipping_address_api.py) | ForEach-Object { $_ -replace '''/tms/v2/customers/{customerTokenId}/shipping-addresses/{shippingAddressTokenId}''', '''/tms/v2/customers/{customer_token_id}/shipping-addresses/{shipping_address_token_id}'''} | Set-Content ..\CyberSource\apis\customer_shipping_address_api.py"
41+
powershell -Command "(Get-Content ..\CyberSource\apis\customer_shipping_address_api.py) | ForEach-Object { $_ -replace '''/tms/v2/customers/{customerId}/shipping-addresses/{shippingAddressId}''', '''/tms/v2/customers/{customer_id}/shipping-addresses/{shipping_address_id}'''} | Set-Content ..\CyberSource\apis\customer_shipping_address_api.py"
4242

43-
powershell -Command "(Get-Content ..\CyberSource\apis\customer_payment_instrument_api.py) | ForEach-Object { $_ -replace '''/tms/v2/customers/{customerTokenId}/payment-instruments''', '''/tms/v2/customers/{customer_token_id}/payment-instruments'''} | Set-Content ..\CyberSource\apis\customer_payment_instrument_api.py"
43+
powershell -Command "(Get-Content ..\CyberSource\apis\customer_payment_instrument_api.py) | ForEach-Object { $_ -replace '''/tms/v2/customers/{customerId}/payment-instruments''', '''/tms/v2/customers/{customer_id}/payment-instruments'''} | Set-Content ..\CyberSource\apis\customer_payment_instrument_api.py"
4444

45-
powershell -Command "(Get-Content ..\CyberSource\apis\customer_payment_instrument_api.py) | ForEach-Object { $_ -replace '''/tms/v2/customers/{customerTokenId}/payment-instruments/{paymentInstrumentTokenId}''', '''/tms/v2/customers/{customer_token_id}/payment-instruments/{payment_instrument_token_id}'''} | Set-Content ..\CyberSource\apis\customer_payment_instrument_api.py"
45+
powershell -Command "(Get-Content ..\CyberSource\apis\customer_payment_instrument_api.py) | ForEach-Object { $_ -replace '''/tms/v2/customers/{customerId}/payment-instruments/{paymentInstrumentId}''', '''/tms/v2/customers/{customer_id}/payment-instruments/{payment_instrument_id}'''} | Set-Content ..\CyberSource\apis\customer_payment_instrument_api.py"
4646

4747
powershell -Command "(Get-Content ..\CyberSource\apis\symmetric_key_management_api.py) | ForEach-Object { $_ -replace '''/kms/v2/keys-sym/{keyId}''', '''/kms/v2/keys-sym/{key_id}'''} | Set-Content ..\CyberSource\apis\symmetric_key_management_api.py"
4848

4949
powershell -Command "(Get-Content ..\CyberSource\apis\asymmetric_key_management_api.py) | ForEach-Object { $_ -replace '''/kms/v2/keys-asym/{keyId}''', '''/kms/v2/keys-asym/{key_id}'''} | Set-Content ..\CyberSource\apis\asymmetric_key_management_api.py"
5050

51-
powershell -Command "(Get-Content ..\CyberSource\apis\instrument_identifier_api.py) | ForEach-Object { $_ -replace '''/tms/v1/instrumentidentifiers/{instrumentIdentifierTokenId}/enrollment''', '''/tms/v1/instrumentidentifiers/{instrument_identifier_token_id}/enrollment'''} | Set-Content ..\CyberSource\apis\instrument_identifier_api.py"
51+
powershell -Command "(Get-Content ..\CyberSource\apis\instrument_identifier_api.py) | ForEach-Object { $_ -replace '''/tms/v1/instrumentidentifiers/{instrumentIdentifierId}/enrollment''', '''/tms/v1/instrumentidentifiers/{instrument_identifier_id}/enrollment'''} | Set-Content ..\CyberSource\apis\instrument_identifier_api.py"
5252

5353
powershell -Command "(Get-Content ..\CyberSource\apis\secure_file_share_api.py) | ForEach-Object { $_ -replace 'select_header_content_type\(\[''\*_\/_\*;charset=utf-8', 'select_header_content_type([''*/*;charset=utf-8'} | Set-Content ..\CyberSource\apis\secure_file_share_api.py"
5454

0 commit comments

Comments
 (0)