mundi_api 0.9.1 → 0.13.7

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 (144) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1755 -698
  3. data/lib/mundi_api.rb +75 -35
  4. data/lib/mundi_api/api_helper.rb +59 -7
  5. data/lib/mundi_api/controllers/charges_controller.rb +136 -97
  6. data/lib/mundi_api/controllers/customers_controller.rb +264 -253
  7. data/lib/mundi_api/controllers/invoices_controller.rb +97 -23
  8. data/lib/mundi_api/controllers/orders_controller.rb +247 -30
  9. data/lib/mundi_api/controllers/plans_controller.rb +108 -106
  10. data/lib/mundi_api/controllers/recipients_controller.rb +571 -0
  11. data/lib/mundi_api/controllers/sellers_controller.rb +244 -0
  12. data/lib/mundi_api/controllers/subscriptions_controller.rb +298 -108
  13. data/lib/mundi_api/models/create_access_token_request.rb +7 -9
  14. data/lib/mundi_api/models/create_address_request.rb +30 -14
  15. data/lib/mundi_api/models/create_anticipation_request.rb +53 -0
  16. data/lib/mundi_api/models/create_bank_account_request.rb +114 -0
  17. data/lib/mundi_api/models/create_bank_transfer_payment_request.rb +3 -5
  18. data/lib/mundi_api/models/create_boleto_payment_request.rb +18 -11
  19. data/lib/mundi_api/models/create_cancel_charge_request.rb +2 -4
  20. data/lib/mundi_api/models/create_cancel_subscription_request.rb +2 -4
  21. data/lib/mundi_api/models/create_capture_charge_request.rb +3 -5
  22. data/lib/mundi_api/models/create_card_options_request.rb +2 -4
  23. data/lib/mundi_api/models/create_card_request.rb +24 -17
  24. data/lib/mundi_api/models/create_card_token_request.rb +7 -9
  25. data/lib/mundi_api/models/create_charge_request.rb +8 -10
  26. data/lib/mundi_api/models/create_checkout_boleto_payment_request.rb +4 -6
  27. data/lib/mundi_api/models/create_checkout_card_installment_option_request.rb +3 -5
  28. data/lib/mundi_api/models/create_checkout_card_payment_request.rb +3 -5
  29. data/lib/mundi_api/models/create_checkout_payment_request.rb +55 -11
  30. data/lib/mundi_api/models/create_credit_card_payment_request.rb +28 -12
  31. data/lib/mundi_api/models/create_customer_request.rb +10 -12
  32. data/lib/mundi_api/models/create_device_request.rb +33 -0
  33. data/lib/mundi_api/models/create_discount_request.rb +5 -7
  34. data/lib/mundi_api/models/create_location_request.rb +42 -0
  35. data/lib/mundi_api/models/create_order_item_request.rb +15 -8
  36. data/lib/mundi_api/models/create_order_request.rb +57 -13
  37. data/lib/mundi_api/models/create_payment_request.rb +46 -13
  38. data/lib/mundi_api/models/create_phone_request.rb +4 -6
  39. data/lib/mundi_api/models/create_phones_request.rb +3 -5
  40. data/lib/mundi_api/models/create_plan_item_request.rb +7 -9
  41. data/lib/mundi_api/models/create_plan_request.rb +19 -21
  42. data/lib/mundi_api/models/create_price_bracket_request.rb +5 -7
  43. data/lib/mundi_api/models/create_pricing_scheme_request.rb +5 -7
  44. data/lib/mundi_api/models/create_recipient_request.rb +88 -0
  45. data/lib/mundi_api/models/create_seller_request.rb +21 -23
  46. data/lib/mundi_api/models/create_setup_request.rb +4 -6
  47. data/lib/mundi_api/models/create_shipping_request.rb +7 -9
  48. data/lib/mundi_api/models/create_split_request.rb +51 -0
  49. data/lib/mundi_api/models/create_subscription_item_request.rb +18 -11
  50. data/lib/mundi_api/models/create_subscription_request.rb +46 -30
  51. data/lib/mundi_api/models/create_token_request.rb +3 -5
  52. data/lib/mundi_api/models/create_transfer_request.rb +42 -0
  53. data/lib/mundi_api/models/create_usage_request.rb +4 -6
  54. data/lib/mundi_api/models/create_voucher_payment_request.rb +6 -8
  55. data/lib/mundi_api/models/get_access_token_response.rb +6 -8
  56. data/lib/mundi_api/models/get_address_response.rb +35 -19
  57. data/lib/mundi_api/models/get_anticipation_limit_response.rb +42 -0
  58. data/lib/mundi_api/models/get_anticipation_limits_response.rb +42 -0
  59. data/lib/mundi_api/models/get_anticipation_response.rb +117 -0
  60. data/lib/mundi_api/models/get_balance_response.rb +52 -0
  61. data/lib/mundi_api/models/get_bank_account_response.rb +161 -0
  62. data/lib/mundi_api/models/get_bank_transfer_transaction_response.rb +22 -9
  63. data/lib/mundi_api/models/get_billing_address_response.rb +29 -13
  64. data/lib/mundi_api/models/get_boleto_transaction_response.rb +96 -11
  65. data/lib/mundi_api/models/get_card_response.rb +16 -18
  66. data/lib/mundi_api/models/get_card_token_response.rb +8 -10
  67. data/lib/mundi_api/models/get_charge_response.rb +18 -20
  68. data/lib/mundi_api/models/get_checkout_boleto_payment_response.rb +43 -0
  69. data/lib/mundi_api/models/get_checkout_card_installment_options_response.rb +42 -0
  70. data/lib/mundi_api/models/get_checkout_card_payment_response.rb +49 -0
  71. data/lib/mundi_api/models/get_checkout_payment_response.rb +238 -0
  72. data/lib/mundi_api/models/get_checkout_payment_settings_response.rb +9 -11
  73. data/lib/mundi_api/models/get_credit_card_transaction_response.rb +36 -14
  74. data/lib/mundi_api/models/get_customer_response.rb +24 -17
  75. data/lib/mundi_api/models/get_device_response.rb +33 -0
  76. data/lib/mundi_api/models/get_discount_response.rb +9 -11
  77. data/lib/mundi_api/models/get_gateway_recipient_response.rb +69 -0
  78. data/lib/mundi_api/models/get_invoice_item_response.rb +27 -11
  79. data/lib/mundi_api/models/get_invoice_response.rb +29 -22
  80. data/lib/mundi_api/models/get_location_response.rb +42 -0
  81. data/lib/mundi_api/models/get_order_item_response.rb +28 -12
  82. data/lib/mundi_api/models/get_order_response.rb +64 -20
  83. data/lib/mundi_api/models/get_period_response.rb +6 -8
  84. data/lib/mundi_api/models/get_phone_response.rb +4 -6
  85. data/lib/mundi_api/models/get_phones_response.rb +3 -5
  86. data/lib/mundi_api/models/get_plan_item_response.rb +12 -14
  87. data/lib/mundi_api/models/get_plan_response.rb +22 -24
  88. data/lib/mundi_api/models/get_price_bracket_response.rb +5 -7
  89. data/lib/mundi_api/models/get_pricing_scheme_response.rb +5 -7
  90. data/lib/mundi_api/models/get_recipient_response.rb +150 -0
  91. data/lib/mundi_api/models/get_safety_pay_transaction_response.rb +21 -8
  92. data/lib/mundi_api/models/get_seller_response.rb +13 -15
  93. data/lib/mundi_api/models/get_sellers_request.rb +87 -0
  94. data/lib/mundi_api/models/get_setup_response.rb +5 -7
  95. data/lib/mundi_api/models/get_shipping_response.rb +6 -8
  96. data/lib/mundi_api/models/get_split_response.rb +52 -0
  97. data/lib/mundi_api/models/get_subscription_item_response.rb +24 -17
  98. data/lib/mundi_api/models/get_subscription_response.rb +44 -37
  99. data/lib/mundi_api/models/get_token_response.rb +6 -8
  100. data/lib/mundi_api/models/get_transaction_response.rb +37 -14
  101. data/lib/mundi_api/models/get_transfer_response.rb +89 -0
  102. data/lib/mundi_api/models/get_usage_response.rb +27 -11
  103. data/lib/mundi_api/models/get_voucher_transaction_response.rb +27 -14
  104. data/lib/mundi_api/models/list_access_tokens_response.rb +3 -5
  105. data/lib/mundi_api/models/list_addresses_response.rb +3 -5
  106. data/lib/mundi_api/models/list_anticipation_response.rb +49 -0
  107. data/lib/mundi_api/models/list_cards_response.rb +3 -5
  108. data/lib/mundi_api/models/list_charges_response.rb +3 -5
  109. data/lib/mundi_api/models/list_customers_response.rb +3 -5
  110. data/lib/mundi_api/models/list_invoices_response.rb +3 -5
  111. data/lib/mundi_api/models/list_order_response.rb +3 -5
  112. data/lib/mundi_api/models/list_plans_response.rb +3 -5
  113. data/lib/mundi_api/models/list_recipient_response.rb +49 -0
  114. data/lib/mundi_api/models/list_seller_response.rb +49 -0
  115. data/lib/mundi_api/models/list_subscription_items_response.rb +3 -5
  116. data/lib/mundi_api/models/list_subscriptions_response.rb +3 -5
  117. data/lib/mundi_api/models/list_transactions_response.rb +3 -5
  118. data/lib/mundi_api/models/list_transfer_response.rb +49 -0
  119. data/lib/mundi_api/models/list_usages_response.rb +3 -5
  120. data/lib/mundi_api/models/paging_response.rb +4 -6
  121. data/lib/mundi_api/models/update_address_request.rb +15 -8
  122. data/lib/mundi_api/models/update_card_request.rb +7 -9
  123. data/lib/mundi_api/models/update_charge_card_request.rb +5 -7
  124. data/lib/mundi_api/models/update_charge_due_date_request.rb +2 -4
  125. data/lib/mundi_api/models/update_charge_payment_method_request.rb +6 -8
  126. data/lib/mundi_api/models/update_customer_request.rb +23 -16
  127. data/lib/mundi_api/models/update_invoice_status_request.rb +33 -0
  128. data/lib/mundi_api/models/update_metadata_request.rb +2 -4
  129. data/lib/mundi_api/models/update_order_item_request.rb +60 -0
  130. data/lib/mundi_api/models/update_order_status_request.rb +33 -0
  131. data/lib/mundi_api/models/update_plan_item_request.rb +7 -9
  132. data/lib/mundi_api/models/update_plan_request.rb +16 -18
  133. data/lib/mundi_api/models/update_price_bracket_request.rb +5 -7
  134. data/lib/mundi_api/models/update_pricing_scheme_request.rb +5 -7
  135. data/lib/mundi_api/models/update_recipient_bank_account_request.rb +34 -0
  136. data/lib/mundi_api/models/update_recipient_request.rb +78 -0
  137. data/lib/mundi_api/models/update_seller_request.rb +97 -0
  138. data/lib/mundi_api/models/update_subscription_affiliation_id_request.rb +33 -0
  139. data/lib/mundi_api/models/update_subscription_billing_date_request.rb +2 -4
  140. data/lib/mundi_api/models/update_subscription_card_request.rb +3 -5
  141. data/lib/mundi_api/models/update_subscription_item_request.rb +16 -9
  142. data/lib/mundi_api/models/update_subscription_payment_method_request.rb +4 -6
  143. data/lib/mundi_api/mundi_api_client.rb +32 -20
  144. metadata +39 -3
