cybersource_rest_client 0.0.87 → 0.0.88

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (104) hide show
  1. checksums.yaml +4 -4
  2. data/lib/cybersource_rest_client/api/acp_checkout_api.rb +553 -0
  3. data/lib/cybersource_rest_client/api/agent_registration_api.rb +721 -0
  4. data/lib/cybersource_rest_client/api/bank_account_validation_api.rb +0 -1
  5. data/lib/cybersource_rest_client/api/enrollment_api.rb +104 -0
  6. data/lib/cybersource_rest_client/api/{merchant_capabilities_api.rb → merchant_registration_api.rb} +47 -391
  7. data/lib/cybersource_rest_client/api/payment_events_api.rb +197 -0
  8. data/lib/cybersource_rest_client/api/product_feed_api.rb +365 -0
  9. data/lib/cybersource_rest_client/api/purchase_intent_api.rb +278 -0
  10. data/lib/cybersource_rest_client/api/ucp_checkout_api.rb +453 -0
  11. data/lib/cybersource_rest_client/models/activate_merchant_key_response200.rb +1 -1
  12. data/lib/cybersource_rest_client/models/add_agent_key_response201.rb +11 -11
  13. data/lib/cybersource_rest_client/models/agent_registration_response201.rb +13 -15
  14. data/lib/cybersource_rest_client/models/agent_registration_response201_keys.rb +8 -8
  15. data/lib/cybersource_rest_client/models/agent_request.rb +9 -11
  16. data/lib/cybersource_rest_client/models/agent_update.rb +7 -9
  17. data/lib/cybersource_rest_client/models/auth_reversal_request.rb +1 -1
  18. data/lib/cybersource_rest_client/models/boarding_payouts_configurations.rb +1 -1
  19. data/lib/cybersource_rest_client/models/{inline_response_200_19_google_merchant_products.rb → boarding_payouts_configurations_acquirer.rb} +33 -76
  20. data/lib/cybersource_rest_client/models/{inline_response_200_19_errors.rb → boarding_payouts_configurations_merchant_descriptor.rb} +25 -33
  21. data/lib/cybersource_rest_client/models/boarding_payouts_configurations_processors.rb +581 -0
  22. data/lib/cybersource_rest_client/models/capture_payment_request.rb +1 -1
  23. data/lib/cybersource_rest_client/models/create_order_request.rb +11 -1
  24. data/lib/cybersource_rest_client/models/create_payment_request.rb +14 -1
  25. data/lib/cybersource_rest_client/models/create_session_req.rb +14 -1
  26. data/lib/cybersource_rest_client/models/create_session_request.rb +14 -1
  27. data/lib/cybersource_rest_client/models/iccv1agents_keys.rb +4 -4
  28. data/lib/cybersource_rest_client/models/iccv1merchants_api_integrations.rb +2 -2
  29. data/lib/cybersource_rest_client/models/iccv1merchants_encryption_key.rb +6 -6
  30. data/lib/cybersource_rest_client/models/iccv1merchants_protocol_interactions.rb +1 -1
  31. data/lib/cybersource_rest_client/models/iccv1merchants_web_integrations.rb +2 -2
  32. data/lib/cybersource_rest_client/models/inline_response_200_17.rb +55 -0
  33. data/lib/cybersource_rest_client/models/inline_response_200_18.rb +40 -0
  34. data/lib/cybersource_rest_client/models/inline_response_200_19.rb +30 -107
  35. data/lib/cybersource_rest_client/models/inline_response_200_19_processing.rb +213 -0
  36. data/lib/cybersource_rest_client/models/inline_response_200_19_syndication.rb +224 -0
  37. data/lib/cybersource_rest_client/models/inline_response_200_20_products.rb +80 -682
  38. data/lib/cybersource_rest_client/models/inline_response_201_12.rb +40 -0
  39. data/lib/cybersource_rest_client/models/inline_response_201_12_fulfillment_options.rb +30 -0
  40. data/lib/cybersource_rest_client/models/inline_response_201_12_totals.rb +15 -0
  41. data/lib/cybersource_rest_client/models/inline_response_201_6_setups_risk.rb +15 -5
  42. data/lib/cybersource_rest_client/models/inline_response_201_6_setups_value_added_services.rb +15 -5
  43. data/lib/cybersource_rest_client/models/{deactivate_merchant_key_response200.rb → inline_response_202_1.rb} +11 -16
  44. data/lib/cybersource_rest_client/models/key_request.rb +4 -4
  45. data/lib/cybersource_rest_client/models/key_request_1.rb +5 -5
  46. data/lib/cybersource_rest_client/models/key_update.rb +5 -5
  47. data/lib/cybersource_rest_client/models/key_update_1.rb +5 -5
  48. data/lib/cybersource_rest_client/models/list_agent_keys_response200.rb +2 -2
  49. data/lib/cybersource_rest_client/models/merchant_registration_response201.rb +10 -10
  50. data/lib/cybersource_rest_client/models/merchant_registration_response201_api_integrations.rb +225 -0
  51. data/lib/cybersource_rest_client/models/merchant_registration_response201_keys.rb +1 -1
  52. data/lib/cybersource_rest_client/models/merchant_registration_response201_web_integrations.rb +225 -0
  53. data/lib/cybersource_rest_client/models/merchant_request.rb +7 -7
  54. data/lib/cybersource_rest_client/models/merchant_update.rb +7 -7
  55. data/lib/cybersource_rest_client/models/mit_reversal_request.rb +1 -1
  56. data/lib/cybersource_rest_client/models/mit_void_request.rb +15 -5
  57. data/lib/cybersource_rest_client/models/payments_configuration_setup.rb +11 -1
  58. data/lib/cybersource_rest_client/models/payments_products.rb +11 -1
  59. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response.rb +12 -1
  60. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1.rb +12 -1
  61. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1_order_information.rb +44 -1
  62. data/lib/cybersource_rest_client/models/{pts_v2_payouts_post201_response_merchant_information_merchant_descriptor.rb → pts_v2_payments_post201_response_1_order_information_merchant_descriptor.rb} +1 -1
  63. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1_processor_information.rb +18 -1
  64. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_installment_information.rb +101 -5
  65. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_order_information_ship_to.rb +12 -1
  66. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_point_of_sale_information.rb +22 -5
  67. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information.rb +22 -5
  68. data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post201_response_processor_information.rb +22 -5
  69. data/lib/cybersource_rest_client/models/pts_v2_payments_reversals_post201_response.rb +1 -1
  70. data/lib/cybersource_rest_client/models/{ptsv2paymentsidreversals_point_of_sale_information.rb → pts_v2_payments_reversals_post201_response_point_of_sale_information.rb} +2 -2
  71. data/lib/cybersource_rest_client/models/{ptsv2paymentsidreversals_point_of_sale_information_emv.rb → pts_v2_payments_reversals_post201_response_point_of_sale_information_emv.rb} +1 -1
  72. data/lib/cybersource_rest_client/models/pts_v2_payments_reversals_post201_response_processor_information.rb +22 -5
  73. data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_merchant_information.rb +1 -1
  74. data/lib/cybersource_rest_client/models/ptsv2intents_buyer_information.rb +196 -0
  75. data/lib/cybersource_rest_client/models/ptsv2intents_merchant_information_merchant_descriptor.rb +18 -1
  76. data/lib/cybersource_rest_client/models/ptsv2intents_order_information_bill_to.rb +154 -1
  77. data/lib/cybersource_rest_client/models/ptsv2intents_order_information_line_items.rb +16 -5
  78. data/lib/cybersource_rest_client/models/ptsv2intentsid_merchant_information.rb +1 -1
  79. data/lib/cybersource_rest_client/models/ptsv2intentsid_merchant_information_merchant_descriptor.rb +207 -0
  80. data/lib/cybersource_rest_client/models/{ptsv2paymentsidcaptures_point_of_sale_information.rb → ptsv2payments_buyer.rb} +55 -31
  81. data/lib/cybersource_rest_client/models/{inline_response_200_19_google_merchant.rb → ptsv2payments_order_history.rb} +42 -41
  82. data/lib/cybersource_rest_client/models/ptsv2payments_ship_to.rb +281 -0
  83. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_point_of_sale_information.rb +1 -1
  84. data/lib/cybersource_rest_client/models/{ptsv2paymentsidcaptures_point_of_sale_information_emv.rb → ptsv2paymentsidrefunds_point_of_sale_information_emv.rb} +1 -1
  85. data/lib/cybersource_rest_client/models/risk_products.rb +15 -5
  86. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_point_of_sale_information.rb +1 -1
  87. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_point_of_sale_information.rb +1 -1
  88. data/lib/cybersource_rest_client/models/unifiedrisk_acquirer_merchant_account_security_amount.rb +3 -3
  89. data/lib/cybersource_rest_client/models/unifiedrisk_merchant_merchant_descriptor_expected_annual_sales.rb +3 -3
  90. data/lib/cybersource_rest_client/models/unifiedrisk_merchant_merchant_descriptor_expected_average_ticket_size.rb +3 -3
  91. data/lib/cybersource_rest_client/models/unifiedrisk_merchant_merchant_descriptor_expected_monthly_sales.rb +3 -3
  92. data/lib/cybersource_rest_client/models/unifiedrisk_merchant_merchant_descriptor_limit_value.rb +3 -3
  93. data/lib/cybersource_rest_client/models/unifiedrisk_payment_bank_account_balance_before.rb +2 -2
  94. data/lib/cybersource_rest_client/models/unifiedrisk_payment_bank_account_credit_limit.rb +3 -3
  95. data/lib/cybersource_rest_client/models/unifiedrisk_transaction_additional_fees.rb +2 -2
  96. data/lib/cybersource_rest_client/models/unifiedrisk_transaction_amount.rb +3 -3
  97. data/lib/cybersource_rest_client/models/value_added_services_products.rb +15 -5
  98. data/lib/cybersource_rest_client/models/void_capture_request.rb +15 -5
  99. data/lib/cybersource_rest_client/models/void_credit_request.rb +15 -5
  100. data/lib/cybersource_rest_client/models/void_payment_request.rb +15 -5
  101. data/lib/cybersource_rest_client/models/void_refund_request.rb +15 -5
  102. data/lib/cybersource_rest_client.rb +25 -11
  103. metadata +27 -13
  104. data/lib/cybersource_rest_client/api/agent_capabilities_api.rb +0 -2279
