-
Notifications
You must be signed in to change notification settings - Fork 566
/
CardShipping.cs
75 lines (64 loc) · 2.18 KB
/
CardShipping.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
namespace Stripe.Issuing
{
using System;
using Newtonsoft.Json;
using Stripe.Infrastructure;
public class CardShipping : StripeEntity<CardShipping>
{
/// <summary>
/// Shipping address.
/// </summary>
[JsonProperty("address")]
public Address Address { get; set; }
/// <summary>
/// The delivery company that shipped a card. One of <c>fedex</c> or
/// <c>usps</c>.
/// </summary>
[JsonProperty("carrier")]
public string Carrier { get; set; }
/// <summary>
/// A unix timestamp representing a best estimate of when the card will
/// be delivered.
/// </summary>
[JsonProperty("eta")]
[JsonConverter(typeof(DateTimeConverter))]
public DateTime Eta { get; set; }
/// <summary>
/// Recipient name.
/// </summary>
[JsonProperty("name")]
public string Name { get; set; }
[JsonProperty("phone")]
public string Phone { get; set; }
/// <summary>
/// The delivery status of the card.
/// </summary>
[JsonProperty("status")]
public string Status { get; set; }
/// <summary>
/// Shipment speed. One of <c>express</c>, <c>priority</c>, or
/// <c>standard</c>. Defaults to <c>standard</c>.
/// </summary>
[JsonProperty("service")]
public string Service { get; set; }
[Obsolete("Use Service instead")]
[JsonProperty("speed")]
public string Speed { get; set; }
/// <summary>
/// A tracking number for a card shipment.
/// </summary>
[JsonProperty("tracking_number")]
public string TrackingNumber { get; set; }
/// <summary>
/// A link to the shipping carrier’s site where you can view detailed
/// information about a card shipment.
/// </summary>
[JsonProperty("tracking_url")]
public string TrackingUrl { get; set; }
/// <summary>
/// Packaging options. One of <c>bulk</c> or <c>individual</c>.
/// </summary>
[JsonProperty("type")]
public string Type { get; set; }
}
}