facebookbusiness 0.6.0.1 → 0.7.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (98) hide show
  1. checksums.yaml +4 -4
  2. data/lib/facebook_ads/ad_objects/ad.rb +0 -1
  3. data/lib/facebook_ads/ad_objects/ad_account.rb +7 -52
  4. data/lib/facebook_ads/ad_objects/ad_account_activity.rb +3 -5
  5. data/lib/facebook_ads/ad_objects/ad_account_creation_request.rb +0 -1
  6. data/lib/facebook_ads/ad_objects/ad_account_delivery_estimate.rb +1 -0
  7. data/lib/facebook_ads/ad_objects/ad_account_targeting_unified.rb +4 -0
  8. data/lib/facebook_ads/ad_objects/ad_activity.rb +3 -0
  9. data/lib/facebook_ads/ad_objects/ad_asset_feed_spec.rb +6 -0
  10. data/lib/facebook_ads/ad_objects/ad_campaign_activity.rb +6 -2
  11. data/lib/facebook_ads/ad_objects/ad_campaign_delivery_estimate.rb +1 -0
  12. data/lib/facebook_ads/ad_objects/ad_creative.rb +11 -3
  13. data/lib/facebook_ads/ad_objects/{custom_audience_prefill_state.rb → ad_creative_ad_disclaimer.rb} +4 -4
  14. data/lib/facebook_ads/ad_objects/ad_creative_link_data_call_to_action.rb +5 -0
  15. data/lib/facebook_ads/ad_objects/{request_history.rb → ad_creative_photo_data_media_elements.rb} +5 -14
  16. data/lib/facebook_ads/ad_objects/ad_creative_video_data.rb +1 -0
  17. data/lib/facebook_ads/ad_objects/ad_customization_rule_spec.rb +2 -0
  18. data/lib/facebook_ads/ad_objects/ad_network_analytics_sync_query_result.rb +3 -0
  19. data/lib/facebook_ads/ad_objects/ad_place_page_set.rb +1 -0
  20. data/lib/facebook_ads/ad_objects/ad_preview.rb +2 -0
  21. data/lib/facebook_ads/ad_objects/ad_report_run.rb +2 -0
  22. data/lib/facebook_ads/ad_objects/ad_set.rb +10 -2
  23. data/lib/facebook_ads/ad_objects/ad_video.rb +3 -11
  24. data/lib/facebook_ads/ad_objects/adgroup_activity.rb +4 -4
  25. data/lib/facebook_ads/ad_objects/adgroup_placement_specific_review_feedback.rb +2 -0
  26. data/lib/facebook_ads/ad_objects/ads_insights.rb +4 -105
  27. data/lib/facebook_ads/ad_objects/{dynamic_item_display_bundle.rb → ads_interest.rb} +7 -9
  28. data/lib/facebook_ads/ad_objects/ads_pixel.rb +0 -3
  29. data/lib/facebook_ads/ad_objects/album.rb +7 -0
  30. data/lib/facebook_ads/ad_objects/app_request.rb +2 -2
  31. data/lib/facebook_ads/ad_objects/application.rb +2 -22
  32. data/lib/facebook_ads/ad_objects/automotive_model.rb +1 -0
  33. data/lib/facebook_ads/ad_objects/business.rb +37 -7
  34. data/lib/facebook_ads/ad_objects/business_agreement.rb +43 -0
  35. data/lib/facebook_ads/ad_objects/business_asset_group.rb +1 -3
  36. data/lib/facebook_ads/ad_objects/business_creative_folder.rb +1 -3
  37. data/lib/facebook_ads/ad_objects/business_creative_folder_sharing_agreement.rb +46 -0
  38. data/lib/facebook_ads/ad_objects/business_image.rb +16 -0
  39. data/lib/facebook_ads/ad_objects/business_owned_object_on_behalf_of_request.rb +1 -0
  40. data/lib/facebook_ads/ad_objects/business_role_request.rb +1 -0
  41. data/lib/facebook_ads/ad_objects/business_user.rb +1 -0
  42. data/lib/facebook_ads/ad_objects/campaign.rb +12 -5
  43. data/lib/facebook_ads/ad_objects/catalog_item_app_links.rb +44 -0
  44. data/lib/facebook_ads/ad_objects/catalog_item_appeal_status.rb +40 -0
  45. data/lib/facebook_ads/ad_objects/comment.rb +1 -0
  46. data/lib/facebook_ads/ad_objects/commerce_merchant_settings.rb +99 -0
  47. data/lib/facebook_ads/ad_objects/commerce_merchant_settings_setup_status.rb +41 -0
  48. data/lib/facebook_ads/ad_objects/commerce_order.rb +147 -0
  49. data/lib/facebook_ads/ad_objects/{video_game_show.rb → commerce_order_transaction_detail.rb} +13 -17
  50. data/lib/facebook_ads/ad_objects/commerce_payout.rb +41 -0
  51. data/lib/facebook_ads/ad_objects/content_delivery_report.rb +3 -0
  52. data/lib/facebook_ads/ad_objects/copyright_reference_container.rb +0 -1
  53. data/lib/facebook_ads/ad_objects/cpas_parent_catalog_settings.rb +1 -0
  54. data/lib/facebook_ads/ad_objects/{business_pixel_tos.rb → creative_asset_tag.rb} +4 -3
  55. data/lib/facebook_ads/ad_objects/custom_audience.rb +2 -4
  56. data/lib/facebook_ads/ad_objects/custom_conversion.rb +1 -0
  57. data/lib/facebook_ads/ad_objects/destination.rb +1 -0
  58. data/lib/facebook_ads/ad_objects/event.rb +1 -0
  59. data/lib/facebook_ads/ad_objects/flight.rb +1 -0
  60. data/lib/facebook_ads/ad_objects/group.rb +2 -40
  61. data/lib/facebook_ads/ad_objects/home_listing.rb +1 -0
  62. data/lib/facebook_ads/ad_objects/hotel.rb +1 -1
  63. data/lib/facebook_ads/ad_objects/hotel_room.rb +1 -0
  64. data/lib/facebook_ads/ad_objects/ig_user.rb +2 -0
  65. data/lib/facebook_ads/ad_objects/life_event.rb +0 -4
  66. data/lib/facebook_ads/ad_objects/media_fingerprint.rb +0 -6
  67. data/lib/facebook_ads/ad_objects/messenger_profile.rb +0 -1
  68. data/lib/facebook_ads/ad_objects/offline_conversion_data_set.rb +0 -6
  69. data/lib/facebook_ads/ad_objects/open_graph_context.rb +0 -12
  70. data/lib/facebook_ads/ad_objects/page.rb +123 -53
  71. data/lib/facebook_ads/ad_objects/page_call_to_action.rb +13 -0
  72. data/lib/facebook_ads/ad_objects/page_post.rb +13 -49
  73. data/lib/facebook_ads/ad_objects/partner_study.rb +0 -4
  74. data/lib/facebook_ads/ad_objects/post.rb +11 -2
  75. data/lib/facebook_ads/ad_objects/product_catalog.rb +11 -33
  76. data/lib/facebook_ads/ad_objects/product_feed.rb +1 -0
  77. data/lib/facebook_ads/ad_objects/product_feed_upload.rb +1 -0
  78. data/lib/facebook_ads/ad_objects/product_feed_upload_diagnostics_report.rb +38 -0
  79. data/lib/facebook_ads/ad_objects/product_item.rb +1 -0
  80. data/lib/facebook_ads/ad_objects/profile.rb +1 -0
  81. data/lib/facebook_ads/ad_objects/publisher_block_list.rb +0 -6
  82. data/lib/facebook_ads/ad_objects/reach_frequency_prediction.rb +0 -1
  83. data/lib/facebook_ads/ad_objects/rtb_dynamic_post.rb +0 -4
  84. data/lib/facebook_ads/ad_objects/server_side/user_data.rb +6 -0
  85. data/lib/facebook_ads/ad_objects/store_catalog_settings.rb +0 -1
  86. data/lib/facebook_ads/ad_objects/streaming_reaction.rb +1 -0
  87. data/lib/facebook_ads/ad_objects/system_user.rb +1 -0
  88. data/lib/facebook_ads/ad_objects/user.rb +0 -72
  89. data/lib/facebook_ads/ad_objects/vehicle.rb +1 -1
  90. data/lib/facebook_ads/ad_objects/vehicle_offer.rb +1 -0
  91. data/lib/facebook_ads/ad_objects/video_copyright.rb +0 -1
  92. data/lib/facebook_ads/ad_objects/whats_app_business_account.rb +4 -0
  93. data/lib/facebook_ads/version.rb +2 -2
  94. metadata +18 -14
  95. data/bin/facebookbusiness +0 -14
  96. data/lib/facebook_ads/ad_objects/dynamic_item_display_bundle_folder.rb +0 -47
  97. data/lib/facebook_ads/ad_objects/instagram_comment.rb +0 -47
  98. data/lib/facebook_ads/ad_objects/open_graph_object.rb +0 -70
