-
Notifications
You must be signed in to change notification settings - Fork 387
Migration guide for v21
Kamil Pajdzik edited this page Jul 31, 2022
·
1 revision
Major version release for API version 2020-08-27. "
- Add
ApiKeyMissingException. - Add
validatefield toCustomerCreateParams. - Add
validatefield toCustomerUpdateParams. - Add
validatefield toPaymentSourceCollectionCreateParams. - Add
shippingCost,shippingDetails, andshippingOptionsproperties tocheckout.Sessionresource.
- Removed deprecated
AlipayAccountand related classes. - Removed deprecated
BitcoinReceiverand related classes. - Removed deprecated
BitcoinTransactionand related classes. - Removed deprecated
Recipientand related classes. - Removed deprecated
IssuerFraudRecordand related classes. - Removed deprecated
Orderand related classes. - Removed deprecated
ThreeDSecureand related classes. - Removed unused
QuoteFinalizeParams,QuoteCollectionListParamsclasses. - Removed unused
BillingDetailsclass. - Removed
CashBalance.retrieveCashBalancemethod. PreferCashBalance.retrieve. - Removed
Rule.getDeletedmethod. The property was never populated and always had the default value offalse. - Removed
LineItem.getDeletedmethod. The property was never populated and always had the default value offalse. - Removed public constructors from
TestHelperinner classes and made them static.- Removed
Refund.TestHelpersconstructor. - Removed
Reader.TestHelpersconstructor. - Removed
InboundTransfer.TestHelpersconstructor. - Removed
OutboundPayment.TestHelpersconstructor. - Removed
OutboundTransfer.TestHelpersconstructor.
- Removed
- Removed instance
Account.refresh,Account.disconnectmethods. - Removed deprecated
TREASURY__RECEIVED_CREDIT__REVERSED,TREASURY__RECEIVED_DEBIT__CREATED,ORDER__UPDATED,ORDER_RETURN__CREATED,ORDER__PAYMENT_SUCCEEDED,TRANSFER__FAILED,TRANSFER__PAIDwebhook events. - Removed deprecated
LoginLink.redirectUrlproperty. - Removed deprecated
Charge.orderproperty. - Removed deprecated
Card.recipientproperty. - Removed
defaultCurrencyproperty fromCustomerresource. Please useCurrencyproperty instead. - Removed
shippingandshippingOptionsproperties fromcheckout.Sessionresource. Please useshippingCost,shippingDetails, andshippingOptionsproperties instead. - Removed
InitiatingPaymentMethodDetailsclass
- Default API version changed to "2022-07-28".
- Changed
CashBalance.retrievemethod from an instance to a static. - Renamed
PaymentIntent.FinancialAddressesclass toFinancialAddress. - Check that apiKey is set (either globally or via request options) in
StripeCollection.autoPagingIterableandStripeSearchResult.autoPagingIterable, and throw an exception if it is not. - Changed type of
businessTypefield inAccountCreateParamsfromObjecttoBusinessType