@@ -13,12 +13,48 @@ require 'date'
13
13
 
14
14
  module CyberSource
15
15
  class Ptsv2intentsOrderInformationBillTo
16
+ # Customer's first name. This name must be the same as the name on the card. **Important** It is your responsibility to determine whether a field is required for the transaction you are requesting. #### SEPA Required for Create Mandate and Import Mandate #### BACS Required for Import Mandate #### CyberSource Latin American Processing **Important** For an authorization request, CyberSource Latin American Processing concatenates `orderInformation.billTo.firstName` and `orderInformation.billTo.lastName`. If the concatenated value exceeds 30 characters, CyberSource Latin American Processing declines the authorization request.\\ **Note** CyberSource Latin American Processing is the name of a specific processing connection that CyberSource supports. In the CyberSource API documentation, CyberSource Latin American Processing does not refer to the general topic of processing in Latin America. The information in this field description is for the specific processing connection called _CyberSource Latin American Processing_. It is not for any other Latin American processors that CyberSource supports. #### CyberSource through VisaNet Credit card networks cannot process transactions that contain non-ASCII characters. CyberSource through VisaNet accepts and stores non-ASCII characters correctly and displays them correctly in reports. However, the limitations of the credit card networks prevent CyberSource through VisaNet from transmitting non-ASCII characters to the credit card networks. Therefore, CyberSource through VisaNet replaces non-ASCII characters with meaningless ASCII characters for transmission to the credit card networks. #### For Payouts: This field may be sent only for FDC Compass. #### Chase Paymentech Solutions Optional field. #### Credit Mutuel-CIC Optional field. #### OmniPay Direct Optional field. #### SIX Optional field. #### TSYS Acquiring Solutions Required when `processingInformation.billPaymentOptions.billPayment=true` and `pointOfSaleInformation.entryMode=keyed`. #### Worldpay VAP Optional field. #### All other processors Not used.
17
+ attr_accessor :first_name
18
+
19
+ # Customer's last name. This name must be the same as the name on the card. **Important** It is your responsibility to determine whether a field is required for the transaction you are requesting. #### SEPA Required for Create Mandate and Import Mandate #### BACS Required for Import Mandate #### Chase Paymentech Solutions Optional field. #### Credit Mutuel-CIC Optional field. #### CyberSource Latin American Processing **Important** For an authorization request, CyberSource Latin American Processing concatenates `orderInformation.billTo.firstName` and `orderInformation.billTo.lastName`. If the concatenated value exceeds 30 characters, CyberSource Latin American Processing declines the authorization request.\\ **Note** CyberSource Latin American Processing is the name of a specific processing connection that CyberSource supports. In the CyberSource API documentation, CyberSource Latin American Processing does not refer to the general topic of processing in Latin America. The information in this field description is for the specific processing connection called CyberSource Latin American Processing. It is not for any other Latin American processors that CyberSource supports. #### CyberSource through VisaNet Credit card networks cannot process transactions that contain non-ASCII characters. CyberSource through VisaNet accepts and stores non-ASCII characters correctly and displays them correctly in reports. However, the limitations of the credit card networks prevent CyberSource through VisaNet from transmitting non-ASCII characters to the credit card networks. Therefore, CyberSource through VisaNet replaces non-ASCII characters with meaningless ASCII characters for transmission to the credit card networks. #### For Payouts: This field may be sent only for FDC Compass. #### OmniPay Direct Optional field. #### RBS WorldPay Atlanta Optional field. #### SIX Optional field. #### TSYS Acquiring Solutions Required when `processingInformation.billPaymentOptions.billPayment=true` and `pointOfSaleInformation.entryMode=keyed`. #### Worldpay VAP Optional field. #### All other processors Not used.
20
+ attr_accessor :last_name
21
+
22
+ # Customer's phone number. It is recommended that you include the country code when the order is from outside the U.S. #### Chase Paymentech Solutions Optional field. #### Credit Mutuel-CIC Optional field. #### CyberSource through VisaNet Credit card networks cannot process transactions that contain non-ASCII characters. CyberSource through VisaNet accepts and stores non-ASCII characters correctly and displays them correctly in reports. However, the limitations of the credit card networks prevent CyberSource through VisaNet from transmitting non-ASCII characters to the credit card networks. Therefore, CyberSource through VisaNet replaces non-ASCII characters with meaningless ASCII characters for transmission to the credit card networks. #### For Payouts: This field may be sent only for FDC Compass. #### OmniPay Direct Optional field. #### SIX Optional field. #### TSYS Acquiring Solutions Optional field. #### Worldpay VAP Optional field. #### All other processors Not used.
23
+ attr_accessor :phone_number
24
+
25
+ # Payment card billing street address as it appears on the credit card issuer's records. #### SEPA Required for Create Mandate and Import Mandate #### Atos This field must not contain colons (:). #### CyberSource through VisaNet **Important** When you populate orderInformation.billTo.address1 and orderInformation.billTo.address2, CyberSource through VisaNet concatenates the two values. If the concatenated value exceeds 40 characters, CyberSource through VisaNet truncates the value at 40 characters before sending it to Visa and the issuing bank. Truncating this value affects AVS results and therefore might also affect risk decisions and chargebacks. Credit card networks cannot process transactions that contain non-ASCII characters. CyberSource through VisaNet accepts and stores non-ASCII characters correctly and displays them correctly in reports. However, the limitations of the credit card networks prevent CyberSource through VisaNet from transmitting non-ASCII characters to the credit card networks. Therefore, CyberSource through VisaNet replaces non-ASCII characters with meaningless ASCII characters for transmission to the credit card networks. #### FDMS Nashville When the street name is numeric, it must be sent in numeric format. For example, if the address is _One First Street_, it must be sent as _1 1st Street_. Required if keyed; not used if swiped. String (20) #### TSYS Acquiring Solutions Required when `processingInformation.billPaymentOptions.billPayment=true` and `pointOfSaleInformation.entryMode=keyed`. #### All other processors: Optional. String (60) #### For Payouts This field may be sent only for FDC Compass. **Important** It is your responsibility to determine whether a field is required for the transaction you are requesting.
26
+ attr_accessor :address1
27
+
28
+ # Used for additional address information. For example: _Attention: Accounts Payable_ Optional field. For Payouts: This field may be sent only for FDC Compass. #### Atos This field must not contain colons (:). #### CyberSource through VisaNet **Important** When you populate `orderInformation.billTo.address1` and `orderInformation.billTo.address2`, CyberSource through VisaNet concatenates the two values. If the concatenated value exceeds 40 characters, CyberSource through VisaNet truncates the value at 40 characters before sending it to Visa and the issuing bank. Truncating this value affects AVS results and therefore might also affect risk decisions and chargebacks. Credit card networks cannot process transactions that contain non-ASCII characters. CyberSource through VisaNet accepts and stores non-ASCII characters correctly and displays them correctly in reports. However, the limitations of the credit card networks prevent CyberSource through VisaNet from transmitting non-ASCII characters to the credit card networks. Therefore, CyberSource through VisaNet replaces non-ASCII characters with meaningless ASCII characters for transmission to the credit card networks. #### Chase Paymentech Solutions, FDC Compass, and TSYS Acquiring Solutions This value is used for AVS. #### FDMS Nashville `orderInformation.billTo.address1` and `orderInformation.billTo.address2` together cannot exceed 20 characters. String (20) #### All Other Processors String (60)
29
+ attr_accessor :address2
30
+
31
+ # Payment card billing city. #### SEPA Required for Create Mandate and Import Mandate #### Atos This field must not contain colons (:). #### CyberSource through VisaNet Credit card networks cannot process transactions that contain non-ASCII characters. CyberSource through VisaNet accepts and stores non-ASCII characters correctly and displays them correctly in reports. However, the limitations of the credit card networks prevent CyberSource through VisaNet from transmitting non-ASCII characters to the credit card networks. Therefore, CyberSource through VisaNet replaces non-ASCII characters with meaningless ASCII characters for transmission to the credit card networks. #### For Payouts: This field may be sent only for FDC Compass. #### Chase Paymentech Solutions Optional field. #### Credit Mutuel-CIC Optional field. #### OmniPay Direct Optional field. #### SIX Optional field. #### TSYS Acquiring Solutions Required when `processingInformation.billPaymentOptions.billPayment=true` and `pointOfSaleInformation.entryMode=keyed`. #### Worldpay VAP Optional field. #### All other processors Not used.
32
+ attr_accessor :locality
33
+
34
+ # State or province of the billing address. Use the [State, Province, and Territory Codes for the United States and Canada](https://developer.cybersource.com/library/documentation/sbc/quickref/states_and_provinces.pdf). For Payouts: This field may be sent only for FDC Compass. ##### CyberSource through VisaNet Credit card networks cannot process transactions that contain non-ASCII characters. CyberSource through VisaNet accepts and stores non-ASCII characters correctly and displays them correctly in reports. However, the limitations of the credit card networks prevent CyberSource through VisaNet from transmitting non-ASCII characters to the credit card networks. Therefore, CyberSource through VisaNet replaces non-ASCII characters with meaningless ASCII characters for transmission to the credit card networks. **Important** It is your responsibility to determine whether a field is required for the transaction you are requesting. #### Chase Paymentech Solutions Optional field. #### Credit Mutuel-CIC Optional field. #### OmniPay Direct Optional field. #### SIX Optional field. #### TSYS Acquiring Solutions Required when `processingInformation.billPaymentOptions.billPayment=true` and `pointOfSaleInformation.entryMode=keyed`. #### Worldpay VAP Optional field. #### All other processors Not used.
35
+ attr_accessor :administrative_area
36
+
37
+ # Postal code for the billing address. The postal code must consist of 5 to 9 digits. When the billing country is the U.S., the 9-digit postal code must follow this format: [5 digits][dash][4 digits] **Example** `12345-6789` When the billing country is Canada, the 6-digit postal code must follow this format: [alpha][numeric][alpha][space][numeric][alpha][numeric] **Example** `A1B 2C3` **Important** It is your responsibility to determine whether a field is required for the transaction you are requesting. #### SEPA Required for Create Mandate and Import Mandate #### For Payouts: This field may be sent only for FDC Compass. #### American Express Direct Before sending the postal code to the processor, CyberSource removes all nonalphanumeric characters and, if the remaining value is longer than nine characters, truncates the value starting from the right side. #### Atos This field must not contain colons (:). #### CyberSource through VisaNet Credit card networks cannot process transactions that contain non-ASCII characters. CyberSource through VisaNet accepts and stores non-ASCII characters correctly and displays them correctly in reports. However, the limitations of the credit card networks prevent CyberSource through VisaNet from transmitting non-ASCII characters to the credit card networks. Therefore, CyberSource through VisaNet replaces non-ASCII characters with meaningless ASCII characters for transmission to the credit card networks. #### FDMS Nashville Required if `pointOfSaleInformation.entryMode=keyed` and the address is in the U.S. or Canada. Optional if `pointOfSaleInformation.entryMode=keyed` and the address is **not** in the U.S. or Canada. Not used if swiped. #### RBS WorldPay Atlanta: For best card-present keyed rates, send the postal code if `pointOfSaleInformation.entryMode=keyed`. #### TSYS Acquiring Solutions Required when `processingInformation.billPaymentOptions.billPayment=true` and `pointOfSaleInformation.entryMode=keyed`. #### All other processors: Optional field.
38
+ attr_accessor :postal_code
39
+
40
+ # Payment card billing country. Use the two-character [ISO Standard Country Codes](http://apps.cybersource.com/library/documentation/sbc/quickref/countries_alpha_list.pdf). #### SEPA/BACS Required for Create Mandate and Import Mandate #### CyberSource through VisaNet Credit card networks cannot process transactions that contain non-ASCII characters. CyberSource through VisaNet accepts and stores non-ASCII characters correctly and displays them correctly in reports. However, the limitations of the credit card networks prevent CyberSource through VisaNet from transmitting non-ASCII characters to the credit card networks. Therefore, CyberSource through VisaNet replaces non-ASCII characters with meaningless ASCII characters for transmission to the credit card networks. **Important** It is your responsibility to determine whether a field is required for the transaction you are requesting. #### Chase Paymentech Solutions Optional field. #### Credit Mutuel-CIC Optional field. #### OmniPay Direct Optional field. #### SIX Optional field. #### TSYS Acquiring Solutions Required when `processingInformation.billPaymentOptions.billPayment=true` and `pointOfSaleInformation.entryMode=keyed`. #### Worldpay VAP Optional field. #### All other processors Not used.
41
+ attr_accessor :country
42
+
16
43
  # Email address of the PayPal account holder.