@@ -0,0 +1,44 @@
1
+ # Copyright (c) 2017-present, Facebook, Inc. All rights reserved.
2
+ #
3
+ # You are hereby granted a non-exclusive, worldwide, royalty-free license to use,
4
+ # copy, modify, and distribute this software in source code or binary form for use
5
+ # in connection with the web services and APIs provided by Facebook.
6
+ #
7
+ # As with any software that integrates with the Facebook platform, your use of
8
+ # this software is subject to the Facebook Platform Policy
9
+ # [http://developers.facebook.com/policy/]. This copyright notice shall be
10
+ # included in all copies or substantial portions of the software.
11
+ #
12
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
13
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
14
+ # FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
15
+ # COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
16
+ # IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
17
+ # CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
18
+
19
+ # FB:AUTOGEN
20
+
21
+ module FacebookAds
22
+ # This class is auto-generated.
23
+
24
+ # For any issues or feature requests related to this class, please let us know
25
+ # on github and we'll fix in our codegen framework. We'll not be able to accept
26
+ # pull request for this class.
27
+
28
+ class CatalogItemAppLinks < AdObject
29
+
30
+ field :android, { list: 'AndroidAppLink' }
31
+ field :ios, { list: 'IosAppLink' }
32
+ field :ipad, { list: 'IosAppLink' }
33
+ field :iphone, { list: 'IosAppLink' }
34
+ field :web, 'WebAppLink'
35
+ field :windows, { list: 'WindowsAppLink' }
36
+ field :windows_phone, { list: 'WindowsPhoneAppLink' }
37
+ field :windows_universal, { list: 'WindowsAppLink' }
38
+ has_no_id
39
+ has_no_get
40
+ has_no_post
41
+ has_no_delete
42
+
43
+ end
44
+ end
@@ -0,0 +1,40 @@
1
+ # Copyright (c) 2017-present, Facebook, Inc. All rights reserved.
2
+ #
3
+ # You are hereby granted a non-exclusive, worldwide, royalty-free license to use,
4
+ # copy, modify, and distribute this software in source code or binary form for use
5
+ # in connection with the web services and APIs provided by Facebook.
6
+ #
7
+ # As with any software that integrates with the Facebook platform, your use of
8
+ # this software is subject to the Facebook Platform Policy
9
+ # [http://developers.facebook.com/policy/]. This copyright notice shall be
10
+ # included in all copies or substantial portions of the software.
11
+ #
12
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
13
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
14
+ # FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
15
+ # COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
16
+ # IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
17
+ # CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
18
+
19
+ # FB:AUTOGEN
20
+
21
+ module FacebookAds
22
+ # This class is auto-generated.
23
+
24
+ # For any issues or feature requests related to this class, please let us know
25
+ # on github and we'll fix in our codegen framework. We'll not be able to accept
26
+ # pull request for this class.
27
+
28
+ class CatalogItemAppealStatus < AdObject
29
+
30
+ field :handle, 'string'
31
+ field :item_id, 'int'
32
+ field :status, 'string'
33
+ field :use_cases, { list: 'object' }
34
+ has_no_id
35
+ has_no_get
36
+ has_no_post
37
+ has_no_delete
38
+
39
+ end
40
+ end
@@ -106,6 +106,7 @@ module FacebookAds
106
106
  api.has_param :nectar_module, 'string'