@@ -0,0 +1,60 @@
1
+ # This file was automatically generated by APIMATIC v2.0
2
+ # ( https://apimatic.io ).
3
+
4
+ module MundiApi
5
+ # Update Order item Request
6
+ class UpdateOrderItemRequest < BaseModel
7
+ # TODO: Write general description for this method
8
+ # @return [Integer]
9
+ attr_accessor :amount
10
+
11
+ # TODO: Write general description for this method
12
+ # @return [String]
13
+ attr_accessor :description
14
+
15
+ # TODO: Write general description for this method
16
+ # @return [Integer]
17
+ attr_accessor :quantity
18
+
19
+ # TODO: Write general description for this method
20
+ # @return [String]
21
+ attr_accessor :category
22
+
23
+ # A mapping from model property names to API property names.
24
+ def self.names
25
+ @_hash = {} if @_hash.nil?
26
+ @_hash['amount'] = 'amount'
27
+ @_hash['description'] = 'description'
28
+ @_hash['quantity'] = 'quantity'
29
+ @_hash['category'] = 'category'
30
+ @_hash
31
+ end
32
+
33
+ def initialize(amount = nil,
34
+ description = nil,
35
+ quantity = nil,
36
+ category = nil)
37
+ @amount = amount
38
+ @description = description
39
+ @quantity = quantity
40
+ @category = category
41
+ end
42
+
43
+ # Creates an instance of the object from a hash.
44
+ def self.from_hash(hash)
45
+ return nil unless hash
46
+
47
+ # Extract variables from the hash.
48
+ amount = hash['amount']
49
+ description = hash['description']
50
+ quantity = hash['quantity']
51
+ category = hash['category']
52
+
53
+ # Create object from extracted values.
54
+ UpdateOrderItemRequest.new(amount,
55
+ description,
56
+ quantity,
57
+ category)
58
+ end
59
+ end
60
+ end
@@ -0,0 +1,33 @@
1
+ # This file was automatically generated by APIMATIC v2.0
2
+ # ( https://apimatic.io ).
3
+
4
+ module MundiApi
5
+ # UpdateOrderStatusRequest Model.
6
+ class UpdateOrderStatusRequest < BaseModel
7
+ # Order status
8
+ # @return [String]
9
+ attr_accessor :status
10
+
11
+ # A mapping from model property names to API property names.
12
+ def self.names
13
+ @_hash = {} if @_hash.nil?
14
+ @_hash['status'] = 'status'
15
+ @_hash
16
+ end
17
+
18
+ def initialize(status = nil)
19
+ @status = status
20
+ end
21
+
22
+ # Creates an instance of the object from a hash.
23
+ def self.from_hash(hash)
24
+ return nil unless hash
25
+
26
+ # Extract variables from the hash.
27
+ status = hash['status']
28
+
29
+ # Create object from extracted values.
30
+ UpdateOrderStatusRequest.new(status)
31
+ end
32
+ end
33
+ end
@@ -30,15 +30,13 @@ module MundiApi
30
30
 