17
44
  attr_accessor :email
18
45
 
19
46
  # Attribute mapping from ruby-style variable name to JSON key.
20
47
  def self.attribute_map
21
48
  {
49
+ :'first_name' => :'firstName',
50
+ :'last_name' => :'lastName',
51
+ :'phone_number' => :'phoneNumber',
52
+ :'address1' => :'address1',
53
+ :'address2' => :'address2',
54
+ :'locality' => :'locality',
55
+ :'administrative_area' => :'administrativeArea',
56
+ :'postal_code' => :'postalCode',
57
+ :'country' => :'country',
22
58
  :'email' => :'email'
23
59
  }
24
60
  end
@@ -26,6 +62,15 @@ module CyberSource
26
62
  # Attribute mapping from JSON key to ruby-style variable name.
27
63
  def self.json_map
28
64
  {
65
+ :'first_name' => :'first_name',
66
+ :'last_name' => :'last_name',
67
+ :'phone_number' => :'phone_number',
68
+ :'address1' => :'address1',
69
+ :'address2' => :'address2',
70
+ :'locality' => :'locality',
71
+ :'administrative_area' => :'administrative_area',
72
+ :'postal_code' => :'postal_code',
73
+ :'country' => :'country',
29
74
  :'email' => :'email'
30
75
  }
