c2g.CODAAPIPurchaseCreditNote_7_0global with sharing class CODAAPIPurchaseCreditNote_7_0 The service class relating to Purchase Credit Notes. This class contains deprecated items. Properties
Methods
GetAPIVersionwebService static string GetAPIVersion() Used to get the latest API version. Return ValueText GetServiceNamewebService static String GetServiceName() Used to get the name of the service. Return ValueText PostPurchaseCreditNotewebService static void PostPurchaseCreditNote(c2g.CODAAPICommon_7_0.Context context, c2g.CODAAPICommon.Reference value) This service allows you to post a purchase credit note. Use the PayableCreditNotePost (Post Payable Credit Notes) custom permission to grant permissions on this service. Input Parameters
Return ValueThis web service does not return a value. BulkPostPurchaseCreditNotewebService static void BulkPostPurchaseCreditNote(c2g.CODAAPICommon_7_0.Context context, c2g.CODAAPICommon.Reference[] values) This service allows you to post purchase credit notes in bulk. Use the PayableCreditNotePost (Post Payable Credit Note) custom permission to grant permissions on this service. Input Parameters
Return ValueThis web service does not return a value. DeprecatedThe following items are deprecated and not supported for use. We recommend that you stop using these items to avoid exceptions. Methods
CreatePurchaseCreditNoteDeprecated: Deprecated: Use the Salesforce API for CRUD operations. webService static c2g.CODAAPICommon.Reference CreatePurchaseCreditNote(c2g.CODAAPICommon_7_0.Context context, c2g.CODAAPIPurchaseCreditNoteTypes_7_0.PurchaseCreditNote value) This service allows you to create a purchase credit note (also known as payable credit note). See "Payable Credit Note Fields" and "What is a Payable Credit Note" in the Certinia Help for more details. Use PayableCreditNoteSave (Save Payable Credit Notes) custom permission to grant permissions on this method. Input Parameters
Return ValueThis web service returns a CODAAPICommon.Reference object. UpdatePurchaseCreditNoteDeprecated: Deprecated: Use the Salesforce API for CRUD operations. webService static c2g.CODAAPICommon.Reference UpdatePurchaseCreditNote(c2g.CODAAPICommon_7_0.Context context, c2g.CODAAPIPurchaseCreditNoteTypes_7_0.PurchaseCreditNote value) This service allows you to update a purchase credit note. Use PayableCreditNoteEdit (Edit Payable Credit Notes) custom permission to grant permissions on this method. Input Parameters
Return ValueThis web service returns a CODAAPICommon.Reference object. GetPurchaseCreditNoteDeprecated: Deprecated: Use the Salesforce API for CRUD operations. webService static c2g.CODAAPIPurchaseCreditNoteTypes_7_0.PurchaseCreditNote GetPurchaseCreditNote(c2g.CODAAPICommon_7_0.Context context, c2g.CODAAPICommon.Reference value) This service allows you to retrieve a purchase credit note. Input Parameters
Return ValueThis web service returns a c2g.CODAAPIPurchaseCreditNoteTypes_7_0.PurchaseCreditNote object. BulkCreatePurchaseCreditNoteDeprecated: Deprecated: Use the Salesforce API for CRUD operations. webService static c2g.CODAAPICommon.Reference[] BulkCreatePurchaseCreditNote(c2g.CODAAPICommon_7_0.Context context, c2g.CODAAPIPurchaseCreditNoteTypes_7_0.PurchaseCreditNote[] values) This service allows you to create purchase credit notes in bulk. Use PayableCreditNoteSave (Save Payable Credit Notes) custom permission to grant permissions on this method. Input Parameters
Return ValueThis web service returns an array of CODAAPICommon.Reference objects. BulkUpdatePurchaseCreditNoteDeprecated: Deprecated: Use the Salesforce API for CRUD operations. webService static c2g.CODAAPICommon.Reference[] BulkUpdatePurchaseCreditNote(c2g.CODAAPICommon_7_0.Context context, c2g.CODAAPIPurchaseCreditNoteTypes_7_0.PurchaseCreditNote[] values) This service allows you to update purchase credit notes in bulk. It also handles amending posted purchase credit notes and their related transactions. Use PayableCreditNoteEdit (Edit Payable Credit Notes) custom permission to grant permissions on this method. Input Parameters
Return ValueThis web service returns an array of CODAAPICommon.Reference objects. Sample Code//Note: This sample code is for demonstration purposes only. It is not intended for //use in a production environment, is not guaranteed against defects or errors, and //is in no way optimized or streamlined. //In addition to making updates, BulkUpdate can be used to amend, as this example shows //using a reference to an existing credit note. c2g.CODAAPICommon.Reference postedCreditRef = c2g.CODAAPICommon.getRef('a4m1I00000002l1QAA', null); c2g.CODAAPICommon_7_0.Context context = new c2g.CODAAPICommon_7_0.Context(); c2g.CODAAPIPurchaseCreditNoteTypes_7_0.PurchaseCreditNote credit = c2g.CODAAPIPurchaseCreditNote_7_0.GetPurchaseCreditNote(context, postedCreditRef); //detail the amendment credit.CreditNoteDescription = 'AmendedDescription'; List<c2g.CODAAPIPurchaseCreditNoteTypes_7_0.PurchaseCreditNote> credits = new List<c2g.CODAAPIPurchaseCreditNoteTypes_7_0.PurchaseCreditNote>(); credits.add(credit); //call the API c2g.CODAAPIPurchaseCreditNote_7_0.BulkUpdatePurchaseCreditNote(context, credits); |