107
107
  api.has_param :tracking, 'string'
108
108
  end
109
+ edge.get 'Profile'
109
110
  edge.post 'Comment' do |api|
110
111
  api.has_param :feedback_source, 'string'
111
112
  api.has_param :nectar_module, 'string'
@@ -0,0 +1,99 @@
1
+ # Copyright (c) 2017-present, Facebook, Inc. All rights reserved.
2
+ #
3
+ # You are hereby granted a non-exclusive, worldwide, royalty-free license to use,
4
+ # copy, modify, and distribute this software in source code or binary form for use
5
+ # in connection with the web services and APIs provided by Facebook.
6
+ #
7
+ # As with any software that integrates with the Facebook platform, your use of
8
+ # this software is subject to the Facebook Platform Policy
9
+ # [http://developers.facebook.com/policy/]. This copyright notice shall be
10
+ # included in all copies or substantial portions of the software.
11
+ #
12
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
13
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
14
+ # FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
15
+ # COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
16
+ # IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
17
+ # CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
18
+
19
+ # FB:AUTOGEN
20
+
21
+ module FacebookAds
22
+ # This class is auto-generated.
23
+
24
+ # For any issues or feature requests related to this class, please let us know
25
+ # on github and we'll fix in our codegen framework. We'll not be able to accept
26
+ # pull request for this class.
27
+
28
+ class CommerceMerchantSettings < AdObject
29
+ MERCHANT_STATUS = [
30
+ "ENABLED",
31
+ "EXTERNALLY_DISABLED",
32
+ ]
33
+
34
+
35
+ field :braintree_merchant_id, 'string'
36
+ field :checkout_message, 'string'
37
+ field :contact_email, 'string'
38
+ field :disable_checkout_urls, 'bool'
39
+ field :display_name, 'string'
40
+ field :facebook_channel, 'object'
41
+ field :has_discount_code, 'bool'
42
+ field :id, 'string'
43
+ field :instagram_channel, 'object'
44
+ field :merchant_alert_email, 'string'
45
+ field :merchant_page, 'Profile'
46
+ field :merchant_status, 'string'
47
+ field :onsite_commerce_merchant, 'object'
48
+ field :payment_provider, 'string'
49
+ field :privacy_url_by_locale, 'hash'
50
+ field :review_rejection_messages, { list: 'string' }
51
+ field :review_rejection_reasons, { list: 'string' }
52
+ field :review_status, 'string'
53
+ field :supported_card_types, { list: 'string' }
54
+ field :terms, 'string'
55
+ field :terms_url_by_locale, 'hash'
56
+ has_no_delete
57
+
58
+ has_edge :facebook_channel do |edge|
59
+ edge.post 'CommerceMerchantSettings' do |api|
60
+ api.has_param :pages, { list: 'string' }
61
+ end
62
+ end
63
+
64
+ has_edge :instagram_channel do |edge|
65
+ edge.delete
66
+ edge.post 'CommerceMerchantSettings' do |api|
67
+ api.has_param :instagram_business_accounts, { list: 'string' }
68
+ api.has_param :instagram_users, { list: 'string' }
69
+ end
70
+ end
71
+
72
+ has_edge :order_management_apps do |edge|
73
+ edge.get 'Application'
74
+ edge.post 'CommerceMerchantSettings'
75
+ end
76
+
77
+ has_edge :product_catalogs do |edge|
78
+ edge.get 'ProductCatalog'
79
+ end
80
+
81
+ has_edge :returns do |edge|
82
+ edge.get do |api|
83
+ api.has_param :end_time_created, 'datetime'
84
+ api.has_param :merchant_return_id, 'string'
85
+ api.has_param :start_time_created, 'datetime'
86
+ api.has_param :statuses, { list: { enum: %w{APPROVED DISAPPROVED MERCHANT_MARKED_COMPLETED REFUNDED REQUESTED }} }
87
+ end
88
+ end
89
+
90
+ has_edge :setup_status do |edge|
91
+ edge.get 'CommerceMerchantSettingsSetupStatus'
92
+ end
93
+
94
+ has_edge :tax_settings do |edge|
95
+ edge.get
96
+ end
97
+
98
+ end
99
+ end
@@ -0,0 +1,41 @@
1
+ # Copyright (c) 2017-present, Facebook, Inc. All rights reserved.
2
+ #
3
+ # You are hereby granted a non-exclusive, worldwide, royalty-free license to use,
4
+ # copy, modify, and distribute this software in source code or binary form for use
5
+ # in connection with the web services and APIs provided by Facebook.
6
+ #
7
+ # As with any software that integrates with the Facebook platform, your use of
8
+ # this software is subject to the Facebook Platform Policy
9
+ # [http://developers.facebook.com/policy/]. This copyright notice shall be
10
+ # included in all copies or substantial portions of the software.
11
+ #
12
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
13
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
14
+ # FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
15
+ # COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
16
+ # IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
17
+ # CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
18
+
19
+ # FB:AUTOGEN
20
+
21
+ module FacebookAds
22
+ # This class is auto-generated.
23
+
24
+ # For any issues or feature requests related to this class, please let us know
25
+ # on github and we'll fix in our codegen framework. We'll not be able to accept
26
+ # pull request for this class.
27
+
28
+ class CommerceMerchantSettingsSetupStatus < AdObject
29
+
30
+ field :deals_setup, 'string'
31
+ field :marketplace_approval_status, 'string'
32
+ field :marketplace_approval_status_details, 'object'
33
+ field :payment_setup, 'string'
34
+ field :shop_setup, 'string'
35
+ has_no_id
36
+ has_no_get
37
+ has_no_post
38
+ has_no_delete
39
+
40
+ end
41
+ end
@@ -0,0 +1,147 @@
1
+ # Copyright (c) 2017-present, Facebook, Inc. All rights reserved.
2
+ #
3
+ # You are hereby granted a non-exclusive, worldwide, royalty-free license to use,
4
+ # copy, modify, and distribute this software in source code or binary form for use
5
+ # in connection with the web services and APIs provided by Facebook.
6
+ #
7
+ # As with any software that integrates with the Facebook platform, your use of
8
+ # this software is subject to the Facebook Platform Policy
9
+ # [http://developers.facebook.com/policy/]. This copyright notice shall be
10
+ # included in all copies or substantial portions of the software.
11
+ #
12
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
13
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
14
+ # FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
15
+ # COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
16
+ # IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
17
+ # CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
18
+
19
+ # FB:AUTOGEN
20
+
21
+ module FacebookAds
22
+ # This class is auto-generated.
23
+
24
+ # For any issues or feature requests related to this class, please let us know
25
+ # on github and we'll fix in our codegen framework. We'll not be able to accept
26
+ # pull request for this class.
27
+
28
+ class CommerceOrder < AdObject
29
+ REASON_CODE = [
30
+ "BUYERS_REMORSE",
31
+ "DAMAGED_GOODS",
32
+ "NOT_AS_DESCRIBED",
33
+ "QUALITY_ISSUE",
34
+ "REFUND_COMPROMISED",
35
+ "REFUND_FOR_RETURN",
36
+ "REFUND_REASON_OTHER",
37
+ "REFUND_SFI_FAKE",
38
+ "REFUND_SFI_REAL",
39
+ "WRONG_ITEM",
40
+ ]
41
+
42
+ FILTERS = [
43
+ "HAS_CANCELLATIONS",
44
+ "HAS_FULFILLMENTS",
45
+ "HAS_REFUNDS",
46
+ "NO_CANCELLATIONS",
47
+ "NO_REFUNDS",
48
+ "NO_SHIPMENTS",
49
+ ]
50
+
51
+ STATE = [
52
+ "COMPLETED",
53
+ "CREATED",
54
+ "FB_PROCESSING",
55
+ "IN_PROGRESS",
56
+ ]
57
+
58
+
59
+ field :buyer_details, 'object'
60
+ field :channel, 'string'
61
+ field :created, 'string'
62
+ field :estimated_payment_details, 'object'
63
+ field :id, 'string'
64
+ field :is_group_buy, 'bool'
65
+ field :last_updated, 'string'
66
+ field :merchant_order_id, 'string'
67
+ field :order_status, 'object'
68
+ field :selected_shipping_option, 'object'
69
+ field :ship_by_date, 'string'
70
+ field :shipping_address, 'object'
71
+ has_no_post
72
+ has_no_delete
73
+
74
+ has_edge :acknowledge_order do |edge|
75
+ edge.post 'CommerceOrder' do |api|
76
+ api.has_param :idempotency_key, 'string'
77
+ api.has_param :merchant_order_reference, 'string'
78
+ end
79
+ end
80
+
81
+ has_edge :cancellations do |edge|
82
+ edge.get
83
+ edge.post 'CommerceOrder' do |api|
84
+ api.has_param :cancel_reason, 'hash'
85
+ api.has_param :idempotency_key, 'string'
86
+ api.has_param :items, { list: 'hash' }
87
+ api.has_param :restock_items, 'bool'
88
+ end
89
+ end
90
+
91
+ has_edge :items do |edge|
92
+ edge.get
93
+ end
94
+
95
+ has_edge :payments do |edge|
96
+ edge.get
97
+ end
98
+
99
+ has_edge :promotions do |edge|
100
+ edge.get
101
+ end
102
+
103
+ has_edge :refunds do |edge|
104
+ edge.get
105
+ edge.post 'CommerceOrder' do |api|
106
+ api.has_param :deductions, { list: 'hash' }
107
+ api.has_param :idempotency_key, 'string'
108
+ api.has_param :items, { list: 'hash' }
109
+ api.has_param :reason_code, { enum: -> { CommerceOrder::REASON_CODE }}
110
+ api.has_param :reason_text, 'string'
111
+ api.has_param :return_id, 'string'
112
+ api.has_param :shipping, 'hash'
113
+ end
114
+ end
115
+
116
+ has_edge :returns do |edge|
117
+ edge.get do |api|
118
+ api.has_param :merchant_return_id, 'string'
119
+ api.has_param :statuses, { list: { enum: %w{APPROVED DISAPPROVED MERCHANT_MARKED_COMPLETED REFUNDED REQUESTED }} }
120
+ end
121
+ end
122
+
123
+ has_edge :shipments do |edge|
124
+ edge.get
125
+ edge.post 'CommerceOrder' do |api|
126
+ api.has_param :external_redemption_link, 'string'
127
+ api.has_param :external_shipment_id, 'string'
128
+ api.has_param :fulfillment, 'hash'
129
+ api.has_param :idempotency_key, 'string'
130
+ api.has_param :items, { list: 'hash' }
131
+ api.has_param :merchant_order_reference, 'string'
132
+ api.has_param :shipment_origin_postal_code, 'string'
133
+ api.has_param :shipping_tax_details, 'hash'
134
+ api.has_param :tracking_info, 'hash'
135
+ end
136
+ end
137
+
138
+ has_edge :update_shipment do |edge|
139
+ edge.post 'CommerceOrder' do |api|
140
+ api.has_param :fulfillment_id, 'string'
141
+ api.has_param :idempotency_key, 'string'
142
+ api.has_param :tracking_info, 'hash'
143
+ end
144
+ end
145
+
146
+ end
147
+ end
@@ -25,27 +25,23 @@ module FacebookAds
25
25
  # on github and we'll fix in our codegen framework. We'll not be able to accept