31
31
  # A mapping from model property names to API property names.
32
32
  def self.names
33
- if @_hash.nil?
34
- @_hash = {}
35
- @_hash['name'] = 'name'
36
- @_hash['description'] = 'description'
37
- @_hash['status'] = 'status'
38
- @_hash['pricing_scheme'] = 'pricing_scheme'
39
- @_hash['quantity'] = 'quantity'
40
- @_hash['cycles'] = 'cycles'
41
- end
33
+ @_hash = {} if @_hash.nil?
34
+ @_hash['name'] = 'name'
35
+ @_hash['description'] = 'description'
36
+ @_hash['status'] = 'status'
37
+ @_hash['pricing_scheme'] = 'pricing_scheme'
38
+ @_hash['quantity'] = 'quantity'
39
+ @_hash['cycles'] = 'cycles'
42
40
  @_hash
43
41
  end
44
42
 
@@ -66,24 +66,22 @@ module MundiApi
66
66
 
67
67
  # A mapping from model property names to API property names.
68
68
  def self.names
69
- if @_hash.nil?
70
- @_hash = {}
71
- @_hash['name'] = 'name'
72
- @_hash['description'] = 'description'
73
- @_hash['installments'] = 'installments'
74
- @_hash['statement_descriptor'] = 'statement_descriptor'
75
- @_hash['currency'] = 'currency'
76
- @_hash['interval'] = 'interval'
77
- @_hash['interval_count'] = 'interval_count'
78
- @_hash['payment_methods'] = 'payment_methods'
79
- @_hash['billing_type'] = 'billing_type'
80
- @_hash['status'] = 'status'
81
- @_hash['shippable'] = 'shippable'
82
- @_hash['billing_days'] = 'billing_days'
83
- @_hash['metadata'] = 'metadata'
84
- @_hash['minimum_price'] = 'minimum_price'
85
- @_hash['trial_period_days'] = 'trial_period_days'
86
- end
69
+ @_hash = {} if @_hash.nil?
70
+ @_hash['name'] = 'name'
71
+ @_hash['description'] = 'description'
72
+ @_hash['installments'] = 'installments'
73
+ @_hash['statement_descriptor'] = 'statement_descriptor'
74
+ @_hash['currency'] = 'currency'
75
+ @_hash['interval'] = 'interval'
76
+ @_hash['interval_count'] = 'interval_count'
77
+ @_hash['payment_methods'] = 'payment_methods'
78
+ @_hash['billing_type'] = 'billing_type'
79
+ @_hash['status'] = 'status'
80
+ @_hash['shippable'] = 'shippable'
81
+ @_hash['billing_days'] = 'billing_days'
82
+ @_hash['metadata'] = 'metadata'
83
+ @_hash['minimum_price'] = 'minimum_price'
84
+ @_hash['trial_period_days'] = 'trial_period_days'
87
85
  @_hash
