---
schema_version: "1"
id: d8be8bbc49910c42a410a5a950bc51546ede9a1cbf2c491e2eadb470feba50b2
title: "Apex: New and Changed Items"
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/release-notes/260-0-0/rn_apex_nc.md
canonical_url: https://help.salesforce.com/s/articleView?id=release-notes.rn_apex_nc.htm&release=260&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: f1153ac64a3f5d94329d75c4c7df4f9a4832d85305291181ff80ede6ff00fd7c
description: These classes, enums, and interfaces are new or have changes.
products:
  - Cross Cloud Packages Solutions
release: "260"
---
# Apex: New and Changed Items

These classes, enums, and interfaces are new or have changes.

For more information on these enhancements, see the [Apex Developer Guide](https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/) and the [Apex Reference Guide](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/).

- **[ConnectApi Namespace](https://help.salesforce.com/s/articleView?id=release-notes.rn_apex_nc.htm&release=260&type=5)**  
    The ConnectApi namespace (Connect in Apex) has new or changed classes, methods, or enums.
- **[CommercePayments Namespace](https://help.salesforce.com/s/articleView?id=release-notes.rn_apex_nc.htm&release=260&type=5)**  
    The CommercePayments namespace has these new or changed classes, methods, interfaces, enums, or exceptions.
- **[Database Namespace](https://help.salesforce.com/s/articleView?id=release-notes.rn_apex_nc.htm&release=260&type=5)**  
    The Database namespace has these new or changed classes, methods, interfaces, enums, or exceptions.
- **[Invocable Namespace](https://help.salesforce.com/s/articleView?id=release-notes.rn_apex_nc.htm&release=260&type=5)**  
    The Invocable namespace has these new or changed classes, methods, interfaces, enums, or exceptions.
- **[IssueCreditMemo Namespace](https://help.salesforce.com/s/articleView?id=release-notes.rn_apex_nc.htm&release=260&type=5)**  
    The IssueCreditMemo namespace provides classes to create and apply credit memos against invoices or invoice lines based on dispute adjustments.
- **[Salesforce Maps Namespace](https://help.salesforce.com/s/articleView?id=release-notes.rn_apex_nc.htm&release=260&type=5)**  
    The Salesforce Maps namespace has these new or changed classes, methods, interfaces, enums, or exceptions.
- **[renew\_assets\_summary Namespace](https://help.salesforce.com/s/articleView?id=release-notes.rn_apex_nc.htm&release=260&type=5)**  
    The renew\_assets\_summary namespace provides classes that get details about renewable assets to create renewal opportunities.
- **[RulesAppln Namespace](https://help.salesforce.com/s/articleView?id=release-notes.rn_apex_nc.htm&release=260&type=5)**  
    The RulesAppln namespace contains output classes that store details about a rules-based application of payments and credits. The rules are applied by using the applyPaymentsAndCreditsByRules invocable action.
- **[runtime\_industries\_insurance Namespace](https://help.salesforce.com/s/articleView?id=release-notes.rn_apex_nc.htm&release=260&type=5)**  
    The runtime\_industries\_insurance namespace contains classes to control different options that you can use to manage insurance operations, such as create and update insurance quotes, generate insurance clauses, and run insurance rating.
- **[System Namespace](https://help.salesforce.com/s/articleView?id=release-notes.rn_apex_nc.htm&release=260&type=5)**  
    The System namespace has these new or changed classes, methods, interfaces, enums, or exceptions.

## ConnectApi Namespace

The ConnectApi namespace (Connect in Apex) has new or changed classes, methods, or enums.

Many Connect REST API resource actions are exposed as static methods on Apex classes in the `ConnectApi` namespace. These methods use other `ConnectApi` classes to input and return information. The `ConnectApi` namespace is referred to as _Connect in Apex._

For the new and changed ConnectApi classes, methods, and enums, see [ConnectApi (Connect in Apex): New and Changed Classes and Enums](https://help.salesforce.com/s/articleView?id=release-notes.rn_connect_in_apex.htm&release=260&type=5 "Create custom experiences in Salesforce using Connect in Apex.").

## CommercePayments Namespace

The CommercePayments namespace has these new or changed classes, methods, interfaces, enums, or exceptions.

### Changed Enums

Specify the payment failure category used to determine retry eligibility

Use the new `RetryCategory` enum.

Determines whether the payment operation can be retried based on the retry category

Use the new `RetryDecision` enum.

Specify the payment method type ID

Use the new `PaymentMethodIdType` enum.

## Database Namespace

The Database namespace has these new or changed classes, methods, interfaces, enums, or exceptions.

### New Classes

Paginate large SOQL query result sets

Use the `fetchPage()`, `fetchDeleted()`, and `getNumRecords()` methods in the `PaginationCursor` class. Use the `getNextIndex()`, `getNumDeletedRecords()`, `getRecords()`, and `isDone()` methods in the `CursorFetchResult` class.

## Invocable Namespace

The Invocable namespace has these new or changed classes, methods, interfaces, enums, or exceptions.

### New or Changed Methods in Existing Classes

Return the specific version of a packaged custom action

Use the `createCustomAction(type, namespace, name, version)` method.

Return the specific version of a standard action

Use the `createStandardAction(type, version)` method.

## IssueCreditMemo Namespace

The IssueCreditMemo namespace provides classes to create and apply credit memos against invoices or invoice lines based on dispute adjustments.

### New Classes

Creates a credit request for the specified invoice and amount along with dispute, category, and line-level credit details

Use the new `CreditRequestInputRepresentations` class constructors and properties.

Create a credit line request for the specified invoice line and amount

Use the new `CreditLineRequestInputRepresentations` class constructors and properties.

Get the result of a credit memo operation with additional details

Use the new `CreditResponseOutputRepresentations` class constructors and properties.

## Salesforce Maps Namespace

The Salesforce Maps namespace has these new or changed classes, methods, interfaces, enums, or exceptions.

### New or Changed Methods in Existing Classes

VERSIONED BEHAVIOR CHANGE: The GetDistanceMatrix() method now returns four traffic window indexes instead of eight.

To optimize routing data, the number of returned traffic window indexes has been reduced from eight to four. This change reduces unnecessary data overhead while maintaining routing performance. Use the `traffic_windows` property to access the updated index set, which now includes the consolidated start and end times for each window.

## renew\_assets\_summary Namespace

The renew\_assets\_summary namespace provides classes that get details about renewable assets to create renewal opportunities.

### New Classes

Create renewal opportunities by specifying asset details and renewal pricing information

Use the new `RenewalOpptyDetail` class constructors and properties.

Specify net unit price and quantity details for an asset to set as the sales price for renewal opportunities

Use the new `RenewalPriceDetail` class constructors and properties.

## RulesAppln Namespace

The RulesAppln namespace contains output classes that store details about a rules-based application of payments and credits. The rules are applied by using the applyPaymentsAndCreditsByRules invocable action.

### New Classes

Get details of the rule application

Use the new `RulesApplicationResponse` class constructors and properties.

Get output of the applyPaymentsAndCreditsByRules invocable action

Use the new `RulesApplicationSummaryResponse` class constructors and properties.

Get error code and error message details

Use the new `RulesApplicationErrorResponse` class constructors and properties.

#### See Also

- [_Revenue Cloud Developer Guide_: RulesAppln Namespace](https://developer.salesforce.com/docs/atlas.en-us.revenue_lifecycle_management_dev_guide.meta/revenue_lifecycle_management_dev_guide/apex_namespace_rulesappln.htm)

## runtime\_industries\_insurance Namespace

The runtime\_industries\_insurance namespace contains classes to control different options that you can use to manage insurance operations, such as create and update insurance quotes, generate insurance clauses, and run insurance rating.

### New Classes

Configure options for the add-eligible-clauses operation on an insurance product

Use the new `AddEligibleInsuranceClausesOptions` class constructors and properties.

Configure options for the create-insurance-quote operation

Use the new `CreateInsuranceQuoteOptions` class constructors and properties.

Configure options for creating insurance rating

Use the new `CreateInsuranceRatingOptions` class constructors and properties.

Configure options for generating insurance clauses

Use the new `GenerateInsuranceClausesOptions` class constructors and properties.

Configure options for updating an existing insurance quote

Use the new `UpdateInsuranceQuoteOptions` class constructors and properties.

#### See Also

- [_Insurance Developer Guide_: runtime\_industries\_insurance Namespace](https://developer.salesforce.com/docs/atlas.en-us.insurance_developer_guide.meta/insurance_developer_guide/apex_namespace_runtime_industries_insurance.htm)

## System Namespace

The System namespace has these new or changed classes, methods, interfaces, enums, or exceptions.

### New or Changed Methods in Existing Classes

Create an Apex pagination cursor to paginate large SOQL query result sets

Use the `Database.getPaginationCursor()` and `Database.getPaginationCursorWithBinds()` methods.

Get the number of Apex cursors that are created and their upper bounds

Use the `Limits.getApexCursors()` and `Limits.getLimitApexCursors()` methods.

Get the number of Apex pagination cursors that are created and their upper bounds

Use the `Limits.getApexPaginationCursors()` and `Limits.getLimitApexPaginationCursors()` methods.

Get the number of rows returned by an Apex pagination cursor and their upper bounds

Use the `Limits.getApexPaginationCursorRows()` and `Limits.getLimitApexPaginationCursorRows()` methods.

Specify the number of oldest, completed async jobs in your org to purge

Use the new method overload for `System.purgeOldAsyncJobs()`.

Use improved PDF rendering

The `Blob.toPdf()` method now uses the same PDF rendering service used by Visualforce.

#### See Also

- [Use Apex Cursors for Expanded SOQL Query Result Support (Generally Available)](https://help.salesforce.com/s/articleView?id=release-notes.rn_apex_cursors.htm&release=260&type=5 "Use Apex cursors and pagination cursors to work with large SOQL query result sets in manageable parts. This feature, now generally available, includes enhancements since the beta release. Standard cursors, when combined with queueable Apex, address the limitations of batch Apex. Pagination cursors are designed for UI elements, such as multipage record lists. Both Apex cursor types can traverse forwards and backwards through result sets and can handle high-volume, high-resource processing.")
- [Specify the Number of Async Jobs to Delete](https://help.salesforce.com/s/articleView?id=release-notes.rn_apex_purgeOldAsyncJobs_overload.htm&release=260&type=5 "Use the new method overload for purgeOldAsyncJobs() to specify the number of oldest, completed async jobs in your org to purge. Providing an upper bound for the number of records to delete enables incremental progress when large volumes of records are to be deleted.")