31
76
  end
@@ -33,6 +78,15 @@ module CyberSource
33
78
  # Attribute type mapping.
34
79
  def self.swagger_types
35
80
  {
81
+ :'first_name' => :'String',
82
+ :'last_name' => :'String',
83
+ :'phone_number' => :'String',
84
+ :'address1' => :'String',
85
+ :'address2' => :'String',
86
+ :'locality' => :'String',
87
+ :'administrative_area' => :'String',
88
+ :'postal_code' => :'String',
89
+ :'country' => :'String',
36
90
  :'email' => :'String'
37
91
  }
38
92
  end
@@ -45,6 +99,42 @@ module CyberSource
45
99
  # convert string to symbol for hash key
46
100
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
47
101
 
102
+ if attributes.has_key?(:'firstName')
103
+ self.first_name = attributes[:'firstName']
104
+ end
105
+
106
+ if attributes.has_key?(:'lastName')
107
+ self.last_name = attributes[:'lastName']
108
+ end
109
+
110
+ if attributes.has_key?(:'phoneNumber')
111
+ self.phone_number = attributes[:'phoneNumber']
112
+ end
113
+
114
+ if attributes.has_key?(:'address1')
115
+ self.address1 = attributes[:'address1']
116
+ end
117
+
118
+ if attributes.has_key?(:'address2')
119
+ self.address2 = attributes[:'address2']
120
+ end
121
+
122
+ if attributes.has_key?(:'locality')
123
+ self.locality = attributes[:'locality']
124
+ end
125
+
126
+ if attributes.has_key?(:'administrativeArea')
127
+ self.administrative_area = attributes[:'administrativeArea']
128
+ end
129
+
130
+ if attributes.has_key?(:'postalCode')
131
+ self.postal_code = attributes[:'postalCode']
132
+ end
133
+
134
+ if attributes.has_key?(:'country')
135
+ self.country = attributes[:'country']
136
+ end
137
+
48
138
  if attributes.has_key?(:'email')
