@@ -25,26 +25,50 @@ public partial class MerchantPurchase : Resource
25
25
public string BillingZipCode { get ; }
26
26
public string ChallengeMode { get ; }
27
27
public Dictionary < string , object > Metadata { get ; }
28
+ public string CardEnding { get ; }
29
+ public string ChallengeUrl { get ; }
30
+ public DateTime ? Created { get ; }
31
+ public string CurrencyCode { get ; }
32
+ public string EndToEndId { get ; }
33
+ public int ? Fee { get ; }
34
+ public string Network { get ; }
35
+ public string Source { get ; }
36
+ public string Status { get ; }
37
+ public List < string > Tags { get ; }
38
+ public DateTime ? Updated { get ; }
28
39
29
- public MerchantPurchase ( int amount , string fundingType , string cardId , string challengeMode = null , int ? installmentCount = null , string holderEmail = null ,
40
+ public MerchantPurchase ( int amount , string fundingType , string cardId , string challengeMode = null , int ? installmentCount = null , string holderEmail = null ,
30
41
string holderPhone = null , string billingCountryCode = null , string billingCity = null , string billingStateCode = null , string billingStreetLine1 = null ,
31
- string billingStreetLine2 = null , string billingZipCode = null , Dictionary < string , object > metadata = null , string id = null ) : base ( id )
32
- {
33
- Amount = amount ;
34
- FundingType = fundingType ;
35
- CardId = cardId ;
36
- ChallengeMode = challengeMode ;
37
- InstallmentCount = installmentCount ;
38
- HolderEmail = holderEmail ;
39
- HolderPhone = holderPhone ;
40
- BillingCountryCode = billingCountryCode ;
41
- BillingCity = billingCity ;
42
- BillingStateCode = billingStateCode ;
43
- BillingStreetLine1 = billingStreetLine1 ;
44
- BillingStreetLine2 = billingStreetLine2 ;
45
- BillingZipCode = billingZipCode ;
46
- Metadata = metadata ;
47
- }
42
+ string billingStreetLine2 = null , string billingZipCode = null , Dictionary < string , object > metadata = null , string id = null , string cardEnding = null ,
43
+ string challengeUrl = null , DateTime ? created = null , string currencyCode = null , string endToEndId = null , int ? fee = null , string network = null ,
44
+ string source = null , string status = null , List < string > tags = null , DateTime ? updated = null ) : base ( id )
45
+ {
46
+ Amount = amount ;
47
+ FundingType = fundingType ;
48
+ CardId = cardId ;
49
+ ChallengeMode = challengeMode ;
50
+ InstallmentCount = installmentCount ;
51
+ HolderEmail = holderEmail ;
52
+ HolderPhone = holderPhone ;
53
+ BillingCountryCode = billingCountryCode ;
54
+ BillingCity = billingCity ;
55
+ BillingStateCode = billingStateCode ;
56
+ BillingStreetLine1 = billingStreetLine1 ;
57
+ BillingStreetLine2 = billingStreetLine2 ;
58
+ BillingZipCode = billingZipCode ;
59
+ Metadata = metadata ;
60
+ CardEnding = cardEnding ;
61
+ ChallengeUrl = challengeUrl ;
62
+ Created = created ;
63
+ CurrencyCode = currencyCode ;
64
+ EndToEndId = endToEndId ;
65
+ Fee = fee ;
66
+ Network = network ;
67
+ Source = source ;
68
+ Status = status ;
69
+ Tags = tags ;
70
+ Updated = updated ;
71
+ }
48
72
49
73
public static MerchantPurchase Create ( MerchantPurchase purchase , User user = null )
50
74
{
@@ -135,29 +159,41 @@ internal static (string resourceName, StarkCore.Utils.Api.ResourceMaker resource
135
159
}
136
160
137
161
internal static Resource ResourceMaker ( dynamic json )
138
- {
139
-
162
+ {
140
163
string id = json . id ;
141
164
int amount = json . amount ;
142
- string fundingType = json . fundingType ;
143
- string cardId = json . cardId ;
144
- int ? installmentCount = json . installmentCount ;
145
- string holderEmail = json . holderEmail ;
146
- string holderPhone = json . holderPhone ;
147
- string billingCountryCode = json . billingCountryCode ;
148
- string billingCity = json . billingCity ;
149
- string billingStateCode = json . billingStateCode ;
150
- string billingStreetLine1 = json . billingStreetLine1 ;
151
- string billingStreetLine2 = json . billingStreetLine2 ;
152
- string billingZipCode = json . billingZipCode ;
153
- string challengeMode = json . challengeMode ;
154
- Dictionary < string , object > metadata = json . metadata . ToObject < Dictionary < string , object > > ( ) ;
165
+ string fundingType = json . fundingType ;
166
+ string cardId = json . cardId ;
167
+ int ? installmentCount = json . installmentCount ;
168
+ string holderEmail = json . holderEmail ;
169
+ string holderPhone = json . holderPhone ;
170
+ string billingCountryCode = json . billingCountryCode ;
171
+ string billingCity = json . billingCity ;
172
+ string billingStateCode = json . billingStateCode ;
173
+ string billingStreetLine1 = json . billingStreetLine1 ;
174
+ string billingStreetLine2 = json . billingStreetLine2 ;
175
+ string billingZipCode = json . billingZipCode ;
176
+ string challengeMode = json . challengeMode ;
177
+ Dictionary < string , object > metadata = json . metadata . ToObject < Dictionary < string , object > > ( ) ;
178
+ string cardEnding = json . cardEnding ;
179
+ string challengeUrl = json . challengeUrl ;
180
+ DateTime ? created = json . created ;
181
+ string currencyCode = json . currencyCode ;
182
+ string endToEndId = json . endToEndId ;
183
+ int ? fee = json . fee ;
184
+ string network = json . network ;
185
+ string source = json . source ;
186
+ string status = json . status ;
187
+ List < string > tags = json . tags . ToObject < List < string > > ( ) ;
188
+ DateTime ? updated = json . updated ;
155
189
156
190
return new MerchantPurchase ( amount : amount , fundingType : fundingType , cardId : cardId , installmentCount : installmentCount ,
157
- holderEmail : holderEmail , holderPhone : holderPhone , billingCountryCode : billingCountryCode ,
158
- billingCity : billingCity , billingStateCode : billingStateCode , billingStreetLine1 : billingStreetLine1 ,
159
- billingStreetLine2 : billingStreetLine2 , billingZipCode : billingZipCode , metadata : metadata , challengeMode : challengeMode , id : id ) ;
160
- }
191
+ holderEmail : holderEmail , holderPhone : holderPhone , billingCountryCode : billingCountryCode ,
192
+ billingCity : billingCity , billingStateCode : billingStateCode , billingStreetLine1 : billingStreetLine1 ,
193
+ billingStreetLine2 : billingStreetLine2 , billingZipCode : billingZipCode , metadata : metadata , challengeMode : challengeMode , id : id ,
194
+ cardEnding : cardEnding , challengeUrl : challengeUrl , created : created , currencyCode : currencyCode , endToEndId : endToEndId ,
195
+ fee : fee , network : network , source : source , status : status , tags : tags , updated : updated ) ;
196
+ }
161
197
}
162
198
}
163
199
0 commit comments