fetchByPartnerIdentifier

fun fetchByPartnerIdentifier(partnerIdentifier: String, options: SiteOptions?, callback: (Site?, SdkError?) -> Unit)

Fetch site by partner identifier.

Provide partnerIdentifier parameter to return the site with the same partner identifier. If the site is found, it will be returned in the callback; otherwise, an error will be returned in the callback.

If this method is being used to find a site for creating an order, use Flybuy.orders.createUsingSitePartnerIdentifier(...) instead. That will find the site and create the order if the site is found.

Example:

FlyBuyCore.getInstance(appAuthId).sites.fetchByPartnerIdentifier("123") { site, sdkError ->
if (null != sdkError) {
// Handle error
} else {
// Handle success
}
}

fun fetchByPartnerIdentifier(partnerIdentifier: String, operationalStatus: String = "live", callback: (Site?, SdkError?) -> Unit)

Deprecated

Use fetchByPartnerIdentifier(partnerIdentifier, options, callback) instead.

Replace with

import com.radiusnetworks.flybuy.sdk.manager.builder.SiteOptions
FlyBuyCore.getInstance().sites.fetchByPartnerIdentifier(partnerIdentifier, SiteOptions.Builder().setOperationalStatus(operationalStatus).build(),callback)