26
26
  # pull request for this class.
27
27
 
28
- class VideoGameShow < AdObject
29
- ACTION = [
30
- "END_GAME",
31
- "START_GAME",
32
- ]
33
-
34
-
35
- field :end_time, 'datetime'
36
- field :game_status, 'string'
37
- field :game_type, 'string'
28
+ class CommerceOrderTransactionDetail < AdObject
29
+
30
+ field :net_payment_amount, 'object'
31
+ field :order_details, 'CommerceOrder'
32
+ field :payout_reference_id, 'string'
33
+ field :processing_fee, 'object'
34
+ field :tax_rate, 'string'
35
+ field :transaction_date, 'string'
36
+ field :transaction_type, 'string'
37
+ field :transfer_id, 'string'
38
38
  field :id, 'string'
39
- field :start_time, 'datetime'
39
+ has_no_get
40
+ has_no_post
40
41
  has_no_delete
41
42
 
42
- has_edge :questions do |edge|
43
+ has_edge :tax_details do |edge|
43
44
  edge.get
44
- edge.post do |api|
45
- api.has_param :correct_option, 'int'
46
- api.has_param :options, { list: 'string' }
47
- api.has_param :question, 'string'
48
- end
49
45
  end
50
46
 
51
47
  end
@@ -0,0 +1,41 @@
1
+ # Copyright (c) 2017-present, Facebook, Inc. All rights reserved.
2
+ #
3
+ # You are hereby granted a non-exclusive, worldwide, royalty-free license to use,
4
+ # copy, modify, and distribute this software in source code or binary form for use
5
+ # in connection with the web services and APIs provided by Facebook.
6
+ #
7
+ # As with any software that integrates with the Facebook platform, your use of
8
+ # this software is subject to the Facebook Platform Policy
9
+ # [http://developers.facebook.com/policy/]. This copyright notice shall be
10
+ # included in all copies or substantial portions of the software.
11
+ #
12
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
13
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
14
+ # FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
15
+ # COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
16
+ # IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
17
+ # CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
18
+
19
+ # FB:AUTOGEN
20
+
21
+ module FacebookAds
22
+ # This class is auto-generated.
23
+
24
+ # For any issues or feature requests related to this class, please let us know
25
+ # on github and we'll fix in our codegen framework. We'll not be able to accept
26
+ # pull request for this class.
27
+
28
+ class CommercePayout < AdObject
29
+
30
+ field :amount, 'object'
31
+ field :payout_date, 'string'
32
+ field :payout_reference_id, 'string'
33
+ field :status, 'string'
34
+ field :transfer_id, 'string'
35
+ has_no_id
36
+ has_no_get
37
+ has_no_post
38
+ has_no_delete
39
+
40
+ end
41
+ end