-
Notifications
You must be signed in to change notification settings - Fork 463
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Coupons] Add Order Item Association custom object and updateCoupon t…
…rigger (#888)
- Loading branch information
1 parent
c05c36e
commit 691672e
Showing
20 changed files
with
759 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
174 changes: 174 additions & 0 deletions
174
...Beta_Order_Item_Associatio__c/Stripe_Coupon_Beta_Order_Item_Associatio__c.object-meta.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,174 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<CustomObject xmlns="http://soap.sforce.com/2006/04/metadata"> | ||
<actionOverrides> | ||
<actionName>Accept</actionName> | ||
<type>Default</type> | ||
</actionOverrides> | ||
<actionOverrides> | ||
<actionName>Accept</actionName> | ||
<formFactor>Large</formFactor> | ||
<type>Default</type> | ||
</actionOverrides> | ||
<actionOverrides> | ||
<actionName>Accept</actionName> | ||
<formFactor>Small</formFactor> | ||
<type>Default</type> | ||
</actionOverrides> | ||
<actionOverrides> | ||
<actionName>CancelEdit</actionName> | ||
<type>Default</type> | ||
</actionOverrides> | ||
<actionOverrides> | ||
<actionName>CancelEdit</actionName> | ||
<formFactor>Large</formFactor> | ||
<type>Default</type> | ||
</actionOverrides> | ||
<actionOverrides> | ||
<actionName>CancelEdit</actionName> | ||
<formFactor>Small</formFactor> | ||
<type>Default</type> | ||
</actionOverrides> | ||
<actionOverrides> | ||
<actionName>Clone</actionName> | ||
<type>Default</type> | ||
</actionOverrides> | ||
<actionOverrides> | ||
<actionName>Clone</actionName> | ||
<formFactor>Large</formFactor> | ||
<type>Default</type> | ||
</actionOverrides> | ||
<actionOverrides> | ||
<actionName>Clone</actionName> | ||
<formFactor>Small</formFactor> | ||
<type>Default</type> | ||
</actionOverrides> | ||
<actionOverrides> | ||
<actionName>Delete</actionName> | ||
<type>Default</type> | ||
</actionOverrides> | ||
<actionOverrides> | ||
<actionName>Delete</actionName> | ||
<formFactor>Large</formFactor> | ||
<type>Default</type> | ||
</actionOverrides> | ||
<actionOverrides> | ||
<actionName>Delete</actionName> | ||
<formFactor>Small</formFactor> | ||
<type>Default</type> | ||
</actionOverrides> | ||
<actionOverrides> | ||
<actionName>Edit</actionName> | ||
<type>Default</type> | ||
</actionOverrides> | ||
<actionOverrides> | ||
<actionName>Edit</actionName> | ||
<formFactor>Large</formFactor> | ||
<type>Default</type> | ||
</actionOverrides> | ||
<actionOverrides> | ||
<actionName>Edit</actionName> | ||
<formFactor>Small</formFactor> | ||
<type>Default</type> | ||
</actionOverrides> | ||
<actionOverrides> | ||
<actionName>List</actionName> | ||
<type>Default</type> | ||
</actionOverrides> | ||
<actionOverrides> | ||
<actionName>List</actionName> | ||
<formFactor>Large</formFactor> | ||
<type>Default</type> | ||
</actionOverrides> | ||
<actionOverrides> | ||
<actionName>List</actionName> | ||
<formFactor>Small</formFactor> | ||
<type>Default</type> | ||
</actionOverrides> | ||
<actionOverrides> | ||
<actionName>New</actionName> | ||
<type>Default</type> | ||
</actionOverrides> | ||
<actionOverrides> | ||
<actionName>New</actionName> | ||
<formFactor>Large</formFactor> | ||
<type>Default</type> | ||
</actionOverrides> | ||
<actionOverrides> | ||
<actionName>New</actionName> | ||
<formFactor>Small</formFactor> | ||
<type>Default</type> | ||
</actionOverrides> | ||
<actionOverrides> | ||
<actionName>SaveEdit</actionName> | ||
<type>Default</type> | ||
</actionOverrides> | ||
<actionOverrides> | ||
<actionName>SaveEdit</actionName> | ||
<formFactor>Large</formFactor> | ||
<type>Default</type> | ||
</actionOverrides> | ||
<actionOverrides> | ||
<actionName>SaveEdit</actionName> | ||
<formFactor>Small</formFactor> | ||
<type>Default</type> | ||
</actionOverrides> | ||
<actionOverrides> | ||
<actionName>Tab</actionName> | ||
<type>Default</type> | ||
</actionOverrides> | ||
<actionOverrides> | ||
<actionName>Tab</actionName> | ||
<formFactor>Large</formFactor> | ||
<type>Default</type> | ||
</actionOverrides> | ||
<actionOverrides> | ||
<actionName>Tab</actionName> | ||
<formFactor>Small</formFactor> | ||
<type>Default</type> | ||
</actionOverrides> | ||
<actionOverrides> | ||
<actionName>View</actionName> | ||
<type>Default</type> | ||
</actionOverrides> | ||
<actionOverrides> | ||
<actionName>View</actionName> | ||
<formFactor>Large</formFactor> | ||
<type>Default</type> | ||
</actionOverrides> | ||
<actionOverrides> | ||
<actionName>View</actionName> | ||
<formFactor>Small</formFactor> | ||
<type>Default</type> | ||
</actionOverrides> | ||
<allowInChatterGroups>false</allowInChatterGroups> | ||
<compactLayoutAssignment>SYSTEM</compactLayoutAssignment> | ||
<deploymentStatus>Deployed</deploymentStatus> | ||
<description>Custom junction object linking a Stripe Coupon and an Order Line.</description> | ||
<enableActivities>false</enableActivities> | ||
<enableBulkApi>true</enableBulkApi> | ||
<enableFeeds>false</enableFeeds> | ||
<enableHistory>false</enableHistory> | ||
<enableLicensing>false</enableLicensing> | ||
<enableReports>false</enableReports> | ||
<enableSearch>false</enableSearch> | ||
<enableSharing>true</enableSharing> | ||
<enableStreamingApi>true</enableStreamingApi> | ||
<externalSharingModel>ControlledByParent</externalSharingModel> | ||
<label>Stripe Coupon Beta Order Item Associatio</label> | ||
<nameField> | ||
<displayFormat>{0000}</displayFormat> | ||
<label>Stripe Coupon Beta Order Item Associatio Name</label>Quot | ||
<type>AutoNumber</type> | ||
</nameField> | ||
<pluralLabel>Stripe Coupon Beta Order Items</pluralLabel> | ||
<searchLayouts></searchLayouts> | ||
<sharingModel>ControlledByParent</sharingModel> | ||
<validationRules> | ||
<fullName>Order_Item_Field_Must_Be_Set</fullName> | ||
<description>Order_Item__c is a required field.</description> | ||
<active>true</active> | ||
<errorConditionFormula>ISBLANK(Order_Item__c)</errorConditionFormula> | ||
<errorMessage>Order_Item__c is a required field.</errorMessage> | ||
</validationRules> | ||
<visibility>Public</visibility> | ||
</CustomObject> |
12 changes: 12 additions & 0 deletions
12
...t/objects/Stripe_Coupon_Beta_Order_Item_Associatio__c/fields/Order_Item__c.field-meta.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<CustomField xmlns="http://soap.sforce.com/2006/04/metadata"> | ||
<fullName>Order_Item__c</fullName> | ||
<externalId>false</externalId> | ||
<label>Order Item</label> | ||
<referenceTo>OrderItem</referenceTo> | ||
<relationshipLabel>Stripe Coupon Beta Order Item Connection</relationshipLabel> | ||
<relationshipName>Stripe_Coupon_Beta_Order_Item_Connection</relationshipName> | ||
<reparentableMasterDetail>false</reparentableMasterDetail> | ||
<trackTrending>false</trackTrending> | ||
<type>Lookup</type> | ||
</CustomField> |
14 changes: 14 additions & 0 deletions
14
...bjects/Stripe_Coupon_Beta_Order_Item_Associatio__c/fields/Stripe_Coupon__c.field-meta.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<CustomField xmlns="http://soap.sforce.com/2006/04/metadata"> | ||
<fullName>Stripe_Coupon__c</fullName> | ||
<externalId>false</externalId> | ||
<label>Stripe Coupon</label> | ||
<referenceTo>Stripe_Coupon_Beta_Serialized__c</referenceTo> | ||
<relationshipLabel>Stripe Coupon Beta Order Item Link</relationshipLabel> | ||
<relationshipName>Stripe_Coupon_Beta_Order_Item_Link</relationshipName> | ||
<relationshipOrder>0</relationshipOrder> | ||
<reparentableMasterDetail>false</reparentableMasterDetail> | ||
<trackTrending>false</trackTrending> | ||
<type>MasterDetail</type> | ||
<writeRequiresMasterRead>true</writeRequiresMasterRead> | ||
</CustomField> |
Oops, something went wrong.