49
139
  self.email = attributes[:'email']
50
140
  end
@@ -63,6 +153,60 @@ module CyberSource
63
153
  true
64
154
  end
65
155
 
156
+ # Custom attribute writer method with validation
157
+ # @param [Object] first_name Value to be assigned
158
+ def first_name=(first_name)
159
+ @first_name = first_name
160
+ end
161
+
162
+ # Custom attribute writer method with validation
163
+ # @param [Object] last_name Value to be assigned
164
+ def last_name=(last_name)
165
+ @last_name = last_name
166
+ end
167
+
168
+ # Custom attribute writer method with validation
169
+ # @param [Object] phone_number Value to be assigned
170
+ def phone_number=(phone_number)
171
+ @phone_number = phone_number
172
+ end
173
+
174
+ # Custom attribute writer method with validation
175
+ # @param [Object] address1 Value to be assigned
176
+ def address1=(address1)
177
+ @address1 = address1
178
+ end
179
+
180
+ # Custom attribute writer method with validation
181
+ # @param [Object] address2 Value to be assigned
182
+ def address2=(address2)
183
+ @address2 = address2
184
+ end
185
+
186
+ # Custom attribute writer method with validation
187
+ # @param [Object] locality Value to be assigned
188
+ def locality=(locality)
189
+ @locality = locality
190
+ end
191
+
192
+ # Custom attribute writer method with validation
193
+ # @param [Object] administrative_area Value to be assigned
194
+ def administrative_area=(administrative_area)
195
+ @administrative_area = administrative_area
196
+ end
197
+
198
+ # Custom attribute writer method with validation
199
+ # @param [Object] postal_code Value to be assigned
200
+ def postal_code=(postal_code)
201
+ @postal_code = postal_code
202
+ end
203
+
204
+ # Custom attribute writer method with validation
205
+ # @param [Object] country Value to be assigned
206
+ def country=(country)
207
+ @country = country
208
+ end
209
+
66
210
  # Custom attribute writer method with validation
67
211
  # @param [Object] email Value to be assigned
68
212
  def email=(email)
@@ -74,6 +218,15 @@ module CyberSource
74
218
  def ==(o)
75
219
  return true if self.equal?(o)
76
220
  self.class == o.class &&
221
+ first_name == o.first_name &&
222
+ last_name == o.last_name &&
223
+ phone_number == o.phone_number &&
224
+ address1 == o.address1 &&
225
+ address2 == o.address2 &&
226
+ locality == o.locality &&
227
+ administrative_area == o.administrative_area &&
228
+ postal_code == o.postal_code &&
229
+ country == o.country &&
77
230
  email == o.email
78
231
  end
79
232
 
@@ -86,7 +239,7 @@ module CyberSource
86
239
  # Calculates hash code according to all attributes.
87
240
  # @return [Fixnum] Hash code
88
241
  def hash
89
- [email].hash
242
+ [first_name, last_name, phone_number, address1, address2, locality, administrative_area, postal_code, country, email].hash
90
243
  end
91
244
 
92
245
  # Builds the object from hash
