Skip to content

Commit d7f29b8

Browse files
committed
Update to SDK v0.0.70
1 parent 798c10b commit d7f29b8

File tree

16 files changed

+62
-31
lines changed

16 files changed

+62
-31
lines changed

Samples/RecurringBillingSubscriptions/Subscriptions/create-subscription.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def run()
2727
subscription_information = CyberSource::Rbsv1subscriptionsSubscriptionInformation.new
2828
subscription_information.plan_id = "6868912495476705603955"
2929
subscription_information.name = "Subscription with PlanId"
30-
subscription_information.start_date = "2024-06-11"
30+
subscription_information.start_date = "2025-06-11"
3131
request_obj.subscription_information = subscription_information
3232

3333
payment_information = CyberSource::Rbsv1subscriptionsPaymentInformation.new

Samples/Reporting/ChargebackDetails/get-chargeback-details.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ class Get_chargeback_details
66
def run()
77
# QUERY PARAMETERS
88
organization_id = "testrest"
9-
start_time = "2021-08-01T00:00:00Z"
10-
end_time = "2021-09-01T23:59:59Z"
9+
start_time = "2024-08-01T00:00:00Z"
10+
end_time = "2024-09-01T23:59:59Z"
1111
opts = {}
1212

1313
opts[:"organization_id"] = organization_id

Samples/Reporting/ChargebackSummaries/get-chargeback-summaries.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ class Get_chargeback_summaries
66
def run()
77
# QUERY PARAMETERS
88
organization_id = "testrest"
9-
start_time = "2021-08-01T00:00:00Z"
10-
end_time = "2021-09-01T23:59:59Z"
9+
start_time = "2024-08-01T00:00:00Z"
10+
end_time = "2024-09-01T23:59:59Z"
1111
opts = {}
1212

1313
opts[:"organization_id"] = organization_id

Samples/Reporting/ConversionDetails/get-conversion-detail-transactions.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
public
55
class Get_conversion_detail_transactions
66
def run()
7-
start_time = "2020-10-21T00:00:00Z"
8-
end_time = "2020-10-21T23:00:00Z"
7+
start_time = "2024-10-21T00:00:00Z"
8+
end_time = "2024-10-21T23:00:00Z"
99

1010
opts = {}
1111
opts[:"organization_id"] = "testrest"

Samples/Reporting/InterchangeClearingLevelDetails/interchange-clearing-level-data-for-account-or-merchant.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ class Interchange_clearing_level_data_for_account_or_merchant
66
def run()
77
# QUERY PARAMETERS
88
organization_id = "testrest"
9-
start_time = "2021-08-01T00:00:00Z"
10-
end_time = "2021-09-01T23:59:59Z"
9+
start_time = "2024-08-01T00:00:00Z"
10+
end_time = "2024-09-01T23:59:59Z"
1111
opts = {}
1212

1313
opts[:"organization_id"] = organization_id

Samples/Reporting/NetFundings/get-netfunding-information-for-account-or-merchant.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
public
55
class Get_netfunding_information_for_account_or_merchant
66
def run()
7-
start_time = "2021-01-01T00:00:00Z"
8-
end_time = "2021-02-01T23:59:59Z"
7+
start_time = "2024-01-01T00:00:00Z"
8+
end_time = "2024-02-01T23:59:59Z"
99

1010
opts = {}
1111
opts[:"organization_id"] = "testrest"

Samples/Reporting/NotificationOfChanges/get-notification-of-changes.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
public
55
class Get_notification_of_changes
66
def run()
7-
start_time = "2021-10-01T12:00:00Z"
8-
end_time = "2021-10-10T12:00:00Z"
7+
start_time = "2024-10-01T12:00:00Z"
8+
end_time = "2024-10-10T12:00:00Z"
99

1010
opts = {}
1111

Samples/Reporting/PaymentBatchSummaries/get-payment-batch-summary-data.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
public
55
class Get_payment_batch_summary_data
66
def run()
7-
start_time = "2020-09-01T12:00:00Z"
8-
end_time = "2020-09-30T12:00:00Z"
7+
start_time = "2024-09-01T12:00:00Z"
8+
end_time = "2024-09-30T12:00:00Z"
99

1010
opts = {}
1111
opts[:"organization_id"] = "testrest"