88
86
  end
89
87
 
@@ -22,13 +22,11 @@ module MundiApi
22
22
 
23
23
  # A mapping from model property names to API property names.
24
24
  def self.names
25
- if @_hash.nil?
26
- @_hash = {}
27
- @_hash['start_quantity'] = 'start_quantity'
28
- @_hash['price'] = 'price'
29
- @_hash['end_quantity'] = 'end_quantity'
30
- @_hash['overage_price'] = 'overage_price'
31
- end
25
+ @_hash = {} if @_hash.nil?
26
+ @_hash['start_quantity'] = 'start_quantity'
27
+ @_hash['price'] = 'price'
28
+ @_hash['end_quantity'] = 'end_quantity'
29
+ @_hash['overage_price'] = 'overage_price'
32
30
  @_hash
33
31
  end
34
32
 
@@ -22,13 +22,11 @@ module MundiApi
22
22
 
23
23
  # A mapping from model property names to API property names.
24
24
  def self.names
25
- if @_hash.nil?
26
- @_hash = {}
27
- @_hash['scheme_type'] = 'scheme_type'
28
- @_hash['price_brackets'] = 'price_brackets'
29
- @_hash['price'] = 'price'
30
- @_hash['minimum_price'] = 'minimum_price'
31
- end
25
+ @_hash = {} if @_hash.nil?
26
+ @_hash['scheme_type'] = 'scheme_type'
27
+ @_hash['price_brackets'] = 'price_brackets'
28
+ @_hash['price'] = 'price'
29
+ @_hash['minimum_price'] = 'minimum_price'
32
30
  @_hash
33
31
  end
34
32
 
@@ -0,0 +1,34 @@
1
+ # This file was automatically generated by APIMATIC v2.0
2
+ # ( https://apimatic.io ).
3
+
4
+ module MundiApi
5
+ # Updates the default bank account for a recipient
6
+ class UpdateRecipientBankAccountRequest < BaseModel
7
+ # Bank account
8
+ # @return [CreateBankAccountRequest]
9
+ attr_accessor :bank_account
10
+
11
+ # A mapping from model property names to API property names.
12
+ def self.names
13
+ @_hash = {} if @_hash.nil?
14
+ @_hash['bank_account'] = 'bank_account'
15
+ @_hash
16
+ end
17
+
18
+ def initialize(bank_account = nil)
19
+ @bank_account = bank_account
20
+ end
21
+
22
+ # Creates an instance of the object from a hash.
23
+ def self.from_hash(hash)
24
+ return nil unless hash
25
+
26
+ # Extract variables from the hash.
27
+ bank_account = CreateBankAccountRequest.from_hash(hash['bank_account']) if
28
+ hash['bank_account']
29
+
30
+ # Create object from extracted values.
31
+ UpdateRecipientBankAccountRequest.new(bank_account)
32
+ end
33
+ end
34
+ end
@@ -0,0 +1,78 @@
1
+ # This file was automatically generated by APIMATIC v2.0
2
+ # ( https://apimatic.io ).
3
+
4
+ module MundiApi
5
+ # Request for updating a Recipient
6
+ class UpdateRecipientRequest < BaseModel
7
+ # Name
8
+ # @return [String]
9
+ attr_accessor :name
10
+
11
+ # Email
12
+ # @return [String]
13
+ attr_accessor :email
14
+
15
+ # Description
16
+ # @return [String]
17
+ attr_accessor :description
18
+
19
+ # Type
20
+ # @return [String]
21
+ attr_accessor :type
22
+
23
+ # Status
24
+ # @return [String]
25
+ attr_accessor :status
26
+
27
+ # Metadata
28
+ # @return [Array<String, String>]
29
+ attr_accessor :metadata
30
+
31
+ # A mapping from model property names to API property names.
32
+ def self.names
33
+ @_hash = {} if @_hash.nil?
34
+ @_hash['name'] = 'name'
35
+ @_hash['email'] = 'email'
36
+ @_hash['description'] = 'description'
37
+ @_hash['type'] = 'type'
38
+ @_hash['status'] = 'status'
39
+ @_hash['metadata'] = 'metadata'
40
+ @_hash
41
+ end
42
+
43
+ def initialize(name = nil,
44
+ email = nil,
45
+ description = nil,
46
+ type = nil,
47
+ status = nil,
48
+ metadata = nil)
49
+ @name = name
50
+ @email = email
51
+ @description = description
52
+ @type = type
53
+ @status = status
54
+ @metadata = metadata
55
+ end
56
+
57
+ # Creates an instance of the object from a hash.
58
+ def self.from_hash(hash)
59
+ return nil unless hash
60
+
61
+ # Extract variables from the hash.
62
+ name = hash['name']
63
+ email = hash['email']
64
+ description = hash['description']
65
+ type = hash['type']
66
+ status = hash['status']
67
+ metadata = hash['metadata']
68
+
69
+ # Create object from extracted values.
70
+ UpdateRecipientRequest.new(name,
71
+ email,
72
+ description,
73
+ type,
74
+ status,
75
+ metadata)
76
+ end
77
+ end
78
+ end
@@ -0,0 +1,97 @@
1
+ # This file was automatically generated by APIMATIC v2.0
2
+ # ( https://apimatic.io ).
3
+
4
+ module MundiApi
5
+ # UpdateSellerRequest Model.
6
+ class UpdateSellerRequest < BaseModel
7
+ # Seller name
8
+ # @return [String]
9
+ attr_accessor :name
10
+
11
+ # Seller code
12
+ # @return [String]
13
+ attr_accessor :code
14
+
15
+ # Seller description
16
+ # @return [String]
17
+ attr_accessor :description
18
+
19
+ # Seller document CPF or CNPJ
20
+ # @return [String]
21
+ attr_accessor :document
22
+
23
+ # Seller document CPF or CNPJ
24
+ # @return [String]
25
+ attr_accessor :status
26
+
27
+ # Seller document CPF or CNPJ
28
+ # @return [String]
29
+ attr_accessor :type
30
+
31
+ # Seller document CPF or CNPJ
32
+ # @return [CreateAddressRequest]
33
+ attr_accessor :address
34
+
35
+ # Seller document CPF or CNPJ
36
+ # @return [Array<String, String>]
37
+ attr_accessor :metadata
38
+
39
+ # A mapping from model property names to API property names.
40
+ def self.names
41
+ @_hash = {} if @_hash.nil?
42
+ @_hash['name'] = 'name'
43
+ @_hash['code'] = 'code'
44
+ @_hash['description'] = 'description'
45
+ @_hash['document'] = 'document'
46
+ @_hash['status'] = 'status'
47
+ @_hash['type'] = 'type'
48
+ @_hash['address'] = 'address'
49
+ @_hash['metadata'] = 'metadata'
50
+ @_hash
51
+ end
52
+
53
+ def initialize(name = nil,
54
+ code = nil,
55
+ description = nil,
56
+ document = nil,
57
+ status = nil,
58
+ type = nil,
59
+ address = nil,
60
+ metadata = nil)
61
+ @name = name
62
+ @code = code
63
+ @description = description
64
+ @document = document
65
+ @status = status
66
+ @type = type
67
+ @address = address
68
+ @metadata = metadata
69
+ end
70
+
71
+ # Creates an instance of the object from a hash.
72
+ def self.from_hash(hash)
73
+ return nil unless hash
74
+
75
+ # Extract variables from the hash.
76
+ name = hash['name']
77
+ code = hash['code']
78
+ description = hash['description']
79
+ document = hash['document']
80
+ status = hash['status']
81
+ type = hash['type']
82
+ address = CreateAddressRequest.from_hash(hash['address']) if
83
+ hash['address']
84
+ metadata = hash['metadata']
85
+
86
+ # Create object from extracted values.
87
+ UpdateSellerRequest.new(name,
88
+ code,
89
+ description,
90
+ document,
91
+ status,
92
+ type,
93
+ address,
94
+ metadata)
95
+ end
96
+ end
97
+ end
@@ -0,0 +1,33 @@
1
+ # This file was automatically generated by APIMATIC v2.0
2
+ # ( https://apimatic.io ).
3
+
4
+ module MundiApi
5
+ # Request for updating a Subscription Affiliation Id
6
+ class UpdateSubscriptionAffiliationIdRequest < BaseModel
7
+ # TODO: Write general description for this method
8
+ # @return [String]
9
+ attr_accessor :gateway_affiliation_id
10
+
11
+ # A mapping from model property names to API property names.
12
+ def self.names
13
+ @_hash = {} if @_hash.nil?
14
+ @_hash['gateway_affiliation_id'] = 'gateway_affiliation_id'
15
+ @_hash
16
+ end
17
+
18
+ def initialize(gateway_affiliation_id = nil)
19
+ @gateway_affiliation_id = gateway_affiliation_id
20
+ end
21
+
22
+ # Creates an instance of the object from a hash.
23
+ def self.from_hash(hash)
24
+ return nil unless hash
25
+
26
+ # Extract variables from the hash.
27
+ gateway_affiliation_id = hash['gateway_affiliation_id']
28
+
29
+ # Create object from extracted values.
30
+ UpdateSubscriptionAffiliationIdRequest.new(gateway_affiliation_id)
31
+ end
32
+ end
33
+ end