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

Mark PaymentFlowExtras as deprecated #1884

Merged
merged 1 commit into from
Nov 26, 2019
Merged
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
Original file line number Diff line number Diff line change
@@ -1,11 +1,51 @@
package com.stripe.android.view

import com.stripe.android.PaymentSessionConfig

/**
* See [PaymentSessionConfig.Builder.setShippingInformationValidator] and
* [PaymentSessionConfig.Builder.setShippingMethodsFactory]
*/
object PaymentFlowExtras {
/**
* Implement [PaymentSessionConfig.ShippingMethodsFactory.create]
*/
@Deprecated("See PaymentSessionConfig.ShippingMethodsFactory")
const val EXTRA_DEFAULT_SHIPPING_METHOD: String = "default_shipping_method"

/**
* Implement [PaymentSessionConfig.ShippingInformationValidator.isValid]
*/
@Deprecated("See PaymentSessionConfig.ShippingInformationValidator")
const val EXTRA_IS_SHIPPING_INFO_VALID: String = "shipping_is_shipping_info_valid"

/**
* Implement [PaymentSessionConfig.ShippingInformationValidator]
*/
@Deprecated("See PaymentSessionConfig.ShippingInformationValidator")
const val EXTRA_SHIPPING_INFO_DATA: String = "shipping_info_data"

/**
* Implement [PaymentSessionConfig.ShippingInformationValidator.getErrorMessage]
*/
@Deprecated("See PaymentSessionConfig.ShippingInformationValidator")
const val EXTRA_SHIPPING_INFO_ERROR: String = "shipping_info_error"

/**
* Implement [PaymentSessionConfig.ShippingInformationValidator]
*/
@Deprecated("See PaymentSessionConfig.ShippingInformationValidator")
const val EVENT_SHIPPING_INFO_PROCESSED: String = "shipping_info_processed"

/**
* Implement [PaymentSessionConfig.ShippingInformationValidator]
*/
@Deprecated("See PaymentSessionConfig.ShippingInformationValidator")
const val EVENT_SHIPPING_INFO_SUBMITTED: String = "shipping_info_submitted"

/**
* Implement [PaymentSessionConfig.ShippingMethodsFactory.create]
*/
@Deprecated("See PaymentSessionConfig.ShippingMethodsFactory")
const val EXTRA_VALID_SHIPPING_METHODS: String = "valid_shipping_methods"
}