Samples/Reporting/PurchaseAndRefundDetails/get-purchase-and-refund-details.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
public
55
class Get_purchase_and_refund_details
66
def run()
7-
start_time = "2021-10-01T12:00:00Z"
8-
end_time = "2021-10-30T12:00:00Z"
7+
start_time = "2024-10-01T12:00:00Z"
8+
end_time = "2024-10-30T12:00:00Z"
99

1010
opts = {}
1111
opts[:"organization_id"] = "testrest"

Samples/Reporting/Reports/create-adhoc-report.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ def run()
1515
request_obj.report_mime_type = "application/xml"
1616
request_obj.report_name = "testrest_v2"
1717
request_obj.timezone = "GMT"
18-
request_obj.report_start_time = "2021-03-01T17:30:00.000+05:30"
19-
request_obj.report_end_time = "2021-03-02T17:30:00.000+05:30"
18+
request_obj.report_start_time = "2024-03-01T17:30:00.000+05:30"
19+
request_obj.report_end_time = "2024-03-02T17:30:00.000+05:30"
2020
report_preferences = CyberSource::Reportingv3reportsReportPreferences.new
2121
report_preferences.signed_amounts = true
2222
report_preferences.field_name_convention = "SOAPI"

Samples/Reporting/Reports/retrieve-available-reports.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
public
55
class Retrieve_available_reports
66
def run()
7-
start_time = "2021-04-01T00:00:00Z"
8-
end_time = "2021-04-03T23:59:59Z"
7+
start_time = "2024-04-01T00:00:00Z"
8+
end_time = "2024-04-03T23:59:59Z"
99
time_query_type = "executedTime"
1010

1111
opts = {}

Samples/Reporting/RetrievalDetails/get-retrieval-details.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ class Get_retrieval_details
66
def run()
77
# QUERY PARAMETERS
88
organization_id = "testrest"
9-
start_time = "2021-08-01T00:00:00Z"
10-
end_time = "2021-09-01T23:59:59Z"
9+
start_time = "2024-08-01T00:00:00Z"
10+
end_time = "2024-09-01T23:59:59Z"
1111
opts = {}
1212

1313
opts[:"organization_id"] = organization_id

Samples/Reporting/RetrievalSummaries/get-retrieval-summaries.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ class Get_retrieval_summaries
66
def run()
77
# QUERY PARAMETERS
88
organization_id = "testrest"
9-
start_time = "2021-08-01T00:00:00Z"
10-
end_time = "2021-09-01T23:59:59Z"
9+
start_time = "2024-08-01T00:00:00Z"
10+
end_time = "2024-09-01T23:59:59Z"
1111
opts = {}
1212

1313
opts[:"organization_id"] = organization_id

Samples/SecureFileShare/get-list-of-files.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
public
55
class Get_list_of_files
66
def run()
7-
start_date = "2020-07-20"
8-
end_date = "2020-07-30"
7+
start_date = "2024-07-20"
8+
end_date = "2024-07-30"
99

1010
opts = {}
1111
opts[:"organization_id"] = "testrest"

Samples/networkTokenization/network-tokenization.rb

+7-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,13 @@ def run()
1616
encoded_payment_credentials_response = Payment_credentials_from_network_token.new.run
1717

1818
#Step-II
19-
decoded_response = CyberSource::JWEUtility.decryptJWEResponse(encoded_payment_credentials_response, merchant_configuration)
19+
20+
# The following method CyberSource::JWEUtility.decryptJWEResponse(String, MerchantConfig) has been deprecated.
21+
# decoded_response = CyberSource::JWEUtility.decryptJWEResponse(encoded_payment_credentials_response, merchant_configuration)
22+
23+
# Using the new method CyberSource::JWEUtility.decryptJWUsingPrivateKey(PrivateKey, String) instead
24+
private_key = JOSE::JWK.from_pem_file merchant_configuration.pemFileDirectory
25+
decoded_response = CyberSource::JWEUtility.decryptJWUsingPrivateKey(private_key, encoded_payment_credentials_response)
2026

2127
puts 'Decoded Response'
2228
puts decoded_response

resource/NetworkTokenCert.pem

+28-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,28 @@
1-
-----BEGIN RSA PRIVATE KEY-----
2-
MIIEpAIBAAKCAQEA2tNGgpyJKgviPHjuNmcF+5tPjFsxBKebsto9swyebVcJVYu5Mp4Yz8VnhPbEdkyzckTtAulXQYA82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