Shopify SDK for Unity
Public Member Functions | List of all members
Shopify.Unity.ScriptDiscountApplication Class Reference

Script discount applications capture the intentions of a discount that was created by a Shopify Script. More...

Inheritance diagram for Shopify.Unity.ScriptDiscountApplication:
Shopify.Unity.SDK.AbstractResponse Shopify.Unity.DiscountApplication

Public Member Functions

 ScriptDiscountApplication (Dictionary< string, object > dataJSON)
 Accepts deserialized json data. Will further parse passed in data. More...
 
DiscountApplicationAllocationMethod allocationMethod ()
 The method by which the discount's value is allocated to its entitled items. More...
 
string description ()
 The description of the application as defined by the Script. More...
 
DiscountApplicationTargetSelection targetSelection ()
 Which lines of targetType that the discount is allocated over. More...
 
DiscountApplicationTargetType targetType ()
 The type of line that the discount is applicable towards. More...
 
string title ()
 The title of the application as defined by the Script. More...
 
PricingValue value ()
 The value of the discount application. More...
 
object Clone ()
 

Additional Inherited Members

- Protected Member Functions inherited from Shopify.Unity.SDK.AbstractResponse
Get< T > (string field, string alias=null)
 
- Protected Attributes inherited from Shopify.Unity.SDK.AbstractResponse
Dictionary< string, object > Data
 
- Properties inherited from Shopify.Unity.SDK.AbstractResponse
Dictionary< string, object > DataJSON [get, protected set]
 

Detailed Description

Script discount applications capture the intentions of a discount that was created by a Shopify Script.

Constructor & Destructor Documentation

◆ ScriptDiscountApplication()

Shopify.Unity.ScriptDiscountApplication.ScriptDiscountApplication ( Dictionary< string, object >  dataJSON)
inline

Accepts deserialized json data. Will further parse passed in data.

Parameters
dataJSONDeserialized JSON data for ScriptDiscountApplication

Member Function Documentation

◆ allocationMethod()

DiscountApplicationAllocationMethod Shopify.Unity.ScriptDiscountApplication.allocationMethod ( )
inline

The method by which the discount's value is allocated to its entitled items.

Implements Shopify.Unity.DiscountApplication.

◆ description()

string Shopify.Unity.ScriptDiscountApplication.description ( )
inline

The description of the application as defined by the Script.

Deprecated:
Use title instead

◆ targetSelection()

DiscountApplicationTargetSelection Shopify.Unity.ScriptDiscountApplication.targetSelection ( )
inline

Which lines of targetType that the discount is allocated over.

Implements Shopify.Unity.DiscountApplication.

◆ targetType()

DiscountApplicationTargetType Shopify.Unity.ScriptDiscountApplication.targetType ( )
inline

The type of line that the discount is applicable towards.

Implements Shopify.Unity.DiscountApplication.

◆ title()

string Shopify.Unity.ScriptDiscountApplication.title ( )
inline

The title of the application as defined by the Script.

◆ value()

PricingValue Shopify.Unity.ScriptDiscountApplication.value ( )
inline

The value of the discount application.

Implements Shopify.Unity.DiscountApplication.


The documentation for this class was generated from the following file: