CloverConnector  4.0.5
Copyright (C) 2018 Clover Network, Inc.
Discount.cs
1 
7 // Copyright (C) 2018 Clover Network, Inc.
8 //
9 // Licensed under the Apache License, Version 2.0 (the "License");
10 // you may not use this file except in compliance with the License.
11 //
12 // You may obtain a copy of the License at
13 // http://www.apache.org/licenses/LICENSE-2.0
14 //
15 // Unless required by applicable law or agreed to in writing, software
16 // distributed under the License is distributed on an "AS IS" BASIS,
17 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 // See the License for the specific language governing permissions and
19 // limitations under the License.
20 
21 using System;
22 using System.Collections.Generic;
23 
24 namespace com.clover.sdk.v3.order {
25 
26 
27 public class Discount {
28 
32  public String id { get; set; }
33 
37  public com.clover.sdk.v3.base_.Reference orderRef { get; set; }
38 
42  public com.clover.sdk.v3.base_.Reference lineItemRef { get; set; }
43 
47  public com.clover.sdk.v3.base_.Reference discount { get; set; }
48 
52  public String name { get; set; }
53 
57  public Int64 amount { get; set; }
58 
62  public Int64 percentage { get; set; }
63 
64 }
65 
66 }
com.clover.sdk.v3.order.Discount.lineItemRef
com.clover.sdk.v3.base_.Reference lineItemRef
The lineItem with which the discount is associated
Definition: Discount.cs:42
com.clover.sdk.v3.order.Discount.discount
com.clover.sdk.v3.base_.Reference discount
If this item is based on a standard discount, this will point to the appropriate inventory....
Definition: Discount.cs:47
com.clover.sdk.v3.order.Discount.orderRef
com.clover.sdk.v3.base_.Reference orderRef
The order with which the discount is associated
Definition: Discount.cs:37
com.clover.sdk.v3
Definition: CloverException.cs:7
com.clover
Definition: CloverConnector.cs:32
com.clover.sdk.v3.order.Discount.name
String name
Name of the discount
Definition: Discount.cs:52
com.clover.sdk.v3.order.Discount
Definition: Discount.cs:27
com.clover.sdk
Definition: CloverException.cs:7
com.clover.sdk.v3.order
Definition: CustomerIdMethod.cs:21
com.clover.sdk.v3.order.Discount.percentage
Int64 percentage
Discount amount in percent
Definition: Discount.cs:62
com.clover.sdk.v3.base_.Reference
Definition: Reference.cs:23
com
Definition: CloverConnector.cs:32
com.clover.sdk.v3.order.Discount.amount
Int64 amount
Discount amount in fraction of currency unit (e.g. cents) based on currency fraction digits supported
Definition: Discount.cs:57
com.clover.sdk.v3.base_
Definition: Address.cs:24