/
STPPaymentIntentShippingDetailsAddressParams.h
64 lines (49 loc) · 1.36 KB
/
STPPaymentIntentShippingDetailsAddressParams.h
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
//
// STPPaymentIntentShippingDetailsAddressParams.h
// Stripe
//
// Created by Yuki Tokuhiro on 4/27/20.
// Copyright © 2020 Stripe, Inc. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "STPFormEncodable.h"
NS_ASSUME_NONNULL_BEGIN
/**
Shipping address for a PaymentIntent's shipping details.
@see https://stripe.com/docs/api/payment_intents/confirm#confirm_payment_intent-shipping-address
*/
@interface STPPaymentIntentShippingDetailsAddressParams : NSObject <NSCopying, STPFormEncodable>
/**
City/District/Suburb/Town/Village.
*/
@property (nonatomic, copy, nullable) NSString *city;
/**
Two-letter country code (ISO 3166-1 alpha-2).
*/
@property (nonatomic, copy, nullable) NSString *country;
/**
Address line 1 (Street address/PO Box/Company name).
*/
@property (nonatomic, copy) NSString *line1;
/**
Address line 2 (Apartment/Suite/Unit/Building).
*/
@property (nonatomic, copy, nullable) NSString *line2;
/**
ZIP or postal code.
*/
@property (nonatomic, copy, nullable) NSString *postalCode;
/**
State/County/Province/Region.
*/
@property (nonatomic, copy, nullable) NSString *state;
/**
Initialize an `STPPaymentIntentShippingDetailsAddressParams` instance with required properties.
*/
- (instancetype)initWithLine1:(NSString *)line1;
/**
Use `initWithLine1:` instead.
*/
- (instancetype)init NS_UNAVAILABLE;
@end
NS_ASSUME_NONNULL_END