Sha256: 53721d1b5678a45d1ab8b47714dd47670919afbbe0c9f8f2a6fd104b27b7f150
Contents?: true
Size: 1.17 KB
Versions: 1
Compression:
Stored size: 1.17 KB
Contents
# VoucherifySdk::ValidationsRedeemableApplicableResult ## Class instance methods ### `openapi_one_of` Returns the list of classes defined in oneOf. #### Example ```ruby require 'VoucherifySdk' VoucherifySdk::ValidationsRedeemableApplicableResult.openapi_one_of # => # [ # :'RedeemableResultGiftCard', # :'RedeemableResultLoyaltyCard', # :'RedeemableResultPromotionStack', # :'RedeemableResultPromotionTier', # :'RedeemableResultVoucherCode' # ] ``` ### build Find the appropriate object from the `openapi_one_of` list and casts the data into it. #### Example ```ruby require 'VoucherifySdk' VoucherifySdk::ValidationsRedeemableApplicableResult.build(data) # => #<RedeemableResultGiftCard:0x00007fdd4aab02a0> VoucherifySdk::ValidationsRedeemableApplicableResult.build(data_that_doesnt_match) # => nil ``` #### Parameters | Name | Type | Description | | ---- | ---- | ----------- | | **data** | **Mixed** | data to be matched against the list of oneOf items | #### Return type - `RedeemableResultGiftCard` - `RedeemableResultLoyaltyCard` - `RedeemableResultPromotionStack` - `RedeemableResultPromotionTier` - `RedeemableResultVoucherCode` - `nil` (if no type matches)
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
voucherify-5.0.0 | docs/ValidationsRedeemableApplicableResult.md |