C# Class PayPal.Api.InvoiceTemplate

Invoicing template.

See PayPal Developer documentation for more information.

Inheritance: PayPalResource
显示文件 Open project: paypal/PayPal-NET-SDK Class Usage Examples

Private Properties

Property Type Description

Public Methods

Method Description
Create ( APIContext apiContext ) : InvoiceTemplate

Creates a template.

Delete ( APIContext apiContext ) : void

Deletes a template, by ID.

Delete ( APIContext apiContext, string templateId ) : void

Deletes a template, by ID.

Get ( APIContext apiContext, string templateId ) : InvoiceTemplate

Shows details for a template, by ID.

GetAll ( APIContext apiContext, string fields = "all" ) : InvoiceTemplates

Lists all merchant-created templates. The list shows the emails, addresses, and phone numbers from the merchant profile.

Update ( APIContext apiContext ) : InvoiceTemplate

Updates a template, by ID. In the JSON request body, pass a complete `template` object. The update method does not support partial updates.

Method Details

Create() public method

Creates a template.
public Create ( APIContext apiContext ) : InvoiceTemplate
apiContext APIContext APIContext used for the API call.
return InvoiceTemplate

Delete() public method

Deletes a template, by ID.
public Delete ( APIContext apiContext ) : void
apiContext APIContext APIContext used for the API call.
return void

Delete() public static method

Deletes a template, by ID.
public static Delete ( APIContext apiContext, string templateId ) : void
apiContext APIContext APIContext used for the API call.
templateId string The ID of the template to delete.
return void

Get() public static method

Shows details for a template, by ID.
public static Get ( APIContext apiContext, string templateId ) : InvoiceTemplate
apiContext APIContext APIContext used for the API call.
templateId string The ID of the template for which to show details.
return InvoiceTemplate

GetAll() public static method

Lists all merchant-created templates. The list shows the emails, addresses, and phone numbers from the merchant profile.
public static GetAll ( APIContext apiContext, string fields = "all" ) : InvoiceTemplates
apiContext APIContext APIContext used for the API call.
fields string The fields to return in the response. Value is `all` or `none`. Specify `none` to return only the template name, ID, and default attributes.
return InvoiceTemplates

Update() public method

Updates a template, by ID. In the JSON request body, pass a complete `template` object. The update method does not support partial updates.
public Update ( APIContext apiContext ) : InvoiceTemplate
apiContext APIContext APIContext used for the API call.
return InvoiceTemplate