code: func CheckBillingOrderStatus(sess *session.Session, receipt *datatypes.Container_Product_Order_Receipt, statuses []string) (bool, *datatypes.Billing_Order_Item, error) {
  	service := services.GetBillingOrderItemService(sess)
  
  	item, err := service.
  		Id(*receipt.PlacedOrder.Items[0].Id).
  		Mask("mask[id,billingItem[id,provisionTransaction[id,transactionStatus[name]]]]").
  		GetObject()
  
  	if err != nil {
  		return false, nil, err
  	}
  
  	currentStatus, ok := sl.GrabOk(item, "BillingItem.ProvisionTransaction.TransactionStatus.Name")
  
  	if ok {
  		for _, status := range statuses {
  			if currentStatus == status {
  				return true, &item, nil
  			}
  		}
  	}
  
  	return false, &item, nil
  }
docs: // CheckBillingOrderStatus returns true if the status of the billing order for
  // the provided product order receipt is in the list of provided statuses.
  // Returns false otherwise, along with the billing order item used to check the statuses,
  // and any error encountered.