Skip to content

Commit f277709

Browse files
committed
Fix for issues #180, #189
PRs #181, #185, #190
1 parent 9a16ef9 commit f277709

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

lib/authorize_net/api/schema.rb

+16-3
Original file line numberDiff line numberDiff line change
@@ -1293,6 +1293,8 @@ def initialize(customerType = nil, billTo = nil, payment = nil, driversLicense =
12931293
# payment - PaymentType
12941294
# driversLicense - DriversLicenseType
12951295
# taxId - SOAP::SOAPString
1296+
# defaultPaymentProfile - SOAP::SOAPBoolean
1297+
# subsequentAuthInformation - SubsequentAuthInformation
12961298
# customerPaymentProfileId - (any)
12971299
class CustomerPaymentProfileExType
12981300
include ROXML
@@ -1301,14 +1303,18 @@ class CustomerPaymentProfileExType
13011303
xml_accessor :payment, as: PaymentType
13021304
xml_accessor :driversLicense, as: DriversLicenseType
13031305
xml_accessor :taxId
1306+
xml_accessor :defaultPaymentProfile
1307+
xml_accessor :subsequentAuthInformation, as: SubsequentAuthInformation
13041308
xml_accessor :customerPaymentProfileId
13051309

1306-
def initialize(customerType = nil, billTo = nil, payment = nil, driversLicense = nil, taxId = nil, customerPaymentProfileId = nil)
1310+
def initialize(customerType = nil, billTo = nil, payment = nil, driversLicense = nil, taxId = nil, defaultPaymentProfile = nil, subsequentAuthInformation = nil, customerPaymentProfileId = nil)
13071311
@customerType = customerType
13081312
@billTo = billTo
13091313
@payment = payment
13101314
@driversLicense = driversLicense
13111315
@taxId = taxId
1316+
@defaultPaymentProfile = defaultPaymentProfile
1317+
@subsequentAuthInformation = subsequentAuthInformation
13121318
@customerPaymentProfileId = customerPaymentProfileId
13131319
end
13141320
end
@@ -1329,6 +1335,7 @@ def initialize(subscriptionId = nil)
13291335
# billTo - CustomerAddressType
13301336
# customerProfileId - (any)
13311337
# customerPaymentProfileId - (any)
1338+
# defaultPaymentProfile - SOAP::SOAPBoolean
13321339
# payment - PaymentMaskedType
13331340
# driversLicense - DriversLicenseMaskedType
13341341
# taxId - SOAP::SOAPString
@@ -3461,6 +3468,7 @@ def initialize(refId = nil, messages = nil, sessionToken = nil, customerProfileI
34613468
# refId - SOAP::SOAPString
34623469
# customerProfileId - (any)
34633470
# address - CustomerAddressType
3471+
# defaultShippingAddress - SOAP::SOAPBoolean
34643472
class CreateCustomerShippingAddressRequest
34653473
include ROXML
34663474
xml_accessor :merchantAuthentication
@@ -3506,15 +3514,17 @@ def initialize(refId = nil, messages = nil, sessionToken = nil, customerProfileI
35063514
# refId - SOAP::SOAPString
35073515
# transId - (any)
35083516
# customer - CustomerProfileBaseType
3509-
# customerProfileId - NumericStringsType
3517+
# customerProfileId - (any)
3518+
# defaultPaymentProfile - SOAP::SOAPBoolean
3519+
# defaultShippingAddress - SOAP::SOAPBoolean
35103520
# profileType - CustomerProfileTypeEnum
35113521
class CreateCustomerProfileFromTransactionRequest
35123522
include ROXML
35133523
xml_accessor :merchantAuthentication, as: MerchantAuthenticationType
35143524
xml_accessor :refId
35153525
xml_accessor :transId
35163526
xml_accessor :customer, as: CustomerProfileBaseType
3517-
xml_accessor :customerProfileId, as: NumericStringsType
3527+
xml_accessor :customerProfileId # This should NOT be NumericStringsType because NumericStringsType is an array type, not the base type.
35183528
xml_accessor :defaultPaymentProfile
35193529
xml_accessor :defaultShippingAddress
35203530
xml_accessor :profileType
@@ -3651,6 +3661,7 @@ def initialize(merchantAuthentication = nil, refId = nil, customerProfileId = ni
36513661
# refId - SOAP::SOAPString
36523662
# messages - MessagesType
36533663
# sessionToken - SOAP::SOAPString
3664+
# defaultShippingAddress - SOAP::SOAPBoolean
36543665
# address - CustomerAddressExType
36553666
# subscriptionIds - SubscriptionIdList
36563667
class GetCustomerShippingAddressResponse
@@ -3754,6 +3765,7 @@ def initialize(refId = nil, messages = nil, sessionToken = nil, validationDirect
37543765
# refId - SOAP::SOAPString
37553766
# customerProfileId - (any)
37563767
# address - CustomerAddressExType
3768+
# defaultShippingAddress - SOAP::SOAPBoolean
37573769
class UpdateCustomerShippingAddressRequest
37583770
include ROXML
37593771
xml_accessor :merchantAuthentication
@@ -4785,6 +4797,7 @@ def initialize(refId = nil, messages = nil, sessionToken = nil, transactionRespo
47854797
end
47864798

47874799
# {AnetApi/xml/v1/schema/AnetApiSchema.xsd}customerPaymentProfileListItemType
4800+
# defaultPaymentProfile - SOAP::SOAPBoolean
47884801
# customerPaymentProfileId - SOAP::SOAPInt
47894802
# customerProfileId - SOAP::SOAPInt
47904803
# billTo - CustomerAddressType

0 commit comments

Comments
 (0)