@@ -37,6 +37,9 @@ module CyberSource
37
37
  # Total tax to apply to the product. This value cannot be negative. The tax amount and the offer amount must be in the same currency. The tax amount field is additive. The following example uses a two-exponent currency such as USD: 1. You include each line item in your request. ..- 1st line item has amount=10.00, quantity=1, and taxAmount=0.80 ..- 2nd line item has amount=20.00, quantity=1, and taxAmount=1.60 2. The total amount authorized will be 32.40, not 30.00 with 2.40 of tax included. Optional field. #### Airlines processing Tax portion of the order amount. This value cannot exceed 99999999999999 (fourteen 9s). Format: English characters only. Optional request field for a line item. #### Tax Calculation Optional field for U.S., Canadian, international tax, and value added taxes. Note if you send this field in your tax request, the value in the field will override the tax engine
38
38
  attr_accessor :tax_amount
39
39
 
40
+ # Controls shipping behavior during checkout. Use `NO_SHIPPING` for digital goods, `SET_PROVIDED_ADDRESS` when `orderInformation.shipTo` is provided, and `GET_FROM_FILE` to use the buyer's saved address. Possible values: - NO_SHIPPING - SET_PROVIDED_ADDRESS - GET_FROM_FILE
41
+ attr_accessor :shipping_preference
42
+
40
43
  # Attribute mapping from ruby-style variable name to JSON key.
41
44
  def self.attribute_map
42
45
  {
@@ -47,7 +50,8 @@ module CyberSource
47
50
  :'type_of_supply' => :'typeOfSupply',
48
51
  :'unit_price' => :'unitPrice',
49
52
  :'total_amount' => :'totalAmount',
50
- :'tax_amount' => :'taxAmount'
53
+ :'tax_amount' => :'taxAmount',
54
+ :'shipping_preference' => :'shippingPreference'
51
55
  }
52
56
  end
53
57
 
@@ -61,7 +65,8 @@ module CyberSource
61
65
  :'type_of_supply' => :'type_of_supply',
62
66
  :'unit_price' => :'unit_price',
63
67
  :'total_amount' => :'total_amount',
64
- :'tax_amount' => :'tax_amount'
68
+ :'tax_amount' => :'tax_amount',
69
+ :'shipping_preference' => :'shipping_preference'
65
70
  }
66
71
  end
67
72
 
@@ -75,7 +80,8 @@ module CyberSource
75
80
  :'type_of_supply' => :'String',
76
81
  :'unit_price' => :'String',
77
82
  :'total_amount' => :'String',
78
- :'tax_amount' => :'String'
83
+ :'tax_amount' => :'String',
84
+ :'shipping_preference' => :'String'
79
85
  }
80
86
  end
81
87
 
@@ -118,6 +124,10 @@ module CyberSource
118
124
  if attributes.has_key?(:'taxAmount')
119
125
  self.tax_amount = attributes[:'taxAmount']
120
126
  end
127
+
128
+ if attributes.has_key?(:'shippingPreference')
129
+ self.shipping_preference = attributes[:'shippingPreference']
130
+ end
121
131
  end
122
132
 
123
133
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -187,7 +197,8 @@ module CyberSource
187
197
  type_of_supply == o.type_of_supply &&
188
198
  unit_price == o.unit_price &&
189
199
  total_amount == o.total_amount &&
190
- tax_amount == o.tax_amount
200
+ tax_amount == o.tax_amount &&
201
+ shipping_preference == o.shipping_preference
191
202
  end
192
203
 
193
204
  # @see the `==` method
@@ -199,7 +210,7 @@ module CyberSource
199
210
  # Calculates hash code according to all attributes.
200
211
  # @return [Fixnum] Hash code
201
212
  def hash
202
- [product_name, product_description, product_sku, quantity, type_of_supply, unit_price, total_amount, tax_amount].hash
213
+ [product_name, product_description, product_sku, quantity, type_of_supply, unit_price, total_amount, tax_amount, shipping_preference].hash
203
214
  end
204
215
 
205
216
  # Builds the object from hash
@@ -32,7 +32,7 @@ module CyberSource
32
32
  # Attribute type mapping.
33
33
  def self.swagger_types
34
34
  {
35
- :'merchant_descriptor' => :'Ptsv2intentsMerchantInformationMerchantDescriptor'
35
+ :'merchant_descriptor' => :'Ptsv2intentsidMerchantInformationMerchantDescriptor'
36
36
  }
37
37
  end
38
38
 
@@ -0,0 +1,207 @@
1
+ =begin
2
+ #CyberSource Merged Spec
3
+
4
+ #All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html
5
+
6
+ OpenAPI spec version: 0.0.1
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.4.38
10
+ =end
11
+
12
+ require 'date'
13
+
14
+ module CyberSource
15
+ class Ptsv2intentsidMerchantInformationMerchantDescriptor
16
+ # Your merchant name. **Note** For Paymentech processor using Cybersource Payouts, the maximum data length is 22. #### PIN debit Your business name. This name is displayed on the cardholder's statement. When you include more than one consecutive space, extra spaces are removed. When you do not include this value in your PIN debit request, the merchant name from your account is used. **Important** This value must consist of English characters. Optional field for PIN debit credit or PIN debit purchase requests. #### Airline processing Your merchant name. This name is displayed on the cardholder's statement. When you include more than one consecutive space, extra spaces are removed. **Note** Some airline fee programs may require the original ticket number (ticket identifier) or the ancillary service description in positions 13 through 23 of this field. **Important** This value must consist of English characters. Required for captures and credits.
17
+ attr_accessor :name
18
+
19
+ # Email address of the merchant.
20
+ attr_accessor :email
21
+
22
+ # Attribute mapping from ruby-style variable name to JSON key.
23
+ def self.attribute_map
24
+ {
25
+ :'name' => :'name',
26
+ :'email' => :'email'
27
+ }
28
+ end
29
+
30
+ # Attribute mapping from JSON key to ruby-style variable name.
31
+ def self.json_map
32
+ {
33
+ :'name' => :'name',
34
+ :'email' => :'email'
35
+ }
36
+ end
37
+
38
+ # Attribute type mapping.
39
+ def self.swagger_types
40
+ {
41
+ :'name' => :'String',
42
+ :'email' => :'String'
43
+ }
44
+ end
45
+
46
+ # Initializes the object
47
+ # @param [Hash] attributes Model attributes in the form of hash
48
+ def initialize(attributes = {})
49
+ return unless attributes.is_a?(Hash)
50
+
51
+ # convert string to symbol for hash key
52
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
53
+
54
+ if attributes.has_key?(:'name')
55
+ self.name = attributes[:'name']
56
+ end
57
+
58
+ if attributes.has_key?(:'email')
59
+ self.email = attributes[:'email']
60
+ end
61
+ end
62
+
63
+ # Show invalid properties with the reasons. Usually used together with valid?
64
+ # @return Array for valid properties with the reasons
65
+ def list_invalid_properties
66
+ invalid_properties = Array.new
67
+ invalid_properties
68
+ end
69
+
70
+ # Check to see if the all the properties in the model are valid
71
+ # @return true if the model is valid
72
+ def valid?
73
+ true
74
+ end
75
+
76
+ # Custom attribute writer method with validation
77
+ # @param [Object] email Value to be assigned
78
+ def email=(email)
79
+ @email = email
80
+ end
81
+
82
+ # Checks equality by comparing each attribute.
83
+ # @param [Object] Object to be compared
84
+ def ==(o)
85
+ return true if self.equal?(o)
86
+ self.class == o.class &&
87
+ name == o.name &&
88
+ email == o.email
89
+ end
90
+
91
+ # @see the `==` method
92
+ # @param [Object] Object to be compared
93
+ def eql?(o)
94
+ self == o
95
+ end
96
+
97
+ # Calculates hash code according to all attributes.
98
+ # @return [Fixnum] Hash code
99
+ def hash
100
+ [name, email].hash
101
+ end
102
+
103
+ # Builds the object from hash
104
+ # @param [Hash] attributes Model attributes in the form of hash
105
+ # @return [Object] Returns the model itself
106
+ def build_from_hash(attributes)
107
+ return nil unless attributes.is_a?(Hash)
108
+ self.class.swagger_types.each_pair do |key, type|
109
+ if type =~ /\AArray<(.*)>/i
110
+ # check to ensure the input is an array given that the the attribute
111
+ # is documented as an array but the input is not
112
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
113
+ self.send("#{self.class.json_map[key]}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
114
+ end
115
+ elsif !attributes[self.class.attribute_map[key]].nil?
116
+ self.send("#{self.class.json_map[key]}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
117
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
118
+ end
119
+
120
+ self
121
+ end
122
+
123
+ # Deserializes the data based on type
124
+ # @param string type Data type
125
+ # @param string value Value to be deserialized
126
+ # @return [Object] Deserialized data
127
+ def _deserialize(type, value)
128
+ case type.to_sym
129
+ when :DateTime
130
+ DateTime.parse(value)
131
+ when :Date
132
+ Date.parse(value)
133
+ when :String
134
+ value.to_s
135
+ when :Integer
136
+ value.to_i
137
+ when :Float
138
+ value.to_f
139
+ when :BOOLEAN
140
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
141
+ true
142
+ else
143
+ false
144
+ end
145
+ when :Object
146
+ # generic object (usually a Hash), return directly
147
+ value
148
+ when /\AArray<(?<inner_type>.+)>\z/
149
+ inner_type = Regexp.last_match[:inner_type]
150
+ value.map { |v| _deserialize(inner_type, v) }
151
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
152
+ k_type = Regexp.last_match[:k_type]
153
+ v_type = Regexp.last_match[:v_type]
154
+ {}.tap do |hash|
155
+ value.each do |k, v|
156
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
157
+ end
158
+ end
159
+ else # model
160
+ temp_model = CyberSource.const_get(type).new
161
+ temp_model.build_from_hash(value)
162
+ end
163
+ end
164
+
165
+ # Returns the string representation of the object
166
+ # @return [String] String presentation of the object
167
+ def to_s
168
+ to_hash.to_s
169
+ end
170
+
171
+ # to_body is an alias to to_hash (backward compatibility)
172
+ # @return [Hash] Returns the object in the form of hash
173
+ def to_body
174
+ to_hash
175
+ end
176
+
177
+ # Returns the object in the form of hash
178
+ # @return [Hash] Returns the object in the form of hash
179
+ def to_hash
180
+ hash = {}
181
+ self.class.attribute_map.each_pair do |attr, param|
182
+ value = self.send(attr)
183
+ next if value.nil?
184
+ hash[param] = _to_hash(value)
185
+ end
186
+ hash
187
+ end
188
+
189
+ # Outputs non-array value in the form of hash
190
+ # For object, use to_hash. Otherwise, just return the value
191
+ # @param [Object] value Any valid value
192
+ # @return [Hash] Returns the value in the form of hash
193
+ def _to_hash(value)
194
+ if value.is_a?(Array)
195
+ value.compact.map { |v| _to_hash(v) }
196
+ elsif value.is_a?(Hash)
197
+ {}.tap do |hash|
198
+ value.each { |k, v| hash[k] = _to_hash(v) }
199
+ end
200
+ elsif value.respond_to? :to_hash
201
+ value.to_hash
202
+ else
203
+ value
204
+ end
205
+ end
206
+ end
207
+ end
@@ -12,39 +12,46 @@ Swagger Codegen version: 2.4.38
12
12
  require 'date'
13
13
 
14
14
  module CyberSource
15
- class Ptsv2paymentsidcapturesPointOfSaleInformation
16
- attr_accessor :emv
15
+ class Ptsv2paymentsBuyer
16
+ # Email of the recipient.
17
+ attr_accessor :email
17
18
 
18
- # Point-of-sale details for the transaction. This value is returned only for **American Express Direct**. CyberSource generates this value, which consists of a series of codes that identify terminal capability, security data, and specific conditions present at the time the transaction occurred. To comply with the CAPN requirements, this value must be included in all subsequent follow-on requests, such as captures and follow-on credits. When you perform authorizations, captures, and credits through CyberSource, CyberSource passes this value from the authorization service to the subsequent services for you. However, when you perform authorizations through CyberSource and perform subsequent services through other financial institutions, you must ensure that your requests for captures and credits include this value.
19
- attr_accessor :amex_capn_data
19
+ # First name of the recipient. #### Litle Maximum length: 25 #### All other processors Maximum length: 60 Optional field.
20
+ attr_accessor :first_name
20
21
 
21
- # Identifies the Zone PIN Key (ZPK) used for Online PIN processing by providing the 10‑digit Key Set Identifier (KSI). This value indicates that the PIN block is encrypted under a ZPK and enables the Payment Security Service (PSS) to perform the correct ZPK→ZPK PIN translation during card‑present EMV PIN transactions.
22
- attr_accessor :encrypted_key_id
22
+ # Last name of the recipient. #### Litle Maximum length: 25 #### All other processors Maximum length: 60 Optional field.
23
+ attr_accessor :last_name
24
+
25
+ # Phone number associated with the shipping address.
26
+ attr_accessor :phone_number
23
27
 
24
28
  # Attribute mapping from ruby-style variable name to JSON key.
25
29
  def self.attribute_map
26
30
  {
27
- :'emv' => :'emv',
28
- :'amex_capn_data' => :'amexCapnData',
29
- :'encrypted_key_id' => :'encryptedKeyId'
31
+ :'email' => :'email',
32
+ :'first_name' => :'firstName',
33
+ :'last_name' => :'lastName',
34
+ :'phone_number' => :'phoneNumber'
30
35
  }
31
36
  end
32
37
 
33
38
  # Attribute mapping from JSON key to ruby-style variable name.
34
39
  def self.json_map
35
40
  {
36
- :'emv' => :'emv',
37
- :'amex_capn_data' => :'amex_capn_data',
38
- :'encrypted_key_id' => :'encrypted_key_id'
41
+ :'email' => :'email',
42
+ :'first_name' => :'first_name',
43
+ :'last_name' => :'last_name',
44
+ :'phone_number' => :'phone_number'
39
45
  }
40
46
  end
41
47
 
42
48
  # Attribute type mapping.
43
49
  def self.swagger_types
44
50
  {
45
- :'emv' => :'Ptsv2paymentsidcapturesPointOfSaleInformationEmv',
46
- :'amex_capn_data' => :'String',
47
- :'encrypted_key_id' => :'String'
51
+ :'email' => :'String',
52
+ :'first_name' => :'String',
53
+ :'last_name' => :'String',
54
+ :'phone_number' => :'String'
48
55
  }
49
56
  end
50
57
 
@@ -56,16 +63,20 @@ module CyberSource
56
63
  # convert string to symbol for hash key
57
64
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
58
65
 
59
- if attributes.has_key?(:'emv')
60
- self.emv = attributes[:'emv']
66
+ if attributes.has_key?(:'email')
67
+ self.email = attributes[:'email']
68
+ end
69
+
70
+ if attributes.has_key?(:'firstName')
71
+ self.first_name = attributes[:'firstName']
61
72
  end
62
73
 
63
- if attributes.has_key?(:'amexCapnData')
64
- self.amex_capn_data = attributes[:'amexCapnData']
74
+ if attributes.has_key?(:'lastName')
75
+ self.last_name = attributes[:'lastName']
65
76
  end
66
77
 
67
- if attributes.has_key?(:'encryptedKeyId')
68
- self.encrypted_key_id = attributes[:'encryptedKeyId']
78
+ if attributes.has_key?(:'phoneNumber')
79
+ self.phone_number = attributes[:'phoneNumber']
69
80
  end
70
81
  end
71
82
 
@@ -83,15 +94,27 @@ module CyberSource
83
94
  end
84
95
 
85
96
  # Custom attribute writer method with validation
86
- # @param [Object] amex_capn_data Value to be assigned
87
- def amex_capn_data=(amex_capn_data)
88
- @amex_capn_data = amex_capn_data
97
+ # @param [Object] email Value to be assigned
98
+ def email=(email)
99
+ @email = email
100
+ end
101
+
102
+ # Custom attribute writer method with validation
103
+ # @param [Object] first_name Value to be assigned
104
+ def first_name=(first_name)
105
+ @first_name = first_name
106
+ end
107
+
108
+ # Custom attribute writer method with validation
109
+ # @param [Object] last_name Value to be assigned
110
+ def last_name=(last_name)
111
+ @last_name = last_name
89
112
  end
90
113
 
91
114
  # Custom attribute writer method with validation
92
- # @param [Object] encrypted_key_id Value to be assigned
93
- def encrypted_key_id=(encrypted_key_id)
94
- @encrypted_key_id = encrypted_key_id
115
+ # @param [Object] phone_number Value to be assigned
116
+ def phone_number=(phone_number)
117
+ @phone_number = phone_number
95
118
  end
96
119
 
97
120
  # Checks equality by comparing each attribute.
@@ -99,9 +122,10 @@ module CyberSource
99
122
  def ==(o)
100
123
  return true if self.equal?(o)
101
124
  self.class == o.class &&
102
- emv == o.emv &&
103
- amex_capn_data == o.amex_capn_data &&
104
- encrypted_key_id == o.encrypted_key_id
125
+ email == o.email &&
126
+ first_name == o.first_name &&
127
+ last_name == o.last_name &&
128
+ phone_number == o.phone_number
105
129
  end
106
130
 
107
131
  # @see the `==` method
@@ -113,7 +137,7 @@ module CyberSource
113
137
  # Calculates hash code according to all attributes.
114
138
  # @return [Fixnum] Hash code
115
139
  def hash
116
- [emv, amex_capn_data, encrypted_key_id].hash
140
+ [email, first_name, last_name, phone_number].hash
117
141
  end
118
142
 
119
143
  # Builds the object from hash