Did I find the right examples for you? yes no

All Samples(0)  |  Call(0)  |  Derive(0)  |  Import(0)
str(object='') -> string

Return a nice string representation of the object.
If the argument is a string, the return value is the same object.

src/w/a/walletobjects-quickstart-python-HEAD/main.py   walletobjects-quickstart-python(Download)
  if jwt_type == 'loyalty':
    loyalty_obj = loyalty.generate_loyalty_object(
        config.ISSUER_ID, config.LOYALTY_CLASS_ID, config.LOYALTY_OBJECT_ID + obj_id)
    wob_payload_object.addWalletObjects(loyalty_obj, 'LoyaltyObject')
 
  elif jwt_type == 'offer':
    offer_obj = offer.generate_offer_object(
        config.ISSUER_ID, config.OFFER_CLASS_ID, config.OFFER_OBJECT_ID + obj_id)
  elif jwt_type == 'giftcard':
    giftcard_obj = giftcard.generate_giftcard_object(
        config.ISSUER_ID, config.GIFTCARD_CLASS_ID, config.GIFTCARD_OBJECT_ID + obj_id)
    wob_payload_object.addWalletObjects(giftcard_obj, 'GiftCardObject')
 
    object_id = config.LOYALTY_CLASS_ID
    api_object = loyalty.generate_loyalty_class(
      config.ISSUER_ID, object_id)
    collection = service.loyaltyclass()
  elif insert_type == 'offer':
    object_id = config.OFFER_CLASS_ID
    api_object = offer.generate_offer_class(
      config.ISSUER_ID, object_id)