square_connect 2.4.0.175 → 2.5.0.180
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/CHANGES.md +21 -0
- data/README.md +11 -1
- data/docs/AdditionalRecipient.md +15 -0
- data/docs/AdditionalRecipientReceivable.md +17 -0
- data/docs/AdditionalRecipientReceivableRefund.md +17 -0
- data/docs/CatalogApi.md +1 -1
- data/docs/ChargeRequest.md +1 -0
- data/docs/ChargeRequestAdditionalRecipient.md +14 -0
- data/docs/Checkout.md +1 -0
- data/docs/CreateCheckoutRequest.md +1 -0
- data/docs/CreateCustomerCardRequest.md +1 -1
- data/docs/ErrorCode.md +2 -0
- data/docs/ListAdditionalRecipientReceivableRefundsRequest.md +15 -0
- data/docs/ListAdditionalRecipientReceivableRefundsResponse.md +14 -0
- data/docs/ListAdditionalRecipientReceivablesRequest.md +15 -0
- data/docs/ListAdditionalRecipientReceivablesResponse.md +14 -0
- data/docs/Refund.md +1 -0
- data/docs/ReportingApi.md +134 -0
- data/docs/Tender.md +1 -0
- data/lib/square_connect.rb +9 -0
- data/lib/square_connect/api/catalog_api.rb +2 -2
- data/lib/square_connect/api/reporting_api.rb +156 -0
- data/lib/square_connect/api_client.rb +1 -1
- data/lib/square_connect/models/additional_recipient.rb +287 -0
- data/lib/square_connect/models/additional_recipient_receivable.rb +315 -0
- data/lib/square_connect/models/additional_recipient_receivable_refund.rb +337 -0
- data/lib/square_connect/models/charge_request.rb +16 -4
- data/lib/square_connect/models/charge_request_additional_recipient.rb +277 -0
- data/lib/square_connect/models/checkout.rb +16 -4
- data/lib/square_connect/models/create_checkout_request.rb +16 -4
- data/lib/square_connect/models/create_customer_card_request.rb +1 -1
- data/lib/square_connect/models/error.rb +2 -2
- data/lib/square_connect/models/error_code.rb +2 -0
- data/lib/square_connect/models/list_additional_recipient_receivable_refunds_request.rb +249 -0
- data/lib/square_connect/models/list_additional_recipient_receivable_refunds_response.rb +210 -0
- data/lib/square_connect/models/list_additional_recipient_receivables_request.rb +249 -0
- data/lib/square_connect/models/list_additional_recipient_receivables_response.rb +210 -0
- data/lib/square_connect/models/refund.rb +16 -4
- data/lib/square_connect/models/tender.rb +16 -4
- data/lib/square_connect/version.rb +1 -1
- data/spec/api/apple_pay_api_spec.rb +44 -0
- data/spec/api/orders_api_spec.rb +58 -0
- data/spec/api/reporting_api_spec.rb +88 -0
- data/spec/api/transactions_api_spec.rb +4 -4
- data/spec/models/additional_recipient_receivable_refund_spec.rb +69 -0
- data/spec/models/additional_recipient_receivable_spec.rb +69 -0
- data/spec/models/additional_recipient_spec.rb +57 -0
- data/spec/models/batch_retrieve_orders_request_spec.rb +39 -0
- data/spec/models/batch_retrieve_orders_response_spec.rb +45 -0
- data/spec/models/charge_request_additional_recipient_spec.rb +51 -0
- data/spec/models/checkout_spec.rb +6 -1
- data/spec/models/create_checkout_request_spec.rb +15 -1
- data/spec/models/create_order_request_discount_spec.rb +57 -0
- data/spec/models/create_order_request_modifier_spec.rb +39 -0
- data/spec/models/create_order_request_spec.rb +63 -0
- data/spec/models/create_order_request_tax_spec.rb +61 -0
- data/spec/models/create_order_response_spec.rb +45 -0
- data/spec/models/list_additional_recipient_receivable_refunds_request_spec.rb +61 -0
- data/spec/models/list_additional_recipient_receivable_refunds_response_spec.rb +51 -0
- data/spec/models/list_additional_recipient_receivables_request_spec.rb +61 -0
- data/spec/models/list_additional_recipient_receivables_response_spec.rb +51 -0
- data/spec/models/location_status_spec.rb +33 -0
- data/spec/models/location_type_spec.rb +33 -0
- data/spec/models/order_line_item_discount_scope_spec.rb +33 -0
- data/spec/models/order_line_item_discount_spec.rb +83 -0
- data/spec/models/order_line_item_discount_type_spec.rb +33 -0
- data/spec/models/order_line_item_modifier_spec.rb +57 -0
- data/spec/models/order_line_item_tax_spec.rb +67 -0
- data/spec/models/order_line_item_tax_type_spec.rb +33 -0
- data/spec/models/refund_spec.rb +15 -1
- data/spec/models/register_domain_request_spec.rb +39 -0
- data/spec/models/register_domain_response_spec.rb +49 -0
- data/spec/models/register_domain_response_status_spec.rb +33 -0
- data/spec/models/tender_spec.rb +15 -1
- metadata +80 -4
@@ -39,6 +39,9 @@ module SquareConnect
|
|
39
39
|
# The amount of Square processing fee money refunded to the *merchant*.
|
40
40
|
attr_accessor :processing_fee_money
|
41
41
|
|
42
|
+
# Additional recipients (other than the merchant) receiving a portion of this refund. For example, fees assessed on a refund of a purchase by a third party integration.
|
43
|
+
attr_accessor :additional_recipients
|
44
|
+
|
42
45
|
class EnumAttributeValidator
|
43
46
|
attr_reader :datatype
|
44
47
|
attr_reader :allowable_values
|
@@ -72,7 +75,8 @@ module SquareConnect
|
|
72
75
|
:'reason' => :'reason',
|
73
76
|
:'amount_money' => :'amount_money',
|
74
77
|
:'status' => :'status',
|
75
|
-
:'processing_fee_money' => :'processing_fee_money'
|
78
|
+
:'processing_fee_money' => :'processing_fee_money',
|
79
|
+
:'additional_recipients' => :'additional_recipients'
|
76
80
|
}
|
77
81
|
end
|
78
82
|
|
@@ -87,7 +91,8 @@ module SquareConnect
|
|
87
91
|
:'reason' => :'String',
|
88
92
|
:'amount_money' => :'Money',
|
89
93
|
:'status' => :'String',
|
90
|
-
:'processing_fee_money' => :'Money'
|
94
|
+
:'processing_fee_money' => :'Money',
|
95
|
+
:'additional_recipients' => :'Array<AdditionalRecipient>'
|
91
96
|
}
|
92
97
|
end
|
93
98
|
|
@@ -135,6 +140,12 @@ module SquareConnect
|
|
135
140
|
self.processing_fee_money = attributes[:'processing_fee_money']
|
136
141
|
end
|
137
142
|
|
143
|
+
if attributes.has_key?(:'additional_recipients')
|
144
|
+
if (value = attributes[:'additional_recipients']).is_a?(Array)
|
145
|
+
self.additional_recipients = value
|
146
|
+
end
|
147
|
+
end
|
148
|
+
|
138
149
|
end
|
139
150
|
|
140
151
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -210,7 +221,8 @@ module SquareConnect
|
|
210
221
|
reason == o.reason &&
|
211
222
|
amount_money == o.amount_money &&
|
212
223
|
status == o.status &&
|
213
|
-
processing_fee_money == o.processing_fee_money
|
224
|
+
processing_fee_money == o.processing_fee_money &&
|
225
|
+
additional_recipients == o.additional_recipients
|
214
226
|
end
|
215
227
|
|
216
228
|
# @see the `==` method
|
@@ -222,7 +234,7 @@ module SquareConnect
|
|
222
234
|
# Calculates hash code according to all attributes.
|
223
235
|
# @return [Fixnum] Hash code
|
224
236
|
def hash
|
225
|
-
[id, location_id, transaction_id, tender_id, created_at, reason, amount_money, status, processing_fee_money].hash
|
237
|
+
[id, location_id, transaction_id, tender_id, created_at, reason, amount_money, status, processing_fee_money, additional_recipients].hash
|
226
238
|
end
|
227
239
|
|
228
240
|
# Builds the object from hash
|
@@ -45,6 +45,9 @@ module SquareConnect
|
|
45
45
|
# The details of the cash tender. This value is present only if the value of `type` is `CASH`.
|
46
46
|
attr_accessor :cash_details
|
47
47
|
|
48
|
+
# Additional recipients (other than the merchant) receiving a portion of this tender. For example, fees assessed on the purchase by a third party integration.
|
49
|
+
attr_accessor :additional_recipients
|
50
|
+
|
48
51
|
class EnumAttributeValidator
|
49
52
|
attr_reader :datatype
|
50
53
|
attr_reader :allowable_values
|
@@ -80,7 +83,8 @@ module SquareConnect
|
|
80
83
|
:'customer_id' => :'customer_id',
|
81
84
|
:'type' => :'type',
|
82
85
|
:'card_details' => :'card_details',
|
83
|
-
:'cash_details' => :'cash_details'
|
86
|
+
:'cash_details' => :'cash_details',
|
87
|
+
:'additional_recipients' => :'additional_recipients'
|
84
88
|
}
|
85
89
|
end
|
86
90
|
|
@@ -97,7 +101,8 @@ module SquareConnect
|
|
97
101
|
:'customer_id' => :'String',
|
98
102
|
:'type' => :'String',
|
99
103
|
:'card_details' => :'TenderCardDetails',
|
100
|
-
:'cash_details' => :'TenderCashDetails'
|
104
|
+
:'cash_details' => :'TenderCashDetails',
|
105
|
+
:'additional_recipients' => :'Array<AdditionalRecipient>'
|
101
106
|
}
|
102
107
|
end
|
103
108
|
|
@@ -153,6 +158,12 @@ module SquareConnect
|
|
153
158
|
self.cash_details = attributes[:'cash_details']
|
154
159
|
end
|
155
160
|
|
161
|
+
if attributes.has_key?(:'additional_recipients')
|
162
|
+
if (value = attributes[:'additional_recipients']).is_a?(Array)
|
163
|
+
self.additional_recipients = value
|
164
|
+
end
|
165
|
+
end
|
166
|
+
|
156
167
|
end
|
157
168
|
|
158
169
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -200,7 +211,8 @@ module SquareConnect
|
|
200
211
|
customer_id == o.customer_id &&
|
201
212
|
type == o.type &&
|
202
213
|
card_details == o.card_details &&
|
203
|
-
cash_details == o.cash_details
|
214
|
+
cash_details == o.cash_details &&
|
215
|
+
additional_recipients == o.additional_recipients
|
204
216
|
end
|
205
217
|
|
206
218
|
# @see the `==` method
|
@@ -212,7 +224,7 @@ module SquareConnect
|
|
212
224
|
# Calculates hash code according to all attributes.
|
213
225
|
# @return [Fixnum] Hash code
|
214
226
|
def hash
|
215
|
-
[id, location_id, transaction_id, created_at, note, amount_money, processing_fee_money, customer_id, type, card_details, cash_details].hash
|
227
|
+
[id, location_id, transaction_id, created_at, note, amount_money, processing_fee_money, customer_id, type, card_details, cash_details, additional_recipients].hash
|
216
228
|
end
|
217
229
|
|
218
230
|
# Builds the object from hash
|
@@ -0,0 +1,44 @@
|
|
1
|
+
=begin
|
2
|
+
#Square Connect API
|
3
|
+
|
4
|
+
OpenAPI spec version: 2.0
|
5
|
+
Contact: developers@squareup.com
|
6
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
7
|
+
|
8
|
+
=end
|
9
|
+
|
10
|
+
require 'spec_helper'
|
11
|
+
require 'json'
|
12
|
+
|
13
|
+
# Unit tests for SquareConnect::ApplePayApi
|
14
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
15
|
+
# Please update as you see appropriate
|
16
|
+
describe 'ApplePayApi' do
|
17
|
+
before do
|
18
|
+
# run before each test
|
19
|
+
@instance = SquareConnect::ApplePayApi.new
|
20
|
+
end
|
21
|
+
|
22
|
+
after do
|
23
|
+
# run after each test
|
24
|
+
end
|
25
|
+
|
26
|
+
describe 'test an instance of ApplePayApi' do
|
27
|
+
it 'should create an instact of ApplePayApi' do
|
28
|
+
expect(@instance).to be_instance_of(SquareConnect::ApplePayApi)
|
29
|
+
end
|
30
|
+
end
|
31
|
+
|
32
|
+
# unit tests for register_domain
|
33
|
+
# RegisterDomain
|
34
|
+
# Activates a domain for use with Web Apple Pay and Square. A validation will be performed on this domain by Apple to ensure is it properly set up as an Apple Pay enabled domain. This endpoint provides an easy way for platform developers to bulk activate Web Apple Pay with Square for merchants using their platform. To learn more about Apple Pay on Web see the Apple Pay section in the [Embedding the Square Payment Form](https://docs.connect.squareup.com/articles/adding-payment-form) guide.
|
35
|
+
# @param body An object containing the fields to POST for the request. See the corresponding object definition for field details.
|
36
|
+
# @param [Hash] opts the optional parameters
|
37
|
+
# @return [RegisterDomainResponse]
|
38
|
+
describe 'register_domain test' do
|
39
|
+
it "should work" do
|
40
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
41
|
+
end
|
42
|
+
end
|
43
|
+
|
44
|
+
end
|
@@ -0,0 +1,58 @@
|
|
1
|
+
=begin
|
2
|
+
#Square Connect API
|
3
|
+
|
4
|
+
OpenAPI spec version: 2.0
|
5
|
+
Contact: developers@squareup.com
|
6
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
7
|
+
|
8
|
+
=end
|
9
|
+
|
10
|
+
require 'spec_helper'
|
11
|
+
require 'json'
|
12
|
+
|
13
|
+
# Unit tests for SquareConnect::OrdersApi
|
14
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
15
|
+
# Please update as you see appropriate
|
16
|
+
describe 'OrdersApi' do
|
17
|
+
before do
|
18
|
+
# run before each test
|
19
|
+
@instance = SquareConnect::OrdersApi.new
|
20
|
+
end
|
21
|
+
|
22
|
+
after do
|
23
|
+
# run after each test
|
24
|
+
end
|
25
|
+
|
26
|
+
describe 'test an instance of OrdersApi' do
|
27
|
+
it 'should create an instact of OrdersApi' do
|
28
|
+
expect(@instance).to be_instance_of(SquareConnect::OrdersApi)
|
29
|
+
end
|
30
|
+
end
|
31
|
+
|
32
|
+
# unit tests for batch_retrieve_orders
|
33
|
+
# BatchRetrieveOrders
|
34
|
+
# Retrieves a set of [Order](#type-order)s by their IDs. Only orders that have been successfully charged are included in the response. If any of the order IDs in the request do not exist, or are associated with uncharged orders, then those orders will not be included in the set of orders in the response. Note that in the future, uncharged orders may be returned by this endpoint.
|
35
|
+
# @param location_id The ID of the orders' associated location.
|
36
|
+
# @param body An object containing the fields to POST for the request. See the corresponding object definition for field details.
|
37
|
+
# @param [Hash] opts the optional parameters
|
38
|
+
# @return [BatchRetrieveOrdersResponse]
|
39
|
+
describe 'batch_retrieve_orders test' do
|
40
|
+
it "should work" do
|
41
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
42
|
+
end
|
43
|
+
end
|
44
|
+
|
45
|
+
# unit tests for create_order
|
46
|
+
# CreateOrder
|
47
|
+
# Creates an [Order](#type-order) that can then be referenced as `order_id` in a request to the [Charge](#endpoint-charge) endpoint. Orders specify products for purchase, along with discounts, taxes, and other settings to apply to the purchase. To associate a created order with a request to the Charge endpoint, provide the order's `id` in the `order_id` field of your request. You cannot modify an order after you create it. If you need to modify an order, instead create a new order with modified details. To learn more about the Orders API, see the [Orders API Overview](https://docs.connect.squareup.com/articles/orders-api-overview).
|
48
|
+
# @param location_id The ID of the business location to associate the order with.
|
49
|
+
# @param body An object containing the fields to POST for the request. See the corresponding object definition for field details.
|
50
|
+
# @param [Hash] opts the optional parameters
|
51
|
+
# @return [CreateOrderResponse]
|
52
|
+
describe 'create_order test' do
|
53
|
+
it "should work" do
|
54
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
58
|
+
end
|
@@ -0,0 +1,88 @@
|
|
1
|
+
=begin
|
2
|
+
#Square Connect API
|
3
|
+
|
4
|
+
OpenAPI spec version: 2.0
|
5
|
+
Contact: developers@squareup.com
|
6
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
7
|
+
|
8
|
+
=end
|
9
|
+
|
10
|
+
require 'date'
|
11
|
+
require 'spec_helper'
|
12
|
+
require 'json'
|
13
|
+
|
14
|
+
# Unit tests for SquareConnect::ReportingApi
|
15
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
16
|
+
# Please update as you see appropriate
|
17
|
+
describe 'ReportingApi' do
|
18
|
+
let(:accounts) { load_accounts() }
|
19
|
+
let(:account) { accounts['US-Prod'] }
|
20
|
+
let(:location_id) { account['location_id'] }
|
21
|
+
let(:instance) do
|
22
|
+
configuration = SquareConnect::Configuration.new do |config|
|
23
|
+
config.access_token = account['access_token']
|
24
|
+
end
|
25
|
+
client = SquareConnect::ApiClient.new(configuration)
|
26
|
+
|
27
|
+
SquareConnect::ReportingApi.new(client)
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of ReportingApi' do
|
31
|
+
it 'should create an instance of ReportingApi' do
|
32
|
+
expect(instance).to be_instance_of(SquareConnect::ReportingApi)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
36
|
+
# unit tests for list_additional_recipient_receivable_refunds
|
37
|
+
# ListAdditionalRecipientReceivableRefunds
|
38
|
+
# Lists Additional Recipient Receivable Refunds for a particular location. Max results per [page](#paginatingresults): 50
|
39
|
+
# @param location_id The ID of the location to list AdditionalRecipientReceivableRefunds for.
|
40
|
+
# @param [Hash] opts the optional parameters
|
41
|
+
# @option opts [String] :begin_time The beginning of the requested reporting period, in RFC 3339 format. See [Date ranges](#dateranges) for details on date inclusivity/exclusivity. Default value: The current time minus one year.
|
42
|
+
# @option opts [String] :end_time The end of the requested reporting period, in RFC 3339 format. See [Date ranges](#dateranges) for details on date inclusivity/exclusivity. Default value: The current time.
|
43
|
+
# @option opts [String] :sort_order The order in which results are listed in the response (`ASC` for oldest first, `DESC` for newest first). Default value: `DESC`
|
44
|
+
# @option opts [String] :cursor A pagination cursor returned by a previous call to this endpoint. Provide this to retrieve the next set of results for your original query. See [Paginating results](#paginatingresults) for more information.
|
45
|
+
# @return [ListAdditionalRecipientReceivableRefundsResponse]
|
46
|
+
describe 'list_additional_recipient_receivable_refunds test' do
|
47
|
+
let(:request) do
|
48
|
+
{
|
49
|
+
begin_time: (DateTime.now - 30).rfc3339,
|
50
|
+
end_time: DateTime.now.rfc3339,
|
51
|
+
sort_order: 'DESC'
|
52
|
+
}
|
53
|
+
end
|
54
|
+
|
55
|
+
it 'should succeed' do
|
56
|
+
response = instance.list_additional_recipient_receivable_refunds(location_id, request)
|
57
|
+
|
58
|
+
expect(response.errors).to be_nil
|
59
|
+
end
|
60
|
+
end
|
61
|
+
|
62
|
+
# unit tests for list_additional_recipient_receivables
|
63
|
+
# ListAdditionalRecipientReceivables
|
64
|
+
# Lists Additional Recipient Receivables for a particular location. Max results per [page](#paginatingresults): 50
|
65
|
+
# @param location_id The ID of the location to list AdditionalRecipientReceivables for.
|
66
|
+
# @param [Hash] opts the optional parameters
|
67
|
+
# @option opts [String] :begin_time The beginning of the requested reporting period, in RFC 3339 format. See [Date ranges](#dateranges) for details on date inclusivity/exclusivity. Default value: The current time minus one year.
|
68
|
+
# @option opts [String] :end_time The end of the requested reporting period, in RFC 3339 format. See [Date ranges](#dateranges) for details on date inclusivity/exclusivity. Default value: The current time.
|
69
|
+
# @option opts [String] :sort_order The order in which results are listed in the response (`ASC` for oldest first, `DESC` for newest first). Default value: `DESC`
|
70
|
+
# @option opts [String] :cursor A pagination cursor returned by a previous call to this endpoint. Provide this to retrieve the next set of results for your original query. See [Paginating results](#paginatingresults) for more information.
|
71
|
+
# @return [ListAdditionalRecipientReceivablesResponse]
|
72
|
+
describe 'list_additional_recipient_receivables test' do
|
73
|
+
let(:request) do
|
74
|
+
{
|
75
|
+
begin_time: (DateTime.now - 30).rfc3339,
|
76
|
+
end_time: DateTime.now.rfc3339,
|
77
|
+
sort_order: 'DESC'
|
78
|
+
}
|
79
|
+
end
|
80
|
+
|
81
|
+
it 'should succeed' do
|
82
|
+
response = instance.list_additional_recipient_receivables(location_id, request)
|
83
|
+
|
84
|
+
expect(response.errors).to be_nil
|
85
|
+
end
|
86
|
+
end
|
87
|
+
|
88
|
+
end
|
@@ -32,8 +32,8 @@ describe 'TransactionsApi' do
|
|
32
32
|
# unit tests for capture_transaction
|
33
33
|
# CaptureTransaction
|
34
34
|
# Captures a transaction that was created with the [Charge](#endpoint-charge) endpoint with a `delay_capture` value of `true`. See [Delayed capture transactions](/articles/delayed-capture-transactions/) for more information.
|
35
|
-
# @param location_id
|
36
|
-
# @param transaction_id
|
35
|
+
# @param location_id
|
36
|
+
# @param transaction_id
|
37
37
|
# @param [Hash] opts the optional parameters
|
38
38
|
# @return [CaptureTransactionResponse]
|
39
39
|
describe 'capture_transaction test' do
|
@@ -117,8 +117,8 @@ describe 'TransactionsApi' do
|
|
117
117
|
# unit tests for void_transaction
|
118
118
|
# VoidTransaction
|
119
119
|
# Cancels a transaction that was created with the [Charge](#endpoint-charge) endpoint with a `delay_capture` value of `true`. See [Delayed capture transactions](/articles/delayed-capture-transactions/) for more information.
|
120
|
-
# @param location_id
|
121
|
-
# @param transaction_id
|
120
|
+
# @param location_id
|
121
|
+
# @param transaction_id
|
122
122
|
# @param [Hash] opts the optional parameters
|
123
123
|
# @return [VoidTransactionResponse]
|
124
124
|
describe 'void_transaction test' do
|
@@ -0,0 +1,69 @@
|
|
1
|
+
=begin
|
2
|
+
#Square Connect API
|
3
|
+
|
4
|
+
OpenAPI spec version: 2.0
|
5
|
+
Contact: developers@squareup.com
|
6
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
7
|
+
|
8
|
+
=end
|
9
|
+
|
10
|
+
require 'spec_helper'
|
11
|
+
require 'json'
|
12
|
+
require 'date'
|
13
|
+
|
14
|
+
# Unit tests for SquareConnect::AdditionalRecipientReceivableRefund
|
15
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
16
|
+
# Please update as you see appropriate
|
17
|
+
describe 'AdditionalRecipientReceivableRefund' do
|
18
|
+
before do
|
19
|
+
# run before each test
|
20
|
+
@instance = SquareConnect::AdditionalRecipientReceivableRefund.new
|
21
|
+
end
|
22
|
+
|
23
|
+
after do
|
24
|
+
# run after each test
|
25
|
+
end
|
26
|
+
|
27
|
+
describe 'test an instance of AdditionalRecipientReceivableRefund' do
|
28
|
+
it 'should create an instact of AdditionalRecipientReceivableRefund' do
|
29
|
+
expect(@instance).to be_instance_of(SquareConnect::AdditionalRecipientReceivableRefund)
|
30
|
+
end
|
31
|
+
end
|
32
|
+
describe 'test attribute "id"' do
|
33
|
+
it 'should work' do
|
34
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
35
|
+
end
|
36
|
+
end
|
37
|
+
|
38
|
+
describe 'test attribute "receivable_id"' do
|
39
|
+
it 'should work' do
|
40
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
41
|
+
end
|
42
|
+
end
|
43
|
+
|
44
|
+
describe 'test attribute "refund_id"' do
|
45
|
+
it 'should work' do
|
46
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
47
|
+
end
|
48
|
+
end
|
49
|
+
|
50
|
+
describe 'test attribute "transaction_location_id"' do
|
51
|
+
it 'should work' do
|
52
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
56
|
+
describe 'test attribute "amount_money"' do
|
57
|
+
it 'should work' do
|
58
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
59
|
+
end
|
60
|
+
end
|
61
|
+
|
62
|
+
describe 'test attribute "created_at"' do
|
63
|
+
it 'should work' do
|
64
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
65
|
+
end
|
66
|
+
end
|
67
|
+
|
68
|
+
end
|
69
|
+
|
@@ -0,0 +1,69 @@
|
|
1
|
+
=begin
|
2
|
+
#Square Connect API
|
3
|
+
|
4
|
+
OpenAPI spec version: 2.0
|
5
|
+
Contact: developers@squareup.com
|
6
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
7
|
+
|
8
|
+
=end
|
9
|
+
|
10
|
+
require 'spec_helper'
|
11
|
+
require 'json'
|
12
|
+
require 'date'
|
13
|
+
|
14
|
+
# Unit tests for SquareConnect::AdditionalRecipientReceivable
|
15
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
16
|
+
# Please update as you see appropriate
|
17
|
+
describe 'AdditionalRecipientReceivable' do
|
18
|
+
before do
|
19
|
+
# run before each test
|
20
|
+
@instance = SquareConnect::AdditionalRecipientReceivable.new
|
21
|
+
end
|
22
|
+
|
23
|
+
after do
|
24
|
+
# run after each test
|
25
|
+
end
|
26
|
+
|
27
|
+
describe 'test an instance of AdditionalRecipientReceivable' do
|
28
|
+
it 'should create an instact of AdditionalRecipientReceivable' do
|
29
|
+
expect(@instance).to be_instance_of(SquareConnect::AdditionalRecipientReceivable)
|
30
|
+
end
|
31
|
+
end
|
32
|
+
describe 'test attribute "id"' do
|
33
|
+
it 'should work' do
|
34
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
35
|
+
end
|
36
|
+
end
|
37
|
+
|
38
|
+
describe 'test attribute "transaction_id"' do
|
39
|
+
it 'should work' do
|
40
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
41
|
+
end
|
42
|
+
end
|
43
|
+
|
44
|
+
describe 'test attribute "transaction_location_id"' do
|
45
|
+
it 'should work' do
|
46
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
47
|
+
end
|
48
|
+
end
|
49
|
+
|
50
|
+
describe 'test attribute "amount_money"' do
|
51
|
+
it 'should work' do
|
52
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
56
|
+
describe 'test attribute "created_at"' do
|
57
|
+
it 'should work' do
|
58
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
59
|
+
end
|
60
|
+
end
|
61
|
+
|
62
|
+
describe 'test attribute "refunds"' do
|
63
|
+
it 'should work' do
|
64
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
65
|
+
end
|
66
|
+
end
|
67
|
+
|
68
|
+
end
|
